HNHacker News
TopNewBestAskShowJobs

ggregoire

4,955 karma · joined October 31, 2012

submissionscomments
ggregoire··on Fix the iOS keyboard before the timer hits zero or I'm switching back to Android
What infuriates me the most is iOS being absolutely unable to detect which language I'm currently writing in and automatically replacing words in one language to another. I write in 3 languages on a daily basis and it's making iOS totally lose its mind. For instance I'm 5 words deep into a message in French with a person I'm only speaking French with, and somehow iOS still thinks I'm making typos every other word and automatically replaces them with English or Spanish words.

And it wouldn't be so bad if moving the cursor at the end of a word or selecting a few letters in a word or even selecting an entire word wasn't nearly impossible on iOS (and I have relatively small fingers… I have no idea how people with big hands can do that stuff). Writing a 10 words messages can take me like 2 minutes sometimes because of all the errors made by iOS that I need to manually fix, and having to retry like 5 times to position the cursor successfully at the end of every word I need to rewrite in the correct language…

ggregoire··on Gemini 3 Deep Think
Do we know what model is used by Google Search to generate the AI summary?

I've noticed this week the AI summary now has a loader "Thinking…" (no idea if it was already there a few weeks ago). And after "Thinking…" it says "Searching…" and shows a list of favicons of popular websites (I guess it's generating the list of links on the right side of the AI summary?).

ggregoire··on Coding agents have replaced every framework I used
> How much you like coding. If you like coding then using AI is less fun.

I'm surprised this is never brought up here on "Hacker" News. I've been reading HN for 14 years and all this time I thought people here enjoyed programming. Turns out the majority hates it apparently.

ggregoire··on Claude Opus 4.6
Every single day 80% of the frontpage is AI news… Those of us who don't use AI (and there are dozens of us, DOZENS) are just bored I guess.
ggregoire··on Scaling PostgreSQL to power 800M ChatGPT users
> scaled up by increasing the instance size

I always wondered what kind of instance companies at that level of scalability are using. Anyone here have some ideas? How much cpu/ram? Do they use the same instance types available to everyone, or does AWS and co offer custom hardware for these big customers?

ggregoire··on SQL Studio
Probably part of a minority but I like writing SQL and optimizing slow queries myself, it's fun.
ggregoire··on Opus 4.5 is not the normal AI agent experience that I have had thus far
I'm always surprised to never see any comments in those discussions from people who just like coding, learning, solving problems… I mean, it's amazing that LLMs can build an image converter or whatever you dream of, in a language you don't know, in a field you are not familiar with, in 1 hour, for 30 cents… I'm sure your boss and shareholders love it. But where is the fun in that? For me it kills any interest in doing what I'm doing. I'm lucky enough to work in a place where using LLMs is not mandatory (yet), I don't know how people can make it through the day just writing prompts and reviewing AI slop.
ggregoire··on Linux is good now
Still running windows 10 here, since my hardware isn't compatible with windows 11. I wouldn't mind replacing it with Linux.

What Linux distros are recommended for gaming? All my games are on Steam. Dual monitor setup with game on main screen and browser on the second one.

ggregoire··on Icons in Menus Everywhere – Send Help
Emojis in comments, terminal logs, git commits, documentations, everywhere… Send help
ggregoire··on Leak confirms OpenAI is preparing ads on ChatGPT for public roll out
Every Google search request triggers a Gemini request tho.

Which is great… that's why I don't use chatGPT at all, having a LLM summary + a list of websites to deepen the search if I need, is just a superior user experience IMO.

ggregoire··on iPhone Pocket
A $10 fanny pack from Uniqlo or H&M looks better than this thing and is also more practical (can carry other stuff, keys, wallet, etc)

https://static.standard.co.uk/2023/01/19/10/uniqlo%20header....

ggregoire··on Marko – A declarative, HTML‑based language
> I'd either just put the content in an ID-ed span and have a script to replace the content

And so your script is broken when someone else in your team (or maybe even yourself) renames or removes the ID and forgets to search in the whole project if some piece of code depends on this ID. JSX fixed all that mess 10+ years ago.

