if (users[userName]) might log "User name found!" even for built-ins like toString 😬
Why? It checks the prototype chain 🔗
✅ Use Object.hasOwn(users, userName) to check only real keys 🔐
#CodeSmell #CleanCode #JavaScriptTips #WebDev #DevTips
if (users[userName]) might log "User name found!" even for built-ins like toString 😬
Why? It checks the prototype chain 🔗
✅ Use Object.hasOwn(users, userName) to check only real keys 🔐
#CodeSmell #CleanCode #JavaScriptTips #WebDev #DevTips
The discussion on being superficially flawless and AI generations being "odorless" in terms of #codesmell or "mathematical smell" is right on the money.
#TerenceTao #GenerativeAI
The discussion on being superficially flawless and AI generations being "odorless" in terms of #codesmell or "mathematical smell" is right on the money.
#TerenceTao #GenerativeAI
Codin' at night 'cause I sleep all day
Cowboy, coder
#CodeSmell from a mile away
Codin' at night 'cause I sleep all day
Cowboy, coder
#CodeSmell from a mile away
#codesmell #dataclass #java
marcellogalhardo.dev/po...
#codesmell #dataclass #java
marcellogalhardo.dev/po...