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.

395 Upvotes

747 comments sorted by

203

u/ClibeanCeann 3d ago edited 2d ago • Bravo Mindblown Popcorn

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

Edit: Just for the silly billys in the comments who claim to be coding genuises, properly parsing URLs is best done like this:

const request_param_note_tags =
    new URL(req.url, 'http://example.com')
        .searchParams
        .get('note_tag')
        ?.split(',')
    ?? [];

If you want it in a one liner:

const request_param_note_tags: string[] = new URL(req.url, 'http://example.com').searchParams.get('note_tag')?.split(',') ?? [];

143

u/danrol92 3d ago • Heartwarming

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

60

u/Alarmed-Western-655 3d ago

Accepted Answer

6

u/naut___ 2d ago

Used to answer*

11

u/kabinja 3d ago

The problem is still the same. A bunch of incapable people come to a field they do not belong in. They could be lawyers today by the same token. So the shit they used to produce before will just be the same shit after, just faster. This is why people say what they are saying. If you cannot design a system, the AI will not do it for you for the simple reasons that it does not know all the subtleties of the context you are in.

→ More replies (3)
→ More replies (4)

37

u/kraemahz 3d 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.

11

u/NerdyMcNerderson 3d ago edited 3d ago

I beg to disagree. I assume this is the built in node http server and there are bugs in this code. Here's a free code review on what I can see in this snippet alone:

First off, the type definitions are lying to you. If the URL doesn't include a query param section or if it doesn't include one that includes the string note_tag then req_params_note_tags is undefined, not a string array. This will throw an error if something tries to access that variable assuming it's an array. EDIT: Forgot to mention, the fix here is to end your chain with a ?? [] so that if the long optional chain returns undefined, at least we honor the type contract we stated above but it's a moot point because you shouldn't be writing it like that anyway.

Second off the parsing isn't even correct. Note that they're using .includes('note_tag') so this will match query params such as "my_note_tag" or "your_note_tag" or "hey_note_tag_whats_up".

Third this doesn't handle string that are url encoded/decoded. If a valid note_tag query param can have a space or any special characters, those get URL encoded and will likely mess up the lookup function down the line (i.e. ?note_tag=work%20todo will keep the %20 as a string value and not convert it back to a space.

Minor edge case ?note_tag= will parse as [''] when you probably want it to be [].

OP absolutely should replace this line with something more robust. Without any extra dependencies:

const url = new URL(req.url ?? '/', 'http://localhost');
const noteTags = url.searchParams.get('note_tag')?.split(',').filter(Boolean) ?? [];

And this second line only assumes note_tag can have multiple values. If not this will suffice:

const noteTag = url.searchParams.get('note_tag'); // 'work' or null

No import required. It's the same old URL object that browsers have access to.

And lastly the fs.readFile call doesn't handle errors, 404's etc. Even if the read fails, it's going to send a 200 OK.

I mean I'm sure AI could have told you these things if you pointed it at the snippet but these are just my observations as a software engineer (assuming you kept this code and didn't immediately improve it after noticing how bad it was).

→ More replies (7)

8

u/Weaves87 3d 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

→ More replies (3)
→ More replies (10)

2

u/New-Locksmith-126 2d ago

thank God these people are using AI now

→ More replies (2)

2

u/howreudoin 2d ago

Also, just look at that code. It‘s total garbage. For one, it could use some line breaks and some local variables. Moreover, it uses explicit any!

Functionality-wise, that code is not hard to write. It is pretty straightforward in fact. It’s just that it takes a lot longer without AI.

I agree that "coding" isn’t easy. But if people fail to recognize how this code is not in perfect shape, it comes as no surprise that to them coding is extremely difficult.

→ More replies (27)

230

u/Plenty_Line2696 3d ago • Bravo

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.

64

u/porkusdorkus 3d ago • Bravo

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.

3

u/Ok_Version_5738 2d ago

The hard part is not the syntax. What's really difficult to learn is to understand the whole concept and architecture. You need to know how different operators, data types, etc work under the hood and how to use them to accomplish your goal. You need to understand the architecture to disassemble your idea into small parts which work together. And there is so much more. That's the hard part. 

1

u/Alarmed-Western-655 1d ago

It sounds like you're playing Taboo. The word you're describing is "coding".

→ More replies (12)

32

u/TRO_KIK 3d 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.

→ More replies (25)

5

u/Falconloft 2d ago

So in other words, coding is hard.

3

u/Covfefe-Drinker 2d ago

Coding absolutely can be the hard part especially if you're writing clean, modular, and maintainable software.

→ More replies (33)

8

u/flatfisher 3d ago

Coding problems are cute but this is not what the professional software industry is about. The vast majority of the code is CRUD, back end plumbing and web UI, and it is easy but cumbersome. The screenshot OP posted is a good example, there is nothing sophisticated once you’ve practiced a bit. And when it is like with React the complexity is accidental, and few developers enjoy it anyway. What is too big to admit is that the job was about handling Jira tickets and writing boring corporate code. I remember Reddit before AI and how professional developers complained about it.

→ More replies (14)

9

u/thearctican 2d ago

