Posts
How to secure JS object returned by API as a correct Typescript type?
TS type predicate function helps here. (and it’s not the only way)
Read more
How to get cheaper domains
for owners of multiple domains
Read more
You cannot learn this
Why? What’s the thing you cannot learn? How to overcome it?
Read more
Fetch better than built-in?
Do you fetch your data? Do you use fetch in your projects?
I do.
But until couple days ago, I didn’t think about return value of fetch.
During discussion (in a course on frontend architecture) this issue was mentioned by one of the mentors.
Built-in fetch returns Promise<any> Why didn’t anybody use generics for this?
I decided to save myself (and others) some time and post the improved fetch as npm package
Read more
Unleash your (l)earning with free deployments
How to easily deploy your frontend project?
Read more
Singleton-like Context for shared components managent
Are you handling external modules or shared config in your React projects?
Read more
Setup external modules with React Context
A pattern that is helpful when you use external modules in your app.
Read more
Safer (and fast) refactoring in React
How snapshot testing is great for refactoring
Read more
How to get better at writing software (or any other skill)?
“It shows a dump of forgotten memories. Scrapped and disappearing. The same process happens to knowledge - read and not used.”
Read more
How to save hours of implementation time?
Code generation gets better and better, so why not to use it? Time of implementing API client in your apps is often huge. And it can be cut off, often totally. Meaning you can save hours of time reimplementing things that have been written on backend. How?
Read more