1,107 karma · joined Mar 22, 2019 (7y ago) · 450 submissions
comment 6y ago · link · parent
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 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 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
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
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
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
comment 6y ago · link · parent
comment 6y ago · link · parent
- 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
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
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
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
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
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
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
*.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
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
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
comment 6y ago · link · parent
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 .