Webpack Doesn't Work on Monday (On Windows)
github.com
github.com
https://twitter.com/evenstensberg/status/1145755812129845249
Happy to help you to fix the issue through email or DMs...
Even (One causing this issue..)
Whenever things like these happen, of course you should think if the effort ripping off Webpack is better than suffering possible losses of productivity in the long run. But for majority existing projects I'd bet the projected cost of lost hours vs the cost of changing your bundler would result in net-loss.
And as an observation, I feel programmers often have a habit of lamenting loudly about other people's mistakes while not saying a word if they make an error of their own. Maybe they have a psychological need of maintaining a feeling of superiority about your own abilities, I don't know. Just something I've noticed during my years.
(I'm sure I've read a longer version of this one somewhere else on the internet.)
A: "Hey boss, I'm not coming in today."
B: "Why not??"
A: "Well, webpack does not work on Mondays. Do you expect me to write plain Javascript code without Babel???"
B: "Makes sense. See you tomorrow."
1.) Question whether that codepath should be gated to a particular day of the week.
2.) Assess the cost of that codepath failing (or failing to load). Does it have the potential to brick the project?
3.) How big could the bug be? If software tells me it’s “just another manic Monday” on Tuesday, or that I should “Walk like an Egyptian” on February 31, who cares? There is no incentive to unit test because honestly, who cares? On the other hand, if it has the potential to brick the project, go back to #1. Do you really need to test the day of the week? Are you bloody sure?? :)
4.) If you reach #4, it’s time to invest in unit tests. You wrote a condition where a day of the week test could result in software failure.
Openoffice can’t print on Tuesdays
Cause was another job that hammered IO because reasons, so mine was being killed by some unreported IO timeout after 1min, and retried the next minute (so every other minute). The other one was scheduled to run on off business time (weekends and Monday before people get to work) and had some burstiness that made the IO go down enough every other minute which allowed my short-execution one to proceed.
top was silent because IO, took us a long time to even thing about iotop because the failure was non obviously tied to IO.
People complained that the dontation message was being shown too often. So they made it ask on mondays only.
"We had a unit test once which only failed on Sundays" https://qntm.org/unit
I just re-read Ra, which is amazing. Found it much easier to follow than the (equally amazing) Fine Structure.
Webpack + babel is an extremely fragile piece of tooling that eats work hours of senior devs like a candy.
Few years ago it might've been like 50/50 split in between fighting tooling and development in shorter term projects
The problem in replacing webpack+babel combo is that what we call "the JavaScript ecosystem" over the years turned into a "webpack ecosystem" with even most trivial packages not working with some kind of all-involving "build process"