Better HN
topnewbestaskshowjobs
Log inSign up

doodlesdev

3,169 karma · joined Nov 9, 2020 (6y ago) · 852 submissions

Hi, how's your day?

https://www.doodlesdev.com

Submissions

comment 10mo ago · link · parent

This might now be one of my favorite websites in the internet. It won me when I saw the "Excel Backend" design pattern [0]. I wish so fucking much I had never seen this before or heard of using Excel as a database.

update: I'm feeling actual physical pain by reading this and remembering every single piece of software or website I've seen that actually applies these patterns [1].

[0]: https://worstofbreed.net/patterns/excel-backend/

[1]: https://worstofbreed.net/patterns/js-bundle-bloat/

152.

Official TypeScript Cheat Sheets(typescriptlang.org ↗)

22 points · by doodlesdev · 10mo ago · discuss

comment 10mo ago · link · parent

Unfortunately most of the content hasn't been updated for two years straight, which is quite a lot considering how much ECMAScript and TypeScript have been changing in recent years. I guess it's still a good reference, though.

comment 10mo ago · link · parent

That's actually pretty great!

Have you observed any changes in your day-to-day usage, such as faster compilation times? If it's actually decently faster I might try it instead of playing with Gentoo to get better-optimized compilation flags.

comment 10mo ago · link · parent

Darktable is the best photography editing and classifying software I've ever used. New users should be warned it's quite power-user centric though. Adopting isn't like opening up Lightroom and messing around. You may have to read a bit of documentation regarding the modules and different workflows (i.e. Sigmoid vs FilmicRGB).

I think the Ansel developer has a YouTube series with tutorials on how to edit in Darktable using the Filmic RGB workflow. Not sure if that's where I'd get started nowadays (I've just adopted Sigmoid and it's way quicker to edit with it), but it gave me a solid base in how to use this software.

comment 10mo ago · link · parent

For reference, you can always check out these websites:

[0]: https://www.protondb.com/explore [1]: https://areweanticheatyet.com/

comment 10mo ago · link · parent

For some reason, there's a huge amount of Hacker News readers who are still full-time Windows users. With the forced migration to Windows 11, I guess a lot of them are now not only trying out Linux for the first time (as a desktop system), but also for some reason going for Arch derivatives, which is always fun to see a beginner mess with LOL

comment 10mo ago · link · parent

Mint is one of the greatest distributions to get started with for users coming from Windows. I've been using Fedora full-time for more than four years now, but before that I used Linux Mint for about a year. It's a great, seamless experience.

Only problem I believe is the lack of customization options in Cinnamon compared to KDE and even Gnome with extensions. I guess that makes the user miss out on some of the cool parts of owning your software. Also, being stuck in X11 will start to become a problem in the next few years: I'm waiting to see what they come up with on that front.

comment 10mo ago · link · parent

Do CachyOS optimizations actually make any difference whatsoever? I know they enable certain optimization flags whenever building software, but that doesn't directly equate to performance improvements unless you're actually benchmarking and testing it. I've seen some benchmarks in games and it seems there is literally zero performance difference (sometimes it loses to Fedora, even).

I'd always recommend upstream distributions with corporate backing for novice users: Ubuntu or Fedora. If they're coming from Windows: Linux Mint. There's also a clear upgrade path for users who enjoy Mint or Ubuntu: Debian testing.

Arch Linux is awesome, don't get me wrong. I just believe it's borderline unethical to recommend someone installing anything related to Arch on their workstation. It's just not what a beginner should choose at all. CachyOS included, it even makes you choose your bootloader at install (any user-friendly distro would simply never bother you with that and go with GRUB right away).

A user's first distro can make or break their Linux experience. Think hard before recommending new users the flavor of the month or an Arch derivative.

comment 10mo ago · link · parent

https://news.ycombinator.com/item?id=46549823

comment 10mo ago · link · parent

You can still get security updated by enrolling in the Extended Support branch. Did it in a relative's computer and it seems it will get security updates for at least an extra year, with the advantage it won't get any feature updates too (a really nice bonus IMO).

comment 10mo ago · link · parent

They do, but that's really not necessary. In the linked video you can see Windows 8.1 is pretty well optimized compared to the other Windows versions.

A lot of this slowdown is just developers getting complacent and getting used to the new hardware capabilities. Windows has a lot of low hanging optimization fruit laying around. It's just Microsoft doesn't really care about that: it doesn't fit the business model at all.

comment 10mo ago · link · parent

Why would you go for a random Linux distribution backed by DHH (a Ruby developer) instead of a established upstream distribution such as Debian or Fedora?

comment 10mo ago · link · parent

Regarding the video benchmark on the page: what would be fair is testing against the hardware that was available when the operating system was released. Windows 11 is absolutely not meant to run against hard drives, and current notebook and desktop offerings for home and enterprise users reflect that: you can get a 256gb SSD for a pretty decent price nowadays, to the point there's absolutely no reason to put in an HDD. When Windows Vista was released, your computer would absolutely have an HDD, so that would be a fair comparison.

That said, I was restoring a notebook owned by my aunt recently and I decided to run Ubuntu on it so I could mess with gparted a little bit. I'm already a full-time Linux user (have been for about five years now, I guess), but I was still surprised to see that one of the most bloated Linux distributions ran lightning fast on my aunt's Pentium Gold + 4gb RAM + HDD while Windows took over four minutes to boot.

It's absolutely time to abandon Windows if you're still dependent on it. There are alternatives. Heck, I'm not a fan of Apple either but at this point I'd recommend a MacBook for anyone wanting to get away from Windows and not comfortable with Linux or a Chromebook.