I think "easy" is used incorrectly, and "frictionless" should replace it.

But also, it isn't hard to translate ideas into code if you're comfortable with the language.

→ More replies (1)

14

u/polysaas 2d ago

Coding isn’t hard. Proper coding is hard.

→ More replies (3)

7

u/SagansCandle 2d ago edited 2d ago

I've been a software engineer for 30 years, and I say all the time, I'm not a developer, I'm a problem solver - code's just my preferred tool for solving problems.

At some point you become as fluent with a programming language as you do with spoken language. You have to make a lot of decisions when you write code, decisions that are largely based on experience: can I return a null? Do I cache the results or stream them back? Should I use pagination? Should the invocation be eager or lazy?

These decisions determine how hard the code is to maintain. As an application matures, the code should become simpler and easier to understand over time. AI is the opposite - complexity grows as the codebase does until it becomes unmaintainable.

There's a difference between memorizing something and understanding it - AI is what happens when you memorize without understanding, and we're at least one major breakthrough from AI comprehension. It could be 3 years or 30, but we're not going to get there by iterating or scaling up the current approach.

3

u/fynn34 2d ago

I interview a lot of people for engineering roles, and it’s surprising how many people with a decade of experience can’t do a very simple coding excercise. We aren’t even one of those shops that try to stump people or do hard problems, it’s just like… do you know basic data types and have the ability to iterate through items in an array. And people with a decade of experience won’t know how to work with an array, object, dictionary, etc… and we let them pick their fav language, we are about as lenient as it gets

→ More replies (1)
→ More replies (33)

59

u/SeasawPhilosopher 3d 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?

4

u/Mestyo 2d ago

Would a novelist say that "English is the hard part of being an author"?

If you have written code for 30 years, then surely you are aware that there is significantly more to being a programmer than just writing code. "The hard part" of the job is almost always planning, rollout, communication, and how those things relate back to the code.

Of course there are exceptions, but the vast majority of software is genuinely not difficult to write.

→ More replies (10)

11

u/vikingwhiteguy 3d ago

It's both hard and easy. Probably 90% of the code in the world isn't complicated. It's mostly get thing from a field, pass it along to a service, fiddle with it a bit, shove it in a database. Get thing from database, pass it to a service, fiddle with it, shove it on a page. 

The hard part is when you've got your beautiful system that gets a client and efficiently retrieves a list of all their subscriptions... And then your PM says "hey instead of getting subs by client, we ACTUALLY want to get all the subscriptions and list all the clients by sub. and we need it for release by friday". 

Now you need to invert all your queries, rewrite the service, redo the page, and most of the tests you wrote are probably useless. 

Designing a system that is resilient to what it's supposed to do, does it efficiently, and flexible to accommodate rapidly changing requirements.. that's the hard part, both with and without an LLM. 

→ More replies (7)

13

u/No_Beach7780 3d 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.

7

u/meow-thai 3d ago

I'm going to disagree here, and to contextualize this I'm an engineer with 20 years in the field. In my experience, coding is definitely not the hard part. Architecture, patterns, structure, teamwork, deadlines, and engineering realities are almost always harder.

Code is the hard part when you're interacting with poorly written and poorly documented code. It's the hard part when reasonable architecture and patterns aren't used. But at that point, the coding isn't the hard part anymore. The hard part is effectively dealing with people that don't really know what they're doing.

Frankly, a lot of the AI generated code I've seen is far better than a lot of the human written code I've interacted with professionally. And honestly, engineers aren't getting paid 200k+ a year to mostly code and if it's the bulk of the work you're likely doing something wrong.

→ More replies (3)

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?

→ More replies (16)

2

u/hike_me 2d ago

The hard part is knowing the right way to solve a problem, not translating that to a specific programming language

3

u/SeasawPhilosopher 2d ago

Sure but you do not solve the problem in a vacuum, you are using the abstractions provided by programming languages during this process when envisioning the solution, even if you’re working it out in your head. So as far am I’m concerned that is part of the coding process. Sure l, if you say coding is literally just sitting down to type out what you envisioned then yes, I’d agree that’s an easy translational task.

→ More replies (20)

3

u/Meiyo33 3d ago

people paid 200-500K was not about a if else, but what to build with it, so not the code itself...

Either you dont know the field, or you never worked on a real life non trivial project.

3

u/Disastrous_Shock8305 2d ago

They're paying engineers to solve problems with code, not to write code, lol.

→ More replies (9)
→ More replies (87)

6

u/mrt54321 3d ago

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

2

u/Appropriate-Coast692 3d ago

I think people misunderstand the nature of coding. Especially those that do not code. It is incorrectly equated to typing in a foreign language and that is a deep misunderstanding of what programming means.

It is only partly about syntax... The real challenge is translating ambiguity into a formal, non-ambiguous language system. And making the result readable, fault-free, robust, fast enough to execute, testable, etc.

That means making decisions about what a specification is supposed to mean. LLM can make those decisions, but it is filling them with the statistically most likely answer. This is not wrong by definition, but it can be catastrophically wrong.

