Better HN
topnewbestaskshowjobs
Log inSign up

Seb-C

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

Submissions

comment 6y ago · link · parent

I have seen way worse than this.

In a "corporate [bull]shit" setting, I could easily imagine scenarios where the synchronous client-side query could make sense and be the best available option. Thankfully I have escaped this kind of workplace long ago.

The worse codebases IMHO are the ones that have random associative arrays that are exchanged and mutated randomly in any part of the code. Give it a few years of maintenance by bad developers, and you end up with a mess of conditional workarounds and variables that can contain up to a dozen of different data structures with inconsistent properties.

comment 6y ago · link · parent

"The road not taken" is one of my favourites. It gives a very interesting alternative way to think about science and technological progress. And the ending gives such an amazing feeling...

The only drawback is that as a non-native English speaker, the "pirate english" language at the beginning made it very hard for me to understand, so it is a story that is difficult to recommend to my friends.

comment 6y ago · link · parent

I got sick in march with covid-like symptoms but could not get tested. I have also experienced being out of breath when climbing stairs or walking. I also started to worry and attribute other symptoms like headache to this, but then realized that :

- I spent 3 months at home without going out much

- I'm wearing a mask everytime I go out and I noticed that masks make breating harder

- I did not move much for 3 months and worked at home. This is significantly less than my usual 30 minutes of walk + 1h of transports + climbing stairs 4 times a day

- Only seeing the world through the news has a big negative psychological effect on me

Now it is just my humble experience. I am certainly not saying that people does not have symptoms and I only am one dot of incomplete data.

I just want to say that if you got sick and then experienced long terms effects, please don't forget about the radical life-style changes that you are experiencing before attributing everything to the virus.

Understanding this helped me to rebalance my daily routine and get and feel better.

comment 6y ago · link · parent

I'm French and moved to Japan last year.

Every time I see a news about my country, it is for bad things, and that makes me sad. But I made the right choice.

There were many reasons for this.

The most notable thing in my experience of moving to Japan is the shock when I actually discovered what freedom and a liberal economy means. I now seriously view my country as communist.

