Better HN
topnewbestaskshowjobs
Log inSign up

Seb-C

1,107 karma · joined Mar 22, 2019 (7y ago) · 450 submissions

Submissions

comment 3y ago · link · parent

I have been thinking about this problem for a long time as well.

But I think that focusing on nils is a wrong analysis. The problem is the default zero-values dogma, and that is not going to change anytime soon.

Sometimes you also need a legitimate empty string or 0 integer, but the language cannot distinguish it from the absence of value.

In my codebase, I was able to improve the readability of those cases a lot by using mo.Option, but that has a readability cost and does not offer the same guarantees than a compiler would. The positive side is that I get a panic and clear stack trace whenever I try to read an absent value, which is better than nothing, but still not as good as having those cases at compile time.

No amount of lint checkers (however smart) will workaround the fact that the language cannot currently express those constraints. And I don't see it evolving past it's current dogmas unfortunately, unless someone forks it or create something like typescript for go.

comment 3y ago · link · parent

The satellites are equipped so that they can not only correct their orbit themselves, but also deorbit whenever SpaceX decides that it is their end of life, rather than just be abandoned.

comment 3y ago · link · parent

Starlink satellites are designed to not cause this problem, and are on a low enough orbit that the problem would solve itself naturally in a few years anyway.

comment 3y ago · link · parent

In the developer tools, Steam already disabled the button to add a Twitter account to a game actually

comment 3y ago · link · parent

If I were to pay, it would more likely be directly to the creators (like Nebula and others).

With YouTube I have zero confidence that the authors get a fair share, and the last thing I want is to give money to the parasites randomly claiming copyright (and stealing the money) over other people's work.

comment 3y ago · link · parent

The only time I tried wasm in Go, the wasm compiled by the native Go was so slow that the equivalent Javascript was faster. Tinygo produced decent performance however.

comment 3y ago · link · parent

I had a similar dilemma a few years ago when I moved to another country.

The round trip was about 1000€, but the one way trip about 5000€, which is just bullshit.

I would bet that as for skiplaggers, many people just get the round trip and never show up for the return one. Rather than a morally dubious choice, I ended up finding a one way ticket with Aeroflot for 700€, where I had a terrible experience that I'd rather not try again.

As a customer, I hated to be forced into this choice, especially for obviously complete nonsense like this.

comment 3y ago · link · parent

I guess it's nice to have a standard, but I wish the Golang developers stopped introducing stuff like "args ...any" all over the place in the standard library.

It's not the level of type-safety that I expect from a strongly typed language.

comment 3y ago · link · parent

France hasn't unfortunately.

I also wish we stopped giving more importance to preserving old buildings and architecture at the cost of making today's life hell for the residents.

comment 3y ago · link · parent

You can also use this extension: https://chrome.google.com/webstore/detail/nitter-redirect/mo...

comment 3y ago · link · parent

Every time I see such an article that dismisses psychotherapy, I cringe a little bit.

It is obvious that the author is ignorant of the topic (psychotherapy).

It sounds like a hardware engineer dismissing software engineers and strongly affirming that all bugs can be solved with hardware solutions.

Some problems are indeed due to psychic issues and not physiological ones. Yes, you can probably workaround symptoms with drugs, but that does not really solve the problem.

If you have mental blocks and a shitty life that makes you depressed, and alleviate the depression with drugs, you still have mental blocks and a shitty life.

I wish that both disciplines were not as independent from each other as it is today. Having experts at both subjects could probably do wonders to help people and make proper progress.

comment 3y ago · link · parent

I have tried it a couple of times and got wrong answers.

When I search for something, I want factual and correct information, which is not what a language model is for.

comment 3y ago · link · parent

Wow, I never realized that changing the order of commits in an interactive rebase was a legit operation.

Thanks for the tip!

comment 3y ago · link · parent

33 years old and I have had this issue for as far as I remember.

As for hygiene, I learned about that late (thanks to a boss who had the courage to speak to me about it), and now I just strictly follow the same daily routine. No more being complacent with showering, and I always wash my clothes every day regardless.

It worked well so far. But when it comes to changing the bed sheets or cleaning the toilet, I tend to let my wife handle it. Because smells does not mean anything, so for me as long as it is white and without stains, it is clean.

That said, I noticed lately that I sometimes actually smell things, but it is very random and episodic, like a few seconds every few weeks or so. So now I am wondering what is actually going on and if that may be curable in my case.

comment 3y ago · link · parent

Got any references to this?

I never had any smell, but lately I have very short episodes when I was surprised to smell something, until it disappears again.

