/r/shittyprogramming

Photograph via snooOG

r/ShittyProgramming is participating in the Reddit blackout begging June 12th to protest the planned API changes that will kill third party apps.

More here: https://www.theverge.com/2023/6/10/23756476/ & https://archive.is/RtZdp.

For general news and info on the situation: r/Save3rdPartyApps and r/ModCoord.

Join the r/ShittyProgramming Discord server to discuss whatever: https://discord.gg/shittyprogramming

We will not be adding approved users to the subreddit during the blackout.

Have a tough programming question that /r/programming couldn't answer? Banned from Stack Overflow? Can't afford Experts Exchange?

Post your question/tips/secrets/advice and get a response from our highly-trained professional developers.

/r/shittyprogramming

102,863 Subscribers

22

Transforming one JSON object into another? Here's what you need to do:

  1. Create a Protobuf Definition
  2. Use it to auto generate stuff
  3. Deploy an HA Kubernetes stack
  4. Use RHEL nodes so it's "enterprise"
  5. Create custom AMIs for RHEL with an OCI-O shim
  6. Manually configure a CloudWatch agent for each node
  7. Centralize those metrics in CloudWatch
  8. Create alerts that monitor resource availability on those nodes
  9. Create alerts that trigger on metrics thresholds
  10. Use those metrics to autoscale your cluster
  11. Create a custom docker image for your service
  12. Define a custom helm chart with a deployment spec
  13. Write health checks and readiness checks

NOW you've got an MVP...

8 Comments
2024/06/26
00:09 UTC

506

I have a confession to make

So I was hired at my company as a junior with no degree and 0 experience, and apparently the guy who had my job before me was absolutely dogshit at programming. I was told from day one that I was an improvement compared to the college grad that came before me.

I knew that guy had to be bad, but I didn't realize how bad until I started getting lazy myself.

I spent maybe 8 hours over the last month actually working on a work project at work. I fuck around on my phone literally all day, so when I was called in the office to do a show-and-tell, I was silently shitting myself.

Fast forward to the end of my presentation, and both my boss and my mentor are praising me to all goddamn hell. Apparently to them I am overachieving. Maybe 10% of my time at work is actually spent working. I am in the most cake position of my life, and its all probably thanks to the last programmer they had with a college degree that couldn't program a calculator 😭😭

Thank you God. This is a gift I will forever cherish

33 Comments
2024/06/24
21:13 UTC

0

Hey im looking for someone who have chatgpt 4 if he can help me with my project ??

Hey everyone, im new in programming, i have a project with only the frontend and i wanted chatgpt to help me with the backend but i only have gpt 3.5 i cant afford gpt 4, at first i asked him if i give him a frontend he could give me the backend obviously he said yes so i gave the html css and js codes then he told me what to do and to install node js and express js and he gave me some js codes.

I want to give him all the frontend at once so he could give me a proper response that's why i need someone who's good with programming and have gpt 4 if he can help me because im kinda stuck and i really need some help.

19 Comments
2024/06/13
10:53 UTC

123

Failed Successfully or Successfully Failed?

7 Comments
2024/06/08
15:30 UTC

30

private fun vibrate() {...}

5 Comments
2024/06/02
02:53 UTC

19

Exception-Driven Eventing

I have a lot of well-respected white papers about C# & programming in general. You're probably familiar with my more notable publications: "Obfuscationeering: The Mathart of Obfuscationology" & "Use Dynamic Instead of Var". I haven't published anything industry-shifting for a couple of years, but I think it's time to return to revolutionerizing the discipline of the home computer sinuses.

Let me explain: You know how when you take fistfuls of bath salts & huff an entire tank or two of butane, you're able to hyperfocus on activities such as repeatedly drop-kicking Ronald McDonald statues, or fighting 6 cops after running through plate glass?

That was sorta me last weekend, but instead of just screaming that I can taste colors & attacking people with a spoon, I also exercised my brain and randisomoly invented a new programming paradigmogy:

Exception-Driven Eventoring.

I plan to write a guide explaining at readers how one would throw events, how clients could subscribe to receive any & all exceptions you raise, re-re-throwing events, and types such as ExceptionEvent, ExceptionEventHandler delegamanators, ExceptionEventArghs, and of course ExceptionEventException exceptions. I'll even show an example using LeftMouseButtonClickClickExceptionEvent (obviously the event that is thrown when a user click clicks the anterior mouse button).

