Learn Silk
Learn Silk
Build an order calculator, then give it packing rules, reusable pricing, and input validation.
What will I learn?
Each chapter gives a small tool a new capability.
1
First programCalculate an order total, run tests, and check the printed result.
2
Language tourTurn a packing rule into functions, branches, a loop, and boundary tests.
3
Modules and packagesShare pricing rules between files and build a receipt executable.
4
Types and optionalsHandle a customer with or without an email address.
5
Results and errorsValidate a delivery choice and return useful messages and exit codes.
For numeric input, validate a CLI amount and prove a guarded call with Formal Silk. For your next project, explore the Silk guides and reference.