Better HN
topnewbestaskshowjobs
Log inSign up

RevEng

476 karma · joined Aug 29, 2023 (3y ago) · 291 submissions

Submissions

comment 6mo ago · link · parent

Great point! This is along the same lines as a low fidelity prototype. It doesn't have to be production quality - hell, it barely needs to work so long as it's good enough to get feedback. Now I can have higher fidelity prototypes in the same time or more iterations in the same time, either of which tend to give me more insight and get me closer to the solution faster. Even if I never ship a line of AI-generated code, I can use it to write the same throw away code I did before, but much faster.

comment 6mo ago · link · parent

I treat it like other triage tasks: things could always be better, but how much effort does it take and how much better could it be?

There's a common saying that the enemy of good is perfect. It's easy to get stuck in the loop of endlessly polishing something but never actually releasing it, even without AI. It's on us to decide how good is good enough and when to stop.

Over time I've learned to be rather aggressive about cutting out work. I'll quickly ask myself how serious is the issue (does it give wrong answers? block important flows? look embarrassing? or is it just a minor annoyance?) and how much effort would it take (five minutes? two hours? three weeks?). I should be able to make that call in no more than 30 seconds. I skim through the list of 20 suggestions the AI gives, I make plans to iterate on the 3 that are serious, and I simply accept that the rest are "good enough". It's not easy - both to be willing to let issues stand and to make the decision about what is good enough - but it's an important part of the job when triaging lists of bug reports and feature requests, so it's something we need to get good at anyway.

comment 6mo ago · link · parent

Huh, good point! When a colleague asks me to review their design or otherwise discuss it, I'm always looking for things they might have missed, assumptions they silently made, or corner cases that could come up. I start from the position that there is likely something missing and I need to find out what. Likewise, when I'm looking at suggestions or code or anything else from an AI, I'm assuming it made some mistakes, made some unstated assumptions, or didn't consider some corner cases, and so I'm having to carefully think through what it says to spot the mistake, rather than casually skimming it and going, "LGTM!" If it were too reliable, I might get lazy and not look too hard knowing that it's probably right anyway so there's no point trying too hard to find something. It's the same thing my juniors will sometimes do to me: don't assume I'm right just because I'm experienced - I still make mistakes too! I want to be questioned on anything that might not make sense, because even if it was intentional, the fact that the reason isn't clear is itself a problem to resolve. And I only know so many things - we all have different experiences and a junior can have just as much they can teach me as a senior.

comment 6mo ago · link · parent

I do the same thing as an expert with 20 years of experience. You can always benefit from a second set of eyes and a second opinion. What's important is that you consider that input and then make your own decisions, rather than deferring to the AI to make the decisions for you.

comment 6mo ago · link · parent

This is why I don't use agent-first platforms like Claude Code. I want to write software with an AI to assist me, not an AI to write my software for me. I don't want an environment whose main mode of operation is instructing an AI to write code - I want a typical IDE where I can continue writing code myself but with an assistant there to consult whenever I want it.

Even then, it's easy to fall into a trap of giving the AI a simple description and letting it fill in the blanks, but I've learned the discipline not to do that, in the same way I learned to think before I speak and design before I write code.

Planning mode is my entry point for almost all code I would have the AI write. I already have in mind what I think I want. I get it to create a detailed plan, which inevitably fills in things I didn't specify and even ask questions I hadn't considered. I iterate on this first revision spec until I think it's ready. This results in a task list. But just like waterfall doesn't mean make a plan and execute it all without looking back, executing this plan is also a stepwise iterative process. I let the AI execute the first step. I check its work. I run some tests and see if it behaves like I thought it would - the same stuff I would do during normal development. If I find issues, I go back to the plan and change it, then continue implementing the revised plan. If the previous step lead me into a dead end, I revert that one step and try again with my revised plan.

The key thing is this: this was my development methodology before AI entered the picture. Nothing has fundamentally changed. What has changed is that the AI provides input at one or more stages of the flow - offering alternatives, asking questions, running tests, researching and debugging - but in every single step the AI does not decide on the final outcome. Even if the AI wrote all of the code, I still review it and test it. Even if it suggested a design, I compare the options and review the referenced documents and decided for myself. Even if it reviews my code and says it would do a hundred things differently, I decide what suggestions I will act on and how. It's no different than I would do with having a coworker giving me ideas, reviewing my work, or making their own attempt at generating a solution. It's all helpful input and if I'm happy with it I will use it as is, but I'm still responsible for every line of code and I still make all of the decisions about what stays and what goes.

I'm sure this sounds wasteful - why use an AI if you have to review it and correct it anyway? For the same reason I delegate tickets to a team of 20 junior developers and don't do them all myself as a principal engineer - I am but one person and they are an army. Even if I have to discuss plans and options with them and review their work, they can spend the same hours I would brainstorming and researching and prototyping and debugging, and I can go over the results with them to make key decisions and make sure we are on the right track. I make the important decisions, but the leg work of getting everything in place is done by someone else who doesn't need as much knowledge or insight or experience. It is a force multiplier. It is the equivalent of a lawyer with a team of paralegals or a professor with a team of researchers and grad students. I can let the AI do the things it does well so that I don't have to, and instead I can spend my time on the things I do well that it can't do.

This is where I think we are going wrong with AI in many areas, but particularly in software development. An AI is not a replacement for an engineer - it's an engineer's assistant. It isn't a source of truth - it's a source of ideas. It's not responsible for the outcome - I am. A team of helpers can make an expert more productive, but that team isn't a substitute for the expert. Likewise, juniors still need to gain the same experiences and learn the same practices and make the same mistakes, because they still need to become experts, but they can use the AI as a guide along that journey rather than having to rely solely on another expert for mentorship.

comment 6mo ago · link · parent

I do something similar. Design reviews are an extremely valuable part of the process but they take a long time and people are busy and who really has enough expertise to provide meaningful feedback? Well, the AI is always available and it can rip through my entire codebase in just a few minutes and it has seen more code than I could in a thousand lifetimes. Asking it to review my ideas, my proposals, my implementation, my documentation - anything I can think of - generates a wealth of good insights.

That's not to say that I follow every suggestion it gives any more than I accept every line of code it generates. I'm still the engineer and I still have my reasons for some decisions that may not make sense to an outsider. But as a rubber duck or a second set of eyes or a sober second thought, it can offer a lot of good feedback that I can consider, and most of it is quite good.

I'd say about 8/10 suggestions it makes I agree with and accept, maybe with some small tweaks. I don't think I've ever seen it suggest anything stupid. The last 2/10 are generally either things that would make sense if not for the rest of the context in my head that says it is that way for a reason, or because it's too minor to worry about changing.

All of this extra review takes more time and it usually results in me making a bunch of extra changes I wouldn't have otherwise made, but that's all I'm the make of much better quality and reliability and that pays off in multiples in the future.

comment 6mo ago · link · parent

A lawsuit will cost you at least thousands of dollars if you can even serve the person. The FBI doesn't care about even thousands of dollars of fraud; they are busy chasing million dollar crime rings. Try reporting to your local police and see what they say - they will advise you it is not even worth your time to write out a report because it won't be investigated. Heck, my mom was defrauded out of $10k by a persistent group of people running a fake crypto investing company, and when she reported to the government body specifically responsible for investigating those cases, the nice man said, "Thanks for letting us know." They don't have time to investigate and prosecute minor fraud.

comment 6mo ago · link · parent

After a couple of turns the system prompt is a small part of the context. Not changing the system prompt at all is key so that the rest of the history is itself part of the prefix.

comment 6mo ago · link · parent

My employer doesn't specifically block this stuff, but does put up a warning when you visit it to review our AI usage policy. There isn't detection for using things in ways we shouldn't, but they have an audit trail and can review it if there is suspicion.

comment 6mo ago · link · parent

They do have agreements, but they aren't exclusive, and Microsoft and Open AI have had a rather public falling out over the last year.

comment 6mo ago · link · parent

A spectrogram is literally the same audio, just transformed through a Fourier transform. That transform has a trivial inverse. The spectrogram isn't perfect - the visual representation is low resolution and the phase information is missing - but it's plenty enough to at least figure out what was said. There's nothing surprising that this is possible, only disappointing that whoever published the article didn't realize it.

comment 6mo ago · link · parent

So it's hyped? Lots of deployment doesn't mean lots of value, especially in the midst of a bubble larger than any we have ever seen before.

comment 6mo ago · link · parent

Generating 12x the amount of code/commits/releases isn't a useful metric. That could just as easily be 12x more code to maintain or iterations needed to get it working. Products are measured by the value they provide, not by the resources it cost to create them.

comment 6mo ago · link · parent

I legit thought it was just an image. The first panel fills my whole phone screen and there is no indication that there is anything to scroll. I don't like this new web.

comment 6mo ago · link · parent

Arguments against history require more reasoning. Patterns emerge because that's how the systems work. "This time it will be different" require justification about why the system has significantly changed. The article makes a strong case for why the system hasn't changed.

comment 7mo ago · link · parent

One issue with the author's suggestion that AI makes it faster for defenders: the issue was never time to fix, but time to distribute.

My employer is working on a fairly early and small AI platform. Performance issues and other bugs are found regularly. I can usually track it down and have it fixed within an hour. But it's not so easy to distribute that fix. New releases need to be made and there are other changes going into them. The while release needs to be tested (hopefully). We have to update our internal deployments and cloud deployments, which needs careful coordination. Our customers' on-premise deployments are even further behind, often several months.

It takes an hour to fix a bug but months for that fix to reach end users. AI doesn't make that faster.

comment 7mo ago · link · parent

Most of our employees don't hit their $50/month cap. Others end up into the hundreds. It depends on how you use it.

comment 7mo ago · link · parent

Except that coding agents will do this at times. That's half the problem. A human will forget details and exaggerate others, but LLMs fail in spectacular ways that humans rarely would, like trying to copy a document from memory rather than one word at a time, side by side, or rewriting the whole thing just to make some simple changes. Coding agents will delete tests or return True to get them to pass - something you would never expect of even a junior professional.

And I know this because I see it all the time. I use composer-2 and sonnet 4.6 on a regular basis. It's not much better for my colleagues who use Opus or GPT or any of the other frontier models. Most of the time it's fine, but other times it does things simply unforgivable for a human. I have to watch the agent closely so that it doesn't decide to nuke my database; I don't have to do that with any of my juniors, even those with little experience and poor discipline.

comment 7mo ago · link · parent

If they can't buy it, they will build it. Wouldn't you rather be the one selling it to them?

comment 7mo ago · link · parent

Not sufficient. See the GitHub thread. It is tagging things even when AI features are disabled.

comment 7mo ago · link · parent

I don't know for certain, but likely because they are required to. There are lots of other examples where companies will only abide by regulations in places where it's required rather than applying it generally. A common example in Canada is with things like lotteries, coupons, or returns - many things exempt Quebec because it's not allowed there, but the companies still place that burden on everyone else they can.

comment 7mo ago · link · parent

Also great if you are distracted, perhaps by kids in the back or something happening on the side of the road. Mine has chirped at me a few times. It's basically the electronic version of rumble strips.

comment 7mo ago · link · parent

Absolutely, that's how it always goes. Then you'll see people saying, "if you don't like it, find another job" as if you can just walk up to the door of an office and order one.

comment 7mo ago · link · parent

Composer works great for me and it's much cheaper than Opus. Grok is the cheapest but it's obviously being subsidized heavily

comment 7mo ago · link · parent

Cursor isn't the hot new thing, but enterprises move slowly. Cursor is alive and well in big businesses, even if the Twittersphere isn't covering it.

comment 7mo ago · link · parent

As someone put in the unfortunate position of building an AI IDE in three weeks, I assure you it's much more difficult than it seems. Sure, we were able to get something working with all the features you would expect, but the performance was awful. Claude Code, Cursor, and others do a lot of tweaking based on a lot of experience in order to make their systems give good results. There is more to getting good results than just using a good model.

comment 7mo ago · link · parent

We just started adopting Cursor over the last six months. We have at least a hundred developers using it and several more signing up every day. I'm one of them and I'm quite happy with it.

comment 7mo ago · link · parent

It's exactly what Nvidia is doing with everyone these days. They invest in a company with money that is earmarked to buy Nvidia GPUs. Nvidia's books show lots of investments and lots of sales - win win! Of course, it's just buying it's own products.

comment 7mo ago · link · parent

I hope their models improve. I used Junie when it first came out and it was okay but unreliable. I use Cursor with composer right now and I never have any issues. I sure do miss using PyCharm though.

comment 7mo ago · link · parent

So nice of the Economist to start off by setting the stage as a free democracy versus a murderous dictatorship. The two are starting look more and more similar each day. Which one has killed more Iranian civilians recently? Trump and Hegseth are openly committing war crimes and threatening genocide while claiming it's not even a war.

The article could have talked all about the meme war and how successful Iranian is at it without first aggrandizing the US and villianizing Iran.

12345
10