ilmanzo / crystal-koans Goto Github PK
View Code? Open in Web Editor NEWThe Crystal Programming Language Koans
License: MIT License
The Crystal Programming Language Koans
License: MIT License
In spec/sets_spec.cr:18:8
18 | s1.subset?(s2).should eq FILL_IN_THIS
^------
Warning: Deprecated Set(Int32)#subset?. Use #subset_of? instead.
In spec/sets_spec.cr:19:8
19 | s2.subset?(s1).should eq FILL_IN_THIS
^------
Warning: Deprecated Set(Int32)#subset?. Use #subset_of? instead.
A total of 2 warnings were found.
Firstly congrats on the awesome resource, it is very pleasurable to use and understand.
Apparently in the ´generics_spec.cr´, what we have is a Stack and not a Queue.
Expecting a FIFO behaviour and getting a LIFO one can mess a bit with learners (as me) heads.
Maybe change description to use Stack instead? or change implementation to match naming?
Is there a solution for this line in nil_spec? Whenever i try the solution Nil.class.should eq Class
i get the error can't use Class as generic type argument yet, use a more specific type
. Did you have a different solution in mind?
the annotation should be
@[StudentAnnotation(student_name: "myself")]
Let’s improve by adding more test to parse text and files specially in regex, xml
missing yaml
and type_reflection
Command shards install
generates error:
Resolving dependencies
Fetching https://github.com/danreeves/watch.git
Unable to satisfy the following requirements:
- `crystal (~> 0.35, >= 0.35.1)` required by `watch 1.0.1+git.commit.489bbbfaf4283f6d7a5bbf9ab34ae3c6d00713b2`
Failed to resolve dependencies, try updating incompatible shards or use --ignore-crystal-version as a workaround if no update is available.
dir.entries call after dir.children returns 0
after some investigation, it turns out that one must rewind the stream before using it once more. It should be documented to avoid surprises.
should be json_plain
and json_custom
<%%= foo %>
should be <%= foo %>
Getting the error when trying to run crystal run koans.cr
It seems the spec/spec_helper.cr
file was deleted in this commit: 7095033
Hey, thanks for the project. It's fun, I'm a big fan of learning new languages via koans.
Quick question, is "Nil", not "nil", put intentionally here or it's a typo? It got me confused :)
https://github.com/ilmanzo/crystal-koans/blob/master/spec/booleans_spec.cr#L28
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.