Build your own X
What I cannot create, I do not understand. In that spirit, this is a repo
of links on how to create your own X. From game to database, to network
stack…They are not fully featured but you got the point.
Low Level Bit Hacks You Absolutely Must Know
Bit hacks are ingenious little programming tricks that manipulate integers in
a smart and efficient manner. Instead of performing some operation by looping
over individual bits, these programming nuggets do the same with one or two
carefully chosen bitwise operations.
Advanced Types in Elm - Extensible Records
Look into use extensible record to restrict amount of data in a record a
function can see so test is easier, no need to mock whole record, and
one more less place to worry about mutation.
Leveraging the type system to avoid mistakes
Wrong order of argument is a comment mistake. If we just rely on simple
type such as
int it may not enough to help discover the bug since
they mey all int. However, by wrapping them in a value class we can
spot the error sooner. The post is in Scale but they are applied to
Building a mobile frontend for a Go application using Flutter
You can write the GUI side of the application in Dart (instead of one for
Android, one for iOS), and the “back-end” mostly in Go (rather than
duplicate the logic in Java/Kotlin and Objective-C/Swift), with only a
thin glue-code layer written in the platform’s native language (in our
case, Kotlin on Android, Swift on iOS).
That's it for this round, have a great day! If you like this newsletter, please tell the world, or
tweet about this