News for hackers. Stuff that matters.
Re:Ask HN: What is interviewing like now with everyone using... by alexjplant on Sunday February 02, 2025 @09:33PM (#42914302)
Earlier this past week I asked Copilot to generate some Golang tests and it used some obscure assertion library that had a few hundred stars on GitHub. I had to explicitly ask it to generate idiomatic tests and even then it still didn't test all of the parameters that it should have.

At a previous job I made the mistake of letting it write some repository methods that leveraged SQLAlchemy. Even though I (along with my colleague via PR) reviewed the generated code we ended up with a preprod bug because the LLM used session.flush() instead of session.commit() in exactly one spot for no apparent reason.

LLMs are still not ready for prime-time. They churn out code like an overconfident 25-year-old that just downed three lunch beers with a wet burrito at the Mexican place down the street from the office on a rainy Wednesday.

Re:Ask HN: What is interviewing like now with everyone using... by DustinBrett on Sunday February 02, 2025 @10:19PM (#42914541)
I feel like I am taking crazy pills that other devs don't feel this way. How bad are the coders that they think these AI's are giving them super powers. The PR's with AI code are so obvious and when you ask the devs why, they don't even know. They just say, well the AI picked this, as if that means something in and of itself.
Re:Ask HN: What is interviewing like now with everyone using... by doix on Sunday February 02, 2025 @10:51PM (#42914758)
AI gives super powers because it saves you an insane amount of typing. I used to be a vim fanatic, I was very efficient but whenever I changed language there was a period where I had to spend getting efficient. Setup some new snippets for boilerplate, maybe tweak some LSP settings, save some new macros.

Now in cursor I just write "extract this block of code into its own function and set up the unit tests" and it does it, with no configuration from my part. Before I'd have a snippet for the unit test boilerplate for that specific project, I'd have to figure out the mocks mysel, etc.

Yes, if you use AI to just generate new code blindly and check it in without no understanding, you end up with garbage. But those people were most likely copy pasting from SO before AI, AI just made them faster.

Re:Ask HN: What is interviewing like now with everyone using... by WalterBright on Monday February 03, 2025 @12:14AM (#42915203)
> AI gives super powers because it saves you an insane amount of typing.

I must be very different, as very little of my coding time is spent typing.

Re:Ask HN: What is interviewing like now with everyone using... by girvo on Monday February 03, 2025 @01:03AM (#42915417)
That's certainly the case for myself, too, though I've got roughly two fewer decades in this than yourself!

But typing throughput has never been my major bottleneck. Refactoring is basically never just straight code transforms, and most of my time is spent thinking, exploring or teaching these days

Re:Ask HN: What is interviewing like now with everyone using... by sampullman on Monday February 03, 2025 @01:59AM (#42915687)
It's the same for me if I'm working on something unique or interesting, or a new technology.

Some kinds of coding require very little thinking, though. Converting a design to frontend interface or implementing a CRUD backend are mostly typing.

Re:Ask HN: What is interviewing like now with everyone using... by doix on Monday February 03, 2025 @05:24AM (#42916813)
For me, getting what's in my head out onto the screen as fast as possible increases my productivity immensely.

Maybe it's because I'm used to working with constant interruptions, but until what I want is on the screen, I can't start thinking about the next thing. E.g. if I'm making a new class, I'm not thinking about the implementation of the inner functions until I've got the skeleton of the class in place. The faster I get each stage done, the faster I work.

It's why I devoted a lot of time getting efficient at vim, setting up snippets for my languages, etc. AI is the next stage of that in my mind.

Maybe you can keep thinking about next steps while stuff is "solved" in your head but not on the screen. It also depends on the type of work you're doing. I've spent many hours to delete a few lines and change one, obviously AI doesn't help there.

Re:Ask HN: What is interviewing like now with everyone using... by v20 on Monday February 03, 2025 @06:05AM (#42917048)
I think that spending a lot of time typing is likely an architectural problem. But I do see how AI tools can be used for "oneshot" code where pondering maintainability and structure is wasted time.
Re:Ask HN: What is interviewing like now with everyone using... by yoyohello13 on Sunday February 02, 2025 @11:16PM (#42914916)
See THIS is a usage that makes sense to me. Using AI to manipulate existing code like this is great. I save a ton of time by pasting in a json response and saying something like “turn this into Data classes” makes api work so fast. On the other hand I really don’t understand devs that say they are using AI for ALL their code.
Re:Ask HN: What is interviewing like now with everyone using... by mewpmewp2 on Monday February 03, 2025 @12:14AM (#42915204)
Copilot kind of auto completes exactly what I want most of the time. When I want something bigger I will ask Claude to give me that, but I always know what I am going to get, and I could have written it myself, it would have just taken tons of typing. I feel like I am kind of an orchestrator of sorts.
Re:Ask HN: What is interviewing like now with everyone using... by weebull on Monday February 03, 2025 @04:59AM (#42916667)
So if you were to do a transformation like that you'd cut the code and paste it into a new function. Then you'd modify that function to make the abstraction work. An LLM will rewrite the code in the new form. It's not cut/paste/edit. It's a rewrite every time with the old code as reference.

Each rewrite is a chance to add subtle bugs, so I take issue with the description of LLMs "working on existing code". They don't use text editors to manipulate code like we do (although it might be interesting if they did) and so will have different issues.

Re:Ask HN: What is interviewing like now with everyone using... by yoyohello13 on Monday February 03, 2025 @11:59AM (#42920282)
> It's a rewrite every time with the old code as reference.

As far as I'm aware, tools like Aider don't do this, it does targeted changes.

The way I do it "copy/paste into chat interface", I just have the relevant context and just change the parts required.

Re:Ask HN: What is interviewing like now with everyone using... by DustinBrett on Sunday February 02, 2025 @11:43PM (#42915066)
I do agree with the filling in of text, but only when the patterns are clear. Any kind of thinking on logic or using libraries I find it still leads me astray every time.
Re:Ask HN: What is interviewing like now with everyone using... by abenga on Monday February 03, 2025 @01:43AM (#42915612)
AI saves you an insane amount of typing, but adds an insane amount of reading, which is strictly harder than typing (at least for me).
Re:Ask HN: What is interviewing like now with everyone using... by anonzzzies on Monday February 03, 2025 @02:06AM (#42915725)
Hmm, that is interesting; reading is harder? You have to read a lot of code anyway right? From team members, examples, 3rd party code/libraries? Through the decades of programming at least I became very proficient and rapidly spotting 'fishy' code and generally understanding code written by others. AI coding is nice because it is, for me, the opposite of what you have; reading the code it generates is much faster than writing it myself even though I am fast at writing it; not that fast.

I have said it here before, because I would love to see some videos of HNers who complain AI gives them crap as we are getting amazing results on large and complex projects... We treat AI code the same as human code, we read it and recommend or implement fixes.

Re:Ask HN: What is interviewing like now with everyone using... by abenga on Monday February 03, 2025 @03:50AM (#42916254)
"In the small", it's easy to read code. This code computes this value, and writes it there, etc. The harder part is answering why it does what it does, which is harder for code someone else wrote. I think it is worthwhile expending this effort for code review, design review, or understanding a library. Not for code that I allegedly wrote. Especially weeks removed, loading code I wrote into "working memory" to fix issues or add features is much much easier than code I didn't write.
Re:Ask HN: What is interviewing like now with everyone using... by anonzzzies on Monday February 03, 2025 @04:49AM (#42916607)
> The harder part is answering why it does what it does, which is harder for code someone else wrote.

That's a vital part of writing software though.

Re:Ask HN: What is interviewing like now with everyone using... by abenga on Monday February 03, 2025 @05:45AM (#42916925)
True. I will save effort by only expending it when needed (when I need to review my coworkers' code, legacy code, or libraries).
Re:Ask HN: What is interviewing like now with everyone using... by dagss on Monday February 03, 2025 @02:34AM (#42915858)
Depends ofc on the complexity of the area, but... reading someones code to me feels a bit like being given a 2D picture of a machine, then having to piece together a 3D model in my head from a single 2D photo from one projection of the machine. Then figuring out if the machine will work.

When I write code, the hard part is already done -- the mental model behind the program is already in my head and and I simply dump it to keyboard. (At least for me typing speed has never been relevant as a limiting factor)

But I read code I have to reassemble the mental model "behind" it in my head from the output artifact of the thought processes.

Of course one needs to read code of co-workers and libraries -- but it is more draining, at least for me. Skimming it is fast but reading it thoroughly enough to find bugs by reading requires making the full mental model of the code which takes more mental effort for me at least.

There is a huge difference in how I read code from trusted experienced coworkers and juniors though. AI falls in the latter category.

(AI is still saving me a lot of time. Just saying I agree a lot that writing is easier than reading still.)

Re:Ask HN: What is interviewing like now with everyone using... by anonzzzies on Monday February 03, 2025 @03:19AM (#42916070)
Running code in your head is another issue that AI won't solve (yet); we had different people/scientists working on this; the most famous person there being Brett Victor, but also Jonathan Edwards [0] and Chris Granger (lighttable). I find the example in [0] the best; you are sitting there with your very logically weak brain trying to think wtf will this code do while there is a very powerful computer next to you that can tell you. But doesn't. And yet, we are mostly restricted to first think out the code to at least some extent before we can see it in action, same for the AI.

[0] https://vimeo.com/140738254

Re:Ask HN: What is interviewing like now with everyone using... by ninetyninenine on Monday February 03, 2025 @09:40AM (#42918609)
Don’t run code in your head. Run it in reality and step through it with a debugger.
Re:Ask HN: What is interviewing like now with everyone using... by pineaux on Monday February 03, 2025 @03:03AM (#42915989)
You mean like a blueprint of a machine? Because that is exactly how machines are usually presented in official documentation. To me the skill of understanding how "2d/code" translates to "3d/program execution" is exactly the skill that sets amateurs apart from pros, saying that, I consider myself an amateur in code and a professional in mechanical design.
Re:Ask HN: What is interviewing like now with everyone using... by jajko on Monday February 03, 2025 @04:02AM (#42916319)
When you type the code, you definitely think about it, deepening your mental model of the problem, stopping and going back and changing things.

Reading is massively passive, and in fact much more mentally tiring if whole reading is in detective mode 'now where the f*ck are some hidden issues now'. Sure, if your codebase is 90% massive boilerplate then I can see quickly generated code saves a lot of time, but such scenarios were normally easy to tackle before LLMs came. Or at least those I've encountered in past few decades.

Do you like debugging by just tracing the code with your eyes, or actually working on it with data and test code? I've never seen effective use of such regardless of seniority. But I've seen in past months wild claims about magic of LLMs that were mostly un-reproduceable by others, and when folks were asked for details they went silent.

Re:Ask HN: What is interviewing like now with everyone using... by swiftcoder on Monday February 03, 2025 @04:56AM (#42916644)
> Hmm, that is interesting; reading is harder?

Much, much harder. Sure, you can skim large volumes of code very quickly. But the type of close reading that is required to spot logic bugs in the small is quite taxing - which is the reason that we generally don't expect code review processes to catch trivial errors, and instead invest in testing.

Re:Ask HN: What is interviewing like now with everyone using... by anonzzzies on Monday February 03, 2025 @05:41AM (#42916903)
But we are not talking about large volumes of code here; we are talking about; LLM generates something, you check it and close read it to spot logic bugs and either fix yourself, ask the LLM or approve. It is very puzzling to me how this is more work/taxing than writing it yourself unless for very specific examples;

Examples from every day reality in my company; writing 1000s of lines of react frontend code is all LLM (in very little time) and reviews catch all the issues while the database implementation we are working on we spend sometimes one hour on a few lines and the LLM suggest things but they never help. Reviewing such a little bit of code has no use as it's the result of testing a LOT of scenarios to get the most performance out in the real world (across different environments/settings). However, almost everyone in the world is working on (similar issues like) the former, not the latter, so...

Re:Ask HN: What is interviewing like now with everyone using... by swiftcoder on Monday February 03, 2025 @05:52AM (#42916967)
> writing 1000s of lines of react frontend code

Maybe we just located the actual problem in this scenario.

Re:Ask HN: What is interviewing like now with everyone using... by anonzzzies on Monday February 03, 2025 @06:10AM (#42917069)
Shame we cannot combine the two threads we are talking about, but our company/clients structure do not allow us to do this differently (quickly; our clients have existing systems with different frontend tech; they are all large corps with many external and internal devs which built some 'framework' on top of whatever frontend they are using; we cannot abstract/library-fy to re-use across clients). I would if I could. And this is actually not a problem (outside it being a waste to which I agree) as we have never delivered more for happier clients in our existence (which is around 25 years now) than in 2024 because of that. Clients see the frontend and being able to over-deliver there is excellent.
Re:Ask HN: What is interviewing like now with everyone using... by ninetyninenine on Monday February 03, 2025 @09:38AM (#42918597)
You should use testing and a debugger for this. Don’t just read code, run it and step through it and observe code as it mutates state.
Re:Ask HN: What is interviewing like now with everyone using... by swiftcoder on Monday February 03, 2025 @10:19AM (#42919025)
I think this is great advice for folks who work on software that is well enough contained enough that you can run the entire thing on your dev machine, and it happens to be written in the same language/runtime throughout.

Unfortunately I've made some career choices that mean I've very rarely been in that position - weird mobile hardware dependencies and/or massive clouds of micro services both render this technique pretty complicated to employ in practice.

Re:Ask HN: What is interviewing like now with everyone using... by ninetyninenine on Monday February 03, 2025 @12:18PM (#42920473)
Yeah it’s not really career choices. The code should be properly done so that it can hit multiple automated test targets.

It’s a symptom less of the career choice and more of poor coding practices.

Re:Ask HN: What is interviewing like now with everyone using... by swiftcoder on Tuesday February 04, 2025 @05:13AM (#42930537)
Oh, we have automated tests out the wazoo. Mostly unit tests, or single-service tests with mocked dependencies.

Due to unfortunate constraints of operating in the real world, one can only run integration tests in-situ, as it were (on real hardware, with real dependencies).

Re:Ask HN: What is interviewing like now with everyone using... by petesergeant on Monday February 03, 2025 @03:24AM (#42916099)
Here is a chat transcript from today, I don't know if it'll be interesting to you. You can't see the canvas it's building the code in: https://chatgpt.com/share/67a07afe-3e10-8004-a5ea-cc78676fb6...

Yes, I have to read what it writes, and towards the end it gets slow and starts making dumb mistakes (always; there's some magically bad length at which it always starts to fumble), but I feel like I got the advantages of pairing out of it without actually needing to sit next to another human? I'll finish the script off myself and review it.

I don't know if I've saved actual _time_ here, but I've definitely saved some mental effort on a menial script I didn't actually want to write, that I can use for some of the considerably more difficult problems I'll need to solve later today. I wouldn't let it near anything where I didn't understand what every single line of code it wrote was doing, because it does make odd choices, but I'll probably use it again to do something tomorrow. If it needs to be part of a bigger codebase, I'll give it the type-defs from elsewhere in the codebase to start with, or tell it it can assume a certain function exists

Re:Ask HN: What is interviewing like now with everyone using... by swiftcoder on Monday February 03, 2025 @04:58AM (#42916660)
> AI gives super powers because it saves you an insane amount of typing

I feel like I'm going a little bit more insane whenever folks say this, because one of the primary roles of a software engineer is to develop tools and abstractions to reduce or eliminate boilerplate.

What kind of software are you writing, where generating boilerplate is the limiting factor (and why haven't you fixed that)?

Re:Ask HN: What is interviewing like now with everyone using... by anonzzzies on Monday February 03, 2025 @06:06AM (#42917055)
> because one of the primary roles of a software engineer is to develop tools and abstractions to reduce or eliminate boilerplate.

Is it? Says who? Not only do I see entire clans of folk appearing who say ; DRY sucks, just copy/paste, it's easier to read and less prone to break multiple things with one fix vs abstractions that keep functionality restricted to one location, but also; most programmers are there to implement crap their bosses say, that crap almost never includes 'create tools & abstractions' to get there.

I agree with you actually, BUT this is really not what by far most people working in programming believe one of their (primary) roles entail.

Re:Ask HN: What is interviewing like now with everyone using... by porridgeraisin on Monday February 03, 2025 @08:07AM (#42917825)
> vim > LLM

I use both :)

Vim has a way to run shell programs with your selection as standard input as you'd know, and it will replace the selection with stdout.

So I type in my prompt e.g "mock js object array with 10 items each having name age and address" do `V!ollama run whatever` for example and it will fill it in there.

Now this is blocking and I have a hacky way to run it async and fill it in based on marks later in my vimrc. Neovim really since I use jobstart().

This also works with lots of other stuff, like quick code/mock generation e.g sometimes instead of asking an LLM I just write javascript/python inline and `vap!node`/python on it.

Re:Ask HN: What is interviewing like now with everyone using... by fenomas on Sunday February 02, 2025 @11:48PM (#42915091)
Devs who don't feel that way aren't talking about the stuff you're talking about.

Look at it this way - a powerful debugger gives you superpowers. That doesn't mean it turns bad devs into good devs, or that devs with a powerful debugger never write bad code! If somebody says a powerfull debugger gives them superpowers they're not claiming those things; they're claiming that it makes good devs even better.

Re:Ask HN: What is interviewing like now with everyone using... by feoren on Sunday February 02, 2025 @11:57PM (#42915133)
The best debugger in the world would make me about 5% more efficient. That's about the percentage of my development time I spend going "WTF? Why is that happening?" That's the best possible improvement from the best possible debugger: about 5%.

The reason is that I almost always have a complete understanding of everything that is happening in all code that I write. Not because I have a mega-brain; only because "understanding everything that is happening all the time" becomes rather easy if all of your code is as simple as you can possibly make it, using clear interfaces, heavily leveraging the type system, keeping things immutable, dependency inversion, and aggressively attacking any unclear parts until you're satisfied with them. So debuggers are generally not involved. It's probably a couple times per week that I enter debug mode at all.

It sounds a little like saying "imagine the driving superpowers you could have if your car could perfectly avoid obstacles for you!" Okay, sure, that'd be life-saving sometimes, but the vast majority of the time, I'm not just randomly dodging obstacles. Planning ahead and paying attention kinda makes that moot.

Re:Ask HN: What is interviewing like now with everyone using... by mewpmewp2 on Monday February 03, 2025 @12:18AM (#42915226)
Now imagine working on a 10+ years old codebase that 100s of developer hands have gone over. And several dependencies not being possible to even run locally because of being so out of date. Why work on that in the first place? Sometimes it pays really well.
Re:Ask HN: What is interviewing like now with everyone using... by bluefirebrand on Monday February 03, 2025 @01:40AM (#42915599)
I would absolutely not be comfortable trusting current AI to work on this sort of codebase and make meaningful improvements
Re:Ask HN: What is interviewing like now with everyone using... by mewpmewp2 on Monday February 03, 2025 @07:19AM (#42917437)
Not AI, but we were talking about a debugger specifically.
Re:Ask HN: What is interviewing like now with everyone using... by maxwellg on Monday February 03, 2025 @12:17AM (#42915221)
You've never had to debug code that someone else wrote?
Re:Ask HN: What is interviewing like now with everyone using... by feoren on Tuesday February 04, 2025 @03:12PM (#42937945)
It's pretty uncommon. Most of my teammates' code is close to my standard -- I am referred to as the "technical lead" even though it's not an official title, but teammates do generally try to code to my standard, so it's pretty good code. If I'm doing a one-off bug fix or trying to understand what the code does, usually reading it is sufficient. If I'm taking some level of shared ownership of the code, I'm hopefully talking a lot with the person who wrote it. I'm very choosy about open-source libraries so it's rare that I need to dig into that code at all. I don't use any ecosystems like React that tempt you to just pull in random half-baked components for everything.

The conflux of events requiring me to debug someone else's code would be someone who wrote bad code without much oversight, then left the company, and there's no budget to fix their work properly. Not very common. Since I usually know what the code is supposed to be doing, such code can likely be rewritten properly in a small fraction of the original time.

Re:Ask HN: What is interviewing like now with everyone using... by fenomas on Monday February 03, 2025 @12:13AM (#42915201)
My comment was about what people mean when they talk about a thing giving developers superpowers. I was not claiming that you, personally, benefit enormously from debuggers.

Also: I don't use debuggers much either, but when you need one, having it is a superpower. How often does Superman use his heat vision? :P

Re:Ask HN: What is interviewing like now with everyone using... by adrianN on Monday February 03, 2025 @12:11AM (#42915192)
It’s different if you work on a large legacy codebase where you have maybe a rough understanding of the high level architecture but nobody at the company has seen the code you’re working on in the last five years. There a debugger is often very helpful.
Re:Ask HN: What is interviewing like now with everyone using... by anonzzzies on Monday February 03, 2025 @02:15AM (#42915763)
That is your own code and only your libs then, no imports? Or you work in a language where imports are small (embedded?) so you know them all and maintain them all? Or maybe vanilla js/c without libs? Because import 1 npm and you have 100gb of crap deps you really don't understand which happens to work at moment t0 but at t1, when 1 npm updated, nothing works anymore and can't claim to understand it all as many/most people don't write 'simple code'.
Re:Ask HN: What is interviewing like now with everyone using... by eru on Sunday February 02, 2025 @11:24PM (#42914966)
Depending on what language you use and what domain your problem is in, current AIs can vary widely in how useful they are.

I was amazed at how great ChatGPT and DeepSeek and Claude etc are at quickly throwing together some small visualisations in Python or JavaScript. But they struggled a lot with Bird-style literate Haskell. (And just that specific style. Plain Haskell code was much less of a problem.)

Re:Ask HN: What is interviewing like now with everyone using... by trevor-e on Sunday February 02, 2025 @10:49PM (#42914748)
Because there are plenty of devs who take the output, actually read if it makes sense, do a code review, iterate back and forth with it a few times, and then finally check in the result. It's just a tool. Shitty devs will make shitty code regardless of the tool. And good devs are insanely productive with good tools. In your example what's the difference with that dev just copy/pasting from StackOverflow?
Re:Ask HN: What is interviewing like now with everyone using... by DustinBrett on Sunday February 02, 2025 @11:44PM (#42915073)
Because on SO someone real wrote it with a real reason and logic. With AI we still need to double check that what we are giving ever made any sense. And SO also has votes to show the validty.

I agree if devs iterated over the results it could be good, but that has not been what I have been seeing.

It is not a traditional tool because tools we had in the past had expected results.

Re:Ask HN: What is interviewing like now with everyone using... by eru on Sunday February 02, 2025 @11:26PM (#42914981)
Agreed!

To go off on a tangent: yes, good developers can produce good code faster. And bad developers can produce bad code faster (and perhaps slightly better than before, because the models are mostly a bit smarter than copy-and-paste is).

Everyone potentially benefits, but it won't suddenly turn all bad programmers into great programmers.

Re:Ask HN: What is interviewing like now with everyone using... by worthless-trash on Monday February 03, 2025 @12:20AM (#42915235)
I understand exactly what you mean, feel like there are buckets of people who are just trying to gas light every reader.
Re:Ask HN: What is interviewing like now with everyone using... by steelframe on Monday February 03, 2025 @01:26AM (#42915525)
> They just say, well the AI picked this, as if that means something in and of itself.

In any other professional field that would be grounds for termination for incompetence. It's so weird that we seem to shrug off that kind of behavior so readily in tech.

Re:Ask HN: What is interviewing like now with everyone using... by anonzzzies on Monday February 03, 2025 @02:22AM (#42915800)
Nah, already had multiple cases of that; one with a lawyer at a big corp and some others; the story is not straight up 'ai said so' but more like: 'we use different online and offline tools to aid us in our work, sometimes the results are less than satisfactory, and we try to correct those cases'. It is the same response, just showing vulnerability; we are only human, even with our tools.
Re:Ask HN: What is interviewing like now with everyone using... by bluefirebrand on Monday February 03, 2025 @01:43AM (#42915616)
I think what you're saying is a bit idealistic. We like to think that people get terminated for incompetence but the reality is more complicated than that

I suspect people get away with saying "I don't know why that didn't work, I did what the computer told me to do" a lot more frequently than they get fired for it. "I did what the AI said" will be the natural extension of this

Re:Ask HN: What is interviewing like now with everyone using... by randomNumber7 on Monday February 03, 2025 @02:21AM (#42915797)
You are. Only noobs do this, experts using a llm are way more efficient. (Unless you work like with the same language and libraries for years)
Re:Ask HN: What is interviewing like now with everyone using... by bilekas on Monday February 03, 2025 @02:36AM (#42915870)
> (Unless you work like with the same language and libraries for years)

I'm not sure what you mean here? Are you saying that if you work with the same language for years that you're some how not proficient with using LLMs?

Re:Ask HN: What is interviewing like now with everyone using... by rvba on Monday February 03, 2025 @04:41AM (#42916560)
Sounds like someone who switches jobs and technologies every year, so someone else has to clean up the mess
Re:Ask HN: What is interviewing like now with everyone using... by randomNumber7 on Tuesday February 04, 2025 @02:33AM (#42929280)
The advantage of LLMs is smaller if you know everything by heart.
Re:Ask HN: What is interviewing like now with everyone using... by linsomniac on Monday February 03, 2025 @08:20AM (#42917925)
>I feel like I am taking crazy pills that other devs don't feel this way.

Don't take this the wrong way, but maybe you are.

For example, this weekend I was working on something where I needed to decode a Rails v3 session cookie in Python. I know, roughly, nothing about Rails. In less than 5 minutes ChatGPT gave me some code that took me around 10 minutes to get working.

Without ChatGPT I could have easily spent a couple hours putzing around with tracking down old Rails documentation, possibly involving reading old Rails code and grepping around to find where sessions were generated, hunting for helper libraries, some deadends while I tried to intuit a solution ("Ok, this looks like it's base64 encoded, but base64 decoding kind of works but produces an error. It looks like there's some garbage at the end. Oh, that's a signature, I wonder how it's signed...")

Instead, I asked for an overview of Rails session cookies, a fairly simple question about decoding a Rails session cookie, guided it to Rails v3 when I realized it was producing the wrong code (it was encrypting the cookie, but my cookies were not encrypted). It gave me 75 lines of code that took me ~15 minutes to get working.

This is a "spare time" project that I've wanted to do for over 5 years. Quite simply, if I had to spend hours fiddling around with it, I probably wouldn't have done it; it's not at the top of my todo list (hence, spare time project).

I don't understand how people don't see that AI can give them "superpowers" by leveraging a developers least productive time into providing their highest value.

Re:Ask HN: What is interviewing like now with everyone using... by grayhatter on Monday February 03, 2025 @09:29AM (#42918513)
> I don't understand how people don't see that AI can give them "superpowers" by leveraging a developers least productive time into providing their highest value.

I'm unwilling to write code^1 that's not correct, or at least as correct as I'm able to make it. The single most frustrating thing in my daily life is dealing with the PoC other devs cast into the world that has more bugs than features, because they can't tell it's awful. I've seen code I've written at my least productive, and it's awful and I'm often ashamed of it. It's the same quality as AI code. If AI code allows me to generate more code that I'm ashamed of, when I'm otherwise too tired myself to write code, how is that actually a good thing?

I get standards for exclusively personal toy projects, and stuff you want others to be able to use are different. But it doesn't add value to the world if you ship code someone else needs to fix.

^1 I guess I should say commit/ship instead, I write plenty of trash before fixing it.

Re:Ask HN: What is interviewing like now with everyone using... by linsomniac on Monday February 03, 2025 @11:46AM (#42920116)
Have you tried asking LLMs to clean up your code, making it more obvious, adding test harnesses, adding type hints or argument documentation, then reviewing it and finding out what you can learn from what it is suggesting?

Last year I took a piece of code from Ansible that was extremely difficult to understand. It took me the better part of a day to do a simple bug fix in it. So I reimplemented it, using several passes of having it implement it, reviewing it, asking LLMs to make it simpler, more obvious code. For your review: https://github.com/linsomniac/symbolicmode/blob/main/src/sym...

Re:Ask HN: What is interviewing like now with everyone using... by ookdatnog on Monday February 03, 2025 @08:55AM (#42918243)
I agree with your assessment in the situation you describe: greenfielding a project with tools you are unfamiliar with. For me LLMs have worked best when my progress is hindered primarily by a lack of knowledge or familiarity. If I'm working on a project where I'm comfortable with my tools and APIs, they can still be useful from time to time but I wouldn't call it a "superpower", more like a regular productivity tool (less impactful than an IDE, I would say). Of course this comment could be outdated in a few months, but that's what it feels like to me in the here and now.
Re:Ask HN: What is interviewing like now with everyone using... by linsomniac on Monday February 03, 2025 @11:51AM (#42920169)
IMHO, still feels like a superpower in the editor when I type "def validate_session(sess" and it says "Are you wanting to type: `ion_data: dict[str, str]`?" Especially as the type annotations get more convoluted.
Re:Ask HN: What is interviewing like now with everyone using... by jenscow on Monday February 03, 2025 @08:32AM (#42918024)
> took me ~15 minutes to get working

You didn't blindly use it, you still used your expertise. You gave it a high quality prompt and you understood the reply enough to adjust it.

In other words, you used it correctly. It complimented your expertise, rather than replace it.

Re:Ask HN: What is interviewing like now with everyone using... by linsomniac on Monday February 03, 2025 @11:47AM (#42920126)
I think you're making my point for me. Isn't it "taking crazy pills" if you use it incorrectly, and then stand on that experience as proof that other devs are insane? :-)
Re:Ask HN: What is interviewing like now with everyone using... by throwawayffffas on Monday February 03, 2025 @08:56AM (#42918256)
In my experience the lack of correctness and accuracy (I have seen a lot of calls to hallucinated apis), is made up from the "eagerness" to fill out boilerplate.

It's indeed like having a super junior, drunk intern working for you if we are using the gps analogy.

Some work is done but you have to go over it and fix a bunch of things.

Re:Ask HN: What is interviewing like now with everyone using... by ransom1538 on Monday February 03, 2025 @09:12AM (#42918373)
I am x10 faster with gpt. No regex, no stackoverflow, no sql, no broiler plate, no text manipulations.
Re:Ask HN: What is interviewing like now with everyone using... by grayhatter on Monday February 03, 2025 @09:15AM (#42918398)
> well the AI picked this

hey look, we found him!

Re:Ask HN: What is interviewing like now with everyone using... by fenomas on Sunday February 02, 2025 @11:39PM (#42915056)
I don't follow this take. ChatGPT outputted a bug subtle enough to be overlooked by you and your colleague and your test suite, and that means it's not ready for prime time?

The day when generative AI might hope to completely handle a coding task isn't here yet - it doesn't know your full requirements, it can't run your integration tests, etc. For now it's a tool, like a linter or a debugger - useful sometimes and not useful other times, but the responsibility to keep bugs out of prod still rests with the coder, not the tools.

Re:Ask HN: What is interviewing like now with everyone using... by Sammi on Monday February 03, 2025 @06:38AM (#42917211)
Yes and this means it doesn't replace anyone or make someone who isn't able to code able to code. It just means it's a tool for people who already know how to code.
Re:Ask HN: What is interviewing like now with everyone using... by csense on Sunday February 02, 2025 @09:38PM (#42914325)
> an overconfident 25-year-old that just downed three lunch beers with a wet burrito at the Mexican place down the street from the office on a rainy Wednesday

That's...oddly specific.

Re:Ask HN: What is interviewing like now with everyone using... by alexjplant on Sunday February 02, 2025 @09:42PM (#42914345)
I'm only 33 and I've worked with at least two of 'em. They're a type :-D
Re:Ask HN: What is interviewing like now with everyone using... by blobbers on Sunday February 02, 2025 @11:16PM (#42914918)
You were one of them... 8 years ago?
Re:Ask HN: What is interviewing like now with everyone using... by eru on Sunday February 02, 2025 @11:27PM (#42914991)
(Not the OP.)

The LLMs are much more eager to please and to write lots of code. When I was younger, I would get distracted and play computer games (or comment on HN..), rather than churn out mountains of mediocre code all the time.

Re:Ask HN: What is interviewing like now with everyone using... by sdesol on Monday February 03, 2025 @01:10AM (#42915450)
> The LLMs are much more eager to please and to write lots of code.

My process right now when working LLMs is to do the following:

- Create problem and solution statement

- Create requirements and user stories

- Create architecture

- Create skeleton code

- Map the skeleton code

- Create the full code

At every step, where I don't need the full code, the LLM will start coding and I need to stop it and add "Do not generate code. The focus is still design".

Re:Ask HN: What is interviewing like now with everyone using... by code_for_monkey on Monday February 03, 2025 @11:08AM (#42919624)
one of my biggest issues with the LLM is how it always wants to give me a mountain of code. A lot of the time Im using it for react, and it always gives me a full component no matter how much I specify I just want the method. It will not remember this for more than one message and will go back to giving me as much code as possible.
Re:Ask HN: What is interviewing like now with everyone using... by sdesol on Monday February 03, 2025 @12:20PM (#42920502)
Yeah, it almost feels like you are talking to somebody with OCD. The frustrating part is, output tokens are usually a lot more expensive than input tokens, so they are wasting energy and money :-). Also, the more they generate, the greater the chance it will create attention issues as the conversation progresses.

This is why I built my chat app to let me manipulate LLM responses. If I feel it is not worth knowing, I'll just erase parts of it to ensure the conversation doesn't get side tracked. Or I will go back to the original user message and modify it to say

### IMPORTANT

- Do not generate more code than required.

The nice thing about LLM conversations are, every time you chat, the LLM treats it as a first time conversation, so this trick will work if the model is smart enough.

Re:Ask HN: What is interviewing like now with everyone using... by 1attice on Sunday February 02, 2025 @10:15PM (#42914519)
No this all tracks. Matches my own experience.
Re:Ask HN: What is interviewing like now with everyone using... by hyperdimension on Tuesday February 04, 2025 @08:29AM (#42932034)
I thought it was nicely poetic.
Re:Ask HN: What is interviewing like now with everyone using... by fooker on Monday February 03, 2025 @01:33AM (#42915564)
You are using it wrong.

Give examples and let it extrapolate.

Re:Ask HN: What is interviewing like now with everyone using... by lionkor on Monday February 03, 2025 @02:14AM (#42915759)
"You're holding it wrong" doesn't make a small, too light, crooked, and backwards hammer any better.
Re:Ask HN: What is interviewing like now with everyone using... by bboygravity on Monday February 03, 2025 @02:30AM (#42915839)
You can't tell us that LLM's aren't ready for prime time in 2025 after you tried Copilot twice last year.

New better models are coming out almost daily now and it's almost common knowledge that Copilot was and is one of the worst. Especially right now, it doesn't even come close to what better models have to offer.

Also the way to use them is to ask for small chunks of code or questions about code after you gave them tons of context (like in Claude projects for example).

"Not ready for prime time" is also just factually incorrect. It is already being used A LOT. To the point that there are rumors that Cursor is buying so much compute from Anthropic that they are making their product unstable, because nvidia can't supply them hardware fast enough.

Re:Ask HN: What is interviewing like now with everyone using... by 59nadir on Monday February 03, 2025 @03:04AM (#42915992)
I stopped using AI for code a little over a year ago and at that point I'd used Copilot for 8-12 months. I tried Cursor out a couple of weeks ago for very small autocomplete snippets and it was about the same or slightly worse than Copilot, in my opinion.

The integration with the editor was neat but the quality of the suggestions were no different than what I'd had with Copilot much earlier, and the pathological cases where it just spun off into some useless corner of its behavior (recommending code that was already in the very same file, recommending code that didn't make any sense, etc.) seemed to happen more than with Copilot.

This was a ridiculously simple project for it to work on, to be clear, just a parser for a language I started working on, and the general structure was already there for it to work with when I started trying Cursor out. From prior experience I know the base is pretty easy to work with for people who aren't even familiar with it (or even parsing in general), so I think given the difficulties that Cursor had even putting together pretty basic things it might be that a user of Cursor would see minimal gains in velocity and end up having less understanding in the medium to long term, at least in this particular case.

Re:Ask HN: What is interviewing like now with everyone using... by IanCal on Monday February 03, 2025 @04:49AM (#42916601)
The cursor auto complete? It's useful but the big thing is using sonnet with it.
Re:Ask HN: What is interviewing like now with everyone using... by 59nadir on Monday February 03, 2025 @05:57AM (#42916991)
I tried it with Claude Sonnet 3.5 or whatever the name is, both tab-completed snippets and chat (to see what the workflow was like and to see if it gave access to something special).
Re:Ask HN: What is interviewing like now with everyone using... by consp on Monday February 03, 2025 @02:41AM (#42915892)
> It is already being used A LOT

Which is an argument for quality why? Bad coders are not going to produce better code that way. Just more with less effort.

Re:Ask HN: What is interviewing like now with everyone using... by bboygravity on Monday February 03, 2025 @09:47AM (#42918688)
The claim of the comment I replied to was "LLM's are not ready for prime time" and my opinion is that LLM prime time is already here. Using LLM's to code (or to learn how to code) is obviously super popular.

Who's talking about quality anyway?

Code quality is not and was never the number one most important thing in business, popularity of a product/service or keeping a job. You may find that unfortunate (I agree), but it's just how it is based on my own 15yr+ experience.

Re:Ask HN: What is interviewing like now with everyone using... by KeplerBoy on Monday February 03, 2025 @02:35AM (#42915869)
Copilot isn't a single model. Copilot is merely a brand and uses openAI and anthropics newest models.
Re:Ask HN: What is interviewing like now with everyone using... by Seattle3503 on Monday February 03, 2025 @03:25AM (#42916103)
> At a previous job I made the mistake of letting it write some repository methods that leveraged SQLAlchemy. Even though I (along with my colleague via PR) reviewed the generated code we ended up with a preprod bug because the LLM used session.flush() instead of session.commit() in exactly one spot for no apparent reason.

Ive had ChatGPT do the same thing with code involving SQLAlchemy.

Re:Ask HN: What is interviewing like now with everyone using... by Cthulhu_ on Monday February 03, 2025 @04:59AM (#42916672)
Is that the LLM's fault or SQLAlchemy for having that API in the first place? Or was that a gap in your testing strategy, as (if I'm reading it right), flush() doesn't write anything to the database but is only intended as an intermediate step (and commit() calls flush() under water).

I think we're in a period similar to self-driving cars, where the LLMs are pretty good, but not perfect; it's those last few percent that break it.

Re:Ask HN: What is interviewing like now with everyone using... by linsomniac on Monday February 03, 2025 @07:56AM (#42917739)
>it used some obscure assertion library that had a few hundred stars on GitHub.

That sounds like a lot of developers I've worked with.