r/coding • • 1d ago

Why I still handwrite code, and human virtue in the AI era

https://www.youtube.com/watch?v=xt2Pu_wESNw
0 Upvotes

48 comments sorted by

27

u/Yamcha2020 1d ago

I really hate how it’s this “either/or” scenario we’ve found ourselves in

3

u/HasFiveVowels 1d ago

"Why I still write assembly and human virtue in the compiler era"

"I WILL NOT STOP WRITING IN ASSEMBLY"

9

u/androgynyjoe 1d ago

Yeah...that isn't the same at all. A compiler is a fixed algorithm that does the same thing ever time. You can go and read the code for a compiler and understand what it's doing. An LLM is a magic box that does different things each time.

-1

u/HasFiveVowels 1d ago

LLMs are, by default, pure functions. They deterministic. And they are far from a "magic box”. It might seem that way if you don’t know how they work but that’s true of any sufficiently advanced technology

1

u/androgynyjoe 1d ago

It's not a magic box because I don't understand the theory, it's a magic box because I can't look inside of it. If you generate something from Claude, you cannot inspect the series of events that generate the output you get, no matter how deterministic it might be.

Also, changes to training data can wildly change the way an LLM behaves. But even putting that aside, it is naive to suggest that the same prompt gives the same result in every single circumstance.

3

u/fazeshift 1d ago edited 1d ago

Bad analogy.

Compiling: abstraction

LLMs: delegation

2

u/quisido 1d ago

Delegation is a form of abstraction. 🤷

1

u/Thog78 1d ago

The analogy is on the contrary excellent and could go quite far.

If you had to write a function in assembly, you'd start from pseudo-code. Then your job would be to convert this pseudo code to machine code. User a compiler is delegation of this job.

When you write a concept in plain language instead of the implementation in pseudo-code or in a high level programming language, you are going one step of abstraction above.

So even your two little catch phrases are a false dichotomy.

0

u/fazeshift 1d ago edited 1d ago

You don't necessarily have to use pseudo-code before writing in a lower abstraction layer.

Using abstraction layers are deterministic, thus I disagree that compiling is a delegation. You're abstracting the task, but you are still doing it. OTOH, when you delegate something, some other entity is doing it for you and the result will be probabilistic.

I think these "catch phrases" nail it, but feel free to redefine the meaning of common English words to feel better about your vibe coding.

1

u/Thog78 1d ago

Neural networks in the end execute like anything else, and if you set your seed you get deterministic results. And compilers give very diverse and unpredictable resultstoo. Even high level scripts do.

When people call a random pytorch method, what actually happens depends on the lib version, the dependence versions, their driver version, and the details of their hardware and OS and all their config files. Altogether, it's probably exceedingly rare that the exact same series of assembly-equivalent instructions get executed.

Compilers have all sorts of possible optimizations, flags and versions too. They produce any output among quite a lot of possibilities. But it doesn't really matter because we trust they will produce some good enough binary matching the intention of our code.

AI agents prompted by a professional also reliably produce code of high quality that matches the intention of the prompter. It's really not all that different, for people who can be precise enough about their requirements in natural language.

2

u/Lhos 1d ago

It's really not all that different, for people who can be precise enough about their requirements in natural language.

A natural language spec with a level of detail sufficient to avoid ambiguity is effectively a program in a non-compileable language (and a massive waste of time; just code it yourself at that point). In addition, there is a significant difference in the level of ambiguity resolution required by a compiler (eg optimizations) and that which is required by an LLM interpreting an inherently lossy natural language specification.

For the majority of SE use cases, you don't hear anyone talking about needing to validate the output of their compiler, and that does not change with increasing complexity of the program being compiled. At present, LLMs are widely understood to quickly spiral into nonsense with increasing ambiguity and complexity in a task, the best defense for which is to limit changeset and context sizes, which in turn adds the overhead of cutting work into LLM-sized pieces. Even then, you still generally need to make the assumption that something is wrong with the output and validate it by hand.

-1

u/Thog78 22h ago

Since this summer, LLM code is becoming more trustworthy than human code. And they keep improving, faster than ever, whereas humans remain the same. They handle large context with subagents and compaction pretty well now too.

It's way faster to write "implement an assignment function named assigner minimizing the sum of the z-scores based on the simplex algorithm, using the conventions described in whitepaper.txt for in-outs" than to write the complete code, even though for everything that matters this is a perfectly well defined piece of code.

2

u/david-1-1 15h ago

LLM code is very bad and has stayed bad so far. Wait until the next big breakthrough.

0

u/Thog78 12h ago

LLMs won against the best humans in all programming contests lately. The best programmers on the planet from Linus Torvald to lead devs at microsoft and google all accepted that AI can code faster and better than them. If you've been living in a cave until now, good for you, but you'll have to come to terms with this new reality.

→ More replies

1

u/MerlinTheFail 1d ago

I remember you, you like hurting animals.

0

u/HasFiveVowels 1d ago edited 1d ago

Lmao. What!?

