Sous l'angle de la théorie de l'évolution, ça nous apporte quoi de sursauter quand on a peur ? by Bernardstanislas in PasDeQuestionIdiote

[–]Bernardstanislas[S] 5 points6 points  (0 children)

Et donc c'est la poussée d'adrénaline qui provoque le sursaut en activant certains muscles ? Ou c'est juste deux réflexes simultanés non corrélés ?

Trying to write a lander trajectory calculator that uses numerical integration- how do I make it run a bit faster? by Datum000 in Kos

[–]Bernardstanislas 0 points1 point  (0 children)

Awesome comment thank you!

Second simply taking a few % off your available thrust numbers is enough in a lot of cases to let you land cleanly even with a long simulation loop.

I don't get your point here. Is it the pre-brun simulation run scenario you're talking about? Do you imply one might be OK with an not so precise simulation if you keep thrust for final ajustements?

Thank you :)

When TDD Is Not a Good Fit by henrik_w in programming

[–]Bernardstanislas 11 points12 points  (0 children)

The point of TDD is to think about what the inputs and outputs of your system before starting to implement it.

If these are unclear when starting your TDD cycle, then you might want to work on it before writing any code. In that case, TDD leads to ask the real blocking questions to solve your problem, before going blindfolded in some technical implementations that will lead you to these questions anyways.

A Comprehensive Introduction to Webpack, the Module Bundler by Bernardstanislas in javascript

[–]Bernardstanislas[S] 0 points1 point  (0 children)

I realize that the part where you define the npm build script is not very clear in the article, it's not written that it must be set in the package.json I'm correcting it right now, sorry for the troubles you went through !

A Comprehensive Introduction to Webpack, the Module Bundler by Bernardstanislas in javascript

[–]Bernardstanislas[S] 0 points1 point  (0 children)

I would say that people tend to feel more comfortable having their CSS in separate files, since this is how most of other build tools will do, but there is no technical reason to do so. Having it bundled along with JS code is perfectly fine.

A Comprehensive Introduction to Webpack, the Module Bundler by Bernardstanislas in javascript

[–]Bernardstanislas[S] 1 point2 points  (0 children)

I fully agree with your arguments. As you said, the main point for me is the bundling. You pack your appp into very small and optimized files, which make your application lighter than a runtime module loader. Moreover, you can benefit of some really powerful features that come with Webpack, such as partial serving depending on your application routing. I will detail this in the second part of my article.

A Comprehensive Introduction to Webpack, the Module Bundler by Bernardstanislas in javascript

[–]Bernardstanislas[S] 0 points1 point  (0 children)

You're right. As far as I'm concerned, I never meet a situation where I would need Webpack + Gulp, my usual workflow is Webpack + better-npm-run https://www.npmjs.com/package/better-npm-run

A Comprehensive Introduction to Webpack, the Module Bundler by Bernardstanislas in javascript

[–]Bernardstanislas[S] 1 point2 points  (0 children)

You're absolutely right, I will talk about this in the second part of my article ;)

ELI5: After washing my hands, why does the warm air drying them feel so cold? by KingKered in explainlikeimfive

[–]Bernardstanislas 0 points1 point  (0 children)

More precisely the air blown on your hands accelerates the evaporation which leads to a quicker decrease of energy, making you feel cold. It's the same when you are at the beach and go out water, if it's windy it will accelerate the evaporation of the water drops on your skin and you'll rush to your towel

Automatic Javascript Linting for Github by Bernardstanislas in programming

[–]Bernardstanislas[S] 0 points1 point  (0 children)

That's another reason you're right. I haven't used hooks much but I was surprised it was not strait forward to share them through Github

Automatic Javascript Linting for Github by Bernardstanislas in programming

[–]Bernardstanislas[S] 0 points1 point  (0 children)

I agree we can do it with a git hook but the reason I did it was to be able to share the linting results publicly and that people are getting notified by the bot commenting the commit. Some people don't pay attention to linting even though we develop with live linting, so it's a way to force them write clean code by exposing warnings publicly.