DEV Community

Give me your best programming haiku

Ben Halpern on April 19, 2018

Collapse
 
lambdude profile image
Ian Johnson • Edited

My code fails.
I do not know why.
My code works.
I do not know why.

😜

Collapse
 
pbouillon profile image
Pierre Bouillon • Edited
>>> import this
Beautiful is better than ugly.
Explicit is better than implicit.
Simple is better than complex.
Complex is better than complicated.
Flat is better than nested.
Sparse is better than dense.
Readability counts.
Special cases aren't special enough to break the rules.
Although practicality beats purity.
Errors should never pass silently.
Unless explicitly silenced.
In the face of ambiguity, refuse the temptation to guess.
There should be one-- and preferably only one --obvious way to do it.
Although that way may not be obvious at first unless you're Dutch.
Now is better than never.
Although never is often better than *right* now.
If the implementation is hard to explain, it's a bad idea.
If the implementation is easy to explain, it may be a good idea.
Namespaces are one honking great idea -- let's do more of those!
Enter fullscreen mode Exit fullscreen mode

:)

Collapse
 
alexalb32039053 profile image
Alex Alberto

include

using namespace std;

int main()
{
cout << "Beautiful is better than ugly." << endl;
cout << "Explicit is better than implicit." << endl;
cout << "Simple is better than complex." << endl;
cout << "Complex is better than complicated." << endl;
cout << "Flat is better than nested." << endl;
cout << "Sparse is better than dense." << endl;
cout << "Readability counts." << endl;
cout << "Special cases aren't special enough to break the rules." << endl;
cout << "Although practicality beats purity." << endl;
cout << "Errors should never pass silently." << endl;
cout << "Unless explicitly silenced." << endl;
cout << "In the face of ambiguity, refuse the temptation to guess." << endl;
cout << "There should be one-- and preferably only one --obvious way to do it." << endl;
cout << "Although that way may not be obvious at first unless you're Dutch." << endl;
cout << "Now is better than never." << endl;
cout << "never is often better than right now." << endl;
cout << "If the implementation is hard to explain, it's a bad idea." << endl;
cout << "If the implementation is easy to explain, it may be a good idea" << endl;
cout << "Namespaces are one honking great idea -- let's do more of those" << endl;

return 0;
Enter fullscreen mode Exit fullscreen mode

}
code with C++

Collapse
 
maxwell_dev profile image
Max Antonucci

Think I'm a genius
Bend computers to my will
I just google stuff

Collapse
 
rpalo profile image
Ryan Palo

coding is the best
don’t let it make you feel dumb
keep calm, debug on

Also

we are all friends here
there is room for all people
but... tabs are for chumps

Collapse
 
peiche profile image
Paul

I will fight you man
tabs are better than spaces
refrigerator

Collapse
 
rpalo profile image
Ryan Palo • Edited

Kung Pow face off

I can't tell a lie
your word skills are impressive
now I think we're friends

Collapse
 
rpalo profile image
Ryan Palo

Sorry, I can’t stop!

python: less is more
ruby: devs should be happy
what langs do you love?

Collapse
 
tiagoamaro profile image
Tiago Padrela Amaro • Edited

No code runs faster than no code.
No code has fewer bugs than no code.
No code uses less memory than no code.
No code is easier to understand than no code.

  • Mike Perham
Collapse
 
bhupesh profile image
Bhupesh Varshney 👾

True af

Collapse
 
maxwell_dev profile image
Max Antonucci

I'm a nice guy, but
write CSS in JS?
I'll lose my damn mind.

Collapse
 
peiche profile image
Paul

That second line. Nice!

Collapse
 
jorgerafaelsj profile image
Jorge Suarez

what is with this code?
oh my, looks like I wrote it
what was I thinking?

Collapse
 
michaelgv profile image
Mike

All time favourite:

Cannot be located, but
Countless more exist.

Chaos reigns within.
Reflect, repent, and reboot.
Order shall return.

Program aborting:
Close all that you have worked on.
You ask far too much.

Windows NT crashed.
I am the Blue Screen of Death.
No one hears your screams.

Yesterday it worked.
Today it is not working.
Windows is like that.

Your file was so big.
It might be very useful.
But now it is gone.

Stay the patient course.
Of little worth is your ire.
The network is down.

A crash reduces
Your expensive computer
To a simple stone.

Three things are certain:
Death, taxes and lost data.
Guess which has occurred.

You step in the stream,
But the water has moved on.
This page is not here.

Out of memory.
We wish to hold the whole sky,
But we never will.

Having been erased,
The document you're seeking
Must now be retyped.

Serious error.
All shortcuts have disappeared.
Screen. Mind. Both are blank.

Collapse
 
mamba0076 profile image
mamba0076

All of the above - Has it been that long since I laughed at my computer? ! lmao
Three things are certain:
Death, taxes and lost data.
Guess which has occurred. - defo 1st level engineering

Serious error.
All shortcuts have disappeared.
Screen. Mind. Both are blank.
loooooooool

Collapse
 
phlash profile image
Phil Ashby

Ah that reminds me, need to put back my 404 page - thanks :)

Collapse
 
fatherofcurses profile image
Colin Principe

Why doesn't this work?
I've checked syntax ninety times!
Oh, missed bracket.

