r/shittyprogramming • u/LEGOlord208 • Jul 19 '17
Wrote this documentation a long time ago. 10/10
58
u/TuxGamer Jul 19 '17
The best part is that you did not describe what happens if you use href as a setter. Just what happens if you read from it.
5
32
u/d4rkshad0w Jul 19 '17
You didn't even use a multiline comment. Thats already shitty and I haven't bothered to read it yet.
8
u/LowB0b Jul 19 '17
The equal sign assign the variable on the left to the value on the right.
gr8 b8 m8
4
4
u/TriCrose Jul 19 '17
Hey, you're the guy from that other thread who thought Rust is better than C++. It all makes sense now.
6
u/leetneko Jul 19 '17
This is a comment i stuck in a giant god class that i inherited (and still in the process of breaking down). Half warning, half fun.
1
32
Jul 19 '17
[removed] — view removed comment
2
u/LEGOlord208 Jul 19 '17
And this was my original motivation behind making a program similar to
lookbut looks for similar words instead...41
u/hexane360 Jul 19 '17
One c, two s's
Necessary
46
u/maciozo Jul 19 '17
One collar, two sleeves
19
11
1
22
u/tangerinelion Jul 19 '17
TIL JavaScript has optional semicolons. Thanks extremely useless comment!