Re:How can we, as web professionals, help to make the web mo...
by josephg on Friday September 18, 2020 @03:45AM
(#24514044)
This is a dangerous question but - why is that the case? Why is simple software so much more difficult to write?
[ Parent
| on HN ]
Re:How can we, as web professionals, help to make the web mo...
by croon on Friday September 18, 2020 @04:19AM
(#24514250)
Anyone can write a sequential .py file with redundant if/else statements. It takes more than 1 hour to learn how to refactor that into concice functions or objects. It takes more than 100 hours to learn how to golf that into 30 bytes.
Re:How can we, as web professionals, help to make the web mo...
by ratww on Friday September 18, 2020 @05:07AM
(#24514599)
"Simple software" does not mean "golfed". Quite the opposite, actually.
What the grandparent is suggesting is using simpler architectures, not necessarily smaller (in the code-golf sense) code.
Re:How can we, as web professionals, help to make the web mo...
by croon on Friday September 18, 2020 @05:20AM
(#24514666)
Fair point, but at least part of golfing is cutting out anything redundant (although much more than that, which can get into obfuscation territory). Code I'm impressed with is generally when it gets the job done in the most concise/simple (while readable) manner. That is by rule done by the most experienced programmers.
To paraphrase Pascal:
> I would have written a shorter letter, but I did not have the time.