Decorate all the things
So what's different this time? This latest proposal is simpler and more limited in scope than previous versions of decorators. According to the proposal's README, these decorators will "always simply wrap what they are decorating, rather than performing other transformations." In theory, this should make it easier to avoid overusing decorators and abstracting away too much of your codebase (a common complaint when using decorators in TypeScript and other frameworks).
Another playwright interested in headless execution
To test or not to test... that is (always) the question. Playwright released v1.4 last week, and despite no major breaking changes, this was a pretty big update for Microsoft's popular Node.js testing library thanks to the addition of three new, highly-requested features. Here's the breakdown:
playwright-cli: Playwright's new CLI lets you record user interactions to generate Playwright scripts, emulate devices and color schemes, generate page screenshots, open pages in Chromium, Firefox, and Safari and more. This should help you to more easily generate E2E test scripts as you click through.
Video screencasts: This experimental new feature allows you to record videos of your scripts to inspect headless executions on any browser and any platform in both headful and headless modes.
New client/server wire protocol: A new wire protocol for Python, C#, and other language bindings that will provide greater support for those wanting to use Playwright in non-Node environments.
When some of the founding members of the Puppeteer team moved over to Microsoft last year and launched Playwright, it was easy to see the similarities between the two libraries. Some developers even dubbed Playwright the "cross-browser Puppeteer", since that was Playwright's only real distinguishing feature. But the new features and functionality in this latest release should help Playwright to differentiate itself among the many other testing and browser automation tools out there.
Jake Archibald wrote an in-depth article on the new AVIF image format that produces a high quality image at 1/4 the size of JPEG and 1/2 the size of WebP. AVIF will make a great addition to our "Pokemon or Image Format" game.
Charles wrote about tophatting in React Native at Shopify. "Tophatting" refers to ~~saying "M'lday" while tipping your fedora~~ manually testing your coworker's changes before approving their PR.
Holly wrote about the 5 most annoying website features she faces as a blind person every single day. It's a well-written reminder about the importance of accessibility and empathy for users.
Tooltip Sequence is a simple, step-by-step tooltip helper you can use to walk users through the features on your web app. It would be great if someone could implement this on the IRS's website.
window.location.href. I think it's also worth noting that
window.location has a bunch of different properties on it that may be of use to you as well.
Let's assume this is the current URL we're on
These are all the properties that
window.location gives us.
Delivered to 70,048 developers every Monday
This is the first ever newsletter that I open a music playlist for and maximize my browser window just to read it in peace. Kudos to @uidotdev for great weekly content.
The Bytes newsletter is a work of art! It's the only dev newsletter I'm subscribed too. They somehow take semi boring stuff and infuse it with just the right amount of comedy to make you chuckle.
Bytes has been my favorite newsletter since its inception. It's my favorite thing I look forward to on Mondays. Goes great with a hot cup of coffee!
I subscribe to A LOT of dev (especially JS/TS/Node) newsletters and Bytes by @uidotdev is always such a welcomed, enjoyable change of pace to most (funny, lighthearted, etc) but still comprehensive/useful.
Literally the only newsletter I’m waiting for every week.
Bytes is the developer newsletter I most look forward to each week. Great balance of content and context! Thanks @uidotdev.
The sense of humor and structure of the Bytes Newsletter is first class and the information that comes with it is enough to make a mini course.
Very few newsletters manage to be useful and not very boring. @uidotdev manages to achieve these pretty effortlessly. You can almost see Tyler chuckle as he writes them.