Recent submissions

Comment · 2 years ago
Zod has branded types: https://zod.dev/?id=brand it works really nicely with Zod schemas
Comment · 2 years ago
I think the example could be better in this article. Let's say you have a function that takes a database id, an email address, and a name. They're all strings. If you pass arguments to this function and you mess up the order for some reason then the compiler has no idea. Hopefully your unit tests catch this but it won't be as obvious. Branded types solve this problem because you can't pass a name string as an argument that is expected to be an email address.

If you argue that this is not a common problem in practice, then I tend to agree. I haven't seen code with mixed up arguments very much, but when it does happen it can have bad consequences. IMO there is not a big cost to pay to have this extra safety. In TypeScript it's ugly, but in other languages that natively support this typing like Scala, Rust, Swift and Haskell, it works nicely.

Comment · 3 years ago
Whether the term "vaporware" applies to SC is kind of subjective IMO. The server meshing feature has been advertised for a long time and it still hasn't been shipped. Though they did add object persistence a few patches ago which really changed the game for salvaging.

I bought the game based on what I see people doing in it already, and it was fun enough for me. That definitely won't be the case for everyone and I recognize that. So to me it's not vaporware and there are lots of other people still enjoying the game today.

Comment · 3 years ago
Comment · 3 years ago
Comment · 3 years ago
Glad to see this article.

I've been running Xubuntu on a Lenovo X1 Carbon 5th gen with since 2016 with no issues. Totally wiped Windows from the beginning. The only frustration I have is when using a non-hidpi external screen I have to change the dpi to match what the external screen is capable, so the laptop screen effectively becomes very small.

Comment · 4 years ago
How is Plasma in terms of CPU, memory, and graphics load? When I switched from Mac OS X to Linux six years ago I tried Ubuntu but I found Gnome to be incredibly slow and resource intense. Then I tried Xubuntu and I've used it ever since. I'm pretty happy running XFCE on two 4K screens with my desktop and on my hidpi Lenovo laptop. I've noticed Plasma continuing to improve and people recommending it so now I'm more keen to test it out.

Besides the improved UX are there any other advantages of Plasma over XFCE?

Comment · 5 years ago
I've noticed the same over the course of my life but recently I drove through the interior of Florida to go on a camping trip and the front of my car was plastered with dead bugs.
Comment · 5 years ago
Foiling has made it possible to do all of these sports with less power. I can now go windsurfing in 12kts on the same size sail that I would use for 20kts.

I remember seeing foils in the late 90s and early 2000s but they weren't available to purchase. I wonder why. Maybe it's because the construction process hadn't been commercialized yet.

Comment · 5 years ago
Good call, thank you!
Comment · 5 years ago
Comment · 6 years ago
Comment · 6 years ago
Comment · 6 years ago
I didn't know about Darktable or Kdenlive, so I'll have to check those out. Peek is awesome for GIF recording.

I've been using a ThinkPad X1 Carbon running Xubuntu since 2016. Before that I was using a MacBook Pro.

The things I like about this machine/Linux are - It's light - The keyboard is great/better - The battery is really good coupled with the low resource usage of Xubuntu (except when I have Zoom, Docker, and lots of Firefox tabs) - Don't have any trouble with audio when using Bluetooth - I don't have to worry about MacOS breaking my dev environment - Setting up dev environment is a breeze

Things I dislike - CPU is not as powerful as a MacBook Pro - The most recent X/Ubuntu broke wake up from sleep - Some software doesn't have a Linux equivalent (Webex) - If you want to dual boot Linux and Windows, getting full disk encryption on X/Ubuntu is challenging - Plugging into a non-hidpi monitor is janky because it can't change dpi per screen - Speakers on this machine suck

For me doing strictly software development, the benefits of a stable and easy to use environment outweigh the warts of Linux.

If I were to get a new machine I'd consider Lenovo again. The new Dell XPS also looks great. I might also give Windows and WSL2 a try in my dual OS desktop. Windows feels a lot smoother compared to Linux (on a very powerful desktop though), but it's constantly notifying you about things which is a distraction.

Comment · 7 years ago
I've come to accept that most OSes are inevitably broken in different ways. OS X has always broken my dev environment on every update. So over three years ago I switched to a ThinkPad X1 Carbon with XUbuntu and have no issues other than having to change my DPI when I connect/disconnect to a non HiDPI screen. Then I recently built a gaming PC with an AMD CPU and an Nvidia GPU, which did not go as smoothly with Linux: I had to install experimental Nvidia drivers, audio is a little wonky, and sometimes the wifi doesnt work and I have to restart. But overall I'm quite happy on XUbuntu and it gives me fewer problems or annoying prompts than Mac OS or Windows ever did. For gaming I use Windows of course.

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton