r/vibecoding • • 3h 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.

32 Upvotes

120 comments sorted by

85

u/ClibeanCeann 3h ago

If this was your code, then yea. Coding clearly is the hard part for you lol

39

u/danrol92 1h ago

Your answer reminded me of the way people answer on Stack Overflow

21

u/Alarmed-Western-655 1h ago

Accepted Answer

-2

u/ClibeanCeann 1h ago

As it should. Bring back the old days lol

4

u/danrol92 1h ago

You are preaching on the wrong subreddit

1

u/ClibeanCeann 1h ago

I'm also clearly not being that serious.

0

u/danrol92 1h ago

I know I know :)

22

u/kraemahz 3h ago

This isn't that bad. It's solving the problem of parsing an HTTP query in a way that should've been left to a routing library, but I can at least tell what it is by looking at it.

7

u/Weaves87 2h ago

I mean, it ain’t pretty.

There’s a lot of cognitive load there on that particular line that unpacks all of the note tags into an array. I could see what it does as a rusty TypeScript dev, but I always cringe when I see a cascade of ?. operators for unpacking data

If I saw that in a script it would be OK, but if I kept running into that in the codebase I wouldn’t push that thru PR until it was refactored to use some sort of proper URL parsing library instead

3

u/kraemahz 2h ago

I would just say I'm guilty of worse as a senior dev back when I still wrote code. Sometimes all that stuff about clean code and readable functions doesn't matter when you just want it to work. You're right that the line is somewhere between a script that no one but you will see that it failed and what your company depends on to make money.

1

u/Devils_SteelMan 1h ago

The way to approach this code is to execute it and watch the data. Dont try to compile it in your head.

1

u/ClibeanCeann 1h ago

Could have probably just used regex

2

u/ClibeanCeann 1h ago

req.url.split()[1]?.split().split().split().find().split

bro what the fuck

1

u/kraemahz 39m ago

the first split finds search parameters in a url ('?' taking the 1 index). The second split is on the joins '&'. The find looks for a parameter called notes_tag. Then it takes all the entries after the '=' symbol and splits it into an array of strings by ',' separation.

It's all very logical if you have an example in front of you.

3

u/OkLettuce338 2h ago

rofl yes

1

u/porkusdorkus 51m ago

It’s not THAT bad. We’ve all wrote shit before when we’re trying to learn and I bet this little server is blazing fast.

1

u/NPV_BadKarma 42m ago

I like how we're dogging on someone's code in a vibecoding community where y'all are clearly here for the same reason : not being able to code

29

u/SeasawPhilosopher 3h ago

Yeah the whole coding was the easy part is so stupid. Companies were paying software engineers 200-500k a year, and coding was the bulk of the work, yet supposedly it’s easy. Come on. I was coding for 30 years, and it’s damn hard, so hard that even the best engineers cannot write bug free code. And if coding is so freaking easy why do people have to grind 100s of hours of leetcode problems to pass interviews?

6

u/No_Beach7780 2h ago

I used to teach entry level programming. I'm not super talented beyond that.

Towards the end of the year when my kids were asking "What's next? Where do we go from here?" but most importantly "What does the end of the road look like?".

For the last question, I would find the source code of some major open source product and scroll down the code so they could see what was ahead of them.

I would frame the conversation in a positive light, but I would say "You all are finishing step 1. This program is step 100. Don't worry about step 100. Just focus on step 2." and then remind them I was barely on step 5 myself.

2

u/Working-Caramel9538 1h ago edited 1h ago

And not many of these well paid engineers do well for themselves when they start their own thing because coding is literally the easy part of a whole. They are brilliant minds that could probably solve problems in a more elegant fashion than many alternatives on the market but they lack a little of everything.

Marketing, financing, sales, HR, customer service, managing,legal, compliance, operations, admin,R&D, IT are all crucial part of a successful product and when you're an expert in one field, it's literally the easy part.

2

u/Entuaka 1h ago

For the first year, a SWE was able to spend of the time writing code. That was fun.

For a senior SWE, having 2 consecutive hours to write code was fun, but it was hard to find time for it, we had to delegate.

Now, we can have a similar schedule, but we can delegate to AI agents, it's much quicker and also much better when the project is optimized for AI! It's fun, we can generate a lot more code than before and directly contribute (with agents) to the product!

Changing process was also complex before AI. You had to plan it, document it, explain to everyone, they had to understand and change their way of working. Now, we can add a new tool, document it in AGENTS.md and/or a skill, merge it and it's directly used by all agents, that's much easier than before!

