this post was submitted on 07 Feb 2024
58 points (98.3% liked)

Programming

17122 readers
157 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
top 6 comments
sorted by: hot top controversial new old
[–] mdhughes@lemmy.ml 11 points 8 months ago (2 children)

It's clearly secondary to correctness: A program that is well-written but doesn't work right is worthless. Many hairy balls of mud have shipped to great acclaim.

Human readability & comprehension is nice for maintenance, but you don't get to maintain something that never worked right to begin with.

… Of course, Windows is existence proof that you can be successful with neither.

[–] eager_eagle@lemmy.world 4 points 7 months ago* (last edited 7 months ago)

The point the post makes is that one can't write (or ensure that) a piece of code is correct without understanding it in the first place.

It's most important, above these, because you cannot ensure any of these other design goals without understandability. It has to come first

And I agree with that. Correctness is the goal, but making the code readable is the way: it comes first. Cutting corners there is a good way to shoot yourself on the foot.

[–] ursakhiin@beehaw.org 2 points 7 months ago

A program that works right but doesn't solve the problem is also not very useful.

[–] 0xCAFE@feddit.de 8 points 8 months ago* (last edited 8 months ago) (1 children)

Too often, you won't be given time to make your software understandable. Probably almost never. So you have to incorporate a way of programming that leaves your code more understandable after you fixed your bug or added your feature.

I don't know if understandability is the most important thing. However I certainly agree with the author that it's curcial, if you ever want to do more than merley a script or a proof of concept.

[–] HamsterRage@lemmy.ca 3 points 8 months ago

So write it properly from the get-go. You can get 90% of the way by naming things properly and following the Single Responsibility Principle.

[–] mvirts@lemmy.world 1 points 8 months ago

The most important part of part of programming is learning to understand software