this post was submitted on 15 Aug 2025
327 points (96.8% liked)

Technology

74324 readers
3695 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
[–] HubertManne@piefed.social 10 points 1 week ago (2 children)

maybe its just me but I find typos to be the most difficult because my brain and easily see it as correct so the whole code looks correct. Its like the way you can take the vowels out of sentences and people can still immediately read it.

[–] ganryuu@lemmy.ca 2 points 6 days ago

Probably why they talked about looking at a stack trace, you'll see immediately that you made a typo in a variable's name or language keyword when compiling or executing.

[–] wols@lemmy.zip 1 points 6 days ago (1 children)

The nastiest typos are autocompleted similarly named (and correctly typed) variables, functions, or types. Which is why it's a good idea to avoid such name clashes in the first place. If this is impossible or not practical, at least put the part that differs at the start of the name.

[–] HubertManne@piefed.social 1 points 6 days ago (1 children)

Thing is that having the differ part at the end is nicer for sorting.

[–] wols@lemmy.zip 1 points 5 days ago (1 children)

What do you mean? For what purpose would you sort variables or functions?

[–] HubertManne@piefed.social 2 points 5 days ago

Sorry. I was thinking hostnames or other endpoints and was thinking that way back with typos. dev78usc03 instead of dev78usc02 or such.