How to properly check nested values in JavaScript: use optional chaining (?.)
With && chains, it’s easy to:
- forget a level
- reorder checks incorrectly
- accidentally access a property too early
Cleaner code, fewer bugs.
How to properly check nested values in JavaScript: use optional chaining (?.)
With && chains, it’s easy to:
- forget a level
- reorder checks incorrectly
- accidentally access a property too early
Cleaner code, fewer bugs.
Use arr.length = 0 to empty an array and avoid potential memory leaks.
Use arr.length = 0 to empty an array and avoid potential memory leaks.
You can delay access to a class instance by returning a Promise from the constructor.
✅ Instance is only accessible once fully initialized
❌ Surprising: constructors usually don’t return Promises
Powerful pattern, but use with care.
You can delay access to a class instance by returning a Promise from the constructor.
✅ Instance is only accessible once fully initialized
❌ Surprising: constructors usually don’t return Promises
Powerful pattern, but use with care.
www.youtube.com/watch?v=CduA...
www.youtube.com/watch?v=CduA...
Private does not mean "per-object", it means "only accessible inside this class's methods".
Accessing private property (A) from outside the object (B) is allowed when it's the same class.
Try it: www.programiz.com/online-compi...
Private does not mean "per-object", it means "only accessible inside this class's methods".
Accessing private property (A) from outside the object (B) is allowed when it's the same class.
Try it: www.programiz.com/online-compi...
🗂️ Jobs posted (all-time): 54,937
💼 Active Jobs: 7,487 total (+117 in last 24h)
👤 Users: 14,550 total (+87 in last 24h)
📩 Applications: 119,906 total (+1,050 in last 24h)
🌍 Traffic (30d): 42,086 visits
👉 Find your next remote role:
remoteyeah.com
🗂️ Jobs posted (all-time): 54,937
💼 Active Jobs: 7,487 total (+117 in last 24h)
👤 Users: 14,550 total (+87 in last 24h)
📩 Applications: 119,906 total (+1,050 in last 24h)
🌍 Traffic (30d): 42,086 visits
👉 Find your next remote role:
remoteyeah.com
`du` - disk usage
`-h` - human readable
`-d 1` - depth 1, shows this and immediate sub directories
`sort` - sort lines of text
`-h` - sort numbers with units (K, M, G) correctly
`-r` - reverse, largest first
`du` - disk usage
`-h` - human readable
`-d 1` - depth 1, shows this and immediate sub directories
`sort` - sort lines of text
`-h` - sort numbers with units (K, M, G) correctly
`-r` - reverse, largest first
I wasn't expecting this.
fizzy.do from 37Signals. A bug tracker from the creators of Basecamp is open source. A great RoR codebase to study. Time to lock in.
I wasn't expecting this.
fizzy.do from 37Signals. A bug tracker from the creators of Basecamp is open source. A great RoR codebase to study. Time to lock in.
Bookmark for later.
Bookmark for later.
(bookmark for later)
(bookmark for later)
(bookmark this)
(bookmark this)
9 sites with drop-in components, patterns, and examples you’ll reuse forever 👇
9 sites with drop-in components, patterns, and examples you’ll reuse forever 👇