r/shittyprogramming • u/fuzz3289 • Feb 15 '14
r/shittyprogramming • u/olithraz • Jan 17 '16
[JavaScript] who is Jason and why does he object to everything
r/shittyprogramming • u/BarkingToad • Jan 27 '15
Found this in production code when someone asked "what's the setting for enabling replying to messages?"
r/shittyprogramming • u/corvus_192 • Apr 12 '23
I finally figured out how to print hello world
r/shittyprogramming • u/woholini • Nov 19 '18
Hey I'm a PhD in HTML5 programming, could somebody tell me how to download quantum shader texture packs for minecraft?
r/shittyprogramming • u/Jackeea • Dec 28 '17
More proof for /r/FinlandConspiracy; said """country""" doesn't exist according to Python
r/shittyprogramming • u/confused00- • Jul 13 '15
Last moment cleaning up before putting the project live. Anything else?
r/shittyprogramming • u/ajesss • Oct 04 '14
Elegant document generation procedure
r/shittyprogramming • u/john2496 • Dec 04 '19
Why does anyone still use dependency trees when there are dependency cities?
r/shittyprogramming • u/Tysonzero • Mar 17 '15
You can do integer division in JavaScript
I learned that you can do integer division in Python with //, for example 5.0 // 2 == 2.0 whereas 5.0 / 2 == 2.5. I wanted to know whether or not it was possible to do the same in JavaScript, and I found out that it was!
> 5 // 0.9
< 5
> 1 // 0.6
< 1
> 172 // 1
< 172Try it yourself!
r/shittyprogramming • u/Shaif_Yurbush • Oct 27 '21
If you struggle with 'imposter syndrome"...
Just remember there's an npm package called is-even that's downloaded ~200,000 times per week
r/shittyprogramming • u/[deleted] • Jun 25 '19
From the last Microsoft video about their new terminal window...
r/shittyprogramming • u/[deleted] • Dec 04 '21
I created an awful, awful compiler for a an even worse programming language I made based on Reddit AITA/Relationships troupes last weekend and now you must suffer too
I originally was just going to do a brainfuck clone but it morphed into something else halfway though, more like a really shit post-based version of rockstar, the amazing power-ballad based language.
Current compiler transpiles the code into python then optionally compiles the python in a single (bloated) binary using pyinstaller
Maybe in the future it'll be transpiled to C or Go first instead.
Anyway because I suffered for my art and so must you here's a working fizzbuzz in what I guess I'm calling AITArelationshitScript.
History about my family- we count down from 50 to 0
Backstory about us, we print fizz if the integer is divisible by 3
Our family history is that we print buzz if divisible by 5
And our last bit of history is that we print fizzbuzz if divisible by 3 AND 5
My program, for ease lets call it fizzybuzz, is quite empty
My f, for clarity lets call it frank, is mostlly empty
Our i, for clarity lets call it ian, is almostt two
So z, for simplicity lets call it zack, is qwertyuio empty
The b, for ease lets call it bob, is grosly grosss
My u, for clarity lets call it union, is blahblah words
Our nest, for clarity lets call it nest, is empty
Our third, for clarity lets call it third, is qwe
Our fifth, for clarity lets call it fifth, is qwert
My cat, for ease lets call it cat, is a
My space, for simplicity lets call it my_car, is qwe ty
I calmly explained to fizzybuzz that stuff
So then fizzybuzz left third and went to party
So then fizzybuzz left fifth and went to theclub
I argued that party was the same as nest with party
I argued that theclub was the same as nest with theclub
I thought that party was something
I thought that theclub was something else
I declared that frank was a letter
I told that ian was a letter
I declared that zack was a letter
I yelled that zack was a kljdaskljdfasklj
I screamed that bob was a blah blahblah
We declared that union was a letter
I declared that zack was a stuff
I declared that zack was a letter
I stormed off and whatever
I declared that frank was something
I declared that ian was something
I declared that zack was more stuff
I declared that zack was something
We refused to discuss further
I thought that theclub was something else
I screamed that bob was a letter
We declared that union was a letter
I declared that zack was a letter
I declared that zack was a letter
We refused to discuss further
I declared that my_car was a new line
So then fizzybuzz took cat and called itself fizzybuzzReturns:
BUZZ FIZZ FIZZBUZZFIZZBUZZ FIZZ BUZZ FIZZ FIZZ BUZZ FIZZ FIZZBUZZFIZZBUZZ FIZZ BUZZ FIZZ FIZZ BUZZ FIZZ FIZZBUZZFIZZBUZZ FIZZ BUZZ FIZZ FIZZ BUZZ FIZZ If you feel inspired to download the transpiler/compiler:
https://github.com/tykavanaugh/rfuck
The compiler I wrote almost certainly has tons of bugs. I refactored the whole thing halfway through and there's still legacy functions/attributes sitting around that don't actually do anything. I majored in psych and have no computer science background. The only thing I can promise is that at least some of the syntax works correctly enough that you can get every feature of the language to work.
r/shittyprogramming • u/[deleted] • Nov 24 '20
To be safe allocate 5 bytes more than you actually need
r/shittyprogramming • u/[deleted] • Mar 18 '17
Why do they say FORTRAN was the first programming language when the Javanese have spoken Java for thousands of years?
r/shittyprogramming • u/Calavar • May 21 '16
I came up with a new syntax highlighting pallet that is optimized for battery life. I call it "Coalarized." Here is Hello World in Python.
r/shittyprogramming • u/80386 • Apr 18 '15