comment 10mo ago · link · parent

That I can agree with hahaha. Even though I'm not a fan of Tailwind, there's absolutely no reason developers who like utility libraries will abandon them because of LLMs.

comment 11mo ago · link · parent

   > they wouldn't have been able to keep developing Tailwind up to this level of sophistication.
You imply that'd be a bad thing, but I'd beg to differ.

comment 11mo ago · link · parent

   > We're not going back to writing hand-crafted CSS with or without LLMs.
A lot of us have never stopped writing hand-crafted CSS. Also, in my experience, Gemini 3 Pro is an absolute monster at writing layouts and styling in pure CSS with very basic descriptions of what I want (tested it while I was experimenting with vibe coding in some sleepless night LOL).

There are still a lot of developers who loathe using Tailwind and avoid touching it like the plague. Handwritten CSS still offers more opportunities for optimization and keeps your markup much cleaner than spamming utility classes everywhere (I understand the appeal of rapidly iterating with it, though).

comment 11mo ago · link · parent

   > we are at 2MB compressed with https://minfx.ai
 
That's still pretty bloated. That's enough size to fit an entire Android application a few years ago (before AndroidX) and simple Windows/Linux applications. I'll agree that it's justified if you're optimizing for runtime performance rather than first-load, which seems to be appropriate for your product, right?!

What is this 2 MB for? It would be interesting to hear about your WebAssembly performance story!

Regarding the website homepage itself: it weighs around 767.32 kB uncompressed in my testing, most of which is an unoptimized 200+kB JPEG file and some insanely large web fonts (which honestly are unnecessary, the website looks _pretty good_ and could load much faster without them).

comment 11mo ago · link · parent

Tried it again in a private window and it worked indeed. The problem is probably caused by one of my extensions (not sure which, though, seems a bit unexpected to me). Thank you anyway, and sorry for bothering!

comment 11mo ago · link · parent

I guess the LLM doesn't need to verify whether what it found is true or made up, but rather just save the request and answer for later, so it can be reviewed by a developer and documented.

comment 11mo ago · link · parent

Any reason why browsercraft doesn't work in Firefox? Ended up opening it in Brave and had a lot of fun hahaha

It's pretty impressive how far along CheerpJ is right now. I kinda wish this existed about five or ten years ago with this level of performance, maybe it would've allowed some things in the web platform to pan out differently.

comment 11mo ago · link · parent

Nicely written.

If I ever want to teach someone how to write a black box implementation for some kind of software interface, I'll point them to this to get started. The French café analogy is pretty good. It's also great because Parisians aren't always the nicest people around, just like the servers and clients you'll be working with during your implementation.

I guess nowadays you could also automate some part of the protocol discovery with LLM agents? Has anyone tried this before with any promising results? My idea would be to have a traditional fuzzer poking at the server, but use an LLM agent whenever you get a non-error message or a different error message to attempt the well-crafted request without having to shotgun every possibility under the sun into the server.

comment 11mo ago · link · parent

   > Don't ask me how this could possibly happen.

How could this possibly happen?!

comment 11mo ago · link · parent

A poll done by GNOME devs will largely be answered by people who are power users. Knowing your target audience is harder than just polling your users or taking telemetry (in this case, because telemetry normally excludes power users, since they will disable it).

I think it's just clear that the proposal of the GNOME desktop is to be pretty democratic, both in types of devices it can run on and the variety of users. The project gets a lot of shit for many decisions it takes (some of which I also disagree with), but I think changing this default is absolutely justified.

comment 11mo ago · link · parent

   > WHY the fuck would they disable it?
Because it's one of the most annoying and unintuitive things the GNOME desktop has for anyone that isn't a power user. Almost every single user I've shown GNOME to was surprised or bothered by this being the default instead of the usual scrolling you'd see in Windows.

I personally dislike this feature a lot, and it's very common for me to middle-click paste accidentally, even after years of using Fedora Linux as my one and only operating system across all of my machines. I've previously used a Firefox extension to override this default, but was bothered by the fact that other applications would still just middle-click paste.

Not everyone is a power user. Not everyone has the same workflow as you. Decisions like these have to be taken based on what the target audience for a desktop wishes. Arguably, GNOME is absolutely not for power users (just take a look at how similar it is to the macOS desktop environment to notice that).

176.

Quart: Asyncio Reimplementation of Flask(github.com ↗)

1 points · by doodlesdev · 11mo ago · discuss

comment 11mo ago · link · parent

These don't seem to be well thought at all. While reading the article, I've started wondering if they were chosen by an LLM after some developers decided it wasn't worth the trouble of going through every single application and choosing icons for every single menu item. That would explain a lot, in my opinion.

178.

A Git story: Not so fun this time(blog.brachiosoft.com ↗)

10 points · by doodlesdev · 11mo ago · 1 comment

comment 11mo ago · link · parent

This strategy is an alternative to PESOS (Publish Elsewhere, Syndicate (to your) Own Site) [0]. I really like this read on the indieweb website, it explains well why adopt this strategy for federation and emphasizes that "Friends are more important than federation", something a lot of nerds and hackers forget when defending their ideals.

[0]: https://indieweb.org/PESOS

comment 11mo ago · link · parent

Well-written, succinct.

This small document shows what computer science looked like to me when I was just getting started: a way to make computers more efficient and smarter, to solve real problems. I wish more people who claim to be "computer scientists" or "engineers" would actually work on real problems like this (efficient file sync) instead of having to spend time learning how to use the new React API or patching the f-up NextJS CVE that's affecting a multitude of services.

1
567
29