Remix.run Logo
Naming Things: The Most Underrated Skill in Software Development(andreacanton.dev)
25 points by andreacanton 3 days ago | 6 comments
variadix 2 days ago | parent | next [-]

Names are also a good way to determine how to draw boundaries between data, between code, etc. If you can give something a concise, descriptive, and intuitive name you can usually pull it out into its own function, type, etc. and it will _improve_ readability, since the name adds information and abstracts the implementation well. Names are also a good heuristic for whether your abstractions and boundaries are good. If they require verbose, misleading, or unintuitive names you may need to redraw those boundaries and abstractions.

az09mugen 2 days ago | parent | prev | next [-]

Just remembering this famous quote :

"There are only two hard things in Computer Science: cache invalidation and naming things.

-- Phil Karlton"

mock-possum a day ago | parent [-]

That, and off-by-one errors ;]

UnhappyMeaning 2 days ago | parent | prev | next [-]

Good points, also I’ve just almost completely let AI handle this. I don’t use it to write code for me yet but I will be lazy and ask it this prompt, “what should I name this variable (or function) that describes this or does this?”

idiomat9000 2 days ago | parent | prev | next [-]

World_street_car_tire_nut_object cause everything is a object..

IshKebab 2 days ago | parent | prev [-]

Totally agree. Hardware engineers especially need to learn this. They can't stand using clear variable names; everything needs to be abbreviated to death. No_vwls_allwd.

So infuriating.