Learning to program is not about learning a language's syntax and library, it is about learning to think about unambiguous logic in a formal system. This is why learning a second or third programming language is easier: now you just need to learn the syntax and the library.

There is no limit to programming difficulty

6

u/Fit-Conversation856 3d 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/argentao 1d ago

That’s not coding. That is the engineering part.
Coding == programming == typing

1

u/Alarmed-Western-655 1d ago

your comment == typing

→ More replies (22)

3

u/QultrosSanhattan 3d 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.

6

u/roychr 3d ago

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

→ More replies (2)

3

u/strettist 3d ago

Both are hard if you’re illiterate.

→ More replies (2)

17

u/ihamid 3d ago

If coding wasn't the hard part where were all these "software engineers" two years ago?

→ More replies (11)

5

u/theRandyRhombus 2d ago

I feel like I'm watching a civilization forget how to plant crops. This is fucking nothing. An entry level software role fresh out of college would be expected to be able to tell you not just what this does, but give examples of edge cases that would break it. This is like saying mother goose nursery rhymes are high level reading because they're written in language you never learned. You don't even know you're a single semester away from being able to read it.

8

u/PropertyRemote2332 3d ago

If my agent generated code that looks like that I would scream an all caps profanity novel at it.

4

u/DarlingDaddysMilkers 3d ago

WTF FUCK IS THAT NONSENSE IT’S FUCKING GARBAGE. “You’re absolutely right to point that out, I’m leaking abstractions. That’s on me”

→ More replies (1)

1

u/OkLettuce338 3d ago

fire the guy that wrote leading optional chaining. Fire them

1

u/Alarmed-Western-655 3d ago

Bro that's literally the best part

→ More replies (1)

1

u/MafiaMan456 3d ago

People act like before LLMs we were writing code by pecking at a typewriter into notepad by candlelight.

No, we have/had powerful IDEs and whole suites of intellisense tools to the point where the code was basically already writing itself once you understood the application or system architecture. I’d liken it to semi-automatic weapons vs today’s fully automatic weapons.

Coding is not the hard part. Never was, still isn’t.

→ More replies (5)

1

u/Immediate_Bed_649 1d ago

Designing software is the hard part. You dont just blindly code and hope for the best.

Its like nailing bits of wood together and saying "building was supposed to be hard"

1

u/Alarmed-Western-655 1d ago

Bro tell the author the plot is the hard part but not the prose. Both are writing, both are hard bruv

1

u/shamshuipopo 1d ago

This is embarrassing

1

u/Alarmed-Western-655 1d ago

I know right I had to call them out

1

u/shamshuipopo 1d ago

I mean that you think that hacked together server is hard

1

u/Alarmed-Western-655 21h ago

Got it, yeah it does go hard

6

u/sweetbutterfacepoop 2d ago

The one I hate the most: "Software development was never about writing code"

4

u/ajeeb_gandu 2d ago

That's kinda true isn't it? Designing a system matters more because you can pick almost any language for starters and write a good enough code. But if you don't understand how the systems would work you can't scale it or maintain the codebase

→ More replies (9)

3

u/fbpw131 2d ago edited 2d ago

it's probably subjective, but after 17 years, the code is simple and it stop being an issue, just a limitation perhaps. landing the correct and minimal abstraction to keep sanity and performance in check, planning the system, minimizing gaps and covering edge cases, and many other abstract concepts are the real grind for me.

I typically dislike metaphors, but ex: speaking English isn't particularly hard, writing a novel is.

so for me the difficulty/effort is not about the code, although I love writing it.

→ More replies (13)
→ More replies (12)

8

u/unwashed_but_washed 3d ago edited 3d 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.

13

u/711friedchicken 3d 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.

3

u/CantinaBlend 3d ago

Coding was not boring, i fully embrace ai in software development now, but i do miss the focus it required to build complex software.

→ More replies (1)

5

u/jayerp 3d ago

Not hard, mundane.

2

u/Adventurous-Buy-4455 3d ago edited 2d ago

We did this in the 90's no claude lol

2

u/Sweet-Sir-10 3d ago

This is some really ugly code… no offense

2

u/SharkSymphony 3d ago

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

2

u/azjunglist05 3d ago

What’s hard here exactly?

2

u/drfaustus_magic 3d ago

Yeah it's hard to produce such nauseating code

2

u/Inisfoil 3d 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/iSailor 3d 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.

2

u/bananaHammockMonkey 3d 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.

2

u/lilcode-x 3d ago

Of course. Coding was hard af, that’s why there was so much demand for it and salaries were high. It really felt like you had to be a little crazy or autistic to actually love programming.

2

u/Admirable-Way2687 2d ago

I partially agree. I started programming before AI. I remember hours and hours to find out why I have this error or understand code like this on the screen. But now I don't have to do this shit, and I like it. But also I would like to write more code, but with Claude it is pointless; I do it only for, like, my own projects and etc.

2

u/r0bc94 2d ago

Why did the Ai write the URL Parser itself? Isn’t there a build in url parser or somethingike this? This way, the code of cause looks very complex as the ai decided to implement basic parts themself.

2

u/teilo-560 1d ago

