r/shittyprogramming • • Jul 21 '15

r/badcode I actually wrote this yesterday

Post image
471 Upvotes

r/shittyprogramming • • Sep 03 '18

The peak of xml documentation comments

Post image
465 Upvotes

r/shittyprogramming • • Nov 11 '15

The dankest programming language: greentext

463 Upvotes

Hello shitty programmers, a few weeks ago I was inspired by this thread and decided to take it to the next level and make a memearrow-based language a real thing. (Shout outs to everyone in that thread for all those ideas ayy lmaoI swear I didn't steal them ) So here it is, my new programming language called greentext. Code and docs on Github

A basic rundown:

:^) = true, :^( = false

>mfw = print

>be foo like 1234 = variable assignment

>implying = if statement

>inb4 = for loop

>dank memes = main function

>wewlad foobar = function declaration

Yes you can write actual code in this language. Here's fizzbuzz:

>dank memes
>inb4 i from 0 to 100 by 1
  >implying i % 15 is 0
    >mfw "fizzbuzz", i
  >or not
    >implying i % 3 is 0
      >mfw "fizz", i
    >done implying
    >implying i % 5 is 0
      >mfw "buzz", i
    >done implying
  >done implying
>done inb4
>tfw

Let me know what you guys think :^)


r/shittyprogramming • • Nov 09 '14

#ProTip #BestPracticings Protip: How to speed up your C++ programs

458 Upvotes

Just add this line at the beginning of main():

double speed;

that will tell the compiler that you want it extra fast. It should produce a notable improvement in execution speed.


r/shittyprogramming • • Feb 16 '15

I am a null pointer. AMA

457 Upvotes

r/shittyprogramming • • Sep 06 '20

do you guys like my code

Post image
456 Upvotes

r/shittyprogramming • • Dec 23 '18

The best TODO finish this title

Post image
453 Upvotes

r/shittyprogramming • • Mar 14 '23

Just try not to think about it

Post image
450 Upvotes

r/shittyprogramming • • Jun 03 '18

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

450 Upvotes

r/shittyprogramming • • Feb 19 '15

TIL that the string "Segmentation fault" is located at the very beginning of memory in C

448 Upvotes

Try it for yourself:

#include <stdio.h>

int main() {
    char* myString = 0;
    printf("%s\n", myString);
}

r/shittyprogramming • • Jul 13 '17

C++ Bee Movie Obfuscator

Post image
447 Upvotes

r/shittyprogramming • • Dec 20 '18

Sorting German list entries by their English names...

Post image
446 Upvotes

r/shittyprogramming • • Aug 15 '17

Generating $0 cause you left the test ads on

Post image
445 Upvotes

r/shittyprogramming • • Apr 08 '21

I don't see what's wrong here, I did what's needed to be done

Post image
443 Upvotes

r/shittyprogramming • • Apr 06 '20

Don't know if this counts, but fixed a problem that definitely didn't exist by using Python to make my microphone control my mouse and keyboard (via pitch and volume alone)

442 Upvotes

r/shittyprogramming • • Oct 29 '22

Swift devs why do you goes from objc if you are coding not like this?

Post image
441 Upvotes

r/shittyprogramming • • Oct 06 '23

Why people use self? Can't they just use a cool name like martin? Are they stupid?

Post image
439 Upvotes

r/shittyprogramming • • Apr 25 '19

<wrong_sub>this</wrong_sup> rEeeEEeeeE

Post image
436 Upvotes

r/shittyprogramming • • Nov 25 '20

How to round down numbers in CSS

Post image
433 Upvotes

r/shittyprogramming • • Dec 11 '16

If I put these on my computer, will it improve my algorithm efficiency at runtime?

Post image
433 Upvotes

r/shittyprogramming • • Mar 25 '19

snake_case? No thanks. I use spaceㅤcase.

Post image
429 Upvotes

r/shittyprogramming • • Jun 29 '19

Best practices for key/value storage

Post image
427 Upvotes

r/shittyprogramming • • Oct 29 '14

I found this on some guy's profile off of facebook. I just can't.

Post image
425 Upvotes

r/shittyprogramming • • Dec 08 '18

HTML programming code

Post image
424 Upvotes