r/shittyprogramming • • Nov 23 '20

Shitty code in App store reviews

Post image
422 Upvotes

r/shittyprogramming • • Mar 24 '16

Why do my friends keep on dereferencing undeclared pointers in the group chat??

Post image
422 Upvotes

r/shittyprogramming • • Jan 28 '22

RIP Linux. Gone but not forgotten

Thumbnail
github.com
420 Upvotes

r/shittyprogramming • • Mar 02 '22

How do I process this queue? It looks like a FIFO but my idiot professor calls it “USSR”

Post image
418 Upvotes

r/shittyprogramming • • Apr 11 '19

The only real way to double a float.

Post image
418 Upvotes

r/shittyprogramming • • May 04 '15

// remove numbers

Post image
418 Upvotes

r/shittyprogramming • • Oct 02 '14

How to calculate percentage

Post image
418 Upvotes

r/shittyprogramming • • Aug 13 '16

TIL Website scripts were originally meant to be made in a language called "Javascript", but was scrapped in favor of jQuery

417 Upvotes

r/shittyprogramming • • Jan 02 '25

Struggling with this interview question

Post image
412 Upvotes

r/shittyprogramming • • Mar 26 '18

As the only black CS major student in my college, how can I ensure no race conditions between me and other students occur?

410 Upvotes

r/shittyprogramming • • Oct 18 '16

If my computer clocks in at 3GHz and my microwave clocks in at 5GHz, why don't we just do calculations in our ovens?

409 Upvotes

I mean, it seems like a waste of space to have both machines when one is clearly slower. Do you think it's a conspiracy by Big Intel?


r/shittyprogramming • • Mar 27 '16

"Better make sure all of github knows my Oauth keys"

Thumbnail
imgur.com
408 Upvotes

r/shittyprogramming • • Jun 08 '26

I just used "0b990b36-bc6a-4b11-8e92-c9d8899631ca"

404 Upvotes

Just a heads up, if your generator also spit this out. I hope we won't clash


r/shittyprogramming • • May 31 '16

I think I developed the BEST encryption method known to man...

403 Upvotes

Okay, so obviously, storing passwords in plaintext is probably one of the most flawed methods out there for storing passwords. You could use a mature hashing library tested extensively, but with a quantum computer, you could crack any hash in a matter of nanoseconds. It could be so fast, it could even be negative nanoseconds You know who probably has a quantum computer? Corporations.

Instead of storing your passwords in plaintext, store your passwords in plaintext but name your column hashed_password. When a hacker comes in, they will realize your passwords are encrypted because of the hashed_password column. They will try every single password combination except for the actual password because they think it's encrypted! You couldn't even crack it with a quantum computer.

I would recommend everyone start implementing this into your networks ASAP before the corporations get to you.


r/shittyprogramming • • Nov 21 '20

when your GC's runtime cost is measured in dollars

Post image
402 Upvotes

r/shittyprogramming • • Jul 26 '16

super approved Shouldn't the British version of PHP use something like £foo for variables instead of $bar?

400 Upvotes

r/shittyprogramming • • Dec 30 '17

How to flip the sign of a number: a minimal approach

Post image
399 Upvotes

r/shittyprogramming • • Apr 01 '18

r/badcode onCancel (in production)

Post image
398 Upvotes

r/shittyprogramming • • Sep 15 '15

super approved How To Check If a float is Negative

Thumbnail
twitter.com
398 Upvotes

r/shittyprogramming • • Jan 07 '16

Why do we use "Hello world!" as an example program when "Hell world!" would better capture the existential horror of modern existence?

397 Upvotes

r/shittyprogramming • • Aug 02 '15

epic nesting

Post image
396 Upvotes

r/shittyprogramming • • Nov 21 '18

Reading in input

Post image
395 Upvotes

r/shittyprogramming • • Nov 03 '14

r/badcode Yeah this looks like it's going to work...

Post image
394 Upvotes

r/shittyprogramming • • Jun 08 '16

The PHP Facebook group never ceases to amuse me

Post image
393 Upvotes