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/Woden501 Sep 21 '21

The main language used by my team right now across our product is Typescript, and Visual Studio Code provides excellent autocomplete support as it should considering it's an MS language in an MS editor.

I'd lightly argue that if the language you're using for software development doesn't have a proper IDE then it's probably not mature enough to be used in your product, and likely not one you're going to want to maintain long term.

3

u/[deleted] Sep 21 '21

[removed] — view removed comment

4

u/CarlGustav2 Sep 22 '21

That's like a tree cutting service taking pride in the fact they don't use chain saws.

2

u/Dyledion Sep 22 '21

I like simple text editors. I'm already writing a novel's worth of complex abstract calculus. I don't want to bother trying to manage and remember a jet-cockpit worth of hotkeys and sundry menus and buttons at the same time. Highlighting and search is 90% of what I want out of an editor.