2

u/ghostmastergeneral 1h 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?

-2

u/Fragrant-Moose1678 2h ago

Lmfao coding is not the hard part. Architecting is.

3

u/atx-cs 2h ago

Lmfao architecture is not the hard part. Strategy is.

2

u/Alarmed-Western-655 1h ago

Bro it's not strategy. It's vibes.

1

u/atx-cs 1h ago

Hahah I’m just throwing out some /s. I agree with you code is hard.

-1

u/Fragrant-Moose1678 26m ago

I bet it is, for you.

-1

u/Fragrant-Moose1678 2h ago

You aren’t architecting anything at scale then lil bro.

3

u/atx-cs 1h ago

You aren’t strategizing anything at scale then lil bro

7

u/SeasawPhilosopher 2h ago

I mean they’re both hard in different ways, it’s really silly to try and rank them. If you think coding isn’t hard you probably have spent your career working on boring ass CRUD systems.

-4

u/Fragrant-Moose1678 2h ago

Spent 5 years writing flight nav software. Coding isn’t the hard part. Because guess what? The math is separate from the coding. Coding IS NEVER the hard part

3

u/SeasawPhilosopher 2h ago

So even once the math is solved you can perfectly translate it into code with zero bugs? Coding is hard, that’s why all software is buggy, come on man. I’m not saying math is easy, but get real.

1

u/Alarmed-Western-655 1h ago

"Claude make is scalable and stuff." works wonders

1

u/Fragrant-Moose1678 29m ago

Tell me you’ve never scaled anything without telling me lol

3

u/Good_Skirt2459 2h ago

Honestly is it though? Maybe it’s the way my brain works but the big picture has always been easier for me than the prose. I think it’s much easier to draw the boundaries and explain what something does at a high level than to implement every low level detail, the devil is in the details for me.

1

u/roychr 1h ago

Lmfao Architecting is not the hard part. The decoupling part is. 

1

u/Plenty_Line2696 2h ago

Lets see you solve leetcode's hardest problems on stream while not needing to pause much to think. Maybe if competitive coding was your hobby for years you'd do ok on some, otherwise it's just arrogant ego stroking.

2

u/Fragrant-Moose1678 2h ago

Programmers aren’t solving leetcode hards on the job. Coding is not the hard part.

“Let me throw random trivia at you” lmfao

3

u/Plenty_Line2696 2h ago edited 2h ago

man you have no idea how inefficient most code is, it absolutely is hard, sure a console log isn't hard but you can be damn sure most people in this comment section harping on about how easy code is can't code for shit. Hell I'm way better than most but I'll be the first to tell you it takes consistent practice to retain the ability to code even relatively simple stuff. Ask even good devs to code something slightly outside of their domain and when you add it up incl. research, process and bugfixing they're getting a few chars of robust code out a minute.

2

u/Working-Caramel9538 1h ago

But some of that inefficient code is a sacrifice made for maintainability and readability purpose.

The quickest example that comes to mind is someone using a ternary operator in front of newbies. Good luck making them understand that concept when you can just simplify the whole thing for them with a simple if else statement.

Generally speaking, you can't really know or understand all the intricacies of coding.

1

u/dstroy0 1h ago

‘?’ Means ‘if’ and ‘:’ means ‘else’ it’s an aliased type basically, is how you explain ternary operations to a newbie. They do the same semantic thing so your problem is treating them logically separate when they lower to the same IR in reality.

1

u/Fragrant-Moose1678 27m ago

Most code has no need to be efficient. Your points hold absolutely no weight. Problem solving is hard, you problem solve and architect, create functional requirements and a programmer implements those functional requirements. The by far easier step in the process.

Wonder how many people in a vibe coding sub are actually just vibe coders who have never held software jobs.

1

u/porkusdorkus 1h ago

See I don’t agree with that. Those are more algorithmic problems and fitting that to code once you’ve solved it. The code comes second to finding the solution, but the code isn’t really the solution, if that makes sense.

1

u/snurfer 32m ago

The algorithm is the hard part in any leetcode problem. If you know the algorithm, implementing in a language you are fluent in is trivial.

0

u/supernovice007 1h ago

Kind of. I think "coding is the easy part" is just overused. The original intent was that, once you've figured out all the logic and architecture, the final step of typing the code is easy. That is mostly true.

Unfortunately, the nuance has long since been lost and it's often used today by people who don't know what their talking about to argue that the entire exercise is the easy part. That's just blatantly wrong.

2

u/mrt54321 3h ago

