Jeffrey Hoffman's Avatar

Jeffrey Hoffman

@thaliant

Pretty good at coding. Least clever dev at the party. Java, JavaScript, NodeJS, APIs, healthcare software. Lifelong #gamedev, #emailgeek.

4
Followers
5
Following
4
Posts
01.12.2023
Joined
Posts Following

Latest posts by Jeffrey Hoffman @thaliant

if (!object) {
  if (someFlag) {
    // Do something to object.
  } else {
    // Do something else to object.
  }
} else {
  // Handle object not found.
}

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.
}

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