I didn't notice any specific pattern about when it happens either, it's just a couple of seconds sometimes.

comment 3y ago · link · parent

I have no smell, but I do appreciate all kinds of foods and tastes.

Mostly the only thing I noticed that I lack are spices. I have no idea what these are for, so I just blindly follow the recipes, hoping not to mess it too badly.

That said, I never had it to begin with, so I may be missing on something I don't know...

comment 3y ago · link · parent

Luckily I never caused that because I'm usually freaking out too much about it.

However since I can't smell it either, in our new house we got a gas detector. I'm a bit relieved thanks to it.

The positive side is that it also monitors the CO2 and air quality.

comment 3y ago · link · parent

- A very slow website is trying to sell me a product about optimizing my product. That immediately kills my first impression

- More specifically, the blocks takes ages to display after scrolling on mobile

- There is a horizontal scrollbar on mobile, which is annoying (Kiwi Browser)

- You should drop the fancy JS and make plain HTML pages, or it's going to hurt the performance and SEO.

- After quickly reading the webpage, I do not understand what this it about. How can a third party product make my hand crafted 10-endpoints REST API faster? Is it some kind of CDN? Or analysis tool to help navigate big APIs? (in the second case, you should clearly sell it as such, because it does not actually make anything faster by itself)

169.

Indexing and colliding 10M of tiles efficiently and in real time(mastodon.gamedev.place ↗)

1 points · by Seb-C · 3y ago · discuss

comment 3y ago · link · parent

I have done that in Go and Typescript ("branded types"), it's actually very useful to discriminate ids. It prevents stupid mistakes that are actually hard to spot. Making it a whole class is maybe going too far however, as the costs may outweight the benefits.

comment 3y ago · link · parent

When the "victim" was planning to grab free money at the expanse of the next guy in the ponzi scheme, I think it's fair enough to blame them.

comment 3y ago · link · parent

Unfortunately you are right, racism is the most visible part of the iceberg, but this toxic attitude is present in all spheres of the French society.

Doing harmful jokes as well as dismissing, making fun and looking down at those that don't follow some abstract definition of "being normal" are deeply ingrained in the French culture (and also a source of pride - along with the whole french culture). Few are the people that understands and recognize this.

They sincerely see that as just humor and jokes, without realizing that it hurts. And I guess that being a foreigner there makes it worse, since you're even more unaware of it and different than their "norm" (whatever that is).

As a french, it took me an emigration to realize that this was - in fact - not normal, but actually a harmful and toxic behaviour that is not acceptable elsewhere.

comment 3y ago · link · parent

As a French living abroad, I totally understand what he means.

comment 3y ago · link · parent

Those two things are only related culturally, not inherently.

I do own an individual house in Tokyo and don't have, need or want a car, so it is definitely possible when the society wants it and politics allows it.

comment 3y ago · link · parent

My high-end thinkpad X1 carbon died after 2 years... Not repairable, and they don't sell any motherboard that could allow me to repair it myself.

Also the CPU and RAM were soldered on it, which makes it even less repairable.

176.

Can consciousness continue after death? A Neuroscientific Perspective(interaliamag.org ↗)

6 points · by Seb-C · 3y ago · discuss

comment 3y ago · link · parent

As a human you can only focus your eyes at one single thing at a time.

Whether you have to move your head/eyes or press a key to switch between the documentation and the IDE does not make much difference in term of efficiency.

I actually find it more comfortable, ergonomic and fast to have a single screen and switch the workspace. That also means that my (physical) setup is minimal and easy to manage, and that I do not get unnecessary distractions or things moving (notifications, messages, ads, animations...) in my peripheral vision.

comment 3y ago · link · parent

Why does the data starts in 2021? Comparing with the situation before the pandemic is essential to make any conclusion...

EDIT: The second link provides more insights: https://rinzewind.org/blog-en/2021/percentage-of-hacker-news...

Most likely, there is just nothing to see, we are still in the process of being back to normal from the pandemic bubble.

This chart paints a very dishonest picture.

comment 3y ago · link · parent

The first thing I do when refactoring spaghetti messes is to remove all useless and counter-productive functions and abstractions, so I can actually get one single, huge function containing all the process.

Only from there it becomes possible to have the broad view, reorganize and (re-)factorize the code again properly.

So if I had to choose between both, I'd take the 5000 lines function any time, since it makes my job easier.

comment 3y ago · link · parent

A limit to the airspace belonging to each country has to be defined.

Otherwise (for example) the Apollo missions would have violated USSR's airspace whenever the moon's orbit was above it's territory, which would make space unusable for everyone.

1
567
15