this post was submitted on 04 Nov 2023
91 points (85.8% liked)

Programming

17001 readers
318 users here now

Welcome to the main community in programming.dev! Feel free to post anything relating to programming here!

Cross posting is strongly encouraged in the instance. If you feel your post or another person's post makes sense in another community cross post into it.

Hope you enjoy the instance!

Rules

Rules

  • Follow the programming.dev instance rules
  • Keep content related to programming in some way
  • If you're posting long videos try to add in some form of tldr for those who don't want to watch videos

Wormhole

Follow the wormhole through a path of communities [email protected]



founded 1 year ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 43 points 10 months ago (4 children)

I'm a bit confused about the premise of the article. Does anyone assert that typing speed is a bottleneck at all? I've been in the industry for years, and have never heard that claim.

I do agree about the whole "less code is not always more", but I get confused when the author keeps bringing it back to typing speed.

[–] [email protected] 10 points 10 months ago

I've watched some slow typists program, and I think I have the answer. If it takes you a while to type the code out, you are much more likely to stick to the first approach that works, and not rewrite it as much.

[–] [email protected] 5 points 10 months ago (1 children)

I've heard the argument as a positive of learning vim and while it did finally force me to touch type I can't say that it had any impact on my programming speed.

[–] Gentoo1337 2 points 10 months ago

Same. I think vim and touch typing are more about comfort tbh.

[–] [email protected] 2 points 10 months ago* (last edited 10 months ago)

The code that I suggest is too verbose. It involves too much typing.

This seems to be the whole premise and it's obvious that one does not follow from the other.

Overly verbose code is code that can be expressed more minimally for some benefit. I can't think why anyone would argue that one of those benefits is less typing.

The author can solve this easily though: ask them why verbosity is an issue. Then they will know the answer and won't have to presume something as tenuous as "amount of time spent typing".

[–] [email protected] 2 points 10 months ago* (last edited 10 months ago)

yeah the issue honestly is how much someone else has to read to understand your code. it's weird because the whole article is about making readable code for the next person and he never stops to address the fact that leaving 10x as much code to read might also make life more difficult.

I feel like he just wanted to make a point about how it's nice to make types immutable and suggest other techniques can be worth implementing too, which I agree with, but honestly his premise is a trainwreck.