Collapse
 
lexlohr profile image
Alex Lohr

You find the right names
avoid off-by-one errors
and document well

Collapse
 
fatherofcurses profile image
Colin Principe

Hold my breath, click "Build";
All tests display green checkmarks
Git add, commit, push

Collapse
 
mamba0076 profile image
mamba0076 • Edited

so thats how it works...

Collapse
 
nimmo profile image
Nimmo • Edited

Code belongs to us
And never only to me
Collaboration

Collapse
 
jreina profile image
Johnny Reina

Why fight good standards?
Save your mind for real problems!
Just use Prettier.

Collapse
 
inozex profile image
Tiago Marques

"Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live"
― John Woods

Collapse
 
namirsab profile image
Namir

Make it work,
Make it readeble,
Make it efficient.

Collapse
 
awwsmm profile image
Andrew (he/him)

(Not a haiku but) a classic:

Roses are red
Violets are blue
Unexpected '{' at line 32

Source unknown.

Collapse
 
softelement profile image
Diana Fernandez

Tester found a bug
"It works fine in my local"
Wrong answer, dude

Collapse
 
yoxter3423 profile image
André Porres

Why you need semicolon?,
It so much pointless,
Without brackets you fail,
You report a problem.

Why you dont get the type?,
You must be dynamic,
So many written lines,
Almost say nothing.

Give me some readable program,
Not this spaghetti,
Why are you not like python?,
Why java? Why?.

Collapse
 
gillian_liwit profile image
gillybops

Happy to be here
Learning code is fun
This is my first haiku

Collapse
 
nancyd profile image
Nancy Deschenes

code, code, what if? code!
code, what if? code! what if? code.
Didn't think of that

Collapse
 
scotthannen profile image
Scott Hannen

I will inherit.
The tangled coupling and debt!
I should have composed.

Collapse
 
maxwell_dev profile image
Max Antonucci • Edited

Make your site look good,
fit on phones, have good colors.
CSS is Awesome

:P

Collapse
 
mogery profile image
Gergő Móricz

i just developed
the most advanced AI
some of these are tabs

Collapse
 
hasheendeberry profile image
Hasheen DeBerry • Edited

UI is garbled
When open in this browser
Open in Chrome: it’s cool

Collapse
 
thatwasawkward profile image
Ben Wolman

I like JavaScript
It does not reciprocate
Without a "return"

Collapse
 
ogfris profile image
Fris

decide to update my old codes
stare at the codes
keep staring
rm *

Collapse
 
chandrapatel profile image
Chandra Patel

I cannot face my Code that’s fallen down on me
So, if you see QA Team please ask them help to me
Tell QA Team about my Code that’s slowly dying
Say I can’t stop myself from crying

Every day I wake up, then I start to break up
Lonely is a Developer without QA Team
Every day I start out, then I cry my heart out
Lonely is a Developer without QA Team

Collapse
 
tonybaines profile image
Tony Baines

I have a problem.
Maybe regex can help me?
Oh dear, two problems.

Collapse
 
devcamilla profile image
Camilla Santiago

what's full-stack, really?
good at back-end not enough
i feel down lately.

:c

Collapse
 
ronniengoda profile image
Ronald Ngoda

If it works, don't touch it!!

Collapse
 
mattbag00 profile image
Matt Bagni

First solve the problem,
Then start coding.

(I might have read this on dev)

Collapse
 
bhupesh profile image
Bhupesh Varshney 👾

😂😂😂

Collapse
 
computersmiths profile image
ComputerSmiths

Not sure where I found this one, but use it for camera images when they stop responding:

Error messages cannot completely convey.
We now know shared loss.

Collapse
 
mamba0076 profile image
mamba0076

Don't hit ctrl + s after typing in Google search or anything else that doesn't need it!

Collapse
 
scotthannen profile image
Scott Hannen

It's going to work!
Not again, my code has bugs.
I don't unit test.

Collapse
 
tonybaines profile image
Tony Baines

A Monad? Easy.
A monoid in the domain
of endofunctors!

Collapse
 
amineamami profile image
amineamami

Small is beautiful

Collapse
 
piotroxp profile image
Piotr Słupski

Where once there was a bug
There is now 1216 bugs
And the code
I linger on

Collapse
 
qwertyquerty profile image
Qwerty

"Make it open source"
Quickly clean up all your code
"It was always clean"

Collapse
 
peiche profile image
Paul

My pages are broke
Where did my mailing lists go
The server ate them

Collapse
 
erhankilic profile image
Erhan Kılıç

I learned now
What haiku is!
I love coding
Especially on linux!

Collapse
 
arximughal profile image
Muhammad Arslan Aslam • Edited

"TypeError: Cannot read property 'undefined' of 'undefined'. "

all praise JS

Collapse
 
nicolasini profile image
Nico S___

a creepy crawler
wondering in the code,
ice cream break

Collapse
 
tmr232 profile image
Tamir Bahar

Off by one errors are
The bane of my existence I
Must debug them
Yes.

Collapse
 
chandrapatel profile image
Chandra Patel

Bugs… Bugs… Bugs!
I don’t like it.
I Avoid.
But…
Bugs likes me!
I can’t avoid.