News for hackers. Stuff that matters.

danfritz

Re:Why don't more developers "use the platform"? on Sunday October 04, 2026 @08:33AM (#49953370)
Ever used a time field in pure html? And then you get reports users can enter 99 minutes.

Yes that's why

Re:Ask HN: Is it impossible to disable Siri on macOS 27? on Monday September 21, 2026 @10:05AM (#49787455)
I didn't check it yet but I hope being in EU macOS 27 upgrade is basically small UI tweaks and thats it :D

Still holding off for now

Yep, it seems that if you hammer messages things get easily dropped or the async behavior is not executed.

IMO the reset should fire regardless what happens after it.

This feels a lot like sagas and redux sagas. Anyone else got that vibe?
Re:CursorBench 3.1 on Thursday July 02, 2026 @02:27AM (#48757324)
It's my daily driver, it's fast affordable and with a bit of guidance gets the job done.

I only reach for Claud when i need to plan something big or want to have a sparring partner to fire of some ideas.

I think what a lot of people don't realize is that you don't need a fronteer model for 80% of coding tasks. Composer 2.5 is often more than good enough, less token hungry and way faster

Re:When I reject AI code even if it works on Sunday June 21, 2026 @03:46AM (#48616606)
This resonates a lot with me. I often use AI for the plan and let it propose multiple possible implementations, I often have to point out the glaring easier / logical solution.

When implementing its often a lot of misses with a few golden hits. The other day it used flex for a table layout while our app uses tables everywhere sigh.

Another typical one is that it tends to prefere frontend aggregation and looping of data instead of letting the database and backend deal with it.

Using mix of claude, cursor composer and codex.

Re:Ask HN: We just had an actual UUID v4 collision... on Friday May 08, 2026 @01:42PM (#48066376)
Always let your db generate uuids. On postgres this is easy since v18 it supports uuid v7!

There is no need to set uuids through javascript or node imo

I wonder how well this corolates with azure incidents. Especially for the US regions.
Re:I Got Sick of Remembering Port Numbers on Friday May 01, 2026 @03:00AM (#47971958)
Alternative https://github.com/peterldowns/localias

Granted no fancy UI to start and stop things but is it really needed?

Tbh this is not a single binary you need dnsmasq go and other things

Re:I don't chain everything in JavaScript anymore on Wednesday April 22, 2026 @09:52AM (#47863651)
I can only say: learn how to use reduce and you never loop twice through a list of items or objects.

To me reduce is very easy to reason about and makes it super easy to properly filter, combine, extract values without ending with filters on filters on maps and maps

Re:We tasked Opus 4.6 using agent teams to build a C Compiler on Thursday February 05, 2026 @04:48PM (#46905851)
Ha yes classic showcase of:

1) obvious green field project 2) well defined spec which will definitely be in the training data 3) an end result which lands you 90% from the finish

Now comes the hard part, the last 10%. Still not impressed here. Since fixing issues in the end was impossible without introducing bugs I have doubts about quality

I'm glad they do call it out in the end. That's fair

Re:AI Is Killing B2B SaaS on Thursday February 05, 2026 @05:12AM (#46897980)
Indeed totally unbearable to even read the article
By the time I have figured out all those quirks and guardrails I could have done it myself in 45min tops.
Whats the improvement here? I spend more time fixing it then doing it myself anyways. And I have less confidence in the code Opus generates
Every time I see a post like this on HN I try again and every time I come to the same conclusion. I have never see one agent managing to pull something off that I could instantly ship. It still ends up being very junior code.

I just tried again and ask Opus to add custom video controls around ReactPlayer. I started in Plan mode which looked overal good (used our styling libs, existing components, icons and so on).

I let it execute the plan and behold I have controls on the video, so far so good. I then look at the code and I see multiple issues: Over usage of useEffect for trivial things, storing state in useState which should be computed at run time, failing to correctly display the time / duration of the video and so on...

I ask follow up question like: Hide the controls after 2 seconds and it starts introducing more useEffects and states which all are not needed (granted you need one).

Cherry on the cake, I asked to place the slider at the bottom and the other controls above it, it placed the slider on the top...

So I suck at prompting and will start looking for a gardening job I guess...

Re:GitHub Partial Outage on Thursday November 13, 2025 @10:04AM (#45915732)
Related to the recent announcement they are moving to Azure?
Looks cool but how much does it cost?
Re:The Pain That Is GitHub Actions on Thursday March 20, 2025 @04:13PM (#43428335)
Not my experience, I have done fairly complex things like building / releasing a whitelabel ios and android app which is branded in ci per customer.

Like othes have suggested, keep the actions simple by having lots of scripts which you can iterate on locally and making the actions dump to just run the scripts

I've always used https://github.com/pzavolinsky/ts-unused-exports

Has more features (like excluding enums) and works very well in large code bases.

Re:Good Refactoring vs. Bad Refactoring on Wednesday August 21, 2024 @12:37AM (#41306838)
Clearly the real good refactor was using reduce instead of filter / map.

No need to loop twice over the array. Always use reduce if there are chained methods going through arrays

Re:React 19 Breaks Async Composability on Friday June 14, 2024 @04:14AM (#40678745)
Ha great we finally arrive at the "Next.js React features" which basically forces everyone to use Next.js or an additional framework on top of React which now have to play catchup with whatever react - next.js think is "best" (for Vercels wallet). Expected outcome if half or the react core team is a Vercel employee.

Kinda new this day was coming, sad to see it actually happen

Re:AWS Chalice on Monday June 03, 2024 @10:21AM (#40562895)

Older »