ggregoire··on Pg_lake: Postgres with Iceberg and data lake access
> Maybe an example of a problem this solves.

Some service writes a lot of data in parquet files stored on S3 (e.g. logs), and now you want that data to be queryable from your application as if it was in postgres (e.g. near real-time analytics dashboard). pg_lake allows you to load these parquet files into postgres and query the data. You can also join that data with existing tables in postgres.

ggregoire··on React vs. Backbone in 2025
This illustrates greatly why React got so popular.

If you look at the React code, it's 99% "just" JavaScript and HTML. The only proprietary function is `useState`, and even the people who have never touched React probably understand what `useState` does in this code without having to open the docs.

Also, in the Backbone code, half of the application relies on the string selector `.space-y-2`. So if someone in your team changes this class (or add it on another element), and forgets to ctrl+F `space-y-2` and change the string everywhere else, half of the application is broken. Also the layout/style for the checks list is repeated twice (in `render` and `updatePassword`), so if someone forgets to change both, the UI will be inconsistent once the user enters their password. And this a 50 LOC app… imagine now the same problems in a 10k+ LOC app. Maintenance hell.

I don't understand how the author wrote those two examples, didn't see the problems with the Backbone version and conclude there is no differences between both frameworks. React solved the problems present in the Backbone version.

ggregoire··on I switched from Htmx to Datastar
> I was tired of writing backend APIs with the only purpose that they get consumed by the same app's frontend

PostgREST is great for this: https://postgrest.org

I run 6 React apps in prod, which used to consume APIs written with Falcon, Django and FastAPI. Since 2 years ago, they all consume APIs from PostgREST. I define SQL views for the tables I want to expose, and optionally a bunch of SQL grants and SQL policies on the tables if I have different roles/permissions in the app, and PostgREST automatically transforms the views into endpoints, adds all the CRUD + UPSERT capabilities, handles the authorization, filtering, grouping, ordering, insert returning, pagination, and so on.

ggregoire··on An opinionated critique of Duolingo
My only criticism of Duolingo is the monetization. The ads on the free version are unbearable and makes me want to never use the app again. Also as soon as you stop using the app, they spam your inbox with emails every 2 days such as "Duo misses you so much! <sad emoji> Are you giving up on learning?? <crying emoji>". This made me uninstall the app.

Otherwise I don't share the criticisms in this comment section. It's a fun educational game to learn a few words in other languages. I don't think it's misleading anyone into thinking they will become polyglot by using Duolingo. I wanted to learn a few words of Japanese while waiting for a flight to Tokyo and it did the job.

ggregoire··on ABC yanks Jimmy Kimmel’s show ‘indefinitely’ after threat from FCC chair
The chair of the FCC went live on Fox News, of all channels, to argue that ABC is alienating his audience. [1]

You can't make this stuff up.

[1] https://www.foxnews.com/media/fcc-chair-brendan-carr-defends...

ggregoire··on React is winning by default and slowing innovation
> How many ways can one build a web javascript project?

How many ways can one build a web API? Why are there hundreds of options to build one? Why do people keep inventing new ones, while the problem has been solved 20 years ago?

ggregoire··on React is winning by default and slowing innovation
> There is so much JS framework out there that appear and disappear so fast.

Like which ones?

ggregoire··on React is winning by default and slowing innovation
I can tell you I said "man react is great!" quite a few times 10 years ago when I tried it for the first time, after years of jQuery, backbone.js and Angular 1. Nowadays I still think it's great, but there is obviously no surprise and novelty about it being great since I use it every day. Like I'm sure you think toilets are a great thing but when was the last time you said "man toilets are great!"?
ggregoire··on React is winning by default and slowing innovation
You mean 15 years ago? jQuery gives you a list of helpers to manually mutate the DOM and style. Angular1/React allows you to declare a variable and to mutate the DOM and style automatically when that variable changes. Takes 10x less lines of code to achieve the same thing and it doesn't break if someone changes an id on a div. Angular1/React also gives you the framework to write reusable components.

