Readit News logoReadit News
batiste commented on The crash of Air France flight 447 (2021)   admiralcloudberg.medium.c... · Posted by u/gus_leonel
Tronno · 2 years ago
In post-mortems involving pilot error, what strikes me is that airliner cockpit design sounds so convoluted, unintuitive, and just plain bad. The burden of disentangling this bad design is always placed on the pilots - through extensive training and rote memorization - which inevitably fails under stress.

In this particular example, consider:

- the opposing pilot inputs being signaled only by a pair of little green lights

- the cacophony of warning lights and alarms which, together, say little more than "something is wrong"

- instruments that direct a pilot to pull up during a full stall

- sensor failures with no clear indicator

- computer safeguards suddenly removed without a stated reason

Etc. And the expectation towards the crew is to quickly and corrently reason about this stream of conflicting signals, while embroiled in a sudden emergency.

It smacks of pure engineer-driven design, assembled with serious attention to the technical issues, but with near-zero empathy for the humans who will be operating the contraption.

Reminds me of internal web tools at so many companies. They present giant messy forms, with checkboxes and dropdowns for every conceivable edge case, which have to be manipulated just so or the system explodes. And when something breaks, of course it's the user's fault every time.

batiste · 2 years ago
There should be a calm AI voice stating what they should be doing based on some heuristics. Based on angle of attack, engine power and the last recorded reliable speed, I feel a simple system should be able to make projection of the current speed and throw some warning when pilot input are becoming real stupid.
batiste commented on Multiple assertions are fine in a unit test   stackoverflow.blog/2022/1... · Posted by u/nsoonhui
lodovic · 3 years ago
Wait - people are doing real http calls in unit tests, over a network, and complaining about multiple asserts in the test code?
batiste · 3 years ago
I have met people that thinks HTTP calls are great!

- "But it tests more things!"

Well ok, but those are integration tests, not unit tests... It is unacceptable that a unit tests can fail because of external system...

batiste commented on Multiple assertions are fine in a unit test   stackoverflow.blog/2022/1... · Posted by u/nsoonhui
batiste · 3 years ago
It has been a long time I have met somebody stupid enough to push this kind of meaningless rules forward.

Test setup is sometimes very complicated AND expensive. Enforcing only 1 assertion per test is moronic beyond description.

Deleted Comment

batiste commented on To Ruby from Python   ruby-lang.org/en/document... · Posted by u/mariuz
BiteCode_dev · 3 years ago
The optional parenthesis kills it for me. It makes scanning the code impossible: you have to understand each line context.
batiste · 3 years ago
Yeah, the optional parenthesis is one my biggest complaint with the language.

It just makes things less readable, with not other benefits than making the code look more clever than it is.

batiste commented on To Ruby from Python   ruby-lang.org/en/document... · Posted by u/mariuz
boberoni · 3 years ago
> Unlike Python, in Ruby… There are a number of shortcuts that, although give you more to remember, you quickly learn. They tend to make Ruby fun and very productive.

I use Python, but have never tried Ruby. The ecosystem for Python packaging is so chaotic that I’ve considered switching.

Any Pythonistas/Rubyists here that could point out some Ruby shortcuts that make you more productive?

batiste · 3 years ago
It really doesn't... After years using Ruby my mind never managed to parse its complicated grammar.
batiste commented on GraphQL Is a Trap?   xuorig.medium.com/graphql... · Posted by u/mgiroux
taco_emoji · 4 years ago
For the life of me, I do not understand what GraphQL offers over just direct SQL access
batiste · 4 years ago
You don't necessarily have a single SQL database behind a GraphQL server. You could have one of a mix of the above:

- Legacy internal REST APIs

- NoSQL Databases

- Various SQL Databases

- Some static text files

- Some REST APIs from a third party

batiste commented on GraphQL Is a Trap?   xuorig.medium.com/graphql... · Posted by u/mgiroux
batiste · 4 years ago
What I really like about GraphQL is that it completely get rides of the silly verb questions such as

- POST or PUT or PATCH?

- Why can't my GET or DELETE requests have a JSON body?

It is just a better interface, even if it where to be used exactly as REST without any nesting. I used the Appollo server in NodeJS and it was so natural to make parallel queries and let the query planner take care of the parallelism for me...

batiste commented on I am the healthiest person I know, and I got cancer   seema.page... · Posted by u/codetiger
cracrecry · 4 years ago
In our modern societies there are lots of cancer risk involved that (most) people can not see.

For example using a microwave with microscopic cracks in the glass and staying nearby. All the diesel particles and exhaust car fumes and tire dust in the cities. The terrible air quality near maritime ports because of the bad quality ships do with ultra cheap fuels.

The extermination of gut microbiota with the use of pesticides and the use of artificial sweeteners.

Genetically engineered food that is flooded in pesticides(engineered so the plant can withstand them).

The excess use of liquid oils and refined sugars that were never consumed by humans and that are correlated with cancer and cardiovascular disease.

The excess use of the fridge and premade foods making essential nutrients go away as the food freezes, so you eat but starve.

Contraceptive pills that are hormone bombs in your body.

Chemical products like benzene that industries like energy extraction's leak on aquifers and Perfluorooctanoic acid you could generate just burning a teflon pan you forget to put oil or butter in(or using the 3d printer with exotic materials).

All of those risk can be extreme but most people just can't see it. I have seen people burn out a teflon pan and not understand that they have to trow it away immediately. I have seen people handling benzene like water.

You can believe that you are eating healthy because you eat lots of vegetables but if those are flooded in pesticides, then it is not so healthy.

batiste · 4 years ago
> Genetically engineered food that is flooded in pesticides

Nhaa, I don't think so. Glyphosate residue are not a real concern for me.

Other things that are way higher on my list, that are considered "natural":

Sun exposure

Radeon gas

Alcohol and tobacco consumption

batiste commented on Django 4.0 release candidate 1 released   djangoproject.com/weblog/... · Posted by u/pauloxnet
batiste · 4 years ago
Love Django. But we are using Django with Gunicorn at work and we are having massive concurrency issues (1 process, gthread)... More than 4 concurrent requests waiting on a slow IO and the whole thing melts down...

FastAPI doesn't have those issues at all...

u/batiste

KarmaCake day156December 20, 2010
About
Full Stack Dev https://batiste.github.io/
View Original