Thomas Burette
thomasburette.com
Thomas Burette
@thomasburette.com
Dev.
Ain't javascript fun?
February 23, 2025 at 4:21 PM
I was curious what the "React Router v7 ↗" option in the create-vite CLIis.

It turns out that it does a :
npm create react-router@latest.
In clear : it does not create a vite project but a react-router (Remix) project instead.

I think it's so nice of @vite.dev to redirect to a competing project.
February 20, 2025 at 5:12 PM
Javascript is a simple language.

Also Javascript. How to call the constructor of the superclass without using its name directly:
February 18, 2025 at 4:19 PM
Admission :
Without auto-completion, I type document.getElementById() more often wrong than right.
February 14, 2025 at 11:05 AM
Reminder,
<hr /> is not a thing.
Neither is <hr/> nor <img ... /> or any other.
It's called a self-closing tag and it doesn't exist in HTML. The "/" is simply ignored by the browser.

The only place it makes sense is in the HTML within JSX.
February 11, 2025 at 3:33 PM
I discovered Object.groupBy().
But why is it attached to Object and not Array.
@philna.sh's blog (philna.sh/blog/2023/09...) pointed me to part of the answer. Creating anArray.groupBy() would break sites using various libraries that monkey-patch Array.prototype.groupBy

But why not Array.groupBy() ?
January 28, 2025 at 8:27 AM
I occasionally need to transfer files from my computer to my phone. I wrote a script to make a simple web server that lists a directory.
I'm certain it's a dumb way to do it and there are better tools but it mostly works for me.
December 3, 2024 at 4:13 PM
Am I stingy enough reinstall my entire VPS so save a few cents per month?

No, but I thought about it way too long.
November 26, 2024 at 5:31 PM
I'm looking at fully featured linux backup solutions (snapshots, deduplication,..) for my laptop and move away from "occasionally moving files in my home directory to Google Drive".

The tools I've looked at are : rsnapshot, kopia,
BorgBackup, restic, Bupstash.
I think I'm gonna go with BorgBackup.
November 24, 2024 at 3:06 PM
I'm looking at WebRTC.
MDN talks about differences in WebRTC behavior between browsers and suggests using the webrtc-adapter library to smooth over the differences.
Does anybody know what the differences are?
developer.mozilla.org/en-US/docs/W...
WebRTC API - Web APIs | MDN
WebRTC (Web Real-Time Communication) is a technology that enables Web applications and sites to capture and optionally stream audio and/or video media, as well as to exchange arbitrary data between br...
developer.mozilla.org
November 22, 2024 at 5:05 PM