It was certainly my favorite part... :(

4

u/TRO_KIK 3d 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.

→ More replies (6)

4

u/Relevant-Positive-48 3d 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.  

4

u/olzk 3d ago edited 3d ago

No it wasn't. If you still think so, and write code the way it's on the picture, you need to write quite a bit more of it to get the idea. There's a wholle bunch more work you do as an engineer, apart from writing letters in specialized languages. This is not to say coding is bad and trivial, quite the opposite, actually: writing code is a self-replicating mechanism of knowledge retrieval which is the most important part of an engineer's work. That's why the state of the industry in 2026 is such that too many people seem to have lost their motivation in software engineering: they have been stripped off of the tool that's crucial to maintaining their proficience.

Also, I didn't say work. The market is worse than crap. It was crap back in 2008 when the crisis hit. Today market is worse than that.

3

u/snurfer 3d 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.

2

u/the-Gaf 3d ago

I always thought it was “the waiting”

2

u/undernamed1101 3d ago edited 3d 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!

2

u/Working-Caramel9538 3d 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.

2

u/Commercial-Dark2410 3d ago

Pointless philosophy, end product is all that matters

3

u/strettist 3d ago

The code defines the product

→ More replies (4)

2

u/udubdavid 3d 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.

2

u/ChrisAbra 1d ago

The only part that's hard to understand is why anyone would roll this logic themselves...

2

u/rangeljl 3d 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 

1

u/Long_Tip_4226 3d 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/Necronomis 3d 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 3d 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 3d 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

→ More replies (1)

1

u/Brave-Secretary2484 3d ago

Can you please say bro one more time, bro?

1

u/ralkuzu 3d 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/altmly 3d 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 3d ago

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

1

u/sicmek 3d 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 3d ago edited 3d 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 3d 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/Material-Database-24 3d ago

95% of money making SW is simple. It is not hard, if you have learned the skill.

What is actually hard:

  1. avoiding pitfalls of big code base maintenance hell - you can easily build working first version, and then a need for change comes, and instead of 0.01% rewrite and testing, you hit 10-50% rewrite and testing
  2. the goal is extremely hard to define - most coding is done for a customer, either external or internal. They are really really bad at telling what they actually want, and coders are really really bad understanding what others want. As a result, a lot of iterations are needed and why agile methods were adopted.
  3. now see points 1 and 2.

Then there's other things like in long projects the computer world progresses fast, so you need constant updating to stay relevant. Consider this to 1) and 2) too.

Coding at the end is for most parts the easy part.

Then there is 5% of the code in world that hit the hard sectore - kernels, drivers, graphics, signal processing, real time, parallelization etc. These are harder, and not suitable for everyone. But these are also code that is far less frequently needed, and in most cases used via some interface - operating system, framework, driver..

1

u/MonadicKierkegaard 3d ago

that there is bahhd code

1

u/hbthegreat 3d ago

"coding was never the hard part" -> posts trivial to understand example. If you want to make this point at least find an example that supports your point. I do somewhat agree with your point anyway but this isn't it.

1

u/Tarilis 3d ago

If i saw this code in one of my MRs i would tell you to delete this shit and start again.

1

u/WeWereHappy 3d ago

The only difficulty coming from code was when we had to use large codebases made by someone else.

Ok, maybe when you had to manage stuffs like memory availability, adresses or complexe variable types with low level language without any external library.... Yes maybe.

But how many of us where doing such kind of things?

1

u/AverageFoxNewsViewer 3d ago

lol. This isn't that complicated, and I doubt a farmer would consider growing crops to be the toughest part of running a farm.

They're struggling more with how to manage their business in the face of rising fertilizer costs and $7/gallon diesel.

1

u/NomaTyx 3d ago

my brother. my homie. do you truly think the proportion of apps that have achieved monetary success has increased?

1

u/bok123456 3d ago

Having looked at this discussion it becomes evident that OP is absolutely right: Coding is hard. A bunch of seemingly knowledgable humans cant agree how good or bad this code is.

1

u/Ok-Worry-6688 3d ago

wtf is that code

1

u/heavy-minium 3d ago

But it's true. Why do you think it's the most enjoyable procedure in the whole lifecycle? Why are we eager to overengineer and do overtime when it comes to coding but not other tasks?

Also yiu're not being fair about your lost of other activities. Seriously. It's that all you can think of with a software development lifecycle? Maybe yiu're accustomed to have many departments assisting, but I can assure you the list of work for a fullstack that does infra, ci/cd, be and fe is a damn lot.

1

u/Alzucard 3d ago

Well coding itself wasnt the hard part it was knowledge.

1

u/RemarkableWish2508 3d ago

Imagine using an interpreted language dialect with A TON of syntactic sugar, as an example of how "hard" it is to code.

Try Perl... 🙄

1

u/WowSoHuTao 3d ago

coding was never a bottleneck - shitty addition of shitty features are NOT required

1

u/YamroZ 3d ago

You can tell it was easy, because machines can do it.

Now coding WELL, and something useful that people want - that is different story altogether.

1

u/tanjonaJulien 3d ago

This piece of code took me a min to understand, and it . whitelisting URL is good practice!

1

u/Devel93 3d ago

😂😂😂😂😂 Wait you are serious 🤣🤣🤣🤣🤣

1

u/Superb-Substance-679 3d ago

Lol someone is butthurt. Thank god for AI praise be the Lord! I no longer have to read PEOPLE'S shit code which is 300% shittier than the AI's.

1

u/stereoplegic 3d ago

Finding someone actually willing to talk to people, before you waste your time/tokens/whatever building something nobody wants, is still the hard part.

1

u/Samurai-Washitsu999 3d ago

It never was the hard part, but the most agonizing-time-consuming part, at least for me. With Claude I can now focus on design and architecture rather than writing code. I still believe that writing skill and code readability is a must even if you can simply have an AI audit your code, and I always suggest to get at least comfortable with a programming language, but still. Programming languages evolves, from assembly to C to python and now to prompting an AI in your native language which is awesome.

The hardest part is getting noticed with your creation, always has been.

1

u/povlhp 3d ago

Coding was always the easy part. Getting a viable idea and figuring out how to implement things was the hard part. And getting customer.

Actual coding based on a spec is easy. Debugging is the hard part of coding.

1

u/SethEllis 3d ago

I feel like everyone is dancing around it when it should really be said more plainly. This is not difficult code OP. It is just formatted / structured really poorly.

1

u/Meiyo33 3d ago

Yeah if you are a todolist level app, maybe coding is the hardest.

In real world for real non trivial project, very little surface of your code is hard.

Your screenshot is not an example of hard code, so maybe the code isnt the issue here.

And yes, crops growing isnt the hard part as they do it alone. Everything else you do to support this growing is the hard part... It's similar to code exactly.

1

u/PerfectSituation1668 3d ago

So you're saying that using the tools to build the house is the hardest part.

1

u/Achereto 3d ago

Coding never was the hard part, but many people made it harder for themselves by organizing their code poorly. Many (including me) added extra difficulty by choosing to write Object-Oriented code.

1

u/Aishou_SK 3d ago edited 3d ago

System architecture and UI/UX remain the hard parts for me - always have. I can whip up a basic functional UI, but making something look good - i'm trash.

System architecture is just a problem AI can't really solve yet, and REALLY needs heavy handed guidance to get right or you're left with an unscalable mess.

It's just how it is so far - especially in things like firmware development, game server backends, and emulation development (all things i'm well versed in) that all scale in wildly different ways depending on scenario.

