HNHacker News
TopNewBestAskShowJobs

danfritz

562 karma · joined November 10, 2015

https://janstevens.dev
submissionscomments
danfritz··on Why don't more developers “use the platform”?
Ever used a time field in pure html? And then you get reports users can enter 99 minutes.

Yes that's why

danfritz··on Ask HN: Is it impossible to disable Siri on macOS 27?
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

danfritz··on The front end framework for correctness: built on Effect, architected like Elm
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.

danfritz··on The front end framework for correctness: built on Effect, architected like Elm
This feels a lot like sagas and redux sagas. Anyone else got that vibe?
danfritz··on CursorBench 3.1
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

danfritz··on When I reject AI code even if it works
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.

danfritz··on Ask HN: We just had an actual UUID v4 collision...
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

danfritz··on Show HN: Red Squares – GitHub outages as contributions
I wonder how well this corolates with azure incidents. Especially for the US regions.
danfritz··on I Got Sick of Remembering Port Numbers
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

danfritz··on I don't chain everything in JavaScript anymore
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

danfritz··on We tasked Opus 4.6 using agent teams to build a C Compiler
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

danfritz··on AI is killing B2B SaaS
Indeed totally unbearable to even read the article
danfritz··on Opus 4.5 is not the normal AI agent experience that I have had thus far
By the time I have figured out all those quirks and guardrails I could have done it myself in 45min tops.
danfritz··on Opus 4.5 is not the normal AI agent experience that I have had thus far
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
danfritz··on Opus 4.5 is not the normal AI agent experience that I have had thus far
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...

danfritz··on GitHub partial outage
Related to the recent announcement they are moving to Azure?
danfritz··on Show HN: lambda-nat-proxy – Serverless proxy using Lambda and UDP NAT punching
Looks cool but how much does it cost?
danfritz··on The Pain That Is GitHub Actions
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

danfritz··on Show HN: ts-remove-unused – Remove unused code from your TypeScript project
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.

danfritz··on Good refactoring vs. bad refactoring
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

danfritz··on React 19 Breaks Async Composability
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

danfritz··on AWS Chalice
It seems dead? https://github.com/aws/chalice/issues/2067
danfritz··on How to style React applications while the world burns around us (2020)
I'm a long time material ui user and always disliked the tailwind approach of slapping classnames in a long string.

After reading the excellent article it hit me, I'm already doing the exact same :facepalm:

<Box mr="4" border="1px solid #ee"... />

There is really no difference, instead of a string with classes I have a bunch of props. Time to look at tailwind again...

danfritz··on Why are we templating YAML? (2019)
Give it a couple of months: Why the f*ck are we templating JSON

This article feels very ironic to me hence the sarcasm.

Give me code as configuration and I'll be interested

danfritz··on Cutting down AWS cost by $150k per year simply by shutting things off
Cut costs down to 90% by going serverless and run everything on lambdas?

Nothing keeps humming if it's not being used

danfritz··on The Password Game
Cannot get past rule 5, tried a bunch of different solutions from this thread but nothing works. Maybe a browser quirk ( I'm on Brave IOS)

Anybody else have the same problem?

danfritz··on Show HN: Asdf Clone Written in Rust
Will definitely check this out! I'm a long time asdf user but I always struggle with the shims and long timeouts.

I occasionally hit 2sec until my node version is resolved.

danfritz··on Ruby on Jets: Like Rails but serverless
With lambda you pay for what you use. It scales endlessly and is quite cheap. Depending on your typical usage and load it can be a huge cost saver (also mentally) as lambda will scale.

With ECS Fargate it costs money even without any traffic and you are responsible for correctly implementing auto scaling.

I'm coming from 10y rails dev background and now full stack typescript. Thinking in pure lambda functions is a breath of fresh air for me.

danfritz··on Speeding up the JavaScript ecosystem, one library at a time
You can enable the experimental `browsersListForSwc: true,` option which uses your browserlist to determine the appropriate target. You can also disable `legacyBrowsers`

ref: https://nextjs.org/blog/next-12-2#other-improvements

danfritz··on Building Setf
An article on how to not break to new lines in the middle of a word, makes it hard to read. You can improve by running

  $('.content').style.hyphens = 'none';

flies away
Page 1 of 3Next →