r/vibecoding • • 3d ago

Discussion Coding was always the hard part.

Post image

Bros, we gotta stop saying "coding was never the hard part.." Before AI, it was frickn hard bro..

We get it bro, product-market fit is hard too. You coded 20 apps and only one got 3 users.... and bro, for every app you coded, 500 other people didn't code anything.

Tell the farmer growing crops was never the hard part.

387 Upvotes

734 comments sorted by

View all comments

Show parent comment

7

u/ghostmastergeneral 3d ago

💯 “Coding was never the hard part/bottleneck/whatever” is technically true because it’s not the hard part. It’s just a hard part. There are a number of hard things involved.

But if code wasn’t one of them, why is so much of the code running society so fucking bad? Why has the whole industry been bitching about leetcode for the last decade? Why is the JS on Amazon.com like 2M lines longer than it would be if more than like 50 people in the company knew CSS?

And if it’s not hard, why can so few people do it despite the payoff of learning being so high?

3

u/casce 2d ago

But if code wasn’t one of them, why is so much of the code running society so fucking bad?

Because good code requires discipline more than anything else and humans are generally... not very disciplined.

Is documentation hard? Then why is so much of the documentation in so many companies to fucking bad? It's not hard. It's tedious. And humans are lazy.

The thing with coding is: Not the code itself was hard, it was breaking down the problem so it can easily be solved with code in the first place. But who are we fooling? AI isn't just doing the coding for us, it's also doing that step. We're not "solving" problems anymore, we're just describing them to the AI.

2

u/Intelligent_Part101 2d ago

You also don't get rewarded or recognized for writing documentation. In fact, spending significant time on that takes away from what your employer does value: writing code.

0

u/Naitrael 1d ago

If your employer doesn't know better, sure. Any employer that values documentation will praise you if you do it better than other devs. Which is often not that hard.

0

u/ghostmastergeneral 2d ago

How do you personally define hard? This seems like a very narrow view of it.

Is documentation hard? I think it could absolutely be argued that creating good documentation is hard. Clear and precise communication is hard. Selecting the information that conveys insight with the least cognitive overhead is hard.

Complexity is a part of something being hard, but it’s not the only part. I think you’d find that discipline is the barrier between you and the vast majority of things people think are hard. Getting good at calculus? Discipline. Deadlifting twice your body weight? Discipline. Maintaining healthy relationships? Discipline.

I don’t think problem composition is fundamentally different.

1

u/Dahjah 2d ago

Is it the code itself that's bad in those instances, though? If you were to reimplement the exact same specs/abstractions/architecture in a different language (Or even clean-roomed it in the same language) for any of these instances of bad software I'd posit it wouldn't be any better. The failure is a level, or several levels above the code.
For your CSS example- knowing CSS vs knowing how to use CSS in the right way for the problem space are two different skills.

You can be the best coder in the world, but if you're a crap engineer then the system is going to be crap. (And conversely, can you be a great engineer and a crap coder? maybe, but to be good at engineering you generally will pick up the coding pretty fast- hence why "coding is the easy(er) part")

But all that said, this could definitely be biased from the years at university where the professors would purposefully switch up languages on us from semester to semester, or even assignment to assignment. They would always say "You're here to learn how to be a Computer Engineer/Scientist, not to be an XYZ coder," and that stuck.

1

u/Wonderful-Habit-139 2d ago

Being the best coder means you write the best code. The best code is clean, handles all edge cases, and can address all client requirements.

1

u/Dahjah 1d ago

That's the best software, or architecture. Not code. Code is the tool that gets you to what you describe. I've seen far too many really good coders create the absolute worst products.

2

u/Wonderful-Habit-139 1d ago

So what's the difference between good code and bad code? Do you believe they're all one and the same, and that good code and bad code are both easy to write?

1

u/ghostmastergeneral 2d ago

> Is it the code itself that’s bad in those instances

Yes. It absolutely is. There’s nothing architectural that forces you to shit out 600 lines of JS to highlight things on mouseover and click.

> I’d posit it wouldn’t be any better

You’d posit wrong. Here’s the thing. I worked on that website, and I created my own hellscapes as well. I’m not knocking the people working there. I could go back now after quite a few years and write far better code in the same situations because I know more than I did back then. The skill ceiling on coding is very high. I am not a master, but I know shit code when I see it, and there is a lot out there.

> not an XYZ coder

I say this with love, but most people in academia and research write the worst code of all because they have never had to go through year after year of having their asses handed to themselves via code review by people who are far superior to them.

1

u/Dahjah 1d ago

Exactly! There is nothing architectural. Stop there. That's why I set the requirement of matching the existing architecture (I.e. nothing, or terrible architecture). It's an architectural problem, not a coding one. The shit began before a single character was typed.

I've been that developer, too. And all the skills that I have learned since that enable me to create much better products were not coding skills. They were learning better architecture, patterns, and problem solving skills. (Not to mention interpersonal skills, and being able to sell my solutions to key stakeholders)

I'm not saying that it's impossible to write shit code. That's definitely possible. But strictly being able to write beautiful code without also being able to create a likewise beautiful architecture is still going to result in a terrible product. I say that from experience both being that coder and being the reviewer. I'd take a strong problem solver and creative thinker with moderate coding skill over a perfect coder that consistently chooses the wrong abstractions and architecture for the problem any day. (I'm thinking exactly of those academics. They come out knowing all the ins and outs of language xyz. Usually know random obscure features I've never heard of. But give them a junior task in the real world and they can't do it. They know the code, but they lack all the skills that matter)

1

u/XLN_underwhelming 2d ago

A lot of the „x isn‘t hard“ conversation always seems to come from two areas.

People who never did the thing to begin with.

People who did it for so long that it wasn’t hard for them anymore.

Both of those people are on opposite ends of the experience bell curve and don‘t represent the vast majority of the people doing it.

1

u/Wonderful-Habit-139 2d ago

People who did it for so long that it wasn’t hard for them anymore

A lot of those people actually just forget how much they struggled with coding, and are so happy they got promoted out of a code intensive role.

1

u/ghostmastergeneral 2d ago

Right. I’m well-respected for this now, but I sucked ass for many years. I have also had numerous people ask for help learning and just give up because the toil of learning was more than they cared to deal with. You don’t have to be a genius to code but you have to be persistent because there is a big hump to get over.

2

u/Wonderful-Habit-139 1d ago

Persistence is definitely important in programming.

1

u/ghostmastergeneral 2d ago

Yeah totally. I think there’s also a specific band of intelligence where you are capable of discerning good code from bad. If you’re too dumb, you’re just scraping by and you’ll just never really get it. If you’re too smart, good code doesn’t matter, because your brain has a massive context window and it doesn’t matter if you just wrote a messy 200 line function that does like 16 different things because you still know what it’s all doing.

You have to be both smart enough to be able to see what will age well but too dumb to be able to just grok everything at a glance. Then, with enough years of work, you will be able to write code that even the dumbest among us will be able to work with easily after you’re no longer around. But even then you’ll still write plenty of slop.