HNHacker News
TopNewBestAskShowJobs

patates

2,437 karma · joined December 10, 2015

submissionscomments
patates··on How to talk to anyone and why you should
I have ADHD with terrible social anxiety, and conventional treatments only help so much.

I know I can eventually beat it, and I'm so happy for you and everyone who beats social anxiety. You are my idols!

That said, I don't like it when someone says "yeah just do it, it's possible". It's not possible to just do it. Yeah only doing the thing is doing the thing and preparing to do it is not doing the thing, I get it. On the other hand, you can also jump off a cliff without checking your parachute, just saying.

patates··on Ladybird adopts Rust, with help from AI
You can also let the agent use a profiling tool. It probably cannot beat you, but does find and improve a lot of things for sure.
patates··on Ladybird adopts Rust, with help from AI
I'm not sure if you're serious or not, but while I never liked Drupal (even used to hate it once upon a time), I always liked the pragmatism surrounding it, reaching to the point of saving php code into the mysql database and executing from there.
patates··on Ladybird adopts Rust, with help from AI
It was below 100$, but only after burning through the 20x max session limit.
patates··on Ladybird adopts Rust, with help from AI
> Coding assistants are also really great at porting from one language to the other

I had a broken, one-off Perl script, a relic from the days when everyone thought Drupal was the future (long time ago). It was originally designed to migrate a site from an unmaintained internal CMS to Drupal. The CMS was ancient and it only ran in a VM for "look what we built a million years ago" purposes (I even had written permission from my ex-employer to keep that thing).

Just for a laugh, I fed this mess of undeclared dependencies and missing logic into Claude and told it to port the whole thing to Rust. It spent 80 minutes researching Drupal and coding, then "one-shotted" a functional import tool. Not only did it mirror the original design and module structure, but it also implemented several custom plugins based on hints it found in my old code comments.

It burned through a mountain of tokens, but 10/10 - would generate tens of thousands of lines of useless code again.

The Epilogue: That site has since been ported to WordPress, then ProcessWire, then rebuilt as a Node.js app. Word on the street is that some poor souls are currently trying to port it to Next.js.

patates··on Windows Notepad App Remote Code Execution Vulnerability
> And, if I'm not totally mistaken, notepad also has the ability to reopen files as administrator, but I don't remember how to invoke it.

I think that's a notepad plus plus feature. I had it offer to reopen itself as administrator when editing system files like HOSTS.

patates··on A Broken Heart
I have a very vague idea about how consoles work (I mean we're talking about terminals, like, terminal emulators right?), so probably that's why I don't understand how the usage of emojis break one.

I use a lot of different OSs, and none of the default terminals seem to have any problems with emojis, even cmd on windows (which isn't even default anymore?).

So detaching from the main theme of if the use of emojis is a good idea from the start, may I get more details on how your console breaks? :)

patates··on A Broken Heart
Coding agent is a category of tools like, say, unit tests. If these days someone attached some random bits about how unit tests helped and how they didn't, everyone would directly agree that it does not help the main point of the article. However, because how relatively new these things are and how wide the spectrum of opinions are, and how it feels like "cheating", many feel the duty to also report the usage of them, even when talking about something completely different. I remember the times when every web developer was talking about how firebug helped them defeat a very elusive bug.

TL;DR: It will pass as AI agents become more boring (a good thing) and there's a standard workflow.

patates··on EU–INC – A new pan-European legal entity
It's impossible here, triple impossible there, so still the same price from my perspective.
patates··on EU–INC – A new pan-European legal entity
Can you guys please somehow involve Switzerland too? I'm thinkng about moving there and my German employer is like, "No! Even France would be extremely hard, Switzerland is plain impossible for payroll!".

Dude come on, I know they're not in the EU but like, there it feels like practically the same country if you don't mind the loveable accent and the crazy prices in another currency :)

patates··on Can you slim macOS down?
Losing Thunderbolt is a bit too much, isn't it?
patates··on The challenges of soft delete
Trigger-based approach is the only one that really works in my experience. Partition the archive table in a way that makes sense for your data and you're good to go.

Some more rules to keep it under control:

Partition table has to be append-only. Duh.

Recovering from a delete needs to be done in the application layer. The archive is meant to be a historical record, not an operational data store. Also by the time you need to recover something, the world may have changed. The application can validate that restoring this data still makes sense.

If you need to handle updates, treat them as soft deletes on the source table. The trigger captures both the old state (before update) and continues normally. Your application can then reconstruct the timeline by ordering archive records by timestamp.

Needless to say, make sure your trigger fires BEFORE the operation, not AFTER. You want to capture the row state before it's gone. And keep the trigger logic dead simple as any complexity there will bite you during high-traffic periods.

For the partition strategy, I've found monthly partitions work well for most use cases. Yearly if your volume is low, daily if you're in write-heavy territory. The key is making sure your common queries (usually "show me history for entity X" or "what changed between dates Y and Z") align with your partition boundaries.

patates··on Provide agents with automated feedback
We all live in our own various small circles, in which many terms get misused. Isomorphic in front end circle means something completely different than any other use, for example. This is how languages evolve.

