News for hackers. Stuff that matters.

ludamn

Re:Ask HN: Why so many dead comments lately? on Friday September 25, 2026 @02:15AM (#49840745)
Thank you!
Re:Towards Self-Driving Codebases on Thursday September 17, 2026 @03:34PM (#49745490)
Agreed, I read this and almost instinctively decided to close the page, agents can be used to build games for sure, but that "one shot" and "fun" in the same sentence is really misleading
They're from Brazil, Google doesn't sell pixels there
Re:Ask HN: Why doesn't HN ask to confirm hiding posts? on Friday December 12, 2025 @02:04AM (#46241587)
I know about that, but it's usually a good UX practice to ask users for confirmation when they try performing destructive actions.

An analogy would be pressing delete on a file in your OS of choice, you can see the deleted file in the trash bin, but before it's moved there you'll be prompted for confirmation anyways (or in more modern OSes a notification/toast shows to let you indo the action if performed by accident)

Ask HN: Why doesn't HN ask to confirm hiding posts?

I think the title says all, it's a bit annoying when you're scrolling on a mobile device and accidentally hit the "hide" actionThere's no confirmation for it, and if you don't pay attention you won't even know it happened.I'm not saying we need any fancy component, just the native browser confirmation dialog would do wonders

( Read More... | 3 comments | on HN )
Re:Ask HN: Who is hiring? (December 2025) on Monday December 01, 2025 @04:00PM (#46113159)
this is one of the coolest things I have ever seen on hacker news, wish you the best of luck!
Re:China's BEV Trucks and the End of Diesel's Dominance on Friday November 28, 2025 @12:01AM (#46075667)
Thanks for sharing, is that engine sound coming from the truck?

Ask HN: Can you share what you built using Cursor/Agentic IDEs?

I had played with Cursor/Claude Code a bit but would like to see the result of other people's work using these tools, bonus point if you can share the source.If it matters, I'm asking this to gather information to make a decision, I received an offer to work in a company that requires all code to be crafted this way.I already have a good job and I'm happy with it, so besides a much...

( Read More... | 6 comments | 4 points | on HN )
Re:Nearly 90% of Windows Games Now Run on Linux on Tuesday October 28, 2025 @07:39PM (#45740774)
If it helps I used to use a gaming laptop for work that had a RTX 2060 mobile version, I was able to run some recent games like Elden Ring (including mods & online play), and some older but still demanding titles like Witcher 3. All of this without tinkering too much on a oob Ubuntu LTS install (I later switched to popOS because I don't like snaps that much).
Re:Using short lived Postgres servers for testing on Thursday June 27, 2024 @02:46PM (#40813679)
For those interested in a easier way to set up databases, and maybe other containerized services, for testing I recommend using TestContainers[1], there's integrations for well known languages like Go, Java, Node.js and the set up is easier than what is described in the article (at least if you're already developing on a container-ready workspace)

[1]: https://testcontainers.com/

Re:Rethinking Text Resizing on Web on Monday May 20, 2024 @03:31PM (#40419259)
I would recommend reading Josh Comeau's brilliant article[0] on this subject, I prefer his more intuitive approach for deciding when to choose `rem` or `px` for CSS values.

For example, from this Airbnb article:

> In the case of Airbnb, the team decided to prioritize the use of rem units specifically for font scaling, rather than scaling all elements proportionally.

This can lead to undesirable outcomes as sometimes spacing between elements can have a functional purpose, e.g. making it easier to vertically separate one paragraph from another. If you use `rem` solely for font-size and nothing else users with `32px` as their default font-size would not have the necessary amount of space to help discern one paragraph from another in this case.

PS It looks like they use Linaria, one can simplify the transition from `px` to `rem` by declaring this helper function and using inside their `css` rules:

```ts

export const px = (...spacing: number[]) => spacing.map(s => `${s * (1 / 16)}rem`).join(" ")

// Example usage

const styles = css`

p { // This inline padding is for aesthetic reasons, we don't want this to scale

  // with users preferred font-size

  padding-inline: 16px;

  // This serves a functional purpose, it will become `0.5rem 1rem` 

  // which should match `8px 16px` if users are using the default 16px font-size

  margin-block: ${px(8, 16)};
}`

```

[0] https://www.joshwcomeau.com/css/surprising-truth-about-pixel...