Command Line Interface Application Input Options Parameterized options All My CLI: The complete application! Request for user input Output Testing Using Readline and NCurse...
Command Line Interface Application Input Options Parameterized options All My CLI: The complete application Request for user input Output Testing Using Readline and NCurses...
Cross-compilation Cross-compilation Crystal supports a basic form of cross compilation . In order to achieve this, the compiler executable provides two flags: --cross-compile...
Cross-compilation Cross-compilation Crystal supports a basic form of cross compilation . In order to achieve this, the compiler executable provides two flags: --cross-compil...
Constants Pseudo Constants Dynamic assignment Constants Constants can be declared at the top level or inside other types. They must start with a capital letter: PI = 3.14 ...
Constants Pseudo Constants Dynamic assignment Constants Constants can be declared at the top level or inside other types. They must start with a capital letter: PI = 3.14...
Testing Crystal Code Anatomy of a spec file Expectations Equivalence, Identity and Type Truthiness Comparisons Other matchers Expecting errors Focusing on a group of specs ...
Testing Crystal Code Anatomy of a spec file Expectations Equivalence, Identity and Type Truthiness Comparisons Other matchers Expecting errors Focusing on a group of specs ...
Performance Premature optimization Avoiding memory allocations Don’t create intermediate strings when writing to an IO Use string interpolation instead of concatenation Avoid IO...