It might not matter for a quick side project over the weekend, but it changes everything for a complex app with 10k+ LOC developed by several people and maintained over the years.

I switched from Angular1 to React 10 years ago because React is mostly standard JavaScript (I never need to open the React docs since I know how to write a function, a loop and a condition in JavaScript and I remember how to use React's core methods useState & useEffect) while Angular1 has hundreds of methods and DSL syntaxes to remember.

ggregoire··on Claude Code is all you need
That's so weird to me, SQL is the very first language they taught me in college 20 years ago, before even learning how to write a for loop in pseudo code. Nowadays it's still the language I use the most on a daily basis.
ggregoire··on I tried every todo app and ended up with a .txt file
I've been using the Gmail webpage for tracking my TODOs for like 20 years. The idea being, since I always have the webpage open in the first tab of my browser, and since I'm checking the webpage at least once a day, I never forget it. Every time I check my emails I also see my TODOs. And I can check/edit it from my phone when I'm not at home.

If it's a list of TODOs for the current day or week (e.g. work tasks, watering the plants, etc) I just start a draft and keep the draft open in the UI and update it regularly, then delete it when everything is done. If it's more mid-long term (let's say TODOs for the month, like buying some big stuff, etc), I usually send it to myself with "TODO [3-4 words description]" in subject and keep it in the inbox to be visible until I completed it. If I need to add something else I just reply to the same email.

I think Gmail has actually an integrated TODO widget in its webpage, but I just use emails out of habit.

ggregoire··on Show HN: Reactive: A React Book for the Reluctant (written by Claude)
> mediocre engineers often end up using it wrong

Might be because mediocre engineers don't read the docs.

ggregoire··on Show HN: Reactive: A React Book for the Reluctant (written by Claude)
For me it's about productivity. I can code anything in react without opening the doc once, cause it's javascript and useState/useEffect. Zero pain points. I can focus 100% on delivering features. I can't comment on web components but I worked with Angular for 2 years a decade ago and I was always in the docs wondering what's the syntax to render a list or what's the function to do even the simplest things. Same with Backbone.js before Angular.
ggregoire··on Apache ECharts 6
I've toyed with various JS charting libraries over the last 15 years and I always come back to Echarts. Other libraries always miss options you eventually need if you are trying to do anything non trivial (e.g. the last one I tried didn't support multiple Y axises). It's feature complete while not having the complexity of coding a chart from scratch with D3. Works well with React too.
ggregoire··on Things that helped me get out of the AI 10x engineer imposter syndrome
That's how I detect who is using LLMs at work.

  # loop over the images
  for filename in images_filenames:

    # download the image
    image = download_image(filename)
  
    # resize the image
    resize_image(image)

    # upload the image
    upload_image(image)
ggregoire··on Next.js 15.1 is unusable outside of Vercel
TanStack Query is the best library in the entire frontend ecosystem IMO.

I'm still using React Router tho (as a dumb SPA router, not the new "framework" features). I might take a look at TanStack Router one day.

ggregoire··on Next.js 15.1 is unusable outside of Vercel
If you don't need server rendering, I'd just recommend React without framework, and Vite [1] to run the app in dev and build the app in prod, then host the build (basically a HTML page with a JS file) on AWS S3 or similar static hosting platforms. That's the solution I've been using for 10+ years without any problem.

For the backend you can use whatever you are comfortable with. I mostly use PostgREST [2] nowadays. I recommend to use react-query [3] to call your APIs on the client side.

[1] https://vite.dev

[2] https://docs.postgrest.org

[3] https://tanstack.com/query/latest/docs/framework/react/overv...

ggregoire··on At Amazon, some coders say their jobs have begun to resemble warehouse work
Might not be the case for the senior devs on HN, but for most people in this industry, it's copy/pasting a jira ticket into a LLM, which generates some code that seems to work and a ton of useless comments, then pushing it on github without even looking at it once and then moving to the next ticket.
← PreviousPage 2 of 33Next →