r/programminghorror • u/ClauVex • Jun 09 '21
Javascript "Coding is like poetry" The code:
33
3
258
u/bilbopoop Jun 09 '21
I love doing this shit before screen sharing.
102
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
28
→ More replies (2)3
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
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,!optout49
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 !ShakespeareInsultto summon insults.14
17
5
3
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 !ShakespeareInsultto 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
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
4
45
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
29
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
8
8
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
5
5
4
15
6
3
3
3
3
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
5
2
2
2
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
2
2
1
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
1
1
1
1
u/stone_henge Jun 09 '21
All posts must either show terrible code, or the direct result of terrible code.
1
1
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
1
1
1
1
1
1
u/Thundechile Jun 09 '21
I think this could be improved with a light theme, eyes would burn even more.
1
1
1
1
1
1
1
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
1
1
1
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
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
1
1
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
1
1
0
55
u/[deleted] Jun 09 '21
this javascript?