Data Fetching in React and Compilers
I've studying different things in the field of frontend and computer science.
Hi, it’s TK here!
In the last email, I shared an essay about my staff engineering project related to Developer Experience and Software Maintainability in frontend.
Today I want to share some things that I learned these days, weeks, and months.
Building an Interpreter
After rumbling a lot about learning Programming Language Theory (PLT), I finally decided to commit and learn this field that I care about.
I wanted to start simple, with a friendly resource to just get started. After collecting a lot of resources, most of them were heavy books and papers, I got a copy of the writing an interpreter book. It seemed to be the simplest resource to get started in the field and it also let me be very practical in terms of engineering a compiler.
But instead of Go, I wanted to use a language I'm most familiar with nowadays. So TypeScript it's.
This book creates an interpreter for the Monkey programming language and we'll see in each chapter of this series the building blocks of the interpreter.
If you want to see the code, I have a public Github repository for this implementation: monkey-ts, the Monkey programming language's compiler written in TypeScript.
Data Fetching in Frontend Engineering
We take a trip to the early days when we were used to doing XML requests with XMLHttpRequest and Ajax requests with jQuery to these days that we handle more complex cases in frontend.
Now we need to handle cases like server cache and state management for single-page applications and PWAs.
I show examples of custom hooks to fetch data in React and then how react-query came as the obvious solution for this whole challenge.
Data Fetching in React with react-query
Final words
If you want to connect or request any content you want to read, feel free to DM me on Twitter or just follow my content there: twitter@tk.
To see all the projects I’m doing, you should always take a look at github@tk.
And if you like my content and want to support it, you always:
Share it with friends or social media
Piece ✌️
TK.