HNHacker News
TopNewBestAskShowJobs

segfaltnh

317 karma · joined April 12, 2023

submissionscomments
segfaltnh··on Java 21 makes me like Java again
It must be hard being perfect. The rest of us will keep looking for solutions for mortals.
segfaltnh··on Java 21 makes me like Java again
Let's not hold ruby up as a poster child for modularity.
segfaltnh··on Java 21 makes me like Java again
Because the predominant patterns are to do concurrency with message passing, so having multiple goroutines trying to mutate the same container is the exceptional case (though as you say, mutexes are the answer when needed). Another reason is containers are embedded features not stdlib, which has huge implications to how willing someone is to go against the grain, for better and worse.
segfaltnh··on Java 21 makes me like Java again
Wait, are you implying Go doesn't have error checking? In what way? It has famously verbose error semantics.
segfaltnh··on Linear code is more readable
I was this dev early in my career. A sharp overreaction to a giant ball of mud architecture with no tests and minimal consistency. I read all those books looking for some better way and inflicted all those rules on people.

I don't regret the learning, but I do regret being dogmatic. It was interesting that no one around me knew better either way, or felt they could provide reasonable mentorship, so we went too far with it. These days I write the pizza function on the left, and use comments sparingly where they add context and reasoning.

segfaltnh··on Nginx Unit – Universal web app server
Yes, when compared to extreme complexity, compose is simpler. But it's hardly simple.
segfaltnh··on The worst programmer I know
Frankly it sounds like you need to make this happen. I don't know your company culture but at places I've worked Staff+ engineers aren't meant to wait around for permission to be catalysts and mentor other engineers.
segfaltnh··on Why I’m betting on Nostr
Which essentially limits adoption to less than 1% of humans, a problem centralized social networks don't have to contend with.
segfaltnh··on ChatGPT Enterprise
Yes but Uber doesn't make money.
segfaltnh··on Enhance Rust errors with file and line details
But errors that are returned by functions are expected behavior. Except for where you assert its bizarre you seem to support this position. The only semantic thing rust offers here is '?', and that's just syntax sugar for errors are values.

Truly exceptional situations are those we don't expect, and for that we panic. I expect errors, because it's a computer and that's what they do.

segfaltnh··on Mastermind Solver
Unexpectedly fun to open a HN article and have someone talk about visiting my city (Newburyport) on vacation. Hope they had a great time!

I also have a copy of Mastermind that my parents had as kids, it's probably from the 70s? Cool vibes all around, HN. :-)

segfaltnh··on Wendelstein 7-X: Gigajoule energy turnover generated for eight minutes
I'm also from the US and recently had an apple turnover. It was delicious.

I lost money on the endeavor, though.

segfaltnh··on Virtualizing development environments in 2023
I can't imagine amazon prefers the use of metal vs. non-metal. As I understand the pricing they're equivalent.
segfaltnh··on Octox: Unix-like OS in Rust inspired by xv6-riscv
Wait, most of _what_ code is unsafe? Aside from this one comment it sounds like you just came here to shit on Rust, lol.
segfaltnh··on Important Coding Habits
Some people are certainly more predisposed to things than others.
segfaltnh··on Generating SQL with LLMs for fun and profit
I like the part where the solution to LLMs being fundamentally the wrong interface is more LLMs.
segfaltnh··on Colima: Container runtimes on macOS (and Linux) with minimal setup
You have it exactly backwards. We use colima to run the (lima) VM that runs Docker daemon, but we use all the standard docker tools on the host. Colima configures docker with a context called "colima" that knows how to talk to the guest correctly.
segfaltnh··on The obvious final step
> Any use of a lambda, as well as any inverison[sic] of control, makes code more difficult to read or debug

Anyone else immediately think about lambdas and surprised by this zinger at the end? I'll grant that in some languages lambdas are harder to debug, but I don't find the example more difficult to read or reason about _at all_.

segfaltnh··on Same Stop: Life after 26 years as a programmer for Apple
There's a bit of a renaissance here in Rust, or perhaps this is just my bias. Many people are drawn to the lack of a garbage collector and efficiency of the runtime code. Lots of packages optimize algorithms that are unlikely to be strictly necessary for the task at hand.

I think it will remain niche to care deeply about these things but they aren't forgotten. In my late 30s and finding this type of thing more and more fascinating despite working for companies building criminally inefficient software using Ruby and Python and dozens of microservices.

segfaltnh··on Colima: Container runtimes on macOS (and Linux) with minimal setup
We migrated all our devs to colima and it's been pretty good. Don't want to deal with Docker (the company) and don't use any of the "features" of Docker Desktop.

The only actual issue we've seen is the way folder syncing works includes a slight delay, which has caused some unit tests that depend on running commands in a container with the current working directory mapped that create files to fail intermittently. We believe this is because of sshfs caching. We've updated the tests to wait for the files to appear rather than assume.

segfaltnh··on Fulfilling a reader's request for my “dot files”
This all sounds fascinating. Got any links on scanning and age w.r.t. color?
segfaltnh··on A look at Crystal, a programming language for humans
Didn't ruby and python both get created in the same year...?
segfaltnh··on A look at Crystal, a programming language for humans
What's your largest Crystal code base? How are the compile times?

I've only done toy stuff in Crystal and super curious about "real world" experiences.

segfaltnh··on A look at Crystal, a programming language for humans
I bet it's hard to be motivated to build numbers 2 or 3 when number 4 isn't getting attention. That's why most languages start there, that's the raison d'etre.
segfaltnh··on A look at Crystal, a programming language for humans
And you had a ton of experience with Ruby heading into this comparative exercise?

I feel like a lot of us are hitting a point in our career where we have decades of experience doing it one way, and learning something new is slow, but make the mistake of thinking that's entirely a reflection on that new thing. (Myself included.)

segfaltnh··on How to Design Programs 2nd Edition
Right but in those cases were these libraries selected by engineering managers and not developers? I definitely appreciate being stuck in a pattern but everywhere I've worked the standards were at least set by technical contributors (competent or not).
segfaltnh··on How to Design Programs 2nd Edition
Sorry I wasn't clear, I'm talking about imperative code that coordinates multiple external actions. In a world where it's modeled as jobs in a distributed system, I agree that each job can be nicely functional (and I love this pattern).
segfaltnh··on Some employers have decided to build their own housing for workers
Surely there's no histoic examples of this happening. Especially not in America. /s
segfaltnh··on Writing an RPC from Scratch (2021)
Great intro for more junior devs learning how it all comes together. It's incredibly easy to use these things without understanding what they are doing for you under the hood.
segfaltnh··on How to Design Programs 2nd Edition
I love this sort of approach for one-shot externalities but what about when your entire program is a conversation with external components? My current project coordinates software repositories and services within AWS and I find myself using a lot of mocks in testing.

I can return a tree of lambdas but then I have to resolve them against something and that's just replacing mocks with lambdas, really. Not sure it's any better in practice.

← PreviousPage 5 of 6Next →