Astro gets even faster, Tamagui is the chosen one, and a surefire way to get hired as a FAANG tech lead (and be indicted for securities fraud). Welcome to #76.
v0.21 brings some major changes (and complete re-writes) to some of Astro's key internals:
New compiler -- It's written in Go (which is a weird way to spell Rust I'm confused) and distributed as WASM, which makes it faster, more flexible, and more stable than Astro's first compiler (which was forked from Svelte).
New build engine -- The big news here is that Fred K. Schott replaced Snowpack (his other creation, besides Astro) with Vite. This is a smart move (because Vite is objectively awesome), but Fred still deserves props for being willing to make the change.
Components in Markdown -- You can now import components inside of your Markdown frontmatter with an optional
setup script and use them anywhere on the page.
Bottom Line: Astro is already getting high praise from pretty much all of tech Twitter for how fast and easy it is to work with (see Cassidy Williams' one-question interview later in this issue). This release helps Astro double down on those strengths.
Some free advice: It's time to change your name. That, or be stuck associated with both the worst cheating scandal in the history of American pro sports and the worst music festival in a long line of terrible music festivals.
We already chose a great new name for you and we even bought the domain. Just say the word, Fred, and I'll transfer ownership (for a very reasonable brand consulting fee).
The choice is yours. [Sponsored]
I've been telling you about how great Retool is for a while now.
It's the easiest way to build internal tools at your job... blah blah blah. We all know that.
But here's the thing: you don't build a toaster from scratch every time you want to eat some crispy bread. It's 2021. Someone already built that for you.
Here's another thing: you shouldn't build internal tools from scratch every time your boss wants to "see the data." It's 2021. And Retool already built all that for you.
Retool gives you all the building blocks you need to make tools that *actually* look good -- tables, lists, charts, wizards, etc. And you can easily connect it to any database or API you want, instead of trying to hack together all that internal data yourself (gross).
What makes me think I'm responsible enough to handle this job? Does _this_ answer your question?
Tamagui is a brand new styling library (still in alpha) for React Native that lets you share components across your web and native apps "without sacrificing look, feel, and performance." Tamagotchi is an interactive, virtual pet that would always die in the middle of the night because I was in 4th grade and oh, I don't know, couldn't handle the burden or responsibility of waking up to feed my virtual pet – sorry Mametchi 😔.
If you've ever tried using React Native to simultaneously build for the web and mobile, this idea might sound like a pipe dream -- a hairy, clunky pipe dream that'll still force you to write a bunch of janky media queries. But Tamagui takes a new and innovative approach, which could prove to be the Holy Grail we've been waiting for.
How does it work? The library sits as a thin layer on top of React Native/React Native Web and works backwards from ideal syntax (for both inline styles and hooks). From there, it generates the necessary CSS media queries and CSS variables for the web, and it extracts everything to
StyleSheet.create for native apps, via an optimizing compiler.
This allows you to create and use fully-featured design systems that are typed, themed, and able to run exactly the same on web and native -- even with responsive queries. Tamagui also supports cross-browser server-side rendering for frameworks like Next.js.
Bottom Line: It's still early days, but Tamagui looks like it could be The Chosen One™ who helps fulfill the promise of React Native by breaking down major barriers between web and native apps. Just like Tamagotchi fulfilled its promise by giving me all the satisfaction of caring for a pet without actually having to care for a pet.
Speed. Both in development time (you don't have to learn a whole new library to use your favorites like React, Vue, or Svelte out of the box), and in performance. Your site build and bundle are so speedy and small (relative to other frameworks) that your sites are wildly performant (unless you make them slow, of course)!
|Cassidy Williams is both our favorite person and the Director of DX at Netlify. She'll be doing a subscribers-only Event this Wednesday called "Astro from the Ground Up." Grab a free 3-day trial to ui.dev if you'd like to join.|
Proposals.es is a slick website for tracking all of the ECMAScript proposals across their various stages. Be sure to call the toll-free number on your screen right now to vote for your favorites and help them make it to the next round.
Josh Finnie wrote about Using Rust (and Wasm) to create fast React components and to look smarter than your co-workers.
Pramit Marattha really went above and beyond with this list of 330 React Interview Questions. I know this gal who knows this guy who has a friend whose cousin just started learning to code like 3 weeks ago, and they used this list to get hired as an S3 at Netflix. Crazy.
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.