Better HN
topnewbestaskshowjobs
Log inSign up

danfritz

562 karma · joined Nov 10, 2015 (11y ago) · 96 submissions

https://janstevens.dev
Submissions

1.

Node.js: 5 vulnerabilities found, update now(nodejs.org ↗)

12 points · by danfritz · 1mo ago · 2 comments

comment 1mo ago · link · parent

Ever used a time field in pure html? And then you get reports users can enter 99 minutes.

Yes that's why

comment 2mo ago · link · parent

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

comment 4mo ago · link · parent

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.

comment 4mo ago · link · parent

This feels a lot like sagas and redux sagas. Anyone else got that vibe?

comment 4mo ago · link · parent

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

comment 5mo ago · link · parent

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.

comment 6mo ago · link · parent

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

comment 6mo ago · link · parent

I wonder how well this corolates with azure incidents. Especially for the US regions.

comment 6mo ago · link · parent

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

comment 7mo ago · link · parent

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

12.

Adonisjs v7 released (Next.js alternative)(adonisjs.com ↗)

3 points · by danfritz · 9mo ago · discuss

comment 9mo ago · link · parent

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

comment 9mo ago · link · parent

Indeed totally unbearable to even read the article

comment 10mo ago · link · parent

By the time I have figured out all those quirks and guardrails I could have done it myself in 45min tops.

comment 10mo ago · link · parent

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

comment 10mo ago · link · parent

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...

comment 1y ago · link · parent

Related to the recent announcement they are moving to Azure?

19.

GitHub partial outage(githubstatus.com ↗)

188 points · by danfritz · 1y ago · 82 comments

20.

AI Pullback Has Officially Started(planetearthandbeyond.co ↗)

62 points · by danfritz · 1y ago · 62 comments

21.

Safe Chain prevents developers from installing malware(npmjs.com ↗)

11 points · by danfritz · 1y ago · 1 comment

22.

Safe Chain: Stopping Malicious NPM Packages Before They Wreck Your Project(aikido.dev ↗)

2 points · by danfritz · 1y ago · discuss

comment 1y ago · link · parent

Looks cool but how much does it cost?

comment 1y ago · link · parent

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

comment 2y ago · link · parent

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.

comment 2y ago · link · parent

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

27.

Study on the Impact of Format Restrictions on Performance of LMM(arxiv.org ↗)

1 points · by danfritz · 2y ago · discuss

comment 2y ago · link · parent

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

29.

Gorilla, belgian startup that helps energy providers crunch big data raises $25M(techcrunch.com ↗)

1 points · by danfritz · 2y ago · discuss

comment 2y ago · link · parent

It seems dead? https://github.com/aws/chalice/issues/2067
1234