Posts

Version Control and Basic Git and GitHub (for beginners)

Image
As a developer or even as a tech savy person we should know what is version control. It really eases our life from maintaining school projects to managing big codebases. In this blog basics will be discussed then in next blog advance commands will be covered. Problems When a programmer/developer starts his journey he use to keep all the programs and codes in a folder with a specific name in his disk. But after somedays he thinks of updating the code he again open that code and make some changes in that or copy the app then make some changes in that copy. Very Simple and relatable😅. Ya I also used to do it. But lets think of some edge cases here of what things can happen in this phase. Everyone likes to have different versions of their app like v1 or v2. So if the app is very large in size and making copies will consume disk space. While updating the code if copy not made and we have made many c...

React States Vs React Refs f. What? When? Why? How?

I am using react in one of my freelancing project. Due to the size of the app the things were getting complex regarding re-renders and performance. Then with time I develop the understanding of how they actually works. Refs is having its own usecases and states is having its own usecases. Basically the precision of data management in different scenarios is being discussed here. Lets give some brief introduction what they actually are to keep all readers at same stage. React State About React state is basically the data that is already being hold by a component.  In simple  words  the inner properties or in development terms the encapsulated properties. For example, Hello Here in the above button the text "Hello"  can be called the state of the button.      Setting/Updating State Setting state is basically changing the data that the component holds. But here two things will be coming in mind. If we change the data the how the component will be getting ...