#automation #python #javscript #puppeteer #QA
🚩✊️️️️️ Friday is Dependency Deletion Day! If you're still using a JS library to scroll to elements, you not only need to change that for the usual reasons, but also because native scroll functions integrate with the CSS property scroll-behavior[0]. This makes it trivial to respect the user's prefers-reduced-motion preferences.
[0] https://developer.mozilla.org/en-US/docs/Web/CSS/Reference/Properties/scroll-behavior
Happy New Year Excalibur.js!
Check out all the cool game stuff that happened in 2024, and our plans for the future!
JavaScript in 3 minutes or less: the nullish coalescing operators
https://medium.com/js-in-3-minutes-or-less/the-nullish-coalescing-operators-007b3aca12a2
Hey #Javscript developers - on a scale of 1 to "Rob Z. has lost his fucking mind" how bad does this look to you?
How do you validate deep-cut fields in a large object structure?
And, before you get on me about nesting objects and such - yes, my data models need some work (there's a "details.details" in there, FFS) but I am finding this is one of the better ways to handle the complexity of this system without tearing my hair out.
#tinyJStip You can use the padStart() function to generate things like file names with leading zeros within a loop.
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/padStart