Merge vs Rebase

Every software developer needs to synchronize two branches, for example local branch with remote branch. Let’s say we want to add our changes to remote master branch. We have two options: merge and rebase. Best way is to show that in example. Basic structure of master branch: We create our branch (green). While we work…

Continue Reading

Deep vs Shallow Copy in JS

In JavaScript, when working with objects and arrays, you can create a copy of them using either shallow or deep copy. Shallow copy creates a new object or array but its inner objects or arrays are not copied, instead they are just referenced to the original object. So any changes made to the inner objects…

Continue Reading

Why do we need box-sizing in CSS?

Short answer: You need box-sizing property in CSS because it determines how the width and height of an element are calculated, including the element’s padding and border. For example, if you’re building a grid system or a responsive layout, using box-sizing: border-box can help you ensure that your elements are always the same size, even…

Continue Reading