this post was submitted on 12 Feb 2024
1105 points (99.0% liked)

Programmer Humor

31800 readers
288 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 5 years ago
MODERATORS
 
top 50 comments
sorted by: hot top controversial new old
[–] [email protected] 77 points 6 months ago (3 children)

You can use a JavaScript to assembly converter so you get the same pain on your personal projects.

[–] [email protected] 23 points 6 months ago

Tell me more, I’ve almost achieved webasm

[–] [email protected] 16 points 6 months ago (1 children)

Wouldn't that just be a JavaScript compiler?

[–] [email protected] 3 points 6 months ago

Well, if you put it that way ... yes.

[–] [email protected] 7 points 6 months ago

Is there a 6502 backend?

[–] [email protected] 77 points 6 months ago

The difference is: One you do for fun and one you're told to do for money.

[–] [email protected] 62 points 6 months ago (1 children)

Amazing how you can work 8 hours without it ever stopping being 1 am. Human beings really are amazing when they are motivated

[–] jubilationtcornpone 36 points 6 months ago (3 children)

Motivation: AKA, Chronic Insomnia.

[–] [email protected] 11 points 6 months ago

Sometimes programming is my zone.

[–] [email protected] 8 points 6 months ago

Nah, being engrossed in something you’re enjoying can consume time like nothing.

Same as the “just one more” turn phenomenon with games.

load more comments (1 replies)
[–] [email protected] 55 points 6 months ago (5 children)

But I love coding at work?!

The problem is that every living entity in a 10 kilometer radius around me, seems to be hellbent on getting me to do anything but coding. Refining work estimates, fixing badge access rights, fixing a driver issue, telling people that you cannot do 1000 things at the same time, teaching the new developer how shit (doesn't) works, mangling Jenkins into a functional state again, explaning that thing I did a year ago but is only now used (it was very high prio a year ago), writing documentation that noboby ever reads, progress meetings, specialty group meetings, knowledge sharing meetings, company wide meetings, etc.

[–] [email protected] 11 points 6 months ago

You can always write code for Free Software projects in your free time and contribute to a good cause.

[–] [email protected] 4 points 6 months ago

Just say no. Decline meeting requests. Set your own priorities. It’s not like they can fire the guy who operates the CI and apparently the physical security systems as well while still writing code for high priority projects.

[–] [email protected] 3 points 6 months ago* (last edited 6 months ago)

I had a team of contractors working on some code. They had learnt in their previous jobs to document everything in the work wiki (aside from the design documents which have their own repository)

And it was good they did, since the project was put on hold due to too much mismatch between backend and front, and all the contractors were fired (a day before Xmas) leaving the useless doco as the best reference for whoever needs to resurrect our code

[–] [email protected] 3 points 6 months ago

Agreed on all of that. As I understand it, periods of better worker markets make for less of that nonsense people are willing endure. I've seen a recent trend of corporations turning up the BS because the job market has been tightening up and people are less willing to take risks.

load more comments (1 replies)
[–] [email protected] 26 points 6 months ago (1 children)

Yep, programming is fun but working as a programmer not so much. For me writing software is a creative activity. It's fun to come up with problems and find solutions for them. In my personal projects I decide what problem I want to solve, choose the technology I think will be fun to solve it in and then come up with a solution I like.

At work you are usually handed a problem you don't care about (we're decommissioning X, you don't have to know why, just change everything to use Y), the solution is described in detail by someone else and you just have to turn it into some code using 5-10 years old stack.

Fortunately at my current job I mostly do projects without much technical oversight (proof-of-concept type project) so I can choose how I want to do then. I dislike the company culture but I know that moving somewhere else would mean going back to boring coding agian.

[–] [email protected] 6 points 6 months ago

Where I work there is a hardware test, where the voltage needs to be changed on the power supply like 8 times. Currently it's done by hand.

I gave that to a student with the description that I want that automated, let production show you how the test is done. If you have other ideas how to improve it, just do it.

This was 8 working days ago for the student. She still hasn't started, because she wants an exact description what needs to be done. If you want me to write down how exactly everything needs to be done, I might just write it myself in python and be done with it.

[–] [email protected] 20 points 6 months ago (5 children)

What are you doing in assembly?

[–] [email protected] 64 points 6 months ago (2 children)

Manually optimizing the code I wrote in C, so that it runs noticeably slower and has all sorts of stupid bugs that weren't there before. All in a good night's work.

[–] [email protected] 7 points 6 months ago (3 children)

That doesn’t sound like optimization.

[–] [email protected] 17 points 6 months ago (1 children)

No worries, he can optimize it later.

[–] [email protected] 13 points 6 months ago (1 children)

Put a refactor ticket in the backlog. We'll get to it eventually, right?

[–] [email protected] 12 points 6 months ago

// TODO: fix this code

[–] [email protected] 9 points 6 months ago

To you, maybe.

[–] [email protected] 5 points 6 months ago

It's just reverse optimizing!

[–] [email protected] 6 points 6 months ago

Well, I guess it's either writing a device driver or that.

And the device driver will always end-up with most code in C or Rust.

[–] [email protected] 39 points 6 months ago
[–] [email protected] 6 points 6 months ago

Assembling.

[–] guiguinofake 6 points 6 months ago

Pretending I was born 40 years earlier

load more comments (1 replies)
[–] [email protected] 18 points 6 months ago (3 children)

At least with your assembly code it'll go brrrrrrrt because of how fast it'll be.

[–] [email protected] 10 points 6 months ago (2 children)

Assuming it actually works

[–] [email protected] 9 points 6 months ago

I always have problems with assembly. Especially after being at Ikea.

load more comments (1 replies)
[–] [email protected] 9 points 6 months ago

If you know that you do. What you probably do not. A proper C/C++ compiler (gcc) will almost always produce better/more optimized ASM than a human ever could.

[–] Orygin 5 points 6 months ago (2 children)

My assembly code only goes brt :(

[–] UnRelatedBurner 7 points 6 months ago

it reaches 't' from 'b' with a lot less iterations of 'r'. It seems to me that you have a more optimized version. :)

load more comments (1 replies)
[–] [email protected] 10 points 6 months ago (2 children)

Why is this literally the opposite for me?

I have a class where I write in Assembly but instead I'm working on my personal HTML/CSS/JS project.

[–] [email protected] 38 points 6 months ago* (last edited 6 months ago)

It's not the language that matters, it's the obligation vs passion.

[–] [email protected] 5 points 6 months ago* (last edited 6 months ago) (2 children)

The result is still the same, isn't it? (in language you like vs in language you're forced to use)

load more comments (2 replies)
[–] [email protected] 9 points 6 months ago

Wonder if that's the "alienation of labor" thing Marx was talking about

[–] [email protected] 7 points 6 months ago (2 children)

The funny thing is, both of these are JavaScript for me.

I mean I guess TypeScript if I'm doing coding for work.

[–] [email protected] 6 points 6 months ago (1 children)

My first job right out of college I was writing assembly for some epically old industrial equipment. That shit runs on its own language that was only ever used on that piece of equipment. Usually x86 but with some wacky modifications. There's no compiler for that, just a manual the size of a textbook and a million chicken scratch notes in it that's half covered in grease. I'm so glad I don't do that anymore.

[–] [email protected] 6 points 6 months ago

That sounds like a nightmare.

[–] [email protected] 3 points 6 months ago

Same. I participate on web game jams for fun.

[–] [email protected] 2 points 6 months ago (1 children)

I wrote a JavaScript program to write assembly program

[–] [email protected] 5 points 6 months ago (2 children)
load more comments (2 replies)
load more comments
view more: next ›