Elixir: Lists, Default Arguments, Guards, Multiple Clause Functions, Pattern Matching, Tuples, Pipe, Strings, Recursion, Maps, Module Attributes
Objectives
-
1 point
Exercism: Language List
Lists
-
1 point
Exercism: Guessing Game
Default Arguments, Guards, Multiple Clause Functions
-
1 point
Exercism: Kitchen Calculator
Pattern Matching, Tuples
-
1 point
Exercism: High School Sweetheart
Pipe Operator, Strings
-
1 point
Exercism: Recursion
Bird Count
-
1 point
Exercism: High Score
Maps, Module Attributes as Constants
Today we will continue the Elixir track on Exercism. As told last lecture, I am at a conference in Oklahoma City. Please come to class as usual, sit in the correct seat and work with your partner on the next set of exercises. This time we will cover:
Lists,Default Arguments,Guards,Multiple Clause Functions,Pattern Matching,Tuples,Pipe Operator,Strings,Recursion,Maps, andModule Attributes
By now you should be establishing a convenient workflow:
- Download exercism exercise with the terminal command
- Open the Readme via the Markdown Previewer (VsCode Plugin) and
lib/<name_of_exercise.ex> - Read the intro and instructions carefully
- Solve the challenge
- Test the solution until correct (
exercism test) - Submit the solution (
exercism submit) - Check the exercism website for additional AI feedback
- Look at a popular community solutions (and compare your work)
You may also want to save the folder you are working in as a workspace in VSCode.
Tip For the exercism exercises I highly recommend to disable Copilopt or other integrated AI tools in VS code as they tend to suggest incorrect lines of code. Since you don't know Elixir yet, It will be very difficult to verify and correct auto-suggested code.