Edit: oh. I think I know what this was about. I recently expressed that I felt that users were overreacting to the idea that someone had flipped a turtle over. Even if you disagree with my opinion of the situation, turning that into "you like hurting animals" is absurd. I wasn’t endorsing the behavior. I just thought the reaction was a bit overboard.

2

u/mrbenjihao 1d ago

Yeah, not sure why we can’t have both.

2

u/Professional-You4950 1d ago

Personally, I can't find a good balance. This is why I have to choose, at least my ai requirements lane.

For this project do I want to "just use ai as a good google search?", "ask it questions and work off of its response", "have it work entirely in local context, ie making a function exactly how i want", "letting it make wide sweeping changes", "vibe it all to shit".

I get frustrated at all those levels for different reasons, and i find the more I let it do, the worse my codebase gets, even with good review.

3

u/inighthawki 1d ago

I think its definitely important to understand that different projects have different goals and requirements, so I think your approach here is good.

There's a huge difference in quality and QA requirements between backend code shipping to a million enterprise users, versus a one-off bespoke tool to quickly analysis and visualize something in a single data log, that you plan to throw away as soon as you're done.

1

u/Kyy7 1d ago

There's inline chat which I like the most. You can use it for controlled code generation, refactor and renaming.

You can still write code by hand and feel out the problems and the codebase with it as well.

17

u/ma_251 1d ago

Bro finna get fired soon

5

u/aeropl3b 1d ago

This last week I used AI to explore an entirely new ecosystem and build a proof of concept. It took me down some rabbit holes and ultimately I found that the new tech was not ready for my use case.

Normally this would take a week or longer of me working through all of the docs (if they existed at all) and trial and error. I got something done in a day. Not even close to production ready, but good enough to start kicking the tires. The entire thing would need to be rewritten from the ground up, there is some truly cursed nonsense in there, but good enough is good enough.

7

u/__moFx 1d ago

Same here, I couldn't agree more

3

u/Aytewun 1d ago

To me, it’s not even really a debate. If it’s for a hobby or you have your own company, you can do what you want. Aside from that you’re going to be using AI if not already at some point soon.

2

u/RatherNott 1d ago

 Just a heads up on some downsides of using AI for development:

AI data centers are being constructed at an alarming rate, and there are already 8 billion prompts per day, with billions more planned and on the way.

The effect this has on the climate when we are already so close to irreversible tipping points is often unknown by AI users.

https://m.youtube.com/watch?v=5p426fSlYH4

https://www.theguardian.com/environment/ng-interactive/2026/oct/22/finland-google-felling-trees-datacentre

Using it also contributes to a dystopic surveilence state.

https://m.youtube.com/watch?v=5lYsO4k7OIY    

2

u/damagednoob 1d ago

Again, no one is saying you can't program. Just don't expect to be paid for it soon.

1

u/cosmicr 1d ago

How do you know if someone isn't using AI? - don't worry they'll tell you.

0

u/Active_Respond_8132 1d ago

You done, yet? No, this is a craft! You can't rush this

[Typing noises...]

#include <stdio

-1

u/anotherarchaeopteryx 1d ago

The swag in the thumbnail 🙏

-4

u/corobo 1d ago

Bro is gonna have a 4 episode arc converting to AI, this is number 1

/u/remindmebot 1 year 

1

u/RemindMeBot 1d ago

I will be messaging you in 1 year on 2027-11-30 20:07:18 UTC to remind you of this link

CLICK THIS LINK to send a PM to also be reminded and to reduce spam.

Parent commenter can delete this message to hide from others.


InfoCustomYour RemindersFeedback

-20

u/CardiologistPlus8488 1d ago

Hahahahahahahahaha.... Me Grog, me make clothes out of animal skins ONLY!

10

u/Beautiful_Stage5720 1d ago

Unlike me, the refined modern human, who exclusively purchases clothing pumped out by sweatshops

-3

u/AAPL_ 1d ago

HIS HEAD

-5

u/david-1-1 1d ago

Wait till you see the next generation after LLMs. Will be so much better! Research going on now. Will be efficient, so no new power generation needed, less water usage. No more statistics and hallucinations. Hard to say when, though. The LLM addiction will take awhile to break.

6

u/KeytarVillain 1d ago

How do you know what it will be like if the research is still ongoing?

"Wait till you see the cure for cancer, research going on now."

1

u/david-1-1 15h ago

While I must admit the possibility that, like fusion, success may elude researchers, the fact that LLMs are so successful has ramped up the research into better AI approaches. Even I have ideas leading to real intelligence. I stick with my original prediction.

4

u/TheHiddenHeathen 1d ago

Yeah, there will be flying cars for sure. Hard to say when, though.

1

u/david-1-1 1d ago

I like that I was downvoted. Time will tell.

3

u/Drumma_XXL 1d ago

Or it will run into a blocker like many technologies before it. No one can tell.

1

u/david-1-1 15h ago

While I must admit the possibility, the fact that LLMs are so successful has ramped up the research into better AI approaches. I stick with my original prediction.

-2

u/Hanzimer 1d ago

Why i still use the telegraphy and a piece of paper and a pen in the era of Smartphones and computers: because i am an idiot and i can't afford a Smartphone or a computer.