CodyIT@programming.dev to Programmer Humor@programming.dev · 1 month agothe beautiful codeprogramming.devimagemessage-square167fedilinkarrow-up11.81Karrow-down110
arrow-up11.8Karrow-down1imagethe beautiful codeprogramming.devCodyIT@programming.dev to Programmer Humor@programming.dev · 1 month agomessage-square167fedilink
minus-squareXerxos@lemmy.mllinkfedilinkarrow-up78arrow-down2·1 month agoAll programs can be written with on less line of code. All programs have at least one bug. By the logical consequences of these axioms every program can be reduced to one line of code - that doesn’t work. One day AI will get there.
minus-squareLemminary@lemmy.worldlinkfedilinkarrow-up16·1 month agoOn one line of code you say? *search & replaces all line breaks with spaces*
minus-squareSzyler@lemmy.worldlinkfedilinkarrow-up2·1 month agoFired for not writing the quota number of lines even junior devs manage to hit.
minus-squaregmtom@lemmy.worldlinkfedilinkarrow-up12·1 month ago All programs can be written with on less line of code. All programs have at least one bug. The humble “Hello world” would like a word.
minus-squarephx@lemmy.calinkfedilinkarrow-up9·1 month agoYou can fit an awful lot of Perl into one line too if you minimize it. It’ll be completely unreadable to most anyone, but it’ll run
minus-squareSchadrach@lemmy.sdf.orglinkfedilinkEnglisharrow-up2·1 month agoQrpff says hello. Or, rather, decrypts DVD movies in 472 bytes of code, 531 if you want the fast version that can do it in real time. The Wikipedia article on it includes the full source code of both. https://wikipedia.org/wiki/Qrpff
All programs can be written with on less line of code. All programs have at least one bug.
By the logical consequences of these axioms every program can be reduced to one line of code - that doesn’t work.
One day AI will get there.
On one line of code you say?
*search & replaces all line breaks with spaces*
Fired for not writing the quota number of lines even junior devs manage to hit.
The ideal code is no code at all
nocode
The humble “Hello world” would like a word.
You can fit an awful lot of Perl into one line too if you minimize it. It’ll be completely unreadable to most anyone, but it’ll run
Qrpff says hello. Or, rather, decrypts DVD movies in 472 bytes of code, 531 if you want the fast version that can do it in real time. The Wikipedia article on it includes the full source code of both.
https://wikipedia.org/wiki/Qrpff