🤝 Open source advocate 👽 Maintainer of @stryker_mutator 💼 Manager and trainer @InfoSupportBV 💚 Loves green energy and vegetables

Holland and Belgium
_Rough estimate of an average JS project setup_
2
How can a lonely JS program know whether or not it is executed in an ES module or a plain script? 🤷‍♂️ stackoverflow.com/questions/…
2
2
Sneak preview: the next version of StrykerJS will detect and break infinite loops (or at least tries to) github.com/stryker-mutator/s…
I've been thinking of ways to improve handle infinite loops in mutation testing scenarios. Feedback welcome github.com/stryker-mutator/s…
2
1
8
😱What happened to Java development?
1
Nico Jansen retweeted
Since the Paris Agreement was signed 5 yrs ago, G20 states have subsidised fossil fuels by more than 3.3 trillion dollars. Only *2%* of their financial support after the pandemic has gone to clean energy transitions. #MindTheGap between words and action. theguardian.com/environment/…
158
2,290
6,371
Tabs vs spaces
18
381
2,383
These are my favorite test classes in the entire StrykerJS code base. They remind me of a simpler time playing GoldenEye 007 on N64 with friends and my brother 😍
1
And if thy lint rule offends thy code, disable it, and cast it from thy config file: for it is profitable that one line of code be wonky, and not that thy whole code base should be cast into disorder - Matthew 5:29
2
8
66
I long for a time that I don't have to say "Native promises" anymore. The "native" part should be implied. Are there still reasons to roll your own promises in 2021 🤔?
Announcing: I'm writing an @OReillyMedia book on introductory @TypeScript! 🎉 ✨ It's targeted to devs who can write JavaScript but don't necessarily have compiled / type language experience. ✨ We're tentatively calling in "Learning TypeScript" or "Beginning TypeScript".
10
5
66
StrykerJS 5.2 just released 🎉 With more goodness 🎁 ❓ Optional chaining mutator 🥒Support for cucumber-js as a test runner. See stryker-mutator.io/docs/stry… Start mutation testing today! stryker-mutator.io @cucumberbdd

ALT Animated gif of the cucumber-js gherkin report

1
7
9
I could have lived an entire life without having `undefined` in #javascript 🤷‍♂️
1
I'm missing the "error TS1234" option in all of these questions😎 jsisweird.com/
F*ck my life 🙄 github.com/stryker-mutator/s… Any chance I'm making some @cucumberbdd users happy?
1
5
I've spent the past weeks thinking of the best possible solution and I'm implementing it. You can follow the progress here: github.com/stryker-mutator/s… Just another day (or month) in the life of a Mutation testing framework maintainer.
3
Basically, when StrykerJS places the optional chaining mutant it has _already placed_ the "deeper" arithmetic operator mutant and thus it duplicated with the `cloneNode(deep: true)`. This is a bug in our placing algorithm, not a specific mutator. 🙄
1
1
Where does this bug come from? StrykerJS uses @babeljs to place mutants, which uses a mutable Abstract Syntax Tree (AST). The way StrykerJS places mutants in the code is by using a combination of the visitor pattern, cloneNode(deep: true), and "NodePath.prototype.replaceWith".
1
1
Side note: you might think this isn't worth fixing, but we have the goal of supporting all JS projects, also the ones with 1000+ LoC / file and deep AST's. I find the "prettier" code base to be an excellent example for files with such complexity github.com/prettier/prettier
1
1