Breakpoint - Issue 2 Many New Announcements
Hey folks,
It’s been an exciting week having lots of new announcements from everywhere. We have a new doc for React, TypeScript 5 was released, GPT 4 was announced, and Midjourney v5 was announced. The last two aren’t really about frontend but they can definitely help us code and give visual inspiraction if you need a quick UI design.
Frontend Shares
Here is the new React doc and to me, this is probably the only portal you need to learn about React in 2023. It talks through the philosophy behind React, coding paradigm, basic API you might need, and lots of materials that demo how to accomplish certain functions. One thing I have to point out is that it doesn’t recommend to use create-react-app anymore and instead use Next or Remix to set up new projects. Feels like an era has ended.
As the title suggests, TypeScript 5.0 has been released, offering numerous new features aimed at making the language smaller, simpler, and faster. This version introduces the new decorators standard, improved support for ESM projects, enhanced JSDoc functionality, simplified configuration, and more. You should be able to upgrade with no problems and may appreciate the overall performance improvements here and there.
When should you use Zod by Matt Pocock (4 mins)
You may or may not have heard of Zod. It is a schema validation library that ensures that you are getting the data you need in the type or shape you expect. We know what it does but sometimes if you are like me not sure when to actually use it. This article should help explain the scenario for example in your API, or on the frontend when you are saving data to your localStorage
.
How Levels.fyi scaled to millions of users with Google sheets as a backend (6 mins)
Many of you probably check levels.fyi a lot at the offer round or even before you apply to any companies trying to determine how much compensation these companies are willing to give. Did you know when they started they didn’t have a modern backend that we are all used to like a proper database, backend server, etc? They wanted to quickly validate the idea before setting up everything properly. I really like what they say at the end: avoiding premature optimization. This is not about frontend but the philosophy can be adopted.
The creators of Atom are here again making a really fast code editor in Rust. It looks really slick and it is indeed really fast.
If you would like to have the newly announced GPT-4 in your coding environment, Cursor may be the code editor for you.
Interview Question
Implement this UI with CSS only