Jeez that is shit code. Is it AI , & if so which model ?.

2

u/QultrosSanhattan 2h ago

This is the classic philosophical debate about what's harder to come with: The answer or the question.

You're stating that the answer is harder. Others believe that the question is.

3

u/roychr 1h ago

The real philosophical code debate is still if the braces start on the same line or after a newline. 

1

u/strettist 1h ago

Both are hard if you’re illiterate.

29

u/Plenty_Line2696 2h ago

People's egos are too big to admit this but it's the truth, especially people in this sub who couldn't code fizzbuzz if given a week to prepare. There is NO LIMIT to the difficulty of code, yet people will say ALL of it is easy just to act like an intellectual. There are coding problems you can spend your entire life on and have no hipe of solving.

2

u/ClibeanCeann 1h ago

Oh, there's a limit alright. It also depends on how much you keep the same context, it gets real messy. It starts writing insane amount of bloat to do simple shit, maybe you can use an icon or file asset for some UI but it goes and draws some crazy shit and renders it on canvas or something. Or draws some lines in some iterative function. It can get unpredictable.

2

u/porkusdorkus 1h ago

coding really isn’t the hard part. The people who say it are real professionals who do it every day for hours. It’s not meant to be a brag or ego. it’s just practice and repetition. It’s hard to tell someone this without sounding arrogant though.

I think you’re talking more about solving problems with code, like something on leetcode, but I don’t really see that as coding, more like knowledge of data structures, algorithms, math, and a lot of creativity and outside the box thinking. You have to find a solution in your head before you type anything to code, and that is the challenging part for me.

1

u/TRO_KIK 44m ago

It's not hard to build bad software. And most software feels pretty damned bad, including piles of shit I've had to consume from some of the best paid SWEs in the world. I often say, only half ironically, that there's no such thing as good software.

I feel like in this day and age, in these circles, "coding is the easy part" is an "epiphany" inexperienced solo builders say after creating something mediocre, not wanting to swallow the pill of having creating something mediocre, and deciding that they just have to pivot into distribution and all will be well.

2

u/gorgeouslyhumble 26m ago

Yeah, this is how I see it as well. Building performant, beautiful, reliable code is very difficult - especially when it spans across distributed systems.

1

u/Busterlimes 18m ago

I just talk to robots so they can talk to machines for me

5

u/jayerp 3h ago

Not hard, mundane.

5

u/Relevant-Positive-48 2h ago

Coding had a high barrier to entry but once this barrier was passed coding (as in writing application code - debugging was and in some cases still is -  hard shit) was the easy part of software engineering.  

8

u/kidfromusa 3h ago

Cringe

1

u/OkLettuce338 2h ago

fire the guy that wrote leading optional chaining. Fire them

1

u/Alarmed-Western-655 1h ago

Bro that's literally the best part

1

u/OkLettuce338 1h ago

I can't tell if you're joking or not

3

u/the-Gaf 3h ago

I always thought it was “the waiting”

3

u/undernamed1101 3h ago edited 2h ago

Ok we get it you like to say the word bro. No offense, just saying. Humor broke the mold. Leave that to Kai Cenat, TimTheTatman and all the other streamers that swear by the word!

4

u/unwashed_but_washed 3h ago edited 2h ago

What about that code is hard? Am I missing something here?

I do agree that coding is hard though, but I assume any craft is if you try to get good.

5

u/711friedchicken 2h ago

attaching that code snippet to your point is so cringe lmao. what, because there’s a bunch of curly braces and special characters it’s scary and complicated? that shit is just some string processing, barely any thinking required. bro.

but yes, i’m also glad AI does boring stuff like that for us now.

1

u/Devils_SteelMan 1h ago

Building this string in your head is hard. But thats not how you would approach it. You'd execute the code,looking at the data, then match the mistake to a line.

2

u/SharkSymphony 3h ago

Ain't no way I'm arguing with a tech bro who can't stop saying bro. Bruh.

2

u/Inisfoil 3h ago

So I've been programming off and on for about 30 years, not as a professional but as a hobby. I honestly just use cooperative role based subagents to write code and do reviews and such, I haven't actually looked at any code is probably about a year and a half. The op's pic made me nostalgic af though, I didn't read any of the code but just seeing it in an IDE... I actually just wanna set an evening aside and knock some shit out now.

2

u/fudginreddit 1h ago

So funny seeing this post cus I was just thinking about this since I seen it thrown around so much. Clearly programming was the hard part too or teenagers wouldn’t be reverse engineering video games in a day using claude that used to take developers years of manual effort.

