The long way through Software Craftsmanship

Self-Study in June 2019

Jun 1, 2019 - 2 minute read - Comments - self-study-aggregationjune2019bashborrowing-rulesccomparisoncompilerconcurrencyconsensuscorrectnesscovariancedebugdistributed-consensusdistributed-lockdistributed-programmingefficiencyfencing-mechanismfunction-pointergarbage-collectiongenerich0p3helplanguagelanguage-featurelifetimelifetime-parameterlockmaksym-zavershynskyimartin-kleppmannmonotonic-clockparallellismpersonal-knowledge-basepeter-hoseypointerpointer-arithmeticprogramming-languageredlockredlock-algorithmrustrustonomiconscriptstop-the-worldstringstructtrapvariancewiki

(h0p3’s Wiki)

This is a highly customized tiddlyWiki, from h0p3.

Tags: wiki, personal-knowledge-base, h0p3

Id: b8b3d973-9611-4180-854a-0242ac110003 Read: Fri, 7 Jun 2019 13:20:26 +0000

Debug bash scripts

This article explains how to debug bash scripts using the DEBUG trap.

Declares several log levels for the commands

Tags: debug, bash, trap, help, script

Id: 39f76af4-99ce-48b6-adc1-0242ac110003 Read: Fri, 7 Jun 2019 13:20:26 +0000

Understanding Rust Lifetimes

Describes rust lifetimes, lifetime parameters.

Compares them to C++ pointers (in the sense they are difficult to learn, but make things explicit).

Tags: rust, borrowing-rules, pointer, language, comparison, generic, lifetime, lifetime-parameter, maksym-zavershynskyi, compiler, language-feature, variance, covariance, struct, rustonomicon

Id: 2e14ae3e-8ec0-11e9-be23-0242ac110003 Read: Fri, 14 Jun 2019 16:19:26 +0000

Everything you need to know about pointers in C

Explains pointers in C

Tags: c, programming-language, pointer, peter-hosey, language-feature, string, pointer-arithmetic, function-pointer

Id: ddc39078-8ed6-11e9-85bc-0242ac110003 Read: Fri, 14 Jun 2019 19:01:50 +0000

How to do distributed locking

This article explains the usage of locks (for efficiency - optimization / for correctness).

Explains the usage of the “Redlock” algorithm, to perform distributed locks. Explains a fencing mechanism (using tokens).

References monotonic clocks, stop-the-world garbage collection, consensus mechanisms.

Uses good diagrams for parallelism and concurrency.

Tags: lock, efficiency, correctness, redlock, redlock-algorithm, consensus, distributed-consensus, distributed-programming, distributed-lock, martin-kleppmann, parallellism, concurrency, fencing-mechanism, monotonic-clock, stop-the-world, garbage-collection

Id: a1165c1e-9719-11e9-bf0b-0242ac110003 Read: Tue, 25 Jun 2019 07:19:54 +0000

In Defense of Tooling Books read in 2019Q2