r/shittyprogramming • • Jun 21 '18

What’s going on with this sub and why are we talking politics?

6 Upvotes

Some guy is leaving, but wants to generate money for something. Trump Stalin and hitler have all been mentioned in posts... Someone wants to tell me how to get pussy...

WTF? I thought we were here to make fun of bad programming or shitpost bad programming? Idk what’s happening...


r/shittyprogramming • • Jun 18 '18

Do I have to freeze for one year?

2 Upvotes

So today I turned 15, or 1111 in binary, and at 1111 you can't move. So do I have to freeze for one year?


r/shittyprogramming • • Jun 09 '18

Pulling Back the Curtain on Airport Security: Can a Weapon Get Past TSA? (Classic bad programming lecture)

Thumbnail
youtube.com
106 Upvotes

r/shittyprogramming • • Jun 07 '18

Tip: you can avoid the need for Booleans altogether in Rust by taking advantage of zero cost abstractions.

128 Upvotes
let var: result<(), ()> = Ok(());
if let Ok(_) = var {
    println!("True");
}

r/shittyprogramming • • Jun 06 '18

TRUE, FALSE, FILE_NOT_FOUND

Post image
66 Upvotes

r/shittyprogramming • • Jun 06 '18

Java Emotions

12 Upvotes

Don't be Integer.MAX_VALUE + 1, be Integer.MAX_VALUE!!


r/shittyprogramming • • Jun 03 '18

If this post gets INT_MAX upvotes I will crash Reddit for a day

450 Upvotes

r/shittyprogramming • • Jun 01 '18

Change upvotes and downvotes to -=-1 and +=-1

Post image
1.3k Upvotes

r/shittyprogramming • • Jun 01 '18

It really makes me want to work there

Thumbnail
imgur.com
25 Upvotes

r/shittyprogramming • • Sep 30 '17

<%=quality comments; --!> I'm not a web dev, but I think this is the wrong approach

Post image
1.0k Upvotes

r/shittyprogramming • • Aug 23 '16

Pokemon Go just lost 10 million users. Should I switch to Pokemon Rust or Pokemon Node?

867 Upvotes

r/shittyprogramming • • Jun 21 '16

super approved Emotive programming in XCode

Post image
1.4k Upvotes

r/shittyprogramming • • May 12 '16

Simple? script for xHamster to see private videos

8 Upvotes

I have figured a way to see profile videos on xhamster if you're blocked, could someone show me how to make a script that will redirect me to a URL if the web page says "This user profile is private"


r/shittyprogramming • • May 19 '15

TIL about the C "goes to" operator

253 Upvotes

Wow, this has made a lot of my for loops so much more readable! Look at this:

int i = 100;
while ( i --> 0 ) {
    printf("%d\n", i);
}

The only problem that I found is that I can't have a variable go to a number larger than it:

int i = 0;
while( i --> 100) { /* ... */ }

doesn't work.

It's still a great little-known feature of the language!