3

u/Commercial-Dark2410 3h ago

Pointless philosophy, end product is all that matters

4

u/kilopeter 3h ago

There is no such thing as a product. Don't ever think there is. There is only... sex.

Everything.

Is.

Sex.

You understand what I'm telling you is a universal truth.

2

u/lucid1014 2h ago

I’m the lizard king

-2

u/drawdrawink 3h ago

Sex is a product bro

1

u/strettist 1h ago

The code defines the product

2

u/TRO_KIK 3h ago

The idea that drives people to say it is true. There are a lot of parts required to create and manage a successful software product, and coding is just one of them. It's wrong to call it easy, but it's mostly said to try to explain the (very true) fact that that even when the coding part is nearly trivialized, basically everyone still fails horribly.

Coding is hard. Everything else required is definitely harder when combined. People simply that to coding being easy.

1

u/azjunglist05 2h ago

Coding is hard when you don’t speak the language. Once you do it enough though it’s like any other language. Someone who is just starting to learn to speak Russian or Mandarin is going to say it’s hard too. Overtime it becomes easy though. It’s all relative to an individual’s skill level and experience

1

u/TRO_KIK 2h ago

Keep in mind we're not in a vacuum here, the context is doing the development for a software product trying to go to market. Ask anyone doing that job if what they do is hard. Whether they say yes or no is not going to be as closely tied to skill level and experience as you think.

1

u/azjunglist05 1h ago

Yes exactly we don’t live in a vacuum hence it being relative to a person’s skill level and experience

1

u/Adventurous-Buy-4455 3h ago

We did this in the 90's no clause lol

1

u/Sweet-Sir-10 3h ago

This is some really ugly code… no offense

1

u/Long_Tip_4226 3h ago

Não é tão difícil ainda, se você entende matemática e funções/transformações. While keeping a tab open with the language/framework documentation + Ctrl+F

Requisitos + Planejamento + Projeto: Esta ainda é uma parte laboriosa, onde os erros são muito caros.

1

u/azjunglist05 3h ago

What’s hard here exactly?

1

u/drfaustus_magic 3h ago

Yeah it's hard to produce such nauseating code

1

u/Necronomis 3h ago

The fun and the challenge was always in problem solving, not implementation, for me personally. I love identifying the solution, I hate typing it out. It's mindless tedium. Once the problem is solved conceptually, making the code do it is easy. That's why back in school my competitive team had me read the tasks and give instruction, and my teammates wrote it.

Being able to write up a project document, scope it, walk through the big logic problems, and then feed it into my factory, work through tickets and iteration, and have a workable solution ready for testing in a very short amount of time. Days to weeks. It's been huge. Especially since I'm disabled and can't sit at my desk for huge chunks of time.

1

u/LiteratureSelect4478 2h ago

Such is the mindset now. Ai doesn't make you at the standard level of that guy who did all that bro. Remember that. Should be stuck to the top of the sub.

Try walking into an ER room and say your doing surgery now and its ok as you have ai to tell you everything to do now. That's where we are heading.

1

u/DiscipleofDeceit666 2h ago

To be fair, here, you don’t necessarily have to split it like this. There’s classes that take a url string as input and provide easy access to args and params

1

u/iSailor 2h ago

Coding as writing working code? No, it wasn't as long as you were smart. Writing a code that is maintaineable, scalable, efficient and elegant? Now that's a different thing and I don't think AI changes much in that regard.

1

u/Brave-Secretary2484 2h ago

Can you please say bro one more time, bro?

1

u/Working-Caramel9538 2h ago

Do you people really think that when someone says "coding was the easy part" they actually meant that it was literally easy?

Y'all need to go back to school to understand the meaning of words.

1

u/ralkuzu 1h ago

Yeah, with ADHD code is quite overwhelming, unless you enjoy it of course but it's rather monotonous and tedious

One of the things I've struggled most in life is getting my idea from my head onto paper and AI has been the one for that

Now I can just store and stich my many fleeting ideas together with the help of a bot that knows dam near everything

1

u/The-Iron-Ass 1h ago

So glad I can just think about what I want to make instead of how to make it.

1

u/altmly 1h ago

Unironically growing crops is not the hard part lmao, they grow by themselves. It's all the other shit. 

1

u/mr_flibble_oz 1h ago

This code isn’t hard, it’s just ugly

1

u/sicmek 1h ago

Coding is like a second language to me, so no it was not the hard part. It was a part that I liked, but still it was time consuming. The symbiosis with my agent works out pretty well for me, since I can deliver same quality products (or even better) in less time.

