Commit Graph

214 Commits

Author SHA1 Message Date
Jay Hayes
d37df5fa77 Swap order of zipped lists to create learning opportunity
Zipping atoms and numbers creates an opportunity for the learner to
realize "💡 I just made a keyword list!"
2016-05-05 17:48:47 -05:00
Jay Hayes
ad011d80f3 Establish that modules are atoms, then show function call on them 2016-05-05 10:43:17 -05:00
Jay Hayes
948fbddcdf Remove unhelpful example
Not really useful without showing dot access.
2016-05-05 10:42:57 -05:00
Jay Hayes
ee89055af6 Remove commented koans
We can't pull this off right now since answers can't be expressions.
2016-05-05 10:41:57 -05:00
Jay Hayes
7b64bd36e9 Add other lessons that don't work with answer system 2016-05-05 10:41:28 -05:00
Jay Hayes
53fc465c3f Add atom koans 2016-05-05 10:41:28 -05:00
Jay Hayes
7711936893 Show explicit example of named agents 2016-05-04 19:57:55 -05:00
Felipe Seré
f5af10d87a Merge pull request #104 from snikolau/add-list-wrap-koan
Add wrapping list koan
2016-05-04 23:42:10 +01:00
snikolau
2e21cdf11b Add wrapping list koan 2016-05-04 22:57:05 +01:00
Jay Hayes
e4771a46a4 Remove other process killing example
The narrative no longer reads consistently... Just 🔪 it
2016-05-04 15:29:20 -05:00
Jay Hayes
6aae32e672 Explain FIFO nature of message in own example 2016-05-04 15:17:52 -05:00
Jay Hayes
4e4e35f575 Remove process about killing others 😆 2016-05-04 15:13:35 -05:00
Jay Hayes
65b9af48b4 Add example of process as state 2016-05-04 15:07:12 -05:00
Jay Hayes
6126d5a836 Add koan illustrating tail recursion 2016-05-04 15:06:57 -05:00
Jay Hayes
1f24de98f4 Rearrange existing koans to paint a clearer picture 2016-05-04 15:06:39 -05:00
Jay Hayes
322799a655 Remove koans illustrating self-exit
I don't really like these examples, because the process would exit
anyway when the function returns... Also having to sleep is not ideal.
2016-05-04 15:06:12 -05:00
Jay Hayes
2629dc0523 whitespace 2016-05-04 15:05:19 -05:00
Jay Hayes
1f1112c888 Add koan illustrating that a process is referenced by a pid 2016-05-04 15:05:19 -05:00
Uku Taht
bc8f98d5d9 Merge pull request #100 from iamvery/tweak-maps-koan
Replace pipeline with composed function in maps koan
2016-05-04 15:49:05 +01:00
Jay Hayes
e2468b92cc Avoid keys order issue by using Maps.has_key?/2 2016-05-04 09:28:49 -05:00
Jay Hayes
f93e29cc8c Remove "keys and values" example 2016-05-04 09:28:35 -05:00
Uku Taht
43d4ac5360 Merge pull request #92 from iamvery/update-koans
Update various koans
2016-05-04 09:49:48 +01:00
Uku Taht
cda9b3526c Merge pull request #93 from iamvery/assert-receive-does-not-work
Problem with assert_receive in koans
2016-05-04 09:48:55 +01:00
Jay Hayes
74b99676e7 Add example of anonymous function as argument 2016-05-03 19:08:51 -05:00
Jay Hayes
64d6e72b46 Add example of matching map with struct 2016-05-03 19:08:51 -05:00
Jay Hayes
944f932ec5 Add example of lists not support partial match 2016-05-03 19:08:51 -05:00
Jay Hayes
b577a24753 Extract initial example of binding before showing rebinding 2016-05-03 19:08:51 -05:00
Jay Hayes
cc47f7c9c6 Simplify cases 2016-05-03 08:23:56 -05:00
Jay Hayes
bef1cf5028 Add new test illustrating spawning processes 2016-05-03 08:23:00 -05:00
Jay Hayes
c7c2fbcdff Auto-pin variables when replacing blanks in assert_receive 2016-05-02 20:45:03 -05:00
Jay Hayes
adabb403ea Fix typo in answers
This isn't failing due to an apparently problem with assert_receive in
the koans. Not quite sure yet why that macro isn't working.
2016-05-02 15:11:30 -05:00
Jay Hayes
1f4f82ea53 Add parens around Enum.each/2 2016-04-27 15:53:37 -05:00
Jay Hayes
c621c1abaa Assert the results of all koans tests 2016-04-27 12:15:26 -05:00
Jay Hayes
814d3db995 Refactor Tracker get/0 and summarize/0 2016-04-26 18:16:17 -05:00
Uku Taht
385ab0e236 Merge pull request #80 from elixirkoans/add-a-progress-bar
Add a progress bar
2016-04-26 23:28:44 +01:00
Felipe Seré
45a0801f4b Merge pull request #88 from iamvery/test-agents
Add test for agents koans
2016-04-26 23:25:00 +01:00
Jay Hayes
cd4f7c755d Add test for agents koans 2016-04-26 17:09:16 -05:00
Felipe Sere
1357235f8a Incorporate feedback about usued elements and typos 2016-04-26 23:06:05 +01:00
Felipe Sere
ab72b0e908 Simpler progressbar and handle --koan=<KOAN> better 2016-04-26 23:06:05 +01:00
Felipe Sere
2b2240340e Add a progress bar that also displays the number of koans. 2016-04-26 23:06:05 +01:00
Felipe Sere
c9ee4dbae0 Add an agent to keep track of completed koans 2016-04-26 23:06:05 +01:00
Jay Hayes
a24e179472 Error is raised if an answer isn't provided for each koan 2016-04-26 16:40:52 -05:00
Alex
b69010d05c Map.fetch! -> Map.fetch
I think is better to continue use safe ```Map.fetch``` until we familiarize users with dangerous function concept.
Not every body comes from ruby background, with knowledge of ```?``` and ```!``` function notations.

test ifx
2016-04-26 21:16:43 +03:00
Uku Taht
30dcdd5efe Move blank in pin operator koan 2016-04-26 13:32:33 +01:00
Uku Taht
353ce95a1a Attempt clarifying the pin operator 2016-04-26 13:03:46 +01:00
Rabea Gleissner
919b877d51 Makes changing pattern more obvious 2016-04-26 12:24:57 +01:00
Rabea Gleissner
9ec6089bde Add new koan for anonymous functions with pattern matching 2016-04-26 12:07:45 +01:00
Jay Hayes
c894641106 Remove unneeded element from match
Maps support partial matching, no need to include a key for an unneeded
value.
2016-04-24 23:11:34 -05:00
Jay Hayes
4a42e78e63 whitespace 2016-04-24 23:08:15 -05:00
Jay Hayes
fcff0af7b2 Removed unneeded test harness macro 2016-04-24 23:08:06 -05:00