henry-dev
On writing better software πŸ’»
πŸ„·πŸ„΄πŸ„½πŸ…πŸ…ˆπŸ΅ pfp

@hz

My view on πŸ’¬ code comments has evolved. These days, I'm strict about leaving them.
1 reply
0 recast
1 reaction

πŸ„·πŸ„΄πŸ„½πŸ…πŸ…ˆπŸ΅ pfp

@hz

πŸ§ͺ I love that with 100% test coverage, if you discover a new bug, fix it, and add a test, you can be confident the changeset won't introduce regressions. https://github.com/0xProject/0x-parser/commit/d5c94d6fa2b8438d99a9f779d918372437ebb215
0 reply
0 recast
4 reactions

πŸ„·πŸ„΄πŸ„½πŸ…πŸ…ˆπŸ΅ pfp

@hz

Hate when meh abstractions get added to solve small problems. Let those slide, and the whole codebase ends up full of abstractions that were premature or just plain wrong.
1 reply
1 recast
4 reactions

πŸ„·πŸ„΄πŸ„½πŸ…πŸ…ˆπŸ΅ pfp

@hz

πŸ‘©πŸ½β€πŸ’» Published a new component this weekend! Demo: https://sheet-examples.vercel.app Code: https://github.com/sheet-ui/sheet Package: https://www.npmjs.com/package/@sheet-ui/sheet
0 reply
0 recast
0 reaction

πŸ„·πŸ„΄πŸ„½πŸ…πŸ…ˆπŸ΅ pfp

@hz

I rarely use recursion, but when I do. I'll post it on my dev journal 🀩 https://github.com/0xProject/0x-parser/blob/main/src/utils/index.ts#L55-L62
0 reply
0 recast
1 reaction

πŸ„·πŸ„΄πŸ„½πŸ…πŸ…ˆπŸ΅ pfp

@hz

is open source library ➑️ 100% test coverage is product market fit ➑️ ~80% test coverage is pre-product market fit ➑️ ~0% (or minimal) test coverage πŸ§ͺ wdyt?
0 reply
0 recast
1 reaction

πŸ„·πŸ„΄πŸ„½πŸ…πŸ…ˆπŸ΅ pfp

@hz

Correct > Incorrect TypeScript > Typescript JavaScript > Javascript GitHub > Github πŸ₯°
1 reply
1 recast
6 reactions

πŸ„·πŸ„΄πŸ„½πŸ…πŸ…ˆπŸ΅ pfp

@hz

I've read this and recommend. A treasure trove of πŸ’» programming 🧠 insights.
1 reply
0 recast
3 reactions

πŸ„·πŸ„΄πŸ„½πŸ…πŸ…ˆπŸ΅ pfp

@hz

Here’s a comparison of merge and rebase workflows in Git. I prefer the rebase workflow, where fast-forward merges are acceptable. The goal is to avoid three-way merge commits to maintain a linear history in Git.
1 reply
1 recast
1 reaction

πŸ„·πŸ„΄πŸ„½πŸ…πŸ…ˆπŸ΅ pfp

@hz

Treating DRY (Don't Repeat Yourself) as a β€œbest practice” can sometimes lead to poor abstraction and tight coupling. https://www.youtube.com/watch?v=rQlMtztiAoA
1 reply
0 recast
1 reaction