News for hackers. Stuff that matters.

hakanito

Re:Web development is fun again on Sunday January 04, 2026 @11:03AM (#46489205)
Agree with this. Like the author, I've been keeping ajour with web development for multiple decades now. If you have deep software knowledge pre-LLM, you are equipped with the intuition and knowledge to judge the output. You can tell the difference between good and bad, if it looks and works the way you want, and you can ask the relevant questions to push the solution to the actual thing that you envisioned in your mind.

Without prior software dev experience people may take what the LLM gives them at face value, and that's where the slop comes from imho.

Re:Space Elevator on Monday October 20, 2025 @10:58AM (#45644689)
Thanks, I spent my lunch hour completing it without cheating. Amazing!
Re:Getting AI to write good SQL on Saturday May 17, 2025 @04:39AM (#44012939)
How do you do that practically/reliably? Would be great to just paste a link to the SDK Github repo, but doesn't seem to work (yet) in my experience
Re:Getting AI to write good SQL on Saturday May 17, 2025 @03:58AM (#44012780)
The game changer for me will be when AI stops hallucinating SDK methods. I often find myself asking ”show me how to do advanced concept X in somewhat niche Y sdk”, and while it produces confident answers, 90% of the time it is suggesting SDK methods that do not exist, so a lot of time is wasted just arguing about that
Re:It is hard to recommend Google Cloud on Sunday September 22, 2024 @02:11PM (#41618801)
It would lower the barrier to switch to Cloudflare for new customers, and once they are inside with a credit card on file it’s arguably easier to explore their product offerings
Re:It is hard to recommend Google Cloud on Sunday September 22, 2024 @05:29AM (#41615833)
The obvious go-to choice was Cloudflare for us too, but then it turned out you can't use CF just as a registrar (at least on the basic plan or equivalent), you need to use Cloudflare's nameservers as well... But we use Google's Cloud DNS for everything, so that was a showstopper. In the end we went with AWS Route 53.

CF could probably get a lot more customers if they would allow you to use custom nameservers for your domain.

Re:Why won't some people pay for news? (2022) on Saturday August 17, 2024 @05:45PM (#41278248)
I know, but most people want to pay with their credit card and not a volatile altcoin, and they do not want to switch browser.
Re:Why won't some people pay for news? (2022) on Saturday August 17, 2024 @05:42PM (#41278225)
The point is you should be able to operate you own paywall. The tech is mature enough in 2024 to make it work.

Make the browser store you credit/debit card info, make the browser handle the payment UI, make the browser expose JS apis to invoke payments and receipt fetching against pluggable payment providers.

My ideal world looks like this. New html button element:

`<pay amount="1.00" currency="USD" reference="my-article-123" checkoutUrl="https://...">Unlock for $1.00</pay>`

Clicking it opens browser checkout flow. The url you get from stripe/paypal or another whitelisted payment provider that has implemented the spec, some flow similar to OAuth. On a successful tx, a signed receipt (something like a jwt) is returned from the provider and saved by the browser, on disk on your computer.

The webpage can then load signed receipt references from the browser api, sends it to the backend which can return the article content if the receipt jwt is valid.

It can be fixed if the right people from Chrome and Stripe got together in a room and brainstormed for a bit. Then everyone else would follow.

Re:Why won't some people pay for news? (2022) on Thursday August 15, 2024 @07:25PM (#41261582)
This is what I want too. Been wanting it for years.

Maybe once payments are bundled into the browser coupled with some W3 standard…

Re:Announcing SurrealDB 1.0 on Sunday October 29, 2023 @05:26PM (#38062988)
A world where the database is seamlessly embedded in the backend code instead would be more useful. Oh wait…
Re:Defining a new HTTP method: HTTP Search (2021) on Saturday May 27, 2023 @02:37PM (#36097091)
From reading the article, one of the key items addressed by HTTP Search is caching. POST requests are usually not safe to cache
Re:Ask HN: How are you using GPT to be productive? on Saturday March 25, 2023 @07:27AM (#35301594)
Been pretty useful for discovery of SDK functionality in open-source libraries, that otherwise takes a bunch of time Googling the answer for. For example;

- Using golang, how do I write a custom marshaller for uber/zap

- Given a list of protogen.Files, how do I parse protobuf options and their values

Unfortunately the generated code is more often than not incorrect or uses non-existing API methods, but can give an idea of methods to use or where to look in the official api docs.

Re:Databases in 2022: A Year in Review on Tuesday January 03, 2023 @05:00AM (#34229740)
Yeah I’m sure there are all sorts of considerations. Also not saying it’s straightforward, just easier than writing a new db. You can for example write proto message extensions to support custom field behaviours.

But like a sibling comment said here, if you want the database implementation to dictate your models you can probably generate protos from something like EdgeDB. But then the db implementation is in charge, which seem a bit backwards.

If you’ve used graphql you’re presented with a similar challenge but on the other end of the spectrum - the graphql schema that needs to map to application models.

So one of the main considerations is to figure out how and where you want to define your source models. Is it the view layer, the model layer or the database layer.

Tldr; yes you’re right, it depends!

Re:Databases in 2022: A Year in Review on Monday January 02, 2023 @08:35PM (#34226401)
Love this idea, and in general agree that using a proto model as the single source of truth is a neat concept.

Not sure you need a completely new db though; with protobuf’s native support for plugins, perhaps the missing piece you’re looking for is a protoc plugin that generates the table definitions for your db of choice? Could work well for databases with declarative schemas..

Don’t want to discourage you from creating a new database, but writing a proto plugin is arguably a quicker undertaking!

This is not a mistake, it’s a pretty common method for money laundering
Re:MasterCard to open up network to cryptocurrencies on Friday February 12, 2021 @09:02AM (#26113704)
Demand grows, but the bitcoin supply is limited. Price increases. Also, after each halving the bitcoin miner payout gets cut in half, so price has to increase for the network to stay alive.

BTC follows the stock-to-flow model pretty accurately https://www.lookintobitcoin.com/charts/stock-to-flow-model/

Re:Viral 'I'm not a cat' filter is decades-old software on Wednesday February 10, 2021 @04:28PM (#26095061)
He was there live, not a cat, but died inside.
Re:Guietta – Python module to create simple GUIs on Friday July 03, 2020 @12:34PM (#23725363)
Jupyter notebook with pandas DataFrame
Re:Ask HN: What are you learning? on Monday April 06, 2020 @01:03PM (#22795442)
Any good resources for that?
Re:Time.gov was upgraded today on Saturday February 08, 2020 @04:12AM (#22274847)
Tried it, similar for me! Interesting find
Re:What Is the Future of Podcasting? on Monday January 27, 2020 @05:11PM (#22164384)
Podcasts are maturing and is starting to be seen as a serious alternative for advertisers, and thus becoming a real source of income for professional podcasters.

Companies like Acast[0] and Midroll have tech to dynamically insert targeted ads right into the audio stream while playing. So two people listening to the same podcast will get different ads.

[0] https://acast.com

Re:AI Clones Your Voice After Listening for 5 Seconds (2018) on Wednesday November 13, 2019 @01:09PM (#21527336)
It will be interesting to see if these made-up AI voices can deliver jokes with the same tonality and delivery as good comedians can. I'm just a layman but it feels like a hard problem to solve.
Re:Is GraphQL Still Relevant in an HTTP2 World? on Wednesday November 06, 2019 @05:46PM (#21468424)
Basically GraphQL is an API contract between a client and a server. The contract defines what data, through types and fields, is available.

The server must fulfil this contract by providing methods (called resolvers) for each field.

The client must fulfil this contract by only asking for available fields.

The query language is built to support highly nested data.

Now, the N+1 problem you are talking about is not a GraphQL problem, but an implementation problem. Depending on how you write your server methods you can get it down to very few db calls (some use a thing called dataloader. Other tools are hasura or postgraphile)

Re:React Concurrent Mode on Thursday October 24, 2019 @05:56PM (#21349609)
Since you mention scrolling, it sounds like you are rendering a lot of off-screen content... Have you looked into solutions like react-virtualized? It can definitely speed up the experience
Re:A database of Facebook users’ phone numbers found online on Wednesday September 04, 2019 @07:28PM (#20882410)
This is the entire business model of TrueCaller, and the reason they have a very accurate phone nbr lookup function
Re:Robinhood raises $323M at a $7.6B valuation on Monday July 22, 2019 @05:31PM (#20502512)
On BitMEX you can make leveraged short/long bitcoin trades without the downside of owing more than you put in. Max you can lose is 100%. It’s powered by a purpose-built stoploss liquidation engine
You could always load the page and then turn off your wifi before enabling the webcam, since it's allegedly happening client side.
I too like this thought experiment! Checkout the movie Kpax with Kevin Spacey if you haven’t already, it touches on the subject — ”Why is a soap bubble round? It’s the most efficient form”

Older »