I'm not trying to discount any attempt to correct people, especially when it gets confusing (like here, I was also confused honestly), but we could formulate it nicer IMHO.

patates··on Elasticsearch was never a database
I see... why am I...
patates··on AI generated music barred from Bandcamp
Aren't CD players just reading digits? I'm not anywhere close to a hifi expert but it must be all about the DAC, no? Or do you mean the ones with a built-in DAC?
patates··on Google AI Studio is now sponsoring Tailwind CSS
When very important tooling does not have very impressive funding, you get the xkcd 2347 situation very quickly.
patates··on How Google got its groove back and edged ahead of OpenAI
That's me! I used to do it with repomix and turned the whole codebase into a giant xml file. Worked really great, and I have a script that just takes the aistudio output and writes all the generated files.

But, after using Claude Code with Opus 4.5, it's IMHO not worth it anymore. I mean it IS competitive, but the experience of Claude Code is so nice and it slightly edges out Gemini in coding even. If gemini cli were as nice as claude code, I'd have never subscribed to the claude max plan though.

patates··on AI misses nearly one-third of breast cancers, study finds
100% of the titles are not specific enough on sensitive matters.
patates··on Creators of Tailwind laid off 75% of their engineering team
This attitude really tires open source maintainers enormously. They are not allowed to earn money connected to the thing they are giving away for free?

I know there may have been some weird stuff going on lately (nginx, redis, etc.) but this is not one of them.

It's okay to be confused, but please do not continue this.

patates··on Creators of Tailwind laid off 75% of their engineering team
Nobody is asked for money years after they started using Tailwind. Nobody is being asked for money now, when they start using Tailwind.
patates··on Everyone hates OneDrive, Microsofts cloud app that steals and deletes files
rm -rf doesn't get this:

https://i.imgur.com/LZGEpGt.png

patates··on Opus 4.5 is not the normal AI agent experience that I have had thus far
It seems to me these days, any code I want to write tries to solve problems that LLMs already excel at. Thankfully my job is perhaps just 10% about coding, and I hope people like you still have some coding tasks that cannot be easily solved by LLMs.

We should not exeggarate the capabilities of LLMs, sure, but let's also not play "don't look up".

patates··on Opus 4.5 is not the normal AI agent experience that I have had thus far
You can look at my comment history to see the evidence to how hostile I was to agentic coding. Opus 4.5 completely changed my opinion.

This thing jumped into a giant JSF (yes, JSF) codebase and started fixing things with nearly zero guidance.

patates··on Six Harmless Bugs Lead to Remote Code Execution
Thank you for the advice, I'll try next time!
patates··on Six Harmless Bugs Lead to Remote Code Execution
I sometimes use AI to fix my English (especially when I'm trying to say something that pushes my grammar skill to the limit) and people like me can use that to inform others about that. Bad actors will always do weird stuff, this is more about people like me who want to be honest, but signing with (generated/edited with AI) is too much noise.
patates··on Six Harmless Bugs Lead to Remote Code Execution
Totally! And even if it weren't, I'm still for labelling the AI generated content.

It's just when someone's going to generate something, they should at least give a little more thought to the prompt.

patates··on Six Harmless Bugs Lead to Remote Code Execution
9th bit is the color:

> I think it's time for computer people to take Colour more seriously

Source: https://ansuz.sooke.bc.ca/entry/23 , "What Colour are your bits?"

patates··on Six Harmless Bugs Lead to Remote Code Execution
For fun (not because I'm trying to defend the capabilities of LLMs, but really just out of boredom), I tried to make this better with this prompt:

> make this sound less AI-generated and more like a proper hacker news comment with some SUBSTANCE: (insert the OP comment from above)

and Gemini 3 Flash generated this:

> This is exactly why CVSS scores can be misleading in practice. You see this constantly at Pwn2Own: it’s rarely one massive architectural failure, but a daisy-chain of three or four "low severity" quirks—an info leak here, a minor logic error there.

> To a product manager, these look like edge cases or wontfix tickets. But to an attacker, they aren't bugs; they’re primitives. You use the info leak to bypass ASLR, the logic error to groom the heap, and suddenly a nuisance crash becomes full RCE. We tend to model threats based on distinct barriers, ignoring that the complexity of the system guarantees these gadgets will eventually align.

It feels like it's fun when one plays with it on their own but it's really boring when reading the content others have generated (and therefore I'm sorry for adding to the pile - just wanted to see if the "HN style" was already baked-in to the LLMs and share the result: Yes it is).

patates··on Windows 11 surges among PC gamers on Steam as Linux stalls
Yes, since then Chrono Divide also added modding docs and oh boy am I excited!
patates··on A small collection of text-only websites
In some web apps I code, I just serialize the view-model when the page is called with a ".json" or ".yaml" at the end. It forces you to be strict about not leaking private/complex data into the views and makes power-users' life much easier.

".txt" is also a good idea for content-heavy pages. Maybe ".md" too? I may try.

← PreviousPage 5 of 26Next →