Give me your best programming haiku

Did you find this post useful? Show some love!
DISCUSSION (47)

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

😜

>>> 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!

:)

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

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

Sorry, I can’t stop!

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

I will fight you man
tabs are better than spaces
refrigerator

Kung Pow face off

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

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

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

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

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.

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

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

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

Like traditional haiku, e.g. 5-7-5? Easy.


%w[moon sun].all? do |e|
  if e.respond_to?(:light)
end || puts("I’m a tee")

case shining(:light) do

  :moon -> "I’m a tee"
  :sun -> :see_above

end |> IO.inspect()

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

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?.

(Not a haiku but) a classic:

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

Source unknown.

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

Code belongs to us
And never only to me
Collaboration

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

:c

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

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

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

If you don't know why it works it will touch you. With its teeth. On your ass.

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

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

:P

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

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

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

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

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

First solve the problem,
Then start coding.

(I might have read this on dev)

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

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

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

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.

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

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

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

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

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

Classic DEV Post from Jun 22

What are the alternatives to unit tests?

When I was in university, I had a lecturer who didn't like unit tests. He was a...

Ben Halpern
A Canadian software developer who thinks he’s funny.

Do you write code almost every day?

Join dev.to ❤️