May the 4th Be With You
The month’s biggest news has been Acquisition of Twitter by the billionaire Elon Musk. It reminds you of the antics of Batman and Iron Man and by his tweets, he might want us to be reminded of it. While it has not been an aggressive takeover in financial details, that’s what it certainly looks like to the layman. Elon Musk has promised to bring back Free Speech or whatever the definition of it fits right now.
On personal front, I’m joining Circle App as Frontend Developer. Wish me luck 🍀.
navigator.pdfViewerEnabledis now enabled, and is the recommended way to determine whether a browser supports inline display of PDF files when navigating to them.
The serverless NodeJS framework which has been in development for a long time is finally 1.0 🚀 Watch Launch Week recap with startup showcases and active office hours.
Facebook moved two of their major libraries into open source this month.
Hydration in React was originally not built for SSR. It was because IE6 had a really slow DOM API but relatively fast JS strings. It was faster to concat HTML strings on the client and then “hydrate” it. This equation later changed as more refs were used and the DOM got faster.— Sebastian Markbåge (@sebmarkbage) April 20, 2022
The developers at Reddit build a unique community named r/Place for this week’s April Fool. If you didn’t run into it, it’s a huge infinite canvas where you can place a tile each and if you have a community, turn them into beautiful works of art. The reddit team discusses how they did it with the roadblocks they considered and ran into.
dialog HTML element in this edition.
Most tutorials already assume that you are familiar with some form of terminal before you get into the meat of programming. But that may not be the case with most people. Josh’s blog post might be a good reference if that is the case.
has operator is currently available only on Safari (and behind a flag in some other browsers) but it’s already turning heads. It’s the first parent selector that CSS has had and it can be used to check if the container has a particular element inside and style accordingly. The examples in this blog post are 🤯
I’m actually looking forward to how frameworks like Tailwind will adopt to this challenge.
A monorepo is a single repository containing multiple distinct projects, with well-defined relationships.
A very easy use case available for most applications would be the library tree:
app/ ├── frontend/ ├── library/ └── configuration/
You want to split the reused components in library and any configuration like ESLint, TypeScript, theming into configuration (so you can use them across frontend and library). Since you have them in the same repository structure, you can ship updates in the same commit without waiting for PRs. If you use workspaces (provided by all package managers: yarn, npm, pnpm) you don’t even have to publish the library. Instead taking a build of the library, gets the updated version on frontend to use.
Atlassian was down for around 10 days time period during the last month and several customers lost access to Bitbucket, Jira and Confluence. There were also wide reports of customer data being lost from Atlassian after a faulty script was run from the server. (All the accounts are now restored).
Today, we’re announcing that Airbnb employees can live and work anywhere.— Brian Chesky (@bchesky) April 29, 2022
Our design for working at Airbnb has 5 key features:
AirBnb is now widely used by remote workers and worked at by remote workers. Classy touch.
Also worth reading this letter from Apple employees responding on return to office calls:
You have characterized the decision for the Hybrid Working Pilot as being about combining the “need to commune in-person” and the value of flexible work. But in reality, it does not recognize flexible work and is only driven by fear. Fear of the future of work, fear of worker autonomy, fear of losing control.
Developers are having their apps and games taken off the App Store because there hasn’t been enough updates or enough downloads. Both of which are not significant parameters in whether an app is required. As complaints and Twitter threads poured in, Apple responded with this is how things are going to be and it’s your fault
Alex MacCaw with help from the team at Clearbit has released a free book for want to be Managers. It’s definitely exciting that a book about managing people begins with a chapter to manage yourself.
Don’t micromanage your teams work or daily output (creative work isn’t an assembly line). If you find yourself supervising too often, you’ve hired the wrong people.
Authority isn’t bestowed freely. It’s earned by repeatedly making good decisions.