React Tetris with Zustand
Play Tetris Game Yet another React TetrisTetris was created in 1984, it is a simple game in which the player controls the falling “tetromino”, and clears them by combining tetromino into one line. It is one of the most
Play Tetris Game Yet another React TetrisTetris was created in 1984, it is a simple game in which the player controls the falling “tetromino”, and clears them by combining tetromino into one line. It is one of the most
Have you heard from the recruiters or internet memes, talking about a special kind of engineer, called 10x engineer?Rumor says those engineers can write 10x more code than their coworkers, and get 10x more jobs done. At
Recently I am working with GraphQL on a day-to-day basis. The more I work with it, the more I like the GraphQL API compared to the traditional Restful API. And it is an interesting project, this article is going to do a
TLDR: Suspend can catch Promise from children and render fallback until the promise is resolved. In React 16.6, React is adding the Suspense component that it can render fallback while the app is loading javascript or f
Integration test, system test, or end to end test in web development are a really helpful tool to make sure the application work as intended. Because it actually simulates a real browser and tests the application just l
State management in frontend is always a problem. Unlike backend, the state in frontend world is pretty fragmented. Not only the local state at each component, the remote state from API, also the global state that is sh
TLDR: Inline abstractions and simplify logic to write better code. Programmer’s work today is based on different levels of abstractions in the form of APIs and modules, they hide large amounts of implementation detail
There is a lot of article talking about mistakes made by junior developers. But as the experience goes, people encounter different problems and make different mistakes. Here I am talking about some of the mistakes I mad
Why?Recently I have a chance to work on mass among of rake tasks in the code base. During the work I found Rake is somewhat confusing but also an interesting framework. I would like to talk about some of the good and bad
It’s been a while ago, when I first study programming in college. I remember the moment when professor introduce us object oriented programming by the classic dog and cat example:
Dog is an animal, Cat is an animal, therefore, they can both share the behaviors of an animal.