r/shittyprogramming • • Oct 08 '22

From a Reddit ad, that’s not how any of this works.

Post image
256 Upvotes

r/shittyprogramming • • Nov 18 '16

Please stop saying that Java and JavaScript are the same thing

255 Upvotes

They are clearly different. For one, JavaScript is much less versatile because it has to be written in cursive. Java, on the other hand, you can basically just write whatever the heck you want and it'll compile something. And everyone always complains about how long the lines can get in Java. Well you should be appreciative because it raises the skill ceiling, making the competitive scene much more exciting. So please, respect the many differences between Java and Script.


r/shittyprogramming • • Jun 16 '16

Reddit's definition for gamedev

Thumbnail
imgur.com
255 Upvotes

r/shittyprogramming • • May 19 '15

Found this code at work today

Post image
255 Upvotes

r/shittyprogramming • • Dec 02 '14

what is this? seen on imgur

255 Upvotes

r/shittyprogramming • • Dec 31 '16

Why don't we have ++C as it would be more efficient?

254 Upvotes

r/shittyprogramming • • Dec 15 '15

<wrong_sub>this</wrong_sup> Trying out some naming conventions...

Post image
254 Upvotes

r/shittyprogramming • • Oct 12 '18

How do I get this version? Seems very advanced

253 Upvotes

r/shittyprogramming • • Sep 20 '16

I'm new to Ruby and came from Sapphire, what starter is best?

253 Upvotes

r/shittyprogramming • • Jul 16 '16

Am I a real programmer if I use Unreal Engine?

253 Upvotes

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!


r/shittyprogramming • • Nov 16 '20

r/badcode A gold mine an ex principal engineer left behind.

Post image
252 Upvotes

r/shittyprogramming • • Oct 13 '17

TerrariaClone – An incomprehensible hellscape of spaghetti code (x-post from /u/qznc_bot on /r/hackernews)

Thumbnail
github.com
252 Upvotes

r/shittyprogramming • • Sep 03 '20

So I Made A Rude Alexa

Thumbnail
youtu.be
251 Upvotes

r/shittyprogramming • • May 12 '16

Why do so many C function calls end with a sad winky face?

250 Upvotes

I've been looking through some C programs and every time there's a function call, it ends in ");" The same thing happens after struct declarations, only this time it has a moustache: }; Why are C programmers so sad yet flirty?


r/shittyprogramming • • Apr 16 '16

You're git-ing it wrong. (This is page 2 of 3 git commit history...)

Post image
250 Upvotes

r/shittyprogramming • • Feb 09 '15

Check out this new website guys :)

Thumbnail localhost
250 Upvotes

r/shittyprogramming • • Mar 03 '14

super approved I have created a programming language that allows you to write arbitrary programs that take up no memory. I have a demonstration of quicksort

250 Upvotes

I don't want to sound self-important, but this is probably the most important thing since UNIX or the C language.

The revolutionary language that allows for any arbitrary program to be written without taking up any memory. You could rewrite the entire Linux Kernel in a total of 0 bytes.

Syntactically and functionally, it is very similar to Python so learning it should be no problem.

How does it work? Simple, instead of writing the code inside files, we write the code in the file names.

Here is a demonstration of Quicksort written in this language - link. All the code is in the code directory which takes up 0 bytes. The highly advanced single pass compiler takes this code and assembles it for you.

I'm still working on the licensing but I plan on following Oracle's steps and making it free to use but charge for support and large corporate training.

https://github.com/MarkDunne/0byte


r/shittyprogramming • • Nov 17 '24

I'm sorry but who the hell decided this was a good idea?

Post image
249 Upvotes

r/shittyprogramming • • Mar 25 '14

Unclosed HTML tags accidentally lead to an accelerating surrealist nightmare (x-posted from r/technology, by apexplosive)

Thumbnail sewingandembroiderywarehouse.com
249 Upvotes

r/shittyprogramming • • Mar 23 '17

Our dev team's performance metric scale

Post image
248 Upvotes

r/shittyprogramming • • Aug 06 '22

I made an ancient Hebrew programming language to help programmers speak to God

Thumbnail
github.com
247 Upvotes

r/shittyprogramming • • Nov 12 '17

Where do I report a bug in C?

247 Upvotes

So here's my program:

int main() {
  int x = 7;
  double x;
  printf("%d\n", x);
  return 0;
}

Clearly, it should compile successfully and print 14, but instead, I get a compiler error. Where can I report the bug that double doesn't work correctly?


r/shittyprogramming • • Oct 09 '16

Pro tip: Zoom out your IDE to make your code compile faster

247 Upvotes

This works because if you print out a document in really small font it will take up less pages than one in a normal/big font, so the same principle applies here because when the IDE sends the code to the compiler the compiler will take less time because it's less pages you're sending. Note that this only works with C# because it's the only language where the compiler can "see sharp" hence why it's called that. I've found good results zoomed out this much, any smaller and the compiler won't be able to read it.