this post was submitted on 22 Oct 2024
267 points (100.0% liked)

Technology

68130 readers
5506 users here now

This is a most excellent place for technology news and articles.


Our Rules


  1. Follow the lemmy.world rules.
  2. Only tech related news or articles.
  3. Be excellent to each other!
  4. Mod approved content bots can post up to 10 articles per day.
  5. Threads asking for personal tech support may be deleted.
  6. Politics threads may be removed.
  7. No memes allowed as posts, OK to post as comments.
  8. Only approved bots from the list below, this includes using AI responses and summaries. To ask if your bot can be added please contact a mod.
  9. Check for duplicates before posting, duplicates may be removed
  10. Accounts 7 days and younger will have their posts automatically removed.

Approved Bots


founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[โ€“] [email protected] 9 points 5 months ago (1 children)

Proper design will save an epic shit ton of money when it inevitably needs to be changed or fixed.

[โ€“] [email protected] 2 points 5 months ago

It depends, if you work in a statically typed language you can just use a tool to refactor. I bet a ton of advice is from JavaScript programmers where it's simply not safe to do this.

My first job doing JavaScript I realized the IDE's refactor tool wasn't aware that two variables of the same name were in fact a different variable. Due to how scoping works, it's hard to write a reliable tool to rename variables for JS. I accidentally introduced a bug renaming a variable.