if (!object) {
if (someFlag) {
// Do something to object.
} else {
// Do something else to object.
}
} else {
// Handle object not found.
}
if (!object) {
// Handle object not found.
} else if (someFlag) {
// Do something to object.
} else {
// Do something else to object.
}
Reordering an if-statement can dramatically simplify and improve the readability of your code. Less nesting and indentation always makes the world a better place.
27.11.2024 20:46
๐ 0
๐ 0
๐ฌ 0
๐ 0
Strict, standard naming conventions for classes (and files) save our team considerable time, provide immediate clarity, improve developer quality of life and allow for all sorts of programmatic automation (e.g. auto-wiring API endpoints, enforcing security and connecting dependencies). ๐ฏ
20.11.2024 14:05
๐ 0
๐ 0
๐ฌ 0
๐ 0
Smartsheet? More like dumbsheet. It's practically 2025 and they prohibit pasting passwords during account creation (and, presumably, during login, too)?! Hard pass.
19.11.2024 19:40
๐ 0
๐ 0
๐ฌ 0
๐ 0
When we eliminated TypeScript from our frontend we made the world a considerably better place. We reduced our code base by more than 80% and dramatically improved dev throughout - no costly transpiling, live reload, easy debugging.
01.12.2023 15:41
๐ 2
๐ 0
๐ฌ 0
๐ 0