The Merit of Alternating Between Design Docs and Code One effective approach I've found in software development is the practice of alternating between
docker has host mode network, which stops network isolationso port mappings will not workbut note that this option is only avaiable on linux(https
The law of leaky abstractions means that whenever somebody comes up with a wizzy new code-generation tool that is supposed to make us all ever-so-effi
I mostly use AI tools for coding in these 2 reasons:To solve a conceptual problemLarge scale: ex. How would I design the structure of a new databaseSm
Conclusion: f-strings are fastest in CPython because it builds the strings straight from stack to improve performance. A new Opcode BUILD_STRING was a
A behavioral pattern This post mostly excerpt from Design Patterns (1994) Intent Represent an operation to be performed on the elements of an object s
Provide a way to access the elements of an aggregator object sequentially w/o exposing its underlying representationCursorAn aggregate object needs a
Design Patterns (1994) -GoF is a big book. It is more of a catalog then a textbook to read. Thankfully, there is a Guide to readers section, which tel
study of Design Patterns (1994) Intent Decouple an abstraction from its implementation so that the two can vary independently. Also Known As Handle/B
Javascript language specification is standardized, by ECMAScript specification.the ES in ES6 is short for ECMAScriptIn ES6, which is the current stand
function mocking using jest failsfile A - class Scanner has Scanner.useScan() methodfile B - has export const scan = () => {}// omit arrow functiontes
when using git on macOS, duplicate files appeared after switching branches.move your git repo to somewhere not tracked by iCloudiCloud watches registe
Provide an interface for creating families of related or dependent objects, w/o specifiying their concrete classes.KitTo enable easy changing of the l
Yes, this is the decorators we use.Dynamic attachment of responsibilities to an object. A flexible alternative to subclass for extending functionality
Intent Define a family of algorithms, encapsulate each one, make them interchangeable. Strategy lets the algorithm vary independently from clients tha
Studying GoF's Design Patterns(1994) bookUsing tree structure to represent part-whole hiearchies. Let's clients treat both individual objects and comp
I had problem with installing electron v8.1.1 for m1 macIt says darwin-arm64 v8.1.1 electron doesn't exist.Makes sense because m1 mac release was 11/1
all examples are availabe in official electron tutorialElectron don't support ECMAscript imports. Must use requirethere is also option to debug using
This is my notes on https://www.electronjs.org/docs/latest/tutorial/process-model, and not a complete summarywhy is election multi-process? web b