Web Weekly #132 | Stefan Judis Web Development
Greetings from Italy! 🇮🇹
What questions did you have when starting with TypeScript? How do you manage files in your terminal? And how can you apply view transitions across good old page navigations?
Turn on the Web Weekly tune and find all the answers below. Enjoy!
Do you want to share your favorite song with the Web Weekly community? Hit reply; there are 5 more songs left in the queue.
Years ago, I reverse-engineered Preact to create my own VDOM library. The goal wasn’t to release yet another JS framework but to understand its internals. These “debugging days” helped me understand the core principles of React / Preact to this day. Marcelo shares how he created his VDOM library. 💯
I’ll probably never reach the point of saying, “Heck yeah, I’m good at TypeScript”, but it’s not as painful as it used to be. Still, sometimes I discover that I don’t understand fundamentals.
“Type Hints” is a collection of questions and (answers) you might have when starting out with TS.
I don’t use a web component framework when writing basic custom elements, but this approach leads me to write the same code repeatedly.
If you don’t want to bring in a dependency but are still looking for some developer convenience, a “base class” is the perfect middle ground. Hawk’s approach includes a render method, event handling, and basic stylesheet handling.
Not too long ago, Mayank shared a similar but different approach.
This week, I learned about “no wrong doors” policies. The idea is to be helpful and set people up for success. Will explains how you would apply “no wrong doors” in an engineering organization, but his example is a primer on how to be a helpful colleague in general.
Wowza! Would you enjoy getting Web Weekly straight to your inbox?
If you’re looking for some background noise while working on your new feature, you might find it on “Music for programming”.
Our friends at Deno released a new JS / TS registry. The new home for your open-source code comes with first-class JSDoc support. This post explains why TS and JSDoc are a great match. Me likey!
And TIL — the deno binary even comes with tools to lint and run JSDoc examples — I love it!
I almost feel guilty for not having more slash pages on my site. Right now, an outdated /uses
is the best I have. But when I have time, I’ll add some more — /nope
, especially, is one I should add!
I’ve been playing around with Superfile lately. It’s a terminal-based file manager. I like it, but I’m uncertain if I should invest time into going keyboard-only and terminal-first for operations that take me only a couple of seconds in the OS GUI.
What’s your take? Do you use more advanced file management tools than mv
and rm
?
Use the terminal for moving files
I’m no designer, but adding some small details will go a long way. Here’s a collection that will spark your inspiration to delight your apps and sites.
From the unlimited MDN knowledge archive…
Did you know that you can access a mobile camera and take pictures going into a file input field, all just via HTML?