r/programming • • Sep 21 '21

Reading Code is a Skill

https://trishagee.com/2020/09/07/reading-code-is-a-skill/
1.2k Upvotes

227 comments sorted by

View all comments

54

u/Woden501 Sep 21 '21

Most of the code I see at my job is some variation of Typescript, Python, Java, or Go. Not a single one of these languages benefits in any way from shorter variable and function names. Yet, I CONSTANTLY see code with shortened variable names that forces you to tunnel five layers deep into the code to determine what the fuck it is. I could slap these people for this bullshit, and have verbally done so on multiple instances. Your IDE has autocomplete. Fucking use it, and use full, understandable, and clear variable and function names to make your code easier to understand.

1

u/[deleted] Sep 21 '21

[removed] — view removed comment

13

u/Blazerboy65 Sep 21 '21

Poor completion in TS? How do you mean?

0

u/[deleted] Sep 21 '21

[removed] — view removed comment

14

u/Blazerboy65 Sep 21 '21

The TS static tools work quite well even for completely unlabeled code.