AZ.dev (@AZdotDEV) header
AZ.dev (@AZdotDEV) profile picture

Learn anything with personal paths at https://teapaw.org/t.co/zEMnSXfMAY Try our voice coach and scenario rehearsal

AZ.dev
Joined September 2020
I asked Claude how to save money. It said cancel useless subscriptions. So I cancelled Claude.
132
Reading code is a more valuable skill right now than writing it, and almost nobody trains it on purpose. We spent years writing from scratch — school, tutorials, side projects. Nobody gave us that same practice at sitting with code we didn't write and deciding if it's right.
4
184
The cost of an abstraction is usually paid by the next person who reads it, not the person who wrote it. Writing the clever generic helper is fast and fun. Understanding it six months later, with no memory of why, takes real time — and it's usually someone else who spends it.
2
167
Git tip: When you reformat a file, put that in its own commit, separate from any real change. git add path/to/file git commit -m "reformat: file" This keeps your diffs reviewable. A commit that's 200 lines of whitespace and 3 lines of real logic buries the 3 lines that matter.
114
The newest framework isn't the skill. HTTP, data modeling, async and concurrency are — and they're still paying off for me ten years later, long after the frameworks I learned back then got replaced twice over.
107
JavaScript tip: To deep copy an object, use `structuredClone()` instead of `JSON.parse(JSON.stringify(obj))`. const copy = structuredClone(obj) This handles dates, maps, sets, and circular references. The JSON trick turns dates into strings and throws on circular references.
57
AI didn't replace developers, it replaced typing. Deciding what to build, catching a wrong assumption, knowing when code that runs is still wrong in a way no test catches — none of that changed. AI agents do the typing now. Everything else is still on me.
2
89
TypeScript tip: Before you reach for `enum`, try `as const` instead. const status = { active: 'active', paused: 'paused' } as const type Status = typeof status[keyof typeof status]
1
179
And this gets you the same literal-type safety as an enum, but nothing extra runs — `as const` disappears at compile time, while a regular `enum` always generates real runtime code.
15
JavaScript tip: Need a range of numbers? Skip `new Array(n).fill().map(...)`. `Array.from({ length: 5 }, (_, i) => i)` → [0, 1, 2, 3, 4] Array.from's second argument is a map function — and it hands you the index for free.
374
Me: number + array JavaScript: Sure, I’ll assume you meant converting them both to strings first? Got it TypeScript: WTF
1
2
13
Few understand this in JavaScript.
3
2
20
TypeScript tip: If you don't know the type of something, use `unknown` instead of `any` any basically means I don't care about this type, just let me do anything on it. That's bad unknown, however, means I don't know this type and I'm not really using it. That's much better
1
1
11
What kind of JavaScript developer are you?
42%!!value
58%Boolean(value)
33 votes • Final results
1
2
3
What pattern do you use to name your GraphQL operations?
71%createUser
7%userCreate
21%Something else (?)
14 votes • Final results
1
"APIs should be easy to use and hard to misuse" - Joshua Bloch
8
18
Learning React or Node today? Retweet and follow, and I'll DM you a 100% coupon code for my 2 books, React beyond the basics and Node beyond the basics. Note: The books are still a WIP so any feedback will be greatly appreciated. Happy Father's Day to all dads and single moms!
6
49
4
28
Git tip: Put any non-significant changes that do not affect the code in separate commits. Examples: trailing whitespaces/eol, code formatting Don't mix them with other code changes because it makes reviewing a lot harder.
1
8
If you have to review commits that have mixed whitespace changes, you can use the --color-words diff option to ignore the whitespaces changes. git diff --color-words
2