A "make me abc with xyz doing 123" 99.9% of the time won't scale from a handful of users unless you're really, harshly pressing in deep architecture knowledge. That hasn't changed a bit since 2017.

AI has greatly improved since the first transformer-attention architectures of 2017 (and the first AI tooling I started using way over 20 years ago) but it's still not there in a lot of important parts that require understanding to push it in the right way (or eyeball spot one-line optimizations that speed up the emulated CPU core that's utilizing two host cores as a backend by breaking a lock and solving a concurrency issue that shouldn't have existed in the first place)

1

u/CompellingProtagonis 3d ago

...this is a simple text parser. You are discovering why people go to school for this for years and spend years becoming familiar with writing code.

It's a language. You wouldn't say Chinese is hard to a native mandarin speaker, you wouldn't say English is hard to a native english speaker. But learning both are fucking hard. Learning how to code is fucking hard. That is exactly what you are experiencing right now

However, once you learn the language, using it is not hard. The hard part is the problem you are trying to solve with the language, not the language.

You have two options here: you can retreat into a bubble and say "no you're just [insert insulting generalization]" or you can try to recognize that you are contending with the difficult part of learning how to code that all qualified engineers have gone through.

Every engineer who says coding is not the hard part is not lying, but if they are honest with you, when you ask them if learning it was hard, they will say fuck yes it was.

I spent 3 years beating my head against the wall before I started to finally "get it", and I'm still improving every day, now over a decade after those first "aha!" moments.

You will see, if you keep with it, and actually try to understand what is going on, that in a year or two years you'll look back at this and say "oh I guess it wasn't that bad, huh?" But instead you'll replace it with much harder things.

1

u/unholy_spear 3d ago

This isnt hard at all though, try C++ pointer fuckery or massive templates, if this is hard for you i got bad news

1

u/AistoB 3d ago edited 3d ago

I’m a bit older than most here I’d bet, but before AI I considered myself a “coder” but nowhere near a SWE, and I’ve done it professionally for many years. People with my skill set are very much replaceable by anyone with a subscription in the technical sense. It’s the human interface part that keeps me employed, for now.

1

u/hondacivic1996 3d ago

Nothing in this code snippiet you attached is even remotely "complicated"?

I disagree, any half-decent SWE has no problem with syntax. The difficult part is and has always been constructing the logic and building it within an existing system architecture. Most of this still has to be done by humans, LLM's can help write the code faster.

1

u/YakubReddit 3d ago

Tell the farmer growing crops was never the hard part.

You clearly haven't experience agriculturals, haven't you? Inb4 yes, my family is experienced in farming
Just learn how to read code. I hate javascript but even I can read that and understand

1

u/Ok_Fish2838 3d ago

First of all, Coding is easier than farming any day. It also depends on the type of programs you make.

Something like systems programming with manual memory management is harder than making crud web apps which is what majority of the programmers do.

So saying majority of programming is easy isn't a far stretch most of it is plumbing for data to travel from one layer to the next. Like from controller to server to repository.

If writing code like an average programmer was actually that difficult to do, no way ai could have replicated it so well.

Now thinking in architecture, response times, security, meeting deadlines, allocating resources etc. thats a different question.

1

u/Individual_Author956 3d ago

Everything is hard if you’ve never done it before, including critical thinking, so I’ll give you a pass

1

u/Professional-Bid6658 3d ago

The includes('note_tag=') check matches any value that happens to contain that string. Wrong param, no error.

1

u/kaba40k 3d ago

It was tedious, not hard.

1

u/APIuserNYSE 3d ago

You should take this code and tell Claude to optimize it and increase readability and it shall add comments: Esp you will need those, since according to your claim you sound like a non-techy/non-developer and in 6 month you wont have a clue what the code is doing.

1

u/awesomeusername2w 3d ago

Coding is not the hard part cos junior and even interns could code. Knowing what to do, how to approach problems, what code should be where is the thing that separates juniors and seniors.

1

u/IslayProgrammes 3d ago

Unless you’re doing something novel, it’s not hard.
At the end of the day all you’re doing is gluing together things much smarter people have already figured out

1

u/wallermadev 3d ago

Lmao....this is basic

1

u/emascars 3d ago

Saying that coding actually was the hard part, is like saying that standing on the board is actually the hard part of skating...

It is true, that's the hard part... when you have no experience in that field... But on the other hand, nobody expectes you to do kick flips or an axel when you start skating...

Although, for anybody into that field, standing on the board ain't hard at all... They got so used to it that is second nature to them... So they're also right to say that the axel is the hard part, cause lots of people skate, but only pros pull of a triple axel consistently

Hope I rendered the idea...

P.S.: don't brigate me with stuff like "oh Claude Code can do that too" or "AI is better at that as well" cause that has nothing to do with what I said, stay on the topic

1

u/GisaNight 3d ago

To be brutally honest, coding seems hard but once you do it long enough it sort of just is a language... It's just like learning other languages, including how you can easily pick up similar coding languages. AI just makes it so we use natural languages instead. But for those who still have the skill it is best to still verify and personally I don't let the AI fully write codes all by itself, I still manage what it writes by letting it write portions and then I do the correct inferencing between other parts of the overall system.

Programmers really don't need to know how to code as much as it is know the systems they need for the program and that is the harder part. Legit, that is the hard part of programming. Not making the lines, but figuring out what the hell you need to do first before you program it... The amount of times I have grabbed just a whiteboard to figure something out before even touching the computer is countless. Still to this day I do that.

1

u/rspy24 3d ago

I don't want to sound like an asshole, but those 500 people in your example were just lazy then. The info was always out there. I mean, I learned to code when I was 8, using a fucking weekly magazine and a literal toy laptop with BASIC.

​As an adult, programming was never hard either, just SLOW. SO PAINFULLY SLOW. With AI in my workflow now, I still follow the exact same process I always did, except now I don't have to argue with annoying people on Stack Overflow anymore.

1

u/FromBiotoDev 3d ago

Now it's less hard, systems thinking becomes the hard part.

Less cognitive load on coding, will let us create even more complex architecture, which is literally how it's gone every time we've made a higher level language hence why systems used to be super simple compared to the unfamothable systems of today

1

u/BlueAndYellowTowels 3d ago

Coding is not the hard part. The hard is part is solving scale… which most vibe coders have no clue about because vibe coded applications have never been popular enough to require thinking about the problem of being too popular.

So, yeah. Coding is the “hard part” when you’re brand new to the discipline. But when you’ve been in it a while, coding really isn’t the hard…

1

u/davidbasil 3d ago

Getting a software job and maintaining it was/is the hardest part.

1

u/Relevant_Helicopter6 3d ago

I wouldn't say "hard" but cumbersome, a cumbersome boring job, the kind of job that's ripe for automation.

1

u/IllustriousSize7429 3d ago

what is exactly hard in code you provided?

1

u/TV4ELP 3d ago

Was was never the hard part. Understanding the code was and still is. Do you understand whats happening in this screenshot?

If not, then your app will not scale, it will have sever security issues and it will fall apart.

We make deliberate design/architecture choices because we know more than the AI does. Which sounds weird, but we can assume things the AI can't. Half of my day job nowadays is prompting AI. Half of those prompts are giving it clues on data and behavior it cannot in a million years infer from the code or database it has access too.

If you don't have that data and supply it, then your vibecoded app will always be vibecoded and noticeably so.

1

u/Wide_Air_3707 3d ago

People have different perspectives on what coding even means. For some it's only typing, for others it includes decision making up to higher abstractions. This makes these types of conversations kind of pointless.

In the end, the only thing that matters is to learn and understand. The actual hard part of everything.

1

u/Independent_Look_607 3d ago

Lol, the coding was the hard part only if you are a bad software engineer.