The taxes are insane. For example, if your company pays 2000 Euros for your work, 1000 Euros goes to taxes ("charges patronales", social security, pension and dozens of useless stuff that nobody understands) Then you have city taxes are usually about half a month of salary If you are a landlord, you have to pay a second tax to the city (about half a month of salary too) Then you have the "impot sur le revenu" which is an annual tax that is roughly 1.5 month of salary for an average salary. The higher your salary is, the higher the tax percentage is (up to 75%). There is a 20% VAT on almost everything, and there are hundreds of other different taxes on anything you could imagine ( https://fr.wikipedia.org/wiki/Liste_des_imp%C3%B4ts_et_taxes... ).

Public services are shitty. Justice and security does not exist anymore. There are so many dumb laws and regulations that is it very hard to innovate without doing something illegal. There are hundreds of useless government entities that consumes millions of euros every year, and whose only activity seems to be to harass companies, entrepreneurs and rich people.

The standard of living in France is by far inferior to Japan in my experience (on almost every criteria).

comment 6y ago · link · parent

This is a very loaded and racist term against wasps, shame on you!

EDIT: It is a joke (just saying because there is a lot of angry people here)

comment 6y ago · link · parent

This is completely wrong.

I still remember when my Windows 95/98 computer took 10~15 minutes to boot, when launching everything from Word to a game took minutes of waiting, when installing a game from a CD could take one hour or when loading an HTML page with no images took dozens of seconds.

God help you if you had to load an image, or even worse: a photo or animated gif.

comment 6y ago · link · parent

I just spent 5 minutes upvoting every grayed-out comment that had at least substantial content in this page. Even the ones I disagree with.

    I disapprove of what you say, but I will defend your right to say it

comment 6y ago · link · parent

Thanks for your answer.

If the concern is about threads, why not at least allow deletion of comments that does not have answers?

I think in many cases instead of deleting, it would be nice to anonymize a comment, so it does not show the user name and does not show in the comments list of a profile either.

comment 6y ago · link · parent

I am also upset and concerned that I cannot remove the posts I want. Having to send to someone the content you don't want people to know anymore is wrong and a huge psychological barrier.

comment 6y ago · link · parent

I mostly don't mind (like 99% of redesign these days, it is pointless), but the new one makes many things harder to read: - I don't know which menu or tab is selected (the tiny border is not obvious enough) - The buttons don't have a state anymore, so figuring out if I am following this repository or not is difficult - The file browser does not have a clear separation (border) for each file, nor does it have alternating background colors. That makes the navigation harder. - I am disappointed to see that the redesign did not get rid of the useless in-page loader when I click on a link. This is annoying and breaks my normal navigation.

comment 6y ago · link · parent

So I am not an expert in this field, and actually I only have a vague idea in what a transformer does, but is there a reason to believe this would not be repairable? We are not talking about a usual bomb, so most of the materials and infrastructure would still be there. It would not make any sense to build a new one instead of repairing or replacing the damaged parts.

comment 6y ago · link · parent

Next steps following this logic:

- Stop using the word "communism" because it may offend ex-USSR citizens

- Stop using the word "famine" because it may remind bad memories to some africans

- Stop using negative words to talk about the chinese government because it could offend chinese people

- Stop using the words "bible" and "jesus" because it might offend muslims

The world will sure become a better place without those negative feelings...

comment 6y ago · link · parent

This is getting ridiculous and annoying.

When I hear about slavery, I think about the poor people that did not have any freedom, not about black people. There have been african slaves in africa, asian slaves in asia, european slaves in europe and native american slaves in native american civilizations for thousands of years.

American people are projecting their very own and specific segregation problems onto the whole world by banning words universally useful.

Forbidding vocabulary like this only reduces the quality of debates on the long term and does not make anything better. That is how dictatorships works.

If you cannot say the words "slave" and "master", you cannot have a discussion about it, its history and influences on our society and on real people, because otherwise you would be deemed racist. In my country it became racist and implicitly forbidden to say "black people" or "arab people" because otherwise you are instantly deemed to be racist. So now we cannot talk at all about this topic. Politicians certainly won't risk their career by talking about it. So nothing changes, and nothing can actually improve (including the lives or people living today), because we cannot talk about it...

I will continue to use words however I want.

comment 6y ago · link · parent

No, they have to pay your full salary for the whole time. So to enforce a 18 month non-compete agreement they have to compensate you with 18 months of salary.

comment 6y ago · link · parent

Wow, I did not expect so much aggressivity. Sorry if I hit some sensible point, but my question certainly did not aim to imply any kind of judgement.

I am not american and never heard about a "black college" before. Are those words (along with the TCUs you mentioned) used for historical reasons, or is there still segregation (wether legally or de-facto)?

The meaning of my second question was actually that I disagree that "beefing up the Computer Science programs in black high schools" will help much beyond a little short term relief. Efforts should focus about understanding and fixing the systemic problems, not the symptoms.

comment 6y ago · link · parent

I understand that you are trying to be constructive, but I'm quite surprised by your use of "black high school" and "black colleges". Is it still a thing in the US?

Wouldn't focusing on fixing this situation be more beneficial than reinforcing it?

comment 6y ago · link · parent

My experience is that most of the time, randomly failing tests are actually failing because they were made to be random.

Sure, adding Faker to your test/mock data may help you to find rare edge cases. The problem is that those edge cases will be triggered in the future, in another context and by another developer. So not only it probably won't be fixed, but it will be a waste of time and annoyance for someone. Same thing for some option like the `random` setting in Jasmine (runs your unit tests in a different random order each time).

So now I only have tests with static, predictable data.

Having tests that depends on the state of the previous one (or are affected by it) is quite common too. And not always easy to fix properly.

Once this is removed, the remaining random failures are usually authentic and helpful.

comment 6y ago · link · parent

This is so true.

When I learned to write (French) when I was a child, the teacher also gave us strict guidelines to the order and shape of the characters. I don't see any difference except that in my country, most people stop caring about it once the exam has passed.

Japan is awesome when you really dive into the culture and language and try to understand it. If you don't, you'll probably have a hard time (hence the number of expats ranting about anything and everything, I guess).

I always wondered why it is always the target for articles about "weird stuff". You can find weird people and concepts in any country if you search for it long enough...

comment 6y ago · link · parent

It seems to me that this is mostly a design problem. Why would you need to check this data everywhere?

Checking the validity of the data is only necessary once. In a web context, this is the responsibility of the controller. Only once the data is sanitized should the controller inject it into 'anything else'. Sanitizing data is not the responsibility of a model/service/repository/view/anything else, and trying to do so indeed leads to a lot of bugs and headaches.

Having this kind of object that checks your data and may throw exceptions anywhere on the code only augments the failure surface of all your codebase by adding unexpected exceptions.

Comprehensibility is in no way related to using objects. Wether you choose an integer, a class or a subtype of integer does not make anything more readable, it all depends on the quality of the naming. A var named `year` or `startYear` will always make the code more readable than a var named `start` or `begin`, whether it contains an object or an integer is irrelevant.

comment 6y ago · link · parent

> it's harder to make a function retain state later.

I do not agree with this kind of argument. If you need to transform the function into an object later, you can just do it later. Even in a huge codebase it does not take much time to do it.

The `what if [...] someday` argument only leads to unnecessarily complex and expensive code, and most of the time you will never actually need it.

comment 6y ago · link · parent

For long I had the same problem with Japanese language files being shown as binary in the GitHub diffs, and it is solved by having something like this in the .gitattributes file

    *.php diff
Overall I am amazed that everything shows properly in GitHub. https://github.com/minimaxir/big-list-of-naughty-strings/blo...

comment 6y ago · link · parent

I live in Tokyo and I think the biggest factor is the individual sense of responsibility.

From the beginning (and it gradually started far before the emergency declaration), most people and organizations recognized their role and responsibility and did whatever they could do to help.

My company gave material and instructions about washing hands, gargling and improved the frequency of cleaning in february, and then switched to remove-working for everybody as early as march. The company managing my share house did almost the same and even increased the frequency of cleaning.

Shops set up barriers in front of the cashiers. Restaurants either decided co close or switch to sake out only. Almost everybody started to wear masks since the beginning. When masks were impossible to find in shops, my company somehow achieved to deliver dozens of masks to all employees. When I got sick they also helped me by delivering furnitures and foods to my room.

So many people from western countries that are always talking about freedom seems unable to do anything else than ask their government to forcefully lockdown everybody. A government is not omnipotent and cannot fix everything magically. Recognizing your role and willingly do whatever you can is the only solution. Here, the government only asks people to do things whenever it is necessary, and they do.

comment 6y ago · link · parent

After reading this post, I checked my browser console on this page, and you'll never guess what I discovered!

comment 6y ago · link · parent

This is very much interesting and exciting, but all I see in this article is arguments from authorities. I fail to see any facts or demonstratable proofs.

How is that theory different than any other religious belief?

comment 6y ago · link · parent

I don't know why people says that RSS is dead... It is very much alive. I am still using it for everything.

Just because it stagnated and is not as popular as social networks does not mean it is dead.

comment 6y ago · link · parent

There are no WebExtensions on Safari

comment 6y ago · link · parent

I actually wish we had more advanced features in HTML itself. There are still many cases today where you only need JS to load something on click or for a simple datepicker.

If some basic things like <input type="date"> and the <details> tag (and associated css) were actually standard, reliable and working, we would not need JS at all most of the time.

I also wonder after 20 years why we still don't have something like <a target="#myDiv"> or <form target="#myDiv"> to dynamically load content rather than billions of specific ajax query scripts everywhere.

comment 6y ago · link · parent

I actually read `March 2018` at first. This is not as scary as the story of Mr Mehran Karimi Nasseri (guy who spent 18 years stuck in an airport).

https://www.youtube.com/watch?v=rM4ZpJOAY4k

comment 6y ago · link · parent

Interesting tool. I am using hnrss.org to get posts in my aggregator and did not have to complain so far. That is probably because I filter the posts by points, so I only get the most popular ones. Sure, I may be missing a few posts I would have liked, but this way I am avoiding the distracting habit of checking the homepage too often.

https://hnrss.org/newest?points=100

comment 6y ago · link · parent

The other side is that sometimes you answer the PM to actually go in a bike shop, but the company does not have the budget.

Sometimes you know that they ask a bike but will change the specifications later, so you try to prevent the mess.

Trust me, I have a lot of experience in building 3-wheeled space-bikes ;D .

1
1112131415