Hacker Newsnew | past | comments | ask | show | jobs | submit | donkey_brains's commentslogin

So do you make the LLM restrict its output to small, individually-reviewable chunks per PR?

I generally prefer small increments yes but I don't shy away from larger changes where necessary. Just like everyone hated reviewing a 4000 line PR before LLMs, we all still hate it now, provided you actually do review things properly and not just tell Claude to do it or skim it lazily.

I wouldn't say I make the LLM restrict it's output, rather I'd say I just don't ask for a lot at once. If I want to create a new page in our web app I'll split it up into multiple tasks - create the new page with the required layout and add it to the navigation. Create a new component we need for this page, put it on the page so it can be tested. Create another component. Add an endpoint to the API for getting the necessary data. Use these existing components and the new ones to build the final page. At each step I test and verify that it works properly, and review the code to make sure it's reasonable. I might make several pull requests or just one depending on the size of the task and what makes sense to me. In general I want a PR to be testable, just a component isn't testable if it isn't used so it has to be used. I also don't do a PR that isn't production ready, so I won't submit a PR with just a test page.

If it's a very simple page where we have most or all necessary components I might just send a screenshot from Figma along with instructions to use existing components and what data to use, CSS variables and whatever else and have it try to one-shot it. I generally don't want a PR to have more than a few hundred lines total. I review and test the code at each step and finally I review the whole PR myself before submitting it to colleagues.


Yeah this is a very very common and fundamental operation in programming. Always use the “refactor” tool in your IDE instead of trying to change every instance of a variable name by hand.

It’s like using a linter: you do it because it’s the right thing to do and doing it without the tool confers no benefit and is prone to error.


> Always use the “refactor” tool in your IDE instead of trying to change every instance of a variable name by hand.

That _is_ the refactoring tool in my IDE (emacs). i demonstrated replacing _all_of them at once, not replacing them each by hand.

> ... because it’s the right thing to do and doing it without the tool confers no benefit and is prone to error.

There was nothing in my post done "without the tool." Shell/find/perl _is_ the tool for C refactoring, and has been for decades.


  >  i demonstrated replacing _all_of them at once, not replacing them each by hand.
Not really, that is search and replace. IDE's do typesafe refactoring. If you change the Find method in class A, you should only change occurences of x.foo(), where x has type A. You shouldn't accidentally change all B.find()'s.

That is my advice for everyone completing their first Python tutorial: learn a typed language next if you aspire to do serious work. It also saves you writing many manual tests that you had to make otherwise, as the compiler makes that superfluous. Plus your IDE becomes a superpower.


I normally would use find replace in vscode but I either forgot that existed or I was enjoying myself too much

Grift while the grifting’s good.

It means something different _to you_ because it represents the experience _you_ had in taking/making it.

Oh, what the hell?!? This is nightmare fuel.

I generally agree with you, but I do think that terrorism is objectively the wrong way to protest. I’d say the Unabomber’s victims and their families were slightly more than “bothered”.


High frequency trading has been a reality for decades. What’s different now?


HFT strategies are simple. They are also static (they can re-fit, but fundamentally remain the same).

Putting LLMs in the loop now gives you reactive strategies. The agents can see the reaction of the market and adjust or change direction.

This creates complex feedback loops that can't be understood at human speed.


> HFT strategies are simple. They are also static (they can re-fit, but fundamentally remain the same).

What makes you say this?


Because he doesn't know, like so many people on HN, that you can just build smaller models and let them be steered by a bigger model. Everyone thinks you need a trillion parameter model or the model is worthless.

It's the same problem with semiconductor manufacturing, where only the bleeding edge counts when in reality you need a whole spectrum of fabs.


Flagged? This is a story about technology and its effects on society. Get stuffed with this censorship BS.


Censorship BS? This is being discussed in every social forum in the country. Divisive topics == divisive attitudes, and in exchange for peace some of us are fine with not talking about some shit in some places.

Dang and team are walking a fine line - telling them to get stuffed is inappropriate and illustrative of why this is a problem in the first place.

edit: Ohhhhhhh the /u is donkey_brains; did I take the troll bait? jfc I hate this timeline


Oh yes, this is totally off topic, let’s just keep talking about the same LLM subjects over and over and over and over again.


If time travel gets invented it's going to be on every social forum in the country, which would be grounds to not talk about it on HN I guess?

Authoritarian police state high tech cyberpunk torture devices seem about as 'hack news'ie as something can get.


I haven't seen it anywhere else. I was on Reddit before I came to HN this morning.


Fair. My anxiety is my own thing, and shouldn’t be projected onto everyone; at the same time, “get stuffed” just set me off.


“The device is not effective through clothing or hair and can be degraded on individuals and animals that are extremely hairy.”

Black bloc for protesting is going to become more popular.


What would happen if someone was to wear clothing with extremely low resistance wires in them? Because that would likely cause rapid heating in the glove, probably causing it to catch on fire by itself, or if especially badly designed, which these probably are, set off a lithium fire in the battery (2000+ degrees, can't be extinguished with water, in fact, really bad idea to try that).

Does clothing with, say, silver wire woven into it exist? I bet people make that. Wear an antistatic vest with a silver wire pullover and I bet that glove will decide to disable itself, or worse.


Sometimes something like a hulking Austrian body builder seems like a weird design for a human killing machine. Then real life suggests people may wear hairy gorilla suits to avoid pain compliance gloves during protests.


They're more for post-detainment torture. They'll keep shooting Black Bloc folks in the face from afar with 40mm tear gas canisters as they do currently.

https://www.motherjones.com/politics/2026/08/ice-shock-glove...

> “In today’s society, you know, everybody’s filming everything, everybody has a cell phone,” Glueck said. If an officer punches someone on camera, that can go viral in an instant; even a standard taser leaves puncture wounds. But “the glove is low optic, and it looks better on video, and it looks better to those witnesses. With a glove, there are no burn marks or scars.”


Argh I’m not making an account even to read something so lurid and juicy


Shrug sorry yeah I dunno when NYT started pulling that with their share links.

Added archive link alternative


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: