Better HN
topnewbestaskshowjobs
Log inSign up

90s_dev

1,788 karma · joined Mar 13, 2025 (1y ago) · 921 submissions

Submissions

comment 1y ago · link · parent

See also https://www.redblobgames.com/pathfinding/a-star/introduction...

One of the first games I ever played was Warcraft I, and it was one of the games I always wanted to make but never could. One of the missing pieces of the puzzle was path finding. I still don't understand it, but at least now I have two resources that I can read when I'm done building my game maker and ready to make my game!

comment 1y ago · link · parent

I don't know why SQL has always been so confusing to me. When he puts it this way, joins make perfect sense. But before reading this guide and this SO answer[1], they just felt like black magic. I don't understand why.

[1] https://stackoverflow.com/a/4401540/30477628

693.

A Visual Explanation of SQL Joins(blog.codinghorror.com ↗)

4 points · by 90s_dev · 1y ago · 1 comment

comment 1y ago · link · parent

> // Custom TextField wrapper that supports keyboard shortcuts

> struct FocusableTextField: NSViewRepresentable {

Did things change? We used to use "responder chains" to do this. In fact that concept was created to avoid having to subclass for keyboard shortcuts.

comment 1y ago · link · parent

WebDAV! I just remembered it was webdav.

comment 1y ago · link · parent

> Useful for Mac users who need to access Windows network shares.

Looks great.

Related story. In late 2010 a client asked me to write effectively the same thing for him as a Mac app, using that one protocol I can't remember the name of, but which had promise and never quite caught on. All I can remember about it is that I implemented JavaScript's `for await (...)` in 2010-era Objective-C, and I felt like a genius because I had never even heard of such a concept before, and came up with it on my own just to solve a problem in that project. That function worked amazingly and only took like 100 loc or something. I wonder if he still has that source code around somewhere.

comment 1y ago · link · parent

> born from Rails devs who were tired of Rails magic

One thing I learned is that we're all different. To me, the magic of Rails is absolutely bonkers, unintuitive, and unmanagable. I also can't work without static types anymore. DHH is apparently my arch nemesis in these regards? Yet I can't definitively say it's because he's inherently flawed.

comment 1y ago · link · parent

Exactly. Every time I look at Rust, it looks foreign and unfamiliar, until I remember that I wrote Rust for a client for maybe a year straight many years ago. Then it starts to come back to me.

comment 1y ago · link · parent

We finally agree U+1F91D

comment 1y ago · link · parent

I was always particularly concerned about that tube where the heated water goes from the bottom to the top and pours into the coffee filter. It's so thin, I could never believe it could be cleaned from whatever buildup is inside it.

comment 1y ago · link · parent

If the author is here:

> It's similar to some other languages, like Lua, and is very easy to pick up if you have knowledge of basic programming concepts.

Why not just use Lua or one of the forks like Luau?

comment 1y ago · link · parent

Seeing stuff like this makes me so excited! Partly because I love game engines and making games, and partly because it becomes more evidence to me that programmers will really like my project when I finally release it! Hopefully next Monday!

comment 1y ago · link · parent

Sometimes when I leave it on too long and it actually boils for a minute or two, there's a coffee ring around the inside of the stainless steel pot. Scrubbing it with a green dish scrub pad gets it off, then soap and water fixes the rest. I never really understood why that ring gets there, but it also gets there from the starch when I boil noodles. I figure it has something to do with electrons on the inside surface of the stainless steel pot losing their ionization or polarization or some sciency stuff. I haven't cared enough to even google it since I know how to fix it and I haven't died yet from it.

comment 1y ago · link · parent

See this is why we can't have nice things.

comment 1y ago · link · parent

> To preserve SPA-level speed of navigation while most of content is rendered on server, RSC enabled frameworks implement routes prefetching.

Clever solution, but it sounds like it will have one of two problems:

1. It doesn't allow fine enough grained control over what's prefetched

2. It does, but because of that it has become unmanagably overcomplicated

How do you avoid these?

comment 1y ago · link · parent

I meant in programming in general, not specific to Rust or Cargo.

comment 1y ago · link · parent

Your response just makes me more confident that I'm making the right choice by boiling coffee in a pot of water and washing it with plain dish soap afterwards.

comment 1y ago · link · parent

The point is that "better" is relative to a whole bunch of trade-offs that you have to manage and pick and choose per language per project pre need, and just like in spoken language, there's no obvious Perfect Software Language. They all have trade-offs.

comment 1y ago · link · parent

> Do we still retain curiosity about the world around us?

If I don't, then it's mighty strange that I've been binging Groucho Marx interviewing random people from the audience in the 1950s show You Bet Your Life for the past few hours, and his fascinating interviews with Dick Cavette and William Buckley Jr.

Anyway yeah that's literally the main reason any of us are on HN. Besides procrastinating.

comment 1y ago · link · parent

Nah, I'm trying to quit coffee.

comment 1y ago · link · parent

No I'm just good at forgetting things, I've been practicing since I was a kid.

comment 1y ago · link · parent

What if -- stay with me now -- what if we solved it by just writing vastly less code, and having actually reusable code, instead of reinventing every type of wheel in every project? Maybe that's the real secret to sound code. Actual code reuse. I know it's a pipedream, but a man can dream, can't he?

comment 1y ago · link · parent

One of these days, a project will catch on that's vastly simpler than any memory solution today, yet solves all the same problems, and more robustly too, just like how it took humanity thousands of years to realize how to use levers to build complex machines. The solution is probably sitting right under our noses. I'm not sure it's your project (maybe it is) but I bet this will happen.

comment 1y ago · link · parent

> Is this not just resigning to subpar software?

It's getting from point A to point B with whatever works best given the circumstances after considering all the pros and cons. Sometimes that is garbage software. I mean I've even used _____ once or twice! [edit] redacted to not throw any software under the bus

comment 1y ago · link · parent

I donated it a long time ago. This method just feels more right for me.

comment 1y ago · link · parent

> You'll get diabetes. Have a coffee.

When I was a kid, I hated even the smell of coffee so much, that tasting it could make me throw up.

A few years ago, to help kick my soda habit, I forced myself to drink black coffee every single day.

The first day, I could barely stomach a few sips. After a week or so, I could finish the whole cup with great difficulty. After another few weeks, I could finish it without minding. And finally, after maybe a month or a little more, I actually enjoyed the taste.

It seems that if you force yourself to taste any food or drink for 40 days, you'll eventually enjoy it.

I also noticed that I drink way too much coffee and way too quickly if I add cream or sugar. Black coffee is the ideal.

Since I'm too stupid and/or lazy to figure out how to clean my coffee machine (the instructions said something about vinegar once in a while) I realized you could just put a tablespoon of ground coffee into a filter, fold it twice, twist the edges like a tootsie roll, and tie them together, forming essentially a tea bag, then put it in a bot of water about 1-2 cups worth, squish it up with a spoon a bit, let it sit overnight as if you were making ice coffee, and heat it up in the morning long enough to go to the bathroom, and it's the perfect tempature and taste, and you only have to rinse the pot to clean it.

comment 1y ago · link · parent

> But it does not nearly approach the level of systematic prevention of memory unsafety that rust achieves.

Unless I gravely misunderstood Zig when I learned it, the Zig approach to memory safety is to just write a ton of tests fully exercising your functions and let the test allocators find and log all your bugs for you. Not my favorite approach, but your article doesn't seem to take into account this entirely different mechanism.

comment 1y ago · link · parent

> Is there not something wrong about a calculator app asking for contacts and location permissions[0]?

Depends.

> Are ads fine if they can be used to track every detail of what you do and want?

Depends.

> Was it fine when CrowdStrike caused Windows systems in airports BSOD and lead to massive delays?

Depends.

That's my whole point. You're presuming some absolutes which aren't universally necessitated or desired.

comment 1y ago · link · parent

Hmm, it's gone now. Well I used to have one anyway.

comment 1y ago · link · parent

Just looked at implicit contexts, and I'm very much on the fence about whether this is a good feature. I get what it's trying to accomplish, it just seems like perhaps the wrong solution that may cause more problems than it solves.
1
232425
31