Code: Jennifer for coders
Jennifer for coders: the code
The programs behind the slides. They run with Jennifer 0.26.0 from this folder. Only modules.j needs a deck; everything else uses system libraries.
names.j: a constant, a variable and a function call ("Three kinds of names"). Run:jennifer run names.jconvert.j: the explicit conversion withconvert.toInt("Strict by default"). Run:jennifer run convert.jnumbers.j: each row of the table, the two errors caught and printed ("Numbers that do not lie"). Run:jennifer run numbers.jstrings.j: a slice, a raw string and interpolation ("Strings: cooked, raw, and sliced"). Run:jennifer run strings.jcopies.j: assigning a list copies it ("Assignment copies"). Run:jennifer run copies.jshapes.j: an enum taken apart bymatch("Structs, enums and match"). Run:jennifer run shapes.jerrors.j:throw,catchanddefer("Errors are values"). Run:jennifer run errors.jfuncs.j: named functions passed tolists.filterandlists.map("Functions are values"). Run:jennifer run funcs.jgeo.j: the module with an exported constant and function ("Libraries, modules and decks").modules.j: a built-in library,geo.jand the@deckyard/telegramdeck imported together ("Libraries, modules and decks"). Needs the deck: runjvc installonce in this folder, which readsdeck.toml(the requirementjvc add "@deckyard/telegram" "^0.4.0"writes, "Packages with jvc") and fillsvendor/. Thenjennifer run modules.jdeck.toml: the jvc manifest formodules.j.spawn.j: two sums in two tasks ("Concurrency with spawn"). Run:jennifer run spawn.jgeo_test.j: the test ofgeo.j("Tests are built in"). Run:jennifer test geo_test.jrejected.sh: writes the code the slides show being rejected to a temporary directory and runs each file:sum.jfrom "Strict by default" and the "Elsewhere" column of "The traps, once more". The error lines print the temporary path where the slide shows/home/ada/. Run:sh rejected.sh
| File | Size | |
|---|---|---|
| LICENSE | 899 B | raw |
| README.md | 2.0 KiB | raw |
| convert.j | 88 B | raw |
| copies.j | 126 B | raw |
| deck.toml | 273 B | raw |
| errors.j | 200 B | raw |
| funcs.j | 239 B | raw |
| geo.j | 122 B | raw |
| geo_test.j | 126 B | raw |
| modules.j | 393 B | raw |
| names.j | 173 B | raw |
| numbers.j | 542 B | raw |
| rejected.sh | 925 B | raw |
| shapes.j | 297 B | raw |
| spawn.j | 319 B | raw |
| strings.j | 165 B | raw |