profile
software engineer

The Merit of Alternating Between Design Docs and Code

The Merit of Alternating Between Design Docs and Code One effective approach I've found in software development is the practice of alternating between

2023년 9월 2일
·
0개의 댓글
·

docker network_mode:host

docker has host mode network, which stops network isolationso port mappings will not workbut note that this option is only avaiable on linux(https&#x3

2023년 8월 7일
·
1개의 댓글
·

After reading an article about "Leaky Abstractions"

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

2023년 7월 31일
·
0개의 댓글
·

AI tools for coding

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

2023년 7월 25일
·
1개의 댓글
·

why python f-strings are fast

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

2023년 6월 13일
·
0개의 댓글
·

Visitor Pattern

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

2023년 3월 9일
·
0개의 댓글
·
post-thumbnail

Iterator Pattern

Provide a way to access the elements of an aggregator object sequentially w/o exposing its underlying representationCursorAn aggregate object needs a

2023년 3월 8일
·
0개의 댓글
·

Studying Design Patterns

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

2023년 3월 2일
·
0개의 댓글
·
post-thumbnail

Command Pattern

study of Design Patterns (1994)

2023년 2월 24일
·
0개의 댓글
·
post-thumbnail

Bridge Pattern

study of Design Patterns (1994) Intent Decouple an abstraction from its implementation so that the two can vary independently. Also Known As Handle/B

2023년 2월 22일
·
0개의 댓글
·

import vs require in Javascript

Javascript language specification is standardized, by ECMAScript specification.the ES in ES6 is short for ECMAScriptIn ES6, which is the current stand

2023년 2월 20일
·
0개의 댓글
·

correcting unmocked jest functions

function mocking using jest failsfile A - class Scanner has Scanner.useScan() methodfile B - has export const scan = () => {}// omit arrow functiontes

2023년 2월 20일
·
0개의 댓글
·

Duplicate files in the git repo on macOS

when using git on macOS, duplicate files appeared after switching branches.move your git repo to somewhere not tracked by iCloudiCloud watches registe

2023년 2월 16일
·
1개의 댓글
·
post-thumbnail

Abstract Factory Pattern

Provide an interface for creating families of related or dependent objects, w/o specifiying their concrete classes.KitTo enable easy changing of the l

2023년 2월 15일
·
7개의 댓글
·
post-thumbnail

Decorator Pattern

Yes, this is the decorators we use.Dynamic attachment of responsibilities to an object. A flexible alternative to subclass for extending functionality

2023년 2월 13일
·
0개의 댓글
·

Strategy Pattern

Intent Define a family of algorithms, encapsulate each one, make them interchangeable. Strategy lets the algorithm vary independently from clients tha

2023년 2월 7일
·
0개의 댓글
·
post-thumbnail

Composite Pattern

Studying GoF's Design Patterns(1994) bookUsing tree structure to represent part-whole hiearchies. Let's clients treat both individual objects and comp

2023년 2월 1일
·
0개의 댓글
·

Installing old npm packages on m1 mac workaround

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

2023년 1월 25일
·
0개의 댓글
·

Electron tutorial notes

all examples are availabe in official electron tutorialElectron don't support ECMAscript imports. Must use requirethere is also option to debug using

2023년 1월 20일
·
0개의 댓글
·

Electron concept study-Process Model

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

2023년 1월 12일
·
0개의 댓글
·