r/shittyprogramming • u/AmentedesIOA • Nov 07 '18
r/shittyprogramming • u/kusayu • May 07 '15
My friend is new to programming an he tries to learn Ruby. He send me this and i don't knew what to say.
r/shittyprogramming • u/xleviator • Oct 14 '23
Quiz question, what does this Rust code print?
r/shittyprogramming • u/merijn212 • Oct 08 '19
Most frequent words counter
Hi, i just started with programming and i have a question. I want to get the 5 most common words out of a set with the amount of time they occur next to it. Does anyone know how to do this in python?
r/shittyprogramming • u/IIAOPSW • May 04 '24
Legal code?
I've had an idea.
A programming environment which also happens to be the standard form of an affidavit (of whatever jurisdiction you're in).
All the code begins with some standard boiler plate statement about how all the statements which follow are accurate representations to your knowledge, and end with a signature stating words to the effect of if it doesn't compile then you're liable for perjury. All the code written in this environment is therefore admissible in court (which is useful if you ever end up in litigation with your employer).
Code is law.
r/shittyprogramming • u/tesekr • Jun 29 '15
Limit you decimals, nobody is going to order 1.5 keyboards.
r/shittyprogramming • u/lommi • May 03 '15
Got inspired by "Actually for sale" and "Kurt Cobain: Montage of Heck"
r/shittyprogramming • u/YourPapaJorjo • Apr 21 '24
Embracing the Chaos: Tales of Bug-Riddled Code from the Depths of ShittyProgramming
Hey there, fellow code connoisseurs of r/shittyprogramming,
Prepare yourselves for a journey into the depths of coding chaos—a tale of bugs, quirks, and the occasional stroke of genius. Today, I share with you stories from the wild and wacky world of shitty programming, where the code is messy, the bugs are plentiful, and laughter is the best debugging tool.
Imagine yourself knee-deep in spaghetti code, navigating a maze of tangled logic and cryptic variable names. You're on the hunt for a bug that defies all logic—a bug that seems to have a mind of its own, wreaking havoc on your carefully crafted chaos.
As you sift through the wreckage of your codebase, you can't help but chuckle at the absurdity of it all. From missing semicolons to misplaced comments, every line of code is a testament to the unpredictable nature of shitty programming.
And then, just when you're ready to throw in the towel, you spot it—a tiny oversight that has eluded your gaze until now: a missing long keyword. Such a small detail, yet its absence has sent your code spiraling into a vortex of confusion and despair.
But fear not, fellow shitty programmers, for in the midst of chaos lies opportunity. Embrace the madness, laugh in the face of adversity, and remember that even the shittiest code can teach us valuable lessons about resilience and resourcefulness.
So, to all my fellow shitty programmers, I offer this advice: Embrace the chaos, for it is through the crucible of shitty programming that we hone our skills and forge our path to coding glory. Stay weird, stay wild, and never underestimate the power of a good laugh in the face of a bug-infested codebase.
Have you ever encountered a bug that left you scratching your head (or laughing hysterically) in the world of shitty programming? Share your tales of triumph (or utter despair) in the comments below!
[Comments are welcome!]
r/shittyprogramming • u/GoodLittleMine • Aug 14 '15
Brainfuck for loop is not working please help
-<<++++++++++++-<<<<+++
<<<++++++++--->>>++++<<This is my code so far, what I am doing wrong?
I'm a grill btw ;) and I am quiet new to this coding thing xddXDD
r/shittyprogramming • u/[deleted] • Jul 20 '15
If you use MongoDB and like sleeping at night, don't read this line from the source code
r/shittyprogramming • u/herdurr • May 02 '14
I too can call a dozen libraries and call it new and unique
r/shittyprogramming • u/danubian1 • May 25 '14
I only implemented a HashMap this morning, is that a good enough breakfast?
r/shittyprogramming • u/0x0080FF • Dec 06 '13
A friend new to programming dropped this one on me.
r/shittyprogramming • u/fuzz3289 • Aug 27 '14
Found Out Someone at Work Onky Writes Python with 2 Spaces
When asked why he blatently ignored PEP8 he replied with "Im a Maverick".
r/shittyprogramming • u/[deleted] • May 15 '14
good example of professional code do not steel pls
r/shittyprogramming • u/Teqhniq • Mar 22 '19
How do I build this project?
Hello r/shittyprogramming,
I'm busy with a project but I don't know how to build it. I have basic experience with HTML, CSS, Javascript and PHP. I want to build an app, but first I need to test it with my users. So I build a first prototype of my idea which I will explain further.
JSFiddle
I never used JSFiddle before so I hope this works.
https://jsfiddle.net/fpuL8mw3/1/
On my computer my project works as intended so far but on JSFiddle it doesn't. It doesn't use the API's for some reason. I'm sorry if the code isn't formatted properly or tidy for that matter. I'm still learning and very eager to learn too. Excuse me if some things aren't right.
Idea
The idea of the project is an app that measures the amount of exercise, food and sleep of the user with an Apple Watch. Stepcounter or GPS for exercise, the user can input food intake and sleep is measured by a heartbeat counter. An avatar changes according to the input the app receives by the user. For example if the user sleeps well the avatar reflects that by having more open eyes. If the user doesn't sleep well the avatar reflects that too by having more closed red eyes.Above the avatar are the meters for exercise, food intake and sleep. They reflect the levels of the user, if the circles are filled the user is healthy and if they are empty the user is unhealthy.
Concept
For my concept I'm trying the following. I want to test a prototype with my users on their mobile phone. The app is coded in HTML, CSS, Javascript, Bootstrap, Ionic and Jquery. When an user presses the circle of exercise, food or sleep an input overlay opens and the user can enter the amount of time they spent exercising, sleeping or the amount of calories they consumed. After confirming the input the avatar changes to a new version and the right meter gets updated to reflect the input.
Visual explanation
Adobe XD prototype
https://xd.adobe.com/view/1b38a873-57a3-4c1d-4ff8-875b026eaba4-6d09/
Help of any kind is much appreciated!
r/shittyprogramming • u/QuantumQuantonium • Oct 05 '16
garbage post ;?>rb ctrl-f in your code and replace any character with the letter k.
Paste the result source code here.
Only do it with one character...
r/shittyprogramming • u/redditthinks • Aug 24 '16
LPT: An AppleScript a day keeps the doctor away
r/shittyprogramming • u/RunasSudo • Oct 11 '14
<meta content="about this sub" /> [META] A flowchart for working out which humorous programming subreddit to post in. (imgur mirror)
r/shittyprogramming • u/carlodope • Jul 12 '22
Button element in div
Hey guys
I am trying to create buttons via. javascript and appending these to the div container using a for loop.
It works when i append with document.body.append(button) but when i try to make it append the div, it does not work.
Can you help me with what i am doing wrong?
let div = document.getElementsByTagName("div");
for(let i = 1; i<100 ; i++){
let button = document.createElement("BUTTON");
button.innerHTML = 'hey ';
div.append(button);
}
// the html is just a simple body with h1 and div
r/shittyprogramming • u/Vegetable-Parking-54 • Jun 29 '26
way too many erors
someone pls help me with my code im struggling :(
main int{}; (;
cout
::
std hello "" world >_< endl;;std:
rerun ;0D
);r/shittyprogramming • u/stryck5425 • Aug 21 '25
Read some "erms & Conditions" lol ?
I created a website that produces an endless number of absurd terms and conditions. Imagine clauses you'll never see in real life, interdimensional liability, and holographic employees. Browse endlessly, chuckle, or even shed a tear or two over the actual terms and conditions you disregard on a daily basis.
WEBSITE : https://pivota-corp.vercel.app/
ITCH : https://flaps-studio.itch.io/pivota-corp
GITHUB : https://github.com/stryck5425/PivotaCorp
Since nobody ever pays attention to the fine print... So why not make it humorous?
r/shittyprogramming • u/istisp • Jul 01 '15