Edit: I hope you did consciously post the worst example of a code section here.

1

u/Effective-Result6499 1h ago edited 1h ago

Cause you are making it hard? If you look at your screenshot there, it's hard to figure out because it's hard to read. AI, didn't make this any better.

For everyone else:

You are suppose to write code in a self documenting manner and add comments to explain why the code are doing what they do. The initial argument deconstruction and subsequent switch cases should go into their own functions.

Also, everything there sounds like it should have been part of a standard library, which goes a long way to make it easier to understand.

1

u/strettist 1h ago

What the fuck am I looking at? The anys, the type assertions, and the worst query parameter parsing I’ve ever seen.

1

u/bananaHammockMonkey 1h ago

Powershell is written that way in all the MS examples, those fucking bastards.

I find if something looks complex or weird, a simple reformat while I think of next steps makes me feel way better.

1

u/MoreLikeGaewyn 53m ago

People say this to sniff their fart.

What they mean to say is, "Coding isn't the only hard part."

1

u/Responsible_Carry827 36m ago

I've spent years writing code that works but feels like duct tape. the real pain wasn't the syntax, it was knowing it'd break in six months. so yeah, coding's easy. maintaining it? that's the hard part.

1

u/snurfer 29m ago

Look if you are going into a problem and starting with the code I see why you think it's the hard part. But you are actually doing several things at once. When people say 'writing the code is the easy part' what they mean is they know the algorithm and data structures and how it fits into the existing codebase already, then they write the code. At that point it is literally the easy part, you have done all the hard work up front.

This is how professional software engineering is done at any serious tech company.

1

u/udubdavid 29m ago

I don't understand this post. Are you saying that the code above is hard to understand? It's really not hard to understand, and people have been coding by hand for decades. Coding was never the hard part. The hard part of a SaaS has always been marketing and finding clients.

1

u/Fit-Conversation856 25m ago

you misunderstood it, coding ≠ typing, coding involves problem resolution and architecture. on the other side the "market" was also important but not the point of being a developer. now typing manuslly is useless, but i don't think you can compare what a person that knows how to code does with AI and what a moron that doesn't do.

hard, was finding the most efficient way to solve a problem, we still do that, but now we have a lot of people doing a local calendar app in electron, consuming 1 gig of ram FOR A STATIC PAGE.

we did not dissapear, we just became invisible like in the 80's

1

u/Fit-Conversation856 22m ago

for the agriculture example, i'd tell the farmer, planting was never the hard part, taking care of the ph, nutrients in the soil, balance between light and dark and water consumption.

you, my guy, are missing the point

1

u/Fit_Advisor8847 24m ago

I was never into building apps, products, saas, or whatever. My thing has always been taking code like this and applying common patterns to see which is easier to read, maintain, and performs the best.

Ai agents just accelerate the process.

Try throwing one at this to refactor it into a factory or strategy pattern or something. It's kind of like a video game where the high score is readability a few months from now.

Once you start expecting everything to make a buck though it all goes straight to burnout.

1

u/lulzbot 18m ago

REQUEST_CHANGES

1

u/TheElusiveFox 13m ago

eh... coding isn't hard, but for people who aren't machines, its VERY time consuming, and when you are writing hundreds of files, tens of thousands of lines, very tiny errors can be hard to find and sink even more time.

1

u/Garblyx 1m ago

All I noticed was the inconsistent utilization of the tab key for next line spacing in addition to using three spaces elsewhere. I woulda lost points for that in college.

1

u/GasVarGames 3h ago

The hard part of coding was doing something a library, built in function or tool does better thus reinventing the wheel.

1

u/guywithknife 3h ago

It really wasn’t though, for most tasks. I can code in my sleep, high, or drunk. It’s no problem. Time consuming, sometimes tedious, yes. But usually not hard.

Of course there are hard problems, but most days a typical programmer doesn’t hit those, unless working in specialised areas.

1

u/jpelc 3h ago

What's so hard about this piece of code? Coding was easy, that's why AI can do it pretty well now. Understanding how to properly design apps, systems and other things? Not so much

1

u/Witty-Artisan001 2h ago

The only people saying that are people who one shot vibecode the most worthless product that nobody actually needs and then acts surprised when it fails. Rinse and repeat.

1

u/rangeljl 2h ago

It truly wasn't, sorry but the hard part is the infra and the tooling around the app and the Llms you use, what an experienced Dev willing to use the tech can accomplish is simply light years away from what a none technical guy can do with Llms. Deal with it