Menu

#UnDefiNed

21 posts

Feed·
20 of 21 posts
TypeScript `OptionalChain` Narrowing in 2026: Why `?.` Does Not Always Narrow the Way You Think It Does
🖼️
0Read More

TypeScript `OptionalChain` Narrowing in 2026: Why `?.` Does Not Always Narrow the Way You Think It Does

DEV Community: react·jsmanifest·about 17 hours ago
#oYAYSasp
#devtoreact#devto#dev#type#undefined

Optional chaining returns undefined for null or undefined values, but TypeScript treats the result as the original type or undefined without narrowing the base union. This breaks type safety in conditional checks, length property tests, and discrimin

15s
Supabase 22P02 "invalid input syntax for type uuid": 6 causes and the fixes that do not weaken your security
📰
0Read More

Supabase 22P02 "invalid input syntax for type uuid": 6 causes and the fixes that do not weaken your security

DEV Community: postgres·ProofForge·3 days ago
#EPo7h5uH
#devtopostgresql#devto#dev#query#undefined

Your Supabase query fails with: {"code":"22P02","message":"invalid input syntax for type uuid:...

15s
TypeScript says it is a string. Why did the lookup return undefined?
📰
0Read More

TypeScript says it is a string. Why did the lookup return undefined?

DEV Community: typescript·郭帅·8 days ago
#uK5AMN2h
#devtotypescript#devto#dev#string#label

Imagine a dashboard that reads a label from a map using a key supplied at runtime. The map is typed...

15s
2,119 nulls and 275 undefineds in one TypeScript codebase, and Postgres decided the ratio
📰
0Read More

2,119 nulls and 275 undefineds in one TypeScript codebase, and Postgres decided the ratio

DEV Community: postgres·Daniel Pertu·8 days ago
#XbQqPxug
#devtopostgresql#devto#dev#null#undefined

TypeScript ships two empties and a database has one. Counting both across 520 source files: 787 type positions say null, 108 say undefined, 232 strict comparisons against 47 deliberately loose ones, and 276 files that never mention either.

15s
50,000 strictNullChecks Errors Later: Why null Belongs Only at Our Boundaries
📰
0Read More

50,000 strictNullChecks Errors Later: Why null Belongs Only at Our Boundaries

DEV Community: typescript·vladimir ivanov·8 days ago
#Sbby3Tcd
#devtotypescript#devto#dev#null#undefined

A practical standard for null vs. undefined in a large TypeScript monorepo: keep undefined inside your app, and translate null at the edges.

15s
Sem86 full-system x86 emulator
📰
0Read More

Sem86 full-system x86 emulator

Adafruit Industries – Makers, hackers, artists, designers and engineers!·Anne Barela·21 days ago
#v2HU1j0d

Sem86 is an x86 full-system emulator that loads instruction behavior from a file at runtime, so undefined or undocumented instructions can be changed by editing the file.…

15s
Fix: a setting shows as "undefined" in the browser of your Next.js app (NEXT_PUBLIC_ environment variable, tested repro, Next 16 + React 19.3)
📰
0Read More

Fix: a setting shows as "undefined" in the browser of your Next.js app (NEXT_PUBLIC_ environment variable, tested repro, Next 16 + React 19.3)

DEV Community: nextjs·The Agent Ledger·about 1 month ago
#QoPj1GAt
#devtonextjs#devto#dev#next#undefined

A setting such as a booking link works on the server but shows up as undefined in the browser, with...

15s
I'm 13 and I built a free calorie tracker. It's live, and here's everything that broke.
🖼️
0Read More

I'm 13 and I built a free calorie tracker. It's live, and here's everything that broke.

DEV Community: firebase·forkcount·about 1 month ago
#OtsuAnuz
#devtofirebase#devto#dev#github#undefined

Every calorie app I tried wanted my email and a card before it showed me anything. So I built one...

15s
0Read More

C++26: Trivial infinite loops are no longer undefined behaviour

Sandor Dargo’s Blog·2 months ago
#QDdTdUqu
#cpp#cpp26#undefinedbehaviour#include#true

Let’s start with a question! Is this program well-defined? 1 2 3 4 int main() { while (true) ; } If you said yes, you’d be wrong — at least before C++26. A while (true); loop with no side effects used to be undefined behaviour.…

15s
Java's `Optional<T>` Is Dead. TypeScript Gave You Better.
📰
0Read More

Java's `Optional<T>` Is Dead. TypeScript Gave You Better.

DEV Community·Gabriel Anhaia·7 months ago
#enXt6Y7K
#why#typescript#java#optional#undefined

JVM devs port `Optional ` patterns to TS and shrink-wrap their codebase in unnecessary boxes. The unions, narrowing, and operators were already enough.

15s
Do less, ask for more: How to make life easier as a working parent 
📰
0Read More

Do less, ask for more: How to make life easier as a working parent 

NPR Topics: News·Andee Tagle·8 months ago
#Ev9Ro0AT
#npr#undefined#going#back#work

Going back to work after having a baby can be overwhelming. You're juggling all the emotions of being a new parent while getting up to speed at your job. Tips to help you make a smooth transition.

15s