HNHacker News
TopNewBestAskShowJobs

4star3star

171 karma · joined July 24, 2023

submissionscomments
4star3star··on Several people detained in Switzerland over death in a 'suicide capsule'
They ought to make this thing a 2-seater so a loved one with an oxygen mask can sit next to you and hold your hand.
4star3star··on Glass Antenna Turns windows into 5G Base Stations
> turns a window into a base station that can be attached to a building window inside and turn the outdoors into a service area

You could easily enclose this by some architectural feature on the interior of the building or even use a window that's off the back of a maintenance closet.

4star3star··on Show HN: A CLI tool I made to self-host any app with two commands on a VPS
I like what I'm seeing, though I'm not sure I have a use case. On a VPS, I'll typically run a cloudflared container and configure a Cloudflare tunnel to that VPS. Then, I can expose any port and point it to a subdomain I configure in the CF dashboard. This gives https for free. I can expose services in containers or anything else running on the VPS.

I'll concede there's probably a little more hands on work doing things this way, but I do like having a good grip on how things are working rather than leaning on a convenient tool. Maybe you could convince me Sidekick has more advantages?

4star3star··on Holding a Program in One's Head (2007)
I think DRY should be supplemented by "Don't make me read it multiple times". Repeat yourself, by all means, if that makes it so that I don't get all twisted up jumping between so many files that I can't keep the main thread straight while I read your code.
4star3star··on How to succeed in MrBeast production (Leaked PDF)
I find his stuff sloppy and uninteresting, too, and he has no charisma. This just goes to show that he really does know what he's doing. He identified the statistically meaningful things to focus on and perfect. Imagine if he was just the producer for someone who actually gave a crap about making quality content.
4star3star··on Metformin decelerates aging clock in male monkeys
Partly, I think that the culture is more affected by the lack of history than most people realize. If you've lived in Europe, and I'm sure elsewhere, you understand your mortality implicitly from the centuries-old buildings and streets. At least that's what I got out of it.
4star3star··on Why bother with argv[0]?
The post is silly because you wrote software that makes use of argv[0]? On the contrary, it opens a discussion about unintended security implications that might be avoided in the future if command line implementation can be reconsidered.
4star3star··on Zed on Linux Is Here
It's too bad VSCode doesn't "hydrate" features on an as-needed basis or on demand. Imagine it opens by default with just text editing and syntax highlighting, and you can opt in to all the bells and whistles as you have the need with a keystroke or click.
4star3star··on First Contact with SQLite
to be fair, it sounds like the author only referred to the manual after making uninformed decisions.
4star3star··on Aboriginal ritual passed down over 12,000 years, cave find shows
I also found this concerning.
4star3star··on Documentation Driven Development (2022)
The questionable reliability of documentation is the big problem, for sure. It would be nice to be able to collect metadata such as referral dates and even comments. If you visit the docs, tick a box that says, "I referred to this and it was accurate," or, "This needs to be updated," etc.
4star3star··on Raspberry Pi is now a public company
I agree that the availability has always been a big program. I always wanted a pi zero w but never could find one at list price.
4star3star··on Raspberry Pi is now a public company
What your critique does not address is the hardware aspect of the pi. GPIO pins engage many people who are interested in seeing tangible results of programming.
4star3star··on A new term, ‘slop’, has emerged to describe dubious A.I.-generated material
Fifteen years ago (I remember the apartment where I had this thought), it occurred to me that time was running out to write an authentic novel. Soon, computers would generate whole stories in an endless variety of styles, and even if future authors would hand write a book from start to finish, they would likely have been influenced by other artificial writing at some point. Readers would be unable to emotionally connect with authors due to the nagging awareness that the text might have been fully or partially generated by an unthinking, unfeeling machine.

Though I try, I fail to think of a comparable scenario in our past, at least as relates to language. You can look around whatever room you are in and try to identify an object that was made by human hands rather than a factory process. That's a fact that always makes me a bit sad. I think we're headed in a similar direction with the language we consume. Craftsmanship falls by the wayside, and our world loses even more of the human touch that connects us with one another.

