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

web design ded since the advent of smartphones? I really felt it had almost killed native apps at that point and then suddenly everyone is writing binaries again. Its so weird.

how are you running your automated review prompts? Do you run specific ones for like duplication or over engineering?

This is my main prompt for reviews:

-----

Review current diff with main branch write detailed human-readable summary of changes, find possible improvements, especially in reducing amount of code involved, without changing business logic from document <DOC>, and improving long-term support experience of software.

SCOPE: 1. Correctness: logic errors, off-by-one, incorrect edge-case handling, unhandled nulls/empties, wrong error handling, resource leaks, concurrency bugs. 2. Readability: clear naming, function/module size, cyclomatic complexity, nesting depth, dead code, misleading comments, magic numbers. 3. Design & architecture: single responsibility, appropriate abstraction (no over- or under-engineering), coupling/cohesion, dependency direction, leaky abstractions, duplication (DRY) vs. premature abstraction. 4. Error handling & robustness: fail-fast vs. swallow, meaningful errors, input validation at boundaries, defensive coding where it earns its keep. 5. Testability & tests: is it testable? Are tests present, meaningful, and covering edge cases or just happy paths? Flaky/slow tests, missing regression tests. 6. Consistency: adherence to the project's conventions, idioms, and style; consistent patterns across the change. 7. Documentation: public APIs documented, non-obvious decisions explained, no stale docs/comments. 8. Maintainability signals: TODOs left behind, tight coupling to external services, hard-coded config, missing feature flags/rollback paths. 9. Performance: bottlenecks, non-optimal code, too heavy transitions.

When reviewing the code, strive for criticality and be as less syncopant as possible.

For each of the scope, have two explicit sub-entries: IMPLEMENTED and NOT IMPLEMENTED, SUGGESTED

When reviewing the diff, review for logical errors all the code that is direct dependency of the changes introduced in the diff.

If you find any changes affecting the SCOPE that can be merged, create changes for fixing those in the review.

----

for front-end it also includes 10. WAI ARIA compat

It is slightly modified version of the prompt I found on Github, in my experience it works very well with Grok, Chatgpt Sol, Opus; less well with smaller models like Sonnet or Terra (though it's still conclusive on smaller changes with those). It finds lots of issues and since they are churned out in groups, typically issues can be fixed with parallel agents ( I read the report, mark issues with TODO and WONTFIX, ask my orchestrator to process the doc in parallel with sub-agents then )

I run this workflow on changes with few different models until they stop finding new issues. For small changes 1-3 runs is typically enough, for larger ones its typically 5-6. This is the point when I start looking at code with my own eyes in depth, and yeah I still find many things that are wrong either conceptually, or impacting performance, or overly defensive, or not enough defensive in right places etc. etc.


Interesting, in my experience doing several rounds of agent review and fixes like that would likely increase the number of issues impacting performance, or overly defensive code, etc

That's right, the increase really happens if I let LLM do all the changes it wants during the review. I use following gate in the prompt to mitigate this issue:

For each of the scope, have two explicit sub-entries: IMPLEMENTED and NOT IMPLEMENTED, SUGGESTED. If you find any changes affecting the SCOPE that can be merged, create changes for fixing those in the review.

This way agent only does the obvious changes that can be fixed on sight (and yes, generated implementations still have lots of those). The NOT IMPLEMENTED, SUGGESTED part is when I have first involvement with code (though not that deep as after all reviews), and mark false-positive "issues" as WONTFIX. The subsequent review agent will still find these "issues", but because it now has reference to previous document with them marked as WONTFIX, it will not follow up with them in the next prompt.

I also have review-only version of this prompt which instructs LLM to only find issues and not fix them on sight at all; i use it for more complicated changes like very large refactors.


You sound like a pointy haired boss. Is this how you would instruct an employee? First of all you barely use correct English. It rambles. It combines a half dozen high level constraints in one sentence. An employee would roll their eyes at such instructions. Duh? "reduce amount of code". "find possible improvements", okay boss. You basically just enumerated all the catch phrases from some programming book you read (I.e., The Pragmatic Programmer). "strive for criticality" ?!?!? If AI had eyes they would be rolling too. Most of what you asked the AI to do it already knows and probably at a much deeper level than yourself.

Thanks, this was funny :)

yeah, that entirely defines the emotive based framing of clickbait because it wins when in competition with any other content.

Hah, on reddit "the left" i frequently see people discussing remigration: aka ethnic cleansing with nary a ban in sight.

Oh they do ban. For as much as discussing limiting migration a bit much. (Because achieving essentially the same result the other way around for the purpose of supressing wages and hampering pro-social policy is somehows a progressive leftist virtue when you sprinkle it with a conceiling layer of humanitarianism and conflate the two as much as possible.)

I think recently tho this has shifted and more of the stuff you complain about can be found because there's been an explosion of alternative subreddits growing rapidly since the new default feeds are not annoyingly enough restricted to subscribed subreddits. It now plays into the whole engagment thing based on the kind of crap you've commented (on) before.


"freedom of speech is only good when it reinforces my biases!"

that's certainly an interesting comment to make under a post about "strengthening democratic discourse"


Eh? I'm simply wondering why reddit is being categorised as being "left" when i frequently see extreme right wing view points expressed on there like "remigration".