If you are a good one coding was/is literally the last easiest step after you designed and planned everything.

I was always the fun part at the end of the real work. The real work (planning, clarifying, designing) is still their but that is true AI took away the coolest part.

However, only morons think you can skip the architecting if you want something maintainable in the middle/long term with the current frontier models and harnesses.

(I don't say this won't change even on the short term but it is not yet the reality , I suppose this is why we have some much slop in the internet nowadays.)

1

u/zloy_molo4nik 3d ago

Ask your LLM to use SOLID, DRY, KISS, YAGNI. And your code will have better structure

1

u/therealgahlfe 3d ago

AI didn't make coding easier.... Just faster iterations.....

1

u/Total_Ad1473 3d ago

Coding was the boring part between an idea and application. Now that coding is solved, there's no limit to what's achievable at lowest cost.

1

u/DANAMITE 3d ago

Coding has always been hard, tedious work and it sucks and I hate it and I'm glad I don't have to do it anymore... But I'm not a computer scientist. I'm self-taught. My friend who has a master's or bachelor's or something in computer science, he's an engineer, computer engineer, does say coding is the easy part and the ideas are the hard part. And I just look at him like, what are you talking about? But he's educated in it, right? So I think that might be part of it.

1

u/XBLAH_ 2d ago

No, it wasn't.

1

u/Mobile_Friend4406 2d ago

Shit code is hard as hell. Its like magic... thankfully AI let's me just toy with it. Anyone who doesnt know how to code and only uses AI like me, should not delude themselves lol. 

1

u/MyBedIsOnFire 2d ago

I my professional vibe coder experience architecture, technical debt, just process workflow in general is hardest. AI seems to handle code fine, and I know enough to step in as needed.

But actually organizing a huge project has been really hard for me and it actually led me to a bunch of errors a few weeks back I hit a hole.

Look under the trunk and it's just a complete mess. Took me awhile to finally get it figured out but once I did and organized it properly suddenly there was less bugs and the ones that came up were easier to figure out.

1

u/SnekyKitty 2d ago

The code is hard, but most design issues are self-inflicted problems from idiots who kept trying to make their own primitives, flows and parsers.

Most languages have the boilerplate streamlined, the difficult part was making sure it had fault tolerance, and stateful guarantees at scale.

Most apps could have been fine on a single monorepo, many tried to build for Kubernetes native architecture for something that had 0 users and little demand.

Of course coding is hard, data schemas design too, but often we create our own problems.

1

u/master-mik 2d ago

It was never a hard part. Like literally never.

1

u/Material-Adagio860 2d ago

will absolutely take advice from someone who says bro alot

1

u/Mediocre-Cranberry98 2d ago

This is also why the most high value part of AI is and was coding. Nothing else comes close to its difficulty. (Though I didnt find it hard, it just required time and effort but it was straight forward for me - like gardening I guess.)

1

u/JazzlikePassage13597 2d ago

This, if they actually looked at their code base and was asked a question, 99.99% would fail without a background in it

1

u/MikeUsesNotion 2d ago

Pre-AI, coding was not the hard part about being a software engineer.

1

u/tawayForThisPost8710 2d ago

Both things are true. Coding was the hard part, I agree, stupid to say otherwise. But also product fit and knowing what to build and why and for whom is still important/the last moat. I just think what’s happening now is people are realizing that even when they are able to build something now through AI assistance, people still don’t use what they built or find it useful.

Which frankly, because coding is/was so hard, nobody ever got to that point previously because the vast majority of people would get stuck trying to make the code do what they want so they’d just give up.

Now though you can in fact realize whatever vision you had for an app, only to realize people don’t care. That outcome was still present before but most people rarely got to that point.

1

u/Pavickling 2d ago

This is just the clutter you get when you fail to encapsulate logic into functions or data structures. If this is the only place in the code you are processing data, it's okay. Otherwise, this is being hard is the programmers fault.

1

u/iNSANEwOw 2d ago

What exactly is hard about this code? It is practically not much more complex to read than plain english?

1

u/ashrocklynn 2d ago

Coding isn't hard if you grew up doing it; but I try explaining it to other people who are super intelligent in other ways and they look at me like I'm an alien.... Anything you do for years is going to be natural and easy; I couldn't go in to a medical office and diagnose a heart defect...

1

u/SplinterOfChaos 2d ago

I don't know what language this is... but it's not hard for me to read.

1

u/CodeMonkeyLogix 2d ago

Programming isn't hard for anyone who doesn't say "bro" every two seconds.

1

u/Capt_korg 2d ago

Everyone can write code...

But will it be maintainable, understandable, simple, and perfomant?

1

u/Kjoep 2d ago

This should be a poll.

For most enterprise-applications, coding wasn't the hard part. It was the fun part though. So now the fun part is gone, and only the hard, finnicky part is left.

I'm not sure if you were trying to make a point by pasting that screenshot, but if you did - that's not hard code, but I would fail it in a review, because with a bit of love it could be a lot more readable.

1

u/WeirRules 2d ago

Been coding since the early 80's... never found it hard.

1

u/ilarion_musca 2d ago

