r/programminghorror • • Jun 09 '21

Javascript "Coding is like poetry" The code:

Post image
6.5k Upvotes

146 comments sorted by

55

u/[deleted] Jun 09 '21

this javascript?

19

u/ClauVex Jun 09 '21

Honestly I'm not sure

90

u/emmiegeena Jun 09 '21

Ye olde React hooques

60

u/PurePandemonium Jun 09 '21

more like 𝓳𝓪𝓿𝓪𝓼𝓬𝓻𝓲𝓹𝓽

18

u/StenSoft Jun 09 '21

Ye olde Javascriptte

3

u/[deleted] Jun 09 '21

Ye old scripture of le Java

33

u/_-ammar-_ Jun 09 '21

le code

5

u/ClauVex Jun 09 '21

I read it like "le cou-the"

3

u/samipourquoi Jun 09 '21

why the fuck does it mix react and vanilla js dom mutations btw

3

u/ClauVex Jun 09 '21

Makes it more cursed

258

u/bilbopoop Jun 09 '21

I love doing this shit before screen sharing.

102

u/Then-Abbreviations69 Jun 09 '21

menace to society

61

u/BlazingThunder30 Jun 09 '21

I always use Comic Mono for screensharing so that it's still usable. I don't change it until someone begs me to, which doesn't often take long

13

u/reddit__scrub Jun 09 '21

Whaaat, I looked up some comic mono fonts and they look nice!

11

u/BlazingThunder30 Jun 09 '21

The one I use is comic sans mono tho

→ More replies (2)

697

u/russo_programmisto Jun 09 '21

Roses are red.

Violets are blue.

False equals false

Which is always the true.

188

u/L4sgc Jun 09 '21

*false equals equals equals false
(this is JavaScript after all)

51

u/[deleted] Jun 09 '21

"1" + null = ( [2^65] )

(this is javascript after all)

21

u/sticky-dynamics Jun 09 '21

(false == false) == true but (false = false) == false

15

u/Spartancoolcody Jun 09 '21

(‘false’ == false) == true but (‘false’ === false) == false

→ More replies (2)

70

u/bruh_bot_69420 Jun 09 '21

Roses are red,

Violets are blue,

RuntimeException occured,

At line 32.

18

u/QuantumEternity99 Jun 09 '21

How’s my C++ version?

Roses are red,
Violets are blue,
Segmentation fault (core dumped)
~/$

→ More replies (1)

47

u/auxiliary-character Jun 09 '21

Roses are red.

Violets are blue.

Bitwise negation,

And complement, two

22

u/Confused_AF_Help Jun 09 '21

Roses are red;

Violets are blue;