4star3star··on Cancel Adobe if you are a creative under NDA with your clients
If I had to guess, this is probably not even Adobe's fault. They probably have a legal requirement to do this, like every goddamn site asking you about cookies.
4star3star··on Building a serverless secured dead drop
I'm trying to think of a reason not to just drop a microSD card in the mail addressed to the journo. Are we going to do better than physical media delivery? The only way to be found out would be some sort of surveillance of the mailbox or your fingerprints/DNA, which you could be careful with.
4star3star··on Minimalistic Beat Maker
Kinda hard to work it, but had some fun. https://martinwecke.de/108/#A0B02D2F12H2J2K0L2N12O4P2
4star3star··on Ask HN: What was your most humbling learning moment?
I work with a guy who makes a lot more than me, and he describes his salary as "spending money" because he has so many other ventures, contract jobs, and investments. His attitude about code is that no one in the future is going to look at your code like it's the Iliad. It's not art. It's just a tool. Almost none of us have any legacy to speak of with regard to this work. Your priorities as a father are worth it. You and your child will remember and cherish a day at the park far more than a well designed program.
4star3star··on Ask HN: What was your most humbling learning moment?
Just leave comments for the most embarrassing pieces.

// really not the way to do this, but it works

// ideally, we'd do xyz, but this is good enough

4star3star··on Should I use JWTs for authentication tokens?
Some people advocate for a secure httpOnly session cookie for the client, letting the server hold onto the JWT and manage refresh. This gets you the benefit of server to server access via the token as well as the "session" concept and the warm fuzzy feeling of knowing the client doesn't hold the token.
4star3star··on Should I use JWTs for authentication tokens?
How do you find out a single token got leaked within the token lifetime? If it's that easy to detect a leaked token, why aren't you stopping the leak in the first place?
4star3star··on Should I use JWTs for authentication tokens?
I'm unconvinced of the author's actual understanding of common JWT usage.

Suppose you use Azure. You may have one or more app registrations with defined roles as well as apis exposed within the Azure config. It's convenient to acquire an access token that can be sent to various apis, each of which can accept the token without having to worry about session state or really anything to do with authentication other than validating the token's legitimacy. If I wanted to roll my own security, maybe JWT isn't how I would choose to do it, but I definitely don't want to do that.

4star3star··on Scientists Find an 'Alphabet' in Whale Songs
Then what's needed is a sea drone that tags along with whales and collects context for their language.
4star3star··on Show HN: I made an open-source Loom alternative
Some feedback on your site's UX - on desktop, I don't expect hovering on a menu item to open a new context, so by habit I click on it. You're opening on hover, though, and my click is closing the context immediately.
4star3star··on The user is on their own
I would guess it's often better to make a slightly more complicated interface if that is what provides the best experience for an adept user. If you need the interface to satisfy the needs of a user from the first minute they experience it with no effort on their part to become more skilled, then you sacrifice a lot.

Software that is very enjoyable to use as you gain more intimacy with it is Ableton, which is used for music production. When you first see it, you're likely to think it looks dated and not too sophisticated. However, as you grow in your knowledge of how to access various features, you come to appreciate that it has been designed exceptionally well. For software that someone will spend significant time using, the goal should be a low barrier to entry and a high skill ceiling.

4star3star··on Run0, a systemd based alternative to sudo, announced
There is a certain personality type that likes to reimagine that their original thinking was not flawed, even when presented with a detail that they did not incorporate into their original thinking. If the detail had been in their awareness from the start, they would have arrived at a different position, but they are bound to a strict sense of linearity for reasons inexplicable to me except for ego protection.
4star3star··on Borgo is a statically typed language that compiles to Go
Coming from dotnet, I rather like the Go pattern as you've described it. I would normally catch and error and then write out a custom message with relevant information, anyway, and I hate the ergonomics of the try{}catch(Exception ex){} syntax. And yes, it is tempting to let the try block encompass more code than it really should.
4star3star··on Borgo is a statically typed language that compiles to Go
> other than exceptions, whats the alternative?

This may be a crazy/dumb take, but would it be so wrong to allow code outside the function to take the wheel and do a return? Then you could define common return scenarios and make succinct calls to them. Use `returnif(err)` for the most typical, boilerplate replacement, or more elaborate handlers as needed.

4star3star··on Borgo is a statically typed language that compiles to Go
What does Java offer that dotnet does not?
4star3star··on Segal's Law
The saying makes less sense to a modern audience. We can all pull out our phones and likely show the same time due to network time sync. BUT, what if we have 1000 phones all showing the same time, and they are ALL wrong? New layer to the sentiment....
← PreviousPage 2 of 4Next →