You are misunderstanding this. The coding was not the hard part is not refering to coding itself, because you could always hire autistic nerds to write the code for you. Making money to pay them is the hard part, and that hasn't changed.

1

u/TopHornet4259 2d ago

I barely understand Typescript or JavaScript but decent at python/django framework. But ai loves nextjs and it’s often faster than Django so I don’t complain 🤣.

1

u/jaffparker 2d ago

Coding was the tedious part, but not the hard part in any way

1

u/Elf_Maeve 2d ago

AI literally hallucinates constantly. It's not going to produce good quality code, even less so, good scalable production ready code.

If a company is pushing AI code without senior software engineers reviewing the code, we are literally cooked.

1

u/sgtdumbass 2d ago

Am the farmer. Growing the crops is the easy part. They vibe-grow. But the prep to plant and harvest is the hard part.

1

u/AcanthopterygiiIll81 2d ago

Sorry but that code is not hard at all. It's pretty simple. Writing it could be tedious, yeah but understanding what it does and understanding what needs to be written in order to do the features involved in it, shouldn't be a difficult thing for any backend JS junior dev.

This reminds me when people such as Jonathan Blow say that maybe we just have a lot of bad programmers in the industry. And the more I see posts like this, the more I believe they are right.

1

u/Cultural-Money-9633 2d ago

Why did you add such baby code as an example lol

If you that’s not easy…. I’m sorry

1

u/4215-5h00732 2d ago

Bro, what's difficult about coding bro? Like bro, it's just English. And bro. Typing is easy. Syntax is easy.

People generally mesn writing code is not the hard part. Either way, your snippet there isn't a great example of code that would be difficult to write or understand.

1

u/Romanian-In-Poland 2d ago

Coding is not that hard lol

1

u/Dimencia 2d ago

There are a few poor people who for some reason went into software development even though it didn't really click with them and they struggled to write a single implementation, let alone pick the best one. It is unfortunate for those people

It has nothing to do with product-market fit though. Writing a solution is easy. Writing a good solution, which is maintainable and easy to read and understand, is hard. Not even current LLM models can do it, clearly

1

u/Fun-Repair-7080 2d ago

Dunning Kruger effect

1

u/themoregames 2d ago • Bravo

Tell the farmer growing crops was never the hard part.

If you make them so angry that they start throwing random vegetables at you, it might be very worth it at current day's prices. Bring a bag. Just make sure you can run faster than their combine harvester.

1

u/arbeit22 2d ago

Hard != laborous.

Coding was indeed never the hard part. The hard part was and still is designing a good product and planning how to build it. AI taking over the code makes it so much faster to code, but if you didn't properly design it, you're just build garbage much faster than before.

1

u/zayelion 2d ago

Tell your AI to put comments in your code and use existing frameworks for common task.

1

u/Artonox 2d ago

coding is hard by nature because one mistake ruins it all. i dont get some of these guys - they only got faster because they remember the company design patterns and it worked. as soon as you push them off to antoher org, and they use another design pattern, oh no, they have to spend hours just trying to make the same business logic from the old firm to this firm.

1

u/TylerDurden1985 2d ago

Dunning Kruger in full effect here lol

1

u/RallyPointAlpha 2d ago

The real hard part is trying not to say Bro every other sentence... I believe in you! 

1

u/LaidBackDev 2d ago edited 2d ago

I find it funny people are saying that. Obviously it's not gonna be hard anymore since AI is the one coding for you. Remove AI and I bet vibecoders will not even be able to ship a single app in a week. Also for the webdevs and appdevs out there, webdev and mobile appdev are the 2 easist to get into, obviously you're gonna say coding is easy.

1

u/yknx4 2d ago

I am a software engineer, 11 years of experience. And coding was by far the easiest part, it was never the blocker.

1

u/rsgenus1 2d ago

It is hard if you are not well trained

1

u/BabyJesusAnalingus 2d ago edited 17h ago

The original post content no longer exists here. The author used Redact to remove it, exercising their right to control their data & privacy.

Silicon cough school nine unique spotted special ink lunchroom drifting

1

u/IncreaseOld7112 2d ago

Coding was never the hard part. Your ai is stupid for writing a bespoke URL parser.

1

u/Ok-Video3345 2d ago

But yo, even before AI, we had access to deterministic tools to flag these issues.

Compiler errors, warnings

Static code analysis

Clang checks

Doxygen doc checks

I packed all of this into my AI coding flow. Like I get it, some AI code is bad, but not all.

I feel like now, AI is better than most humans coders, just like back in the day the first compilers weren't that great and you had assembly coders.

Til this day, I still use assembly but that's for micro controllers for certain portions of code only.

We gotto stop complaining about this. In a AI review by another model, most of this could be caught

1

u/IntelligentSpite6364 2d ago

different kinds of difficulty i think

1

u/jamjam125 2d ago

I think the saying should really be “coding was never the moat”, but that would be an even dumber thing to say as there are people with better system design skills and product sense than “coders” but before Claude simply couldn’t code anything.

1

u/Distinct_Garden5650 2d ago

Bro, saying x was never the hard part is not the same as saying x is easy.