The performance implications at the prototype stage are pretty good so far. I eyeball all of my benchmarks.

I'll skip over explaining general exceptioneering concepts, assuming most readers are familiar with catching objects of the Exception base class and doing nothing with them (you shouldn't handle exceptions if they are not your fault).

I believe we can all agree about how groundbreakening this is for the .NET community as a whole. The problem is I need somebody else listed as the author. I don't want people to see my name and think "OH, THAT'S THE 5th GANG OF FOUR GUY ". I want the article to hold up on its own.

What do you say? Are you ready to commit academic fraud with me for the good of the industry? There's a hot Canadian bacon & peanut butter on rye in it for any of you who are serious about doing this with me. DM for more details.

6 Comments
2024/06/01
11:48 UTC

0

Best platforms for freelance developer jops

Hello guys!

I'm a software engineer with almost 4 years of professional development. For a while I'm thinking of enhance my skills while making a little bit more money outside my actual job.

With that being said, what would be the best platforms for back end/ data science freelance jobs?

I have no clue about that, so I'd really appreciate your suggestions and tips!

2 Comments
2024/05/31
22:40 UTC

0

code needed

i need code for the google inspect console

i need code that crashes abuses things and does stuff

please

8 Comments
2024/05/29
00:17 UTC

204

What a fantastic textbook

20 Comments
2024/05/27
05:03 UTC

0

I was bored...

6 Comments
2024/05/24
10:34 UTC

66

How do I use the “git gud” command?

People keep telling me to “git gud” to fix my code but i get error?

15 Comments
2024/05/22
05:12 UTC

11

C++ versus i++

Which is objectively better for building NFTs?

Trying to decide between the two, but I feel like I'm caught in a loop.

4 Comments
2024/05/22
04:49 UTC

30

Why is electron frowned upon? Can’t end user download more ram?

17 Comments
2024/05/19
04:04 UTC

35

Why is filesystem fat? That’s not very nice!

12 Comments
2024/05/17
03:03 UTC

0

Why most machine uses 4096 page sizes instead of 4069?

14 Comments
2024/05/12
04:01 UTC

1

Im trying to install vllm and it keeps saying I don't have the correct PyTorch version, but I have 2.2.2. Help!

0 Comments
2024/05/09
10:37 UTC

0

Building Open Source AI-first Alternative to Salesforce

We just launched QRev on Product Hunt! 😍

QRev is what Salesforce would be if it were built today with AI, with AI Agents to scale your sales org infinitely

  • Qai: open source AI SDR
  • Automate your GTM
  • Research & prospect leads
  • Scale personalized campaigns
  • Lightweight CRM (QRM)

Please check us out & show some love to QRev here → https://www.producthunt.com/posts/qrev

Super grateful!! 🙏❤️

1 Comment
2024/05/06
15:16 UTC

97

Seriously man why?

12 Comments
2024/05/06
04:09 UTC

0

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.

4 Comments
2024/05/04
22:54 UTC

4

Has anyone tried a "Test Genie" for testing? They're supposed to be easy to use and make your test scores go up. Should I install?

0 Comments
2024/05/04
03:10 UTC

40

Tired of IDEs that don't show line numbers by default? Try this easy trick.

1 Comment
2024/05/04
02:41 UTC

229

May I present one of my classmates ways to ensure he never has unmatched brackets?

22 Comments
2024/04/29
04:27 UTC

20

My girlfriend's husband said to call him at exactly 0700, but then he got mad when I called him at 448am. Am I stupid?

14 Comments
2024/04/24
06:14 UTC

1

How to acquire the skills of writing complex software?

The best way to learn how to write complex softwares is to do it practically. Build cool projects like Redis with free courses here: https://app.codecrafters.io/r/smiling-manatee-800604

0 Comments
2024/04/22
15:32 UTC

1

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!

Link to "Powers of Ten" Video

[Comments are welcome!]

1 Comment
2024/04/21
04:36 UTC

9

I'm not a web dev but I think this is the wrong approach

1 Comment
2024/04/07
23:59 UTC

0

If you are a single programmer, wear this🤪

9 Comments
2024/04/04
00:01 UTC

505

Why waste time use lot word when few word run faster

66 Comments
2024/04/03
09:12 UTC

39

Hello World in Python (Attempt 2)

1 Comment
2024/03/24
11:34 UTC

Back To Top