class Nike extends Sneaker implements Shoe {

86

u/Shakespeare-Bot Jun 09 '21

*roses art r'd. violets art blue. false equals false which is at each moment the true. *


I am a bot and I swapp'd some of thy words with Shakespeare words.

Commands: !ShakespeareInsult, !fordo, !optout

49

u/Shower_Handel Jun 09 '21

Outfuckingstanding

20

u/tim_locky Jun 09 '21

!ShakespeareInsult

35

u/Shakespeare-Bot Jun 09 '21

[Thou art] the veriest varlet that ever chewed with a tooth.


Insult taken from Henry IV, part I.

Use u/Shakespeare-Bot !ShakespeareInsult to summon insults.

14

u/givemeagoodun Jun 09 '21

perfection

5

u/Divyanshu_10 Jun 09 '21

Beyond perfect, good bot

3

u/[deleted] Jun 09 '21

!ShakespeareInsult

15

u/Shakespeare-Bot Jun 09 '21

Out of my sight! Thou dost infect my eyes.


Insult taken from Richard III.

Use u/Shakespeare-Bot !ShakespeareInsult to summon insults.

→ More replies (1)

13

u/BlueBox32 Jun 09 '21

Lmao now I gotta start using while false == false instead of while True.

4

u/[deleted] Jun 09 '21

Ive had lost enough points in my life for writing while(1) that i just make a variable for it even if i wont use it.

foreverRun = True;

And tbh i dont have to make infinite loops too often outside of uni, most often theres something more logical to put there like

while(!Thread.Interrupted())

or sth

→ More replies (3)

3

u/Goodclover Jun 09 '21

while (false == false) == true

→ More replies (1)

45

u/lylesback2 Jun 09 '21

I hate it.

62

u/CoffeeDust_exe Jun 09 '21

Omfg who could read such a thing. The => are pretty much invisible.

11

u/dpash Jun 09 '21

They're not even ligatures. Unusable!

6

u/MoonParkSong Jun 09 '21

Can't code without using Fira and Jetbrains fonts these days.

→ More replies (1)

3

u/InKryption07 Jun 09 '21

I actually didn't even see them until you pointed them out.

29

u/BloodyChapel Jun 09 '21

I've gotten to the point where I saw this and physically recoiled.

14

u/McPqndq Jun 09 '21

Maybe I don’t know react very well, but it seems to me like a pretty bad idea to be modifying dom like that. Only place I feel like I ever have to deal with tags manually is if I’m editing something in the head.

10

u/TorbenKoehn Jun 09 '21

Yep. For me this is the real horror here.

You don't modify the DOM directly in React.

3

u/DigitalCrazy Jun 11 '21

Even for the head most of the time you could use something like react-helmet instead.

20

u/bear_the_dude Jun 09 '21

It’s so prettty.

8

u/wtph Jun 09 '21

My eyes!

8

u/Zelphy712 Jun 09 '21

can i get a sauce for the font?

13

u/AshIsRightHere Jun 09 '21

You have no idea how much I wanna change my partners IDE to this font just to mess with him.

3

u/DauntlessVerbosity Jun 09 '21

Please do this.

5

u/lilmimey1236 Jun 09 '21

That hurts my eyes just looking at it 🥴

5

u/[deleted] Jun 09 '21

Nope.

4

u/Mottly24 Jun 09 '21

oh no baby what is you doing

15

u/DauntlessVerbosity Jun 09 '21

Actually, this is amazing and I will do this from here on out.

6

u/Effective_Youth777 Jun 09 '21

theQuestion = toBe ? True : False

6

u/[deleted] Jun 09 '21

theQuestion = toBe || !toBe is more accurate

→ More replies (1)

3

u/Fitbot5000 Jun 09 '21

These must be the ligatures I’ve been hearing about

→ More replies (1)

3

u/nissAn5953 Jun 09 '21

God and I thought comic sans was bad

3

u/Serbqueen Jun 09 '21

The comments are the worst part of this.

3

u/[deleted] Jun 09 '21

Fuck sake tag as NSFW, I'm going to have nightmares now

3

u/mohragk Jun 09 '21
 thus the const be A;
 then A shall be 3;
 3 shall be the number of A;
 not 4 and neither 2 nor 1;
 A shall be the number which is 3;

3

u/BilledSauce Jun 09 '21

Roses are red.

Violets are blue.

I have tons of errors.

And so will you

5

u/Romjan_D Jun 09 '21

what font he's using lol

4

u/pemungkah Jun 09 '21

Pretty sure it’s Zapfino.

2

u/stubkan Jun 10 '21 edited Jun 10 '21

Zapfino linotype one

2

u/[deleted] Jun 09 '21

Great, now there's puke all over me.

2

u/ElLargeGrande Jun 09 '21

This useEffect is making me cry

2

u/TheNorthComesWithMe Jun 09 '21

How to keep people from asking to pair program:

2

u/ArtoriasAndSiff Jun 09 '21

Coding is not like poetry. Coding is like hitting a phat rail of cocaine and hoping everything goes well

2

u/valenb92 Jun 09 '21

thanks I hate it

2

u/nana-Party-ker Jun 11 '21

This one hurts

1

u/[deleted] Jun 09 '21

I'm way to high for this.

1

u/jailbreak Jun 09 '21

The font is called Zapfino. It's IMO the 3rd most abused font after Comic Sans and Papyrus

2

u/DauntlessVerbosity Jun 09 '21

In high school I turned in an essay in Papyrus. It did not go over well. I'm still bitter about that.

1

u/[deleted] Jun 09 '21

I almost puked.

1

u/CarterNotSteve Jun 09 '21

I have ranted about this before. No. No cursive, bad.

1

u/srottydoesntknow Jun 09 '21

someone's getting shot

in the face

1

u/diregamer1 Jun 09 '21

Roses are red, violets are blue, remove this font, or I remove you.

1

u/stone_henge Jun 09 '21

All posts must either show terrible code, or the direct result of terrible code.

1

u/gabrielesilinic Jun 09 '21

This looks really good

1

u/jromsan Jun 09 '21

A coworker changed his visual studio code font to comic sans because I "hate" it (not actually, I just dislike it, but you know) out of sheer spite. The poor fool.

1

u/[deleted] Jun 09 '21

This code doesn't have classes but at least it's classy

1

u/[deleted] Jun 09 '21

Oh dear... this is like if 'Nam flashbacks had their own font

1

u/VinCrafter Jun 09 '21

Cursed font

1

u/War-Whorese Jun 09 '21

Makes you want to help commit sudoku.

1

u/pkarlmann Jun 09 '21

Mr. Tolkien, we have to talk.

1

u/[deleted] Jun 09 '21

I'm not helping you at all if this is your font

1

u/Thundechile Jun 09 '21

I think this could be improved with a light theme, eyes would burn even more.

1

u/luidkid Jun 09 '21

Thy shall not compile

1

u/hverma12tfs Jun 09 '21

Thou shall not let write any more Tis burn my eyes

1

u/Does_Not-Matter Jun 09 '21

cries in unidentifiable spelling errors

1

u/space_fly Jun 09 '21

Putting the script back into Javascript

1

u/m2ilosz Jun 09 '21

To compile, or not to compile, that is the question.

1

u/TechnoEmpress Jun 09 '21

please end me

1

u/[deleted] Jun 09 '21

Nein!

1

u/youre_my_golden_girl Jun 09 '21

I actually really like this 😂

Does anyone know of a Helvetica (Neue, or not) type font that's monospaced?

1

u/[deleted] Jun 09 '21

what coming back to my code after a coffee Break feels like

1

u/jmswlltt Jun 10 '21

Using let and never reassigning a value? This definitely belongs here

1

u/liuziangexit Jun 10 '21

long long time ago

1

u/[deleted] Jun 10 '21 edited Nov 03 '25

squeal escape fact books enter reach sharp dazzling punch melodic

This post was mass deleted and anonymized with Redact

→ More replies (1)

1

u/hunter_mark Jun 11 '21

Just looking at this makes me wanna procrastinate

1

u/nasandre Jun 14 '21

Thy shalt continue forthwith until thy count until tenth. Then thou shalt print "Ho there, most amicable greetings to the world!".

1

u/mancunian101 Jul 06 '21

Clearly a code artisan wrote this magnificent work of art

1

u/indivertigo Dec 22 '21

I know that someone out there is unironically using this font.

1

u/-MobCat- Jul 23 '22

Was trying to make a joke about declarations and definitions of independents but I only know how to python.
I'll take my tea and colonies and leave..

1

u/ronnocNeloob Aug 20 '22

The way our forefathers intended...

1

u/COVU_A_327 Sep 12 '22

Coding in Shakespeare be like

1

u/StinkyMcFartFace Dec 11 '22

asynceth function fetchethDetailArticle

0

u/[deleted] Jun 09 '21

[deleted]

1

u/BeakerAU Jun 09 '21

It says "a minute ago", doesn't it?

2

u/Coompiik Jun 09 '21

You're right, my bad