721
you are viewing a single comment's thread
view the rest of the comments
[-] kevincox@lemmy.ml 11 points 8 months ago

Even if the code isn't reused adding names to sub-expressions can be very valuable. Often times I introduce new functions or variables even if they are only used once so that I can give them a descriptive name which helps the reader more quickly understand what is happening.

[-] NotAViciousCyborg@lemmy.world 3 points 8 months ago

Yeah, I do that with pretty much every separate operation in c# since our solutions are pretty big. Most of my JS scripts are just done in ServiceNow which are separated and named appropriately.

this post was submitted on 21 Apr 2024
721 points (97.0% liked)

Programmer Humor

32706 readers
646 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 5 years ago
MODERATORS