Better HN
topnewbestaskshowjobs
Log inSign up

rollulus

2,329 karma · joined Mar 14, 2016 (10y ago) · 328 submissions

Hi.
Submissions

comment 2y ago · link · parent

Earlier discussion: https://news.ycombinator.com/item?id=41269249

comment 2y ago · link · parent

Since rsc frequents HN: I’d like to thank you for all the work you’ve put into this great language. Peak HN hype cycle I decided to pick up Go and never regretted it. Thank you.

comment 2y ago · link · parent

Ah, I remember 2017’s HN where the mere word “Go” in the title made posts skyrocket to 498 points. In 2024 the title should’ve contained “Rust” for the same outcome. Quite curious what will be required in 2031.

comment 2y ago · link · parent

This briefly mentions something I’ve seen during work and never dared to explore: the various public (RDS) snapshots. Oh boy, some people either use very realistic test datasets or they accidentally made things public that shouldn’t be at all.

comment 2y ago · link · parent

If you never encountered this you never created your own ResponseWriter, or you did it and inadvertently broke its Flushing, Pushing and Hijacking capabilities. It’s not more complicated than this.

comment 2y ago · link · parent

Note that this is not necessarily a great thing to overuse. Also note that the article is 10 years old.

Relying on such upgrades sort of introduces a dark and fuzzy part of the API. Go’s http pkg is a notorious one, with how a http.ResponseWriter can also be a Flusher and Hijacker and I don’t know what else. If you in your middleware want to wrap it, you need to implement those interfaces as well, or the functionality is lost. But they’re not part of the “visible” API, they’re type assertions buried deep in the standard library, good luck with that. For this reason Go 1.20 introduced the http.ResponseController.

comment 2y ago · link · parent

As a Dutchman the endless list of apparent “Dutch” things never ceases to surprise me. Uncles, courage, ovens, double, going, etc., and a new one to my list: rolls. And none of them means any good.

comment 2y ago · link · parent

As often I’m impressed by the quality of all of this. The amount of thinking that went into this, this excellent written blog post. I love the Go blog.

comment 2y ago · link · parent

Re: from scratch, this one won’t disappoint you: https://web.archive.org/web/20130111175418/http://www.holmea...

comment 2y ago · link · parent

I recently implemented this, great write-up. Regarding the hashing function, I’m curious about opinions. In my implementation I went for a cheap but weak cryptographic hash at first. Then I got worried that some auditor would flag it and time would be wasted convincing them to change their mind. But then I stumbled upon FNV [1], a non-cryptographic hash and part of Go’s standard library and went for it. Any thoughts?

[1]: https://en.m.wikipedia.org/wiki/Fowler%E2%80%93Noll%E2%80%93...

comment 2y ago · link · parent

For tulips, growers cut the flowers indeed so that the plant spends no energy on it.

comment 2y ago · link · parent

This made me think back of the days of +Orc [1]. I believe a lot of knowledge common back then, like how to find and nop out an undesired branch, has been lost. Which is fair, there’s way more other tech to learn nowadays.

[1]: https://en.m.wikipedia.org/wiki/Old_Red_Cracker

comment 2y ago · link · parent

Does anyone happen to know which testcontainer implementations shell out, if any?

comment 2y ago · link · parent

Thanks for saying this out loud. I’m a solo dev and in my project I’m doing exactly this: 90% black box integration tests and 10% unit tests for edge cases I cannot trigger otherwise. It buys me precious time to not adjust tests after refactoring. Yet it made me feel like a heretic: everyone knows the testing pyramid and it comes from Google so I must be very wrong.

comment 2y ago · link · parent

From building a rigid body physics engine decades ago I remember that stacking was a very hard problem. The best solution at the time to avoid objects sinking into the ground was to create a directed acyclic graph, starting with the ground and pushing bodies outward. It required multiple iterations to converge and felt very hacky. Does anyone know if this problem has been solved nowadays? I couldn’t find any mention of stacking in this project.

comment 2y ago · link · parent

So an attacker has gained remote access, yet needs to perform operations using a sort of Remote Desktop approach? Plausible — in movies.

comment 2y ago · link · parent

I used it for my 1:1’s with a coworker who wasn’t too comfortable with such talks. We strolling around through a virtual world, me as a dancing woman in a pyjama and he as a fox made things more more relaxed for him.

comment 2y ago · link · parent

I don’t get it why the US company layoff culture is so different from what I’m familiar with, the European one. What are they afraid of that people need to be locked out? That one brings a gun to work? Here you get laid off, get a notice, are expected to continue working for a while (but depending on your work ethic you’ll take it easy), consume your remaining PTO, complain to your coworkers about what happened during a farewell dinner. So much more humane.

comment 2y ago · link · parent

Not mentioned in the article, but I bet seasonal/time-related passwords are due to password rotation policies. I work for a company too slow or stupid to have understood how counterproductive such policy is, and all my passwords are an update of the former. Because we humans cannot remember multiple strong passwords.

comment 2y ago · link · parent

> most seasoned Go devs would leap out of their seats to tell you it’s an anti-pattern for libraries to start their own goroutines. Best practices dictate...

Then I'm afraid that either the author is not familiar with the standard library, or that it is not built according the "best practices".

Rant: the phrase "best practice" increasingly irritates me. Basically it has become a synonym for "my own opinion just trust me". It's like the Jedi hand gesture to force your beliefs onto someone to end a discussion.

comment 2y ago · link · parent

I loved this book. It’s the sort of book that made me occasionally pause and think about the ideas presented in it. Boltzmann brains still fascinate me. The spot market for CPU power was visionary. When reading it again when I was older I only found the characters a bit weak.

comment 2y ago · link · parent

I like articles like this. Because they taught me, a native Dutchman, that I should take similar articles about cultures I’m not familiar with, with a grain of salt as well.

Anyway, it’s a pity that today it wasn’t sunny while ice skating on my daily commute.

comment 2y ago · link · parent

When I think of playing Mikado I think of altering pieces that (you hope) are isolated, in a constant fear that the whole mess collapses — because there was a connection you didn’t notice. Sounds like the opposite of good software engineering.

comment 2y ago · link · parent

True, it’s garbage.

comment 2y ago · link · parent

Spam, flagged.

comment 2y ago · link · parent

I find that suspicious too. I only found this post by using the search functionality. There are other cloudflare related posts as well not showing up, with 200+ pts as well.

Although the HN ranking algo is mysterious, this is different from how it typically works in my experience.

comment 2y ago · link · parent

European intelligence services are definitely capable, and the Dutch AIVD is highly regarded for its cyber capabilities.

In a proper functioning democracy at least the prime minister should know what intelligence services are up to. As those politicians are ultimately responsible. It’s not that intelligence services are independent lawless sub-states.

comment 2y ago · link · parent

Some highlights from the article: - Within the Dutch parliament there’s a committee for intelligence related work. They were not aware. Neither was the PM; - The intelligence officier later died in a motor cycle accident near Dubai. Nothing indicated that this anything other than a true accident, although other intelligence sources claimed that he paid a high price.

149.

Dutch spy released Stuxnet in Iranian facility(volkskrant.nl ↗)

8 points · by rollulus · 2y ago · 1 comment

comment 2y ago · link · parent

See also: https://news.ycombinator.com/item?id=38783112
1
456
11