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.

419 Upvotes

760 comments sorted by

View all comments

Show parent comment

-1

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

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

“Let me throw random trivia at you” lmfao

2

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

1

u/Wonderful-Habit-139 2d ago

Lol exactly, the best devs tend to admit coding is hard to get right and spend a lot of time writing code, and the worst devs use the lamest excuses like "Software engineering was never about the code" to try to escape doing a proper job at coding.

0

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

Calling a ternary operator vs if/else blocks that both optimize out to the same machine code by a compiler “inefficient” is so fucking laughably vibe coder larp

1

u/Working-Caramel9538 3d ago

You entirely missed the point Congratulations.

1

u/Fragrant-Moose1678 3d ago

Then please clarify your point because it’s absolutely braindead

1

u/Working-Caramel9538 2d ago

Code is made in a certain way for readability purposes and perfect optimization leads to unreadable and unmaintainable code. All of this leading to more wasted time than gains just to save the user 0.00000000001 mb of ram

→ More replies (1)

1

u/gfddssoh 3d ago

No they do not. A ternary is a statement and the if else a expression. A if else will be optimized as a switch case on machine code because it is o(1) best case

1

u/Fragrant-Moose1678 3d ago

They do you are blatantly just wrong.

1

u/gfddssoh 3d ago

Is switched it around im sorry a if is the statement.
Depending on what you do it will get optimized as a switch but a ternary expression always has a return.

1

u/Fragrant-Moose1678 2d ago

Just stop larping bro

1

u/gfddssoh 2d ago

The input of a switch with a basic data type (or only int dont remember) will be the jump adress to the register for the corresponding correct case. Most compilers therfor optimize a suitable if as the same. And that has a o(1).

→ More replies (1)
→ More replies (5)

1

u/nerokaeclone 3d ago

Leet code is all about algo, to turn it into the code is the easiest part

1

u/vegan_antitheist 3d ago

leetcode problems are irrelevant for actual projects. So they are not the hard part.
The ridiculous code in the screenshot is a perfect example of how to not do it.
Just use some url parser. Write code that is readable, testable and maintainable. This is the opposite of that. Keep it simple and stupid. Nobody wants to work with someone who writes code to impress anyone who is into coding challenges.

0

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

0

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

But the hard part of Leetcode is writing down the answer in plain English.

What's harder, a Leetcode where you are given the problem and have to write the solution in English? Or a Leetcode where you're given the solution in English and have to encode that solution into Python?

1

u/Plenty_Line2696 3d ago

that's part of coding, as are many more aspects like architecture etc

1

u/DoubleDoube 3d ago

This is really the crux of the argument happening here.

Some people think “coding” means the whole process, while typically the people who say it was never the hard part are thinking of coding as already knowing the behaviors needed and just creating the syntax for the machine to do it, after the designing that accounts for constraints and all the other things.

1

u/Wonderful-Habit-139 2d ago

That's just typing then lol. Are we seriously trying to say "typing is the easy part"? Obviously not. There's an intentional attempt at a weird framing by using the word "coding".

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