Because we collectively dont care. There's more appetite electorally to oppress trans people than there is to reduce carbon footprint. Missippi just got won on the back of an ad that suggested everyone is entitled to as much beef consumption as they want.

While there are many countries who have let the world down on climate change, America is quite the outlier. Since the gatekeepers lost control of the narrative post internet, stories that highlight American failings struggled even more than before.

I think its part lf human nature that no ruling class wants to accept responsibility and privilege and would rather find reasons to consider themselves victims. Consider the wailing over gas prices every year that America never answers with "maybe we should drive more fuel efficient vehicles".


It’s the same with the national debt. A lot of people are betting that they’ll be dead before it truly gets bad, and at that point it’s another generation’s problem. Though it does surprise me how many people with actual children and grandchildren are prepared to unapologetically saddle them with that.


You should just copy and paste this every time someone mentions climate change and USA. You nailed it.


isn't the whole "we put a human into space" symbolic anyway? There's no air up there. If we had a full supply chain of robots that brought us back regolith from the moon wouldn't that be more useful than being able to send a person up there?


nah humans going is the point. the science is interesting but not of that tremendous value. we don't view archaeology as the highest human endeavor do we?


It can be both, right? Like, we can put humans there and expand the resources available to humanity immensely by sending teams of robots out to manufacture the future habitats, etc.?

Personally, I'm looking forward to joining the Elench. Humans are allowed to join the Elench aren't they?


What exactly is “the point” of humans going there, other than science? Telling a hero story that ignores the contributions of hundreds of thousands that made this possible? Gratifying a few mammoth-sized egos?


You have to start with a justification for "the point" of human life at all which is a struggle with some people who only see utility in whatever their equivalent of a quarterly balance sheet is (this includes publishing papers in academic journals).


I don’t understand why justifying human spaceflight supposedly requires grand philosophical ramblings about the meaning of life. Justifying brushing your teeth doesn’t require that either, does it?


Why humans expanding into space is important depends on being able to answer the big picture of why exist at all because they're the same answer.

If the meaning of your life to you is some short term success metric that lasts only into the immediate future there's nothing to discuss.

If you have a big picture idea of why life is important then honestly it's probably pretty likely that you already get it and we already agree. So I mention the big meaning of life stuff and if the response is "why does that matter?" it means the argument is pointless because some people have little vision beyond their own close horizons.


What is the point of humans here on Earth exactly? Some consider that humans can be replaced by AI today/in near future. Should we just give up and live space to a more advanced civilization?


innovation is about being able to reach for better solutions to problems where previously it would "take too long". e.g. DSLs.


Having watched almost everyone in my career prefer to do what they're told instead of pushing back in order to build the right thing, I kinda agree.

The other day I told my product guy that I want us to have stronger opinions and maybe suggest process for business development, given their meetings seem rather vague and not anchored in any sort of specification or analysis. He looked at me like I'd just shot his son.


> disagree with his politics

Its the character. Buying a global media platform to "promote free speech" and then shunt the entire thing and himself behind a particular political party. This guy uses his money and his twitter account to support neo-nazi hate groups in my country (Britain First, Patriotic Alternative, Hundred Handers, Tommy Tennames). He has no self-restraint. Its abhorrent. Its not "about politics" when the politics is about racial superiority and ethnic cleansing.

> Imagine if you couldn't post a thread about Microsoft products on HN without republicans feeling the need to jump in to talk about how much they hate Bill Gates for his donations to Kamala Harris's campaign in 2024. It's really tiresome.

and if Bill Gate was literally campaigning for the Dems, getting up on stage, handing voters cheques and THEN being employed by the government to run a department then you'd have a point.

He repeatedly crosses the line of what is appropriate. People with that level of wealth should stay the fuck away from politics and respect democracy instead of using their money and business to have excessive influence on democratic outcomes. Its unseemly and disrespects the idea of everyone getting the same amount of votes. I respect that donations have similarities but there's a difference between making a donation and being excessively public.


> People with that level of wealth should stay the fuck away from politics and respect democracy instead of using their money and business to have excessive influence on democratic outcomes.

People with that level of power — because it is power — will do what they will. “The strong do what they can, and the weak suffer what they must”.

> Its unseemly and disrespects the idea of everyone getting the same amount of votes. I respect that donations have similarities but there's a difference between making a donation and being excessively public.

We have transitioned, it would seem, from the pretence of “goodness” to naked displays of power. Unseemly, definitely.

Justice. Righteousness. Old fashioned words and old fashioned ideas. Oh for a good and righteous king!


> People with that level of power — because it is power — will do what they will. “The strong do what they can, and the weak suffer what they must”.

agreed and we should hate them for it.


its not about virtue and its not even about starving. Its about making a global economy more stable so the world is richer and the US almost always profits from that.


Do you have any evidence that is the result? Perhaps all the aid does little but prop up their criminal governments?


Commodities. They power the economy and they're worldwide. Ofc you want the free flow of goods. From the US's perspective who cares who runs what nation, as long as its not hostile and its stable then the commodities can flow from it. Then manufacturers can make whatever they want to create products to generate growth and wealth, the vast majority of which flows into the US and into their stock market.

As it stands the war in Iran is creating problematic issues with many petrochemicals and their derivative products making it harder for countries to generate wealth to invest in the US stock market.



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

Search: