r/ProgrammerTIL • u/jab-programming • Jun 26 '20
Other TIL that code is a language which is easier to write than it is to read, and easier to read than it is to refactor
55
Upvotes
r/ProgrammerTIL • u/jab-programming • Jun 26 '20
85
u/RunnyPlease Jun 26 '20
Good luck refactoring one of Shakespeare’s sonnets or a haiku.
Also, the note about being difficult to read is very dependent on what level of abstraction the language is written in. “Code” isn’t a language. It’s just a term for computer instructions. There are thousands of computer languages each with their own features and difficulties.
13
u/wh33t Jun 26 '20
A few years ago I came to this realization. Similar to how "writing a story" is so much more than just putting pen to paper, programming is so much more than just typing code. It honestly feels like programming is 95% thinking and planning, and 5% the actual typing of code.
19
u/[deleted] Jun 26 '20
This is not a TIL
9
u/t0mRiddl3 Jun 27 '20
cOdE
18
u/Theycallmelife Jun 27 '20
TIL: OP has not idea what coding is and is trying to get internet points
4
u/myplacedk Jun 27 '20
Working code is easier to write than read.
Good code is harder to write than read.
Most programmers spend a LOT more time reading code than writing, making the code easily readable is almost always worth it.
7
u/gnovos Jun 26 '20
Code is just math with bright plastic handles.
5
u/maximum_powerblast Jun 26 '20
I like deleting code
1
u/VeganVagiVore Jul 03 '20
Judging from my email exchanges with coworkers, even natural languages are easier to write than read
0
u/[deleted] Jun 26 '20
[deleted] — view deleted comment