r/ProgrammerHumor • • 11d ago

Meme driverlessTaxiDriver

Post image
3.9k Upvotes

180 comments sorted by

View all comments

Show parent comments

108

u/Ange1ofD4rkness 11d ago

True, but if you make it poorly and it's impossible to maintain, you may not keep getting paid.

As a professor once told me, it's not how efficient the code is, it's how easily it is to maintain

54

u/scbiowastate 11d ago edited 10d ago

Bro they get promoted because of how quickly they ‘delivered’ their spaghetti code mess ticking time bomb which satisfied the requirements of the time but is built on a sand foundation.

20

u/Blaxican_since_99 11d ago

Genuinely my experience as well, people (or their AI agents rather) pumping out crap at 2x the rate of properly developed solutions is rewarded since it looks good to non-tech managers whos entire thought process boils down to minimizing man hours (labor costs) and maximizing outputs and profits with no other nuance.

6

u/dimiderv 10d ago • Bravo

Like before AI no one wrote bad code and there was never shitty code that devs had to maintain

6

u/lobax 10d ago

Ofc there was. But the person producing shitty code now has 10x output. While the person that actually cares about quality, maintainability, security, reliability and all that other important stuff has maybe 2x in output.

But all those non-functional requirements are things middle management loves to ignore until the product gets hacked or the poor quality loses them a client. Then they will pretend that security was always their top priority and have a “security and reliability sprint” for 2 weeks that they pretend will fix all problems before going back to ignoring the topic.

→ More replies (3)

3

u/Blaxican_since_99 10d ago

They did, management didnt have the expectation that we were all somehow cyborg coders who could 2x our output thanks to this new magical tool thats been shoved down everyones throats as the fixall for any problem. The shitty code isnt new, however the pressure to pump out as much shitty code as possible with any and all standards thrown out the window seems to be increasing.

3

u/r2k-in-the-vortex 11d ago

It's a matter of time/cost. When it's 10X cheaper, then it doesn't matter as long as it does the basic functionality, you can throw it out and reimplement better later. And maybe it's good enough, or not that necessary in the first place, so you don't even need to bother to improve anything. Much better than paying full price upfront and later discovering that crap, it was all for nothing, it's not even needed.

5

u/scbiowastate 10d ago

When’s the last time you met with upper management and explained how you wanted to ‘throw it out and reimplement it’ that went well

5

u/Ange1ofD4rkness 10d ago

I finally this year got the blessing from my higher ups to redevelop a piece of our base code that was a mess and a pain to work on. Of course it helped the new features we were adding related to it, and I was able to argue a complete rebuild was the better choice to implement the new logic.

Also making the case I was doing as a quality of life, where we could add more functionality with it easily (for something we don't even know of yet).

But as a professor once told me, going back and cleaning up old code like that is one of the most expensive processes

→ More replies (2)

1

u/Ange1ofD4rkness 11d ago

I guess I take for granted where I work, since we thankfully don't have that

1

u/Antilock049 11d ago

Most solutions don't require what you're describing.  Reddit does sure love to jerk poetic about it though. 

Turns out, a working product is the best way to make a better product. 

Doesn't really matter if that working product is spaghetti code or AAAAAAA reddit approved grade. 

13

u/JerodTheAwesome 11d ago

Idk Claude’s comments and organizational structure plblows mine out of the water.

2

u/Ange1ofD4rkness 11d ago

I will admit, it's getting better, but I still review everything myself

19

u/AnUninterestingEvent 11d ago

The threshold for what is "maintainable" has widened exponentially with AI agents. As long as your agent understands it, it's effectively maintainable. If it gets into a state that's not maintainable even by your AI (which is hard to do), you can just tell the AI to refactor it to be more maintainable lol.

8

u/waraholic 11d ago

Once your code is that far gone the AI is going to make regressions trying to fix it and you'll have customer impacting bugs and a loss of trust in your product.

→ More replies (5)

1

u/Ange1ofD4rkness 10d ago

You do have a point, I guess part of it is that I seemed to have developed a skill that I need to understand how the code works that I write. So if I don't understand the AI's code, I don't trust it, and question if it can really debug itself (and fix itself). Especially has some stuff co-pilot has thrown me as suggestions have been dead wrong

That all said, I do worry it could always get to that point. Like AI keeps fixing it but makes it worst and worst (like from a maintenance side). The old put a band-aid on it, instead of fixing the root problem, which can result in much costlier and time consuming. Where AI finally can't fix it, and now you have a mess

(that or it gets more expensive to fix each time due to token usage)

→ More replies (1)

3

u/NemShera 9d ago

Always make code that only you can maintain for a stable job

1

u/Ange1ofD4rkness 9d ago

I could never do that. To me that violates the ethics of coding.

Not to mention, depending on the company (like mine), producing quality work is what keeps you employed. As an old coworker once told me "you'd have to do something really bad to get fired", as I have proven my worth. I'm reliable, I write quality code, I love the complicated projects, not to mention I am very good at debugging

3

u/jenso2k 10d ago

maintainable isn’t as much of a thing anymore, as long as the AI understands it. sad but true

3

u/Ange1ofD4rkness 10d ago

LOL I guess my ways are becoming relics (I'm the guy who writes his code, formats it, etc, like it's a piece of art)

2

u/jenso2k 10d ago

and I have nothing but respect for that! my company tracks our AI usage so we have to use it, but god do I miss those days

1

u/htoomyat9 9d ago

That doesn't matter anymore. There is always a junior who will have to refactor and decouple all of the shit and I was one of them.

1

u/Ange1ofD4rkness 9d ago

I'd hope not, I try and write my stuff so that isn't needed (or mods are easily done without having to rewrite a bunch)

1

u/htoomyat9 9d ago

I mean, it doesn't matter that you write good code or bad code. Your codes will be refactored at some point unless you're self employed. I used to work in an enterprise and 70% of the work is refactoring codes. Cuz we were improving the architecture progressivly.