this post was submitted on 04 Nov 2023
71 points (85.1% liked)

Programming

17418 readers
24 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 !webdev@programming.dev



founded 1 year ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[–] Anders429@programming.dev 38 points 1 year 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.

[–] PowerSeries@lemmy.ca 6 points 1 year 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.

[–] Piatro@programming.dev 5 points 1 year 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@sh.itjust.works 2 points 1 year ago

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

[–] killeronthecorner@lemmy.world 1 points 1 year ago* (last edited 1 year 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".

[–] dbilitated@aussie.zone 1 points 1 year ago* (last edited 1 year 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.