๐ฅ Git: Merging vs Rebasing
In git, when there are some changes in a parent branch from which you forked, there are two strategies to incorporate them into your working branch:
โจ Merging:
As the name suggests, 'merges' the parent branch into your branch. The advantage is that handling conflicts (if any) is easier, since you only need to resolve them for the merge commit once. However, this may make the git history a bit harder to follow
โจ Rebasing:
Takes all the commits you made in your branch, and applies them on top of the head of the parent branch. As if repositioning the base of the branch.
This helps to create a linear and easy to follow git history, but conflict resolution may be tedious and you need to force push the branch to the origin.
In git, when there are some changes in a parent branch from which you forked, there are two strategies to incorporate them into your working branch:
โจ Merging:
As the name suggests, 'merges' the parent branch into your branch. The advantage is that handling conflicts (if any) is easier, since you only need to resolve them for the merge commit once. However, this may make the git history a bit harder to follow
โจ Rebasing:
Takes all the commits you made in your branch, and applies them on top of the head of the parent branch. As if repositioning the base of the branch.
This helps to create a linear and easy to follow git history, but conflict resolution may be tedious and you need to force push the branch to the origin.
๐6โค3
โจ๏ธ MomentJS library
It's commonly used for parsing, validating, manipulating, and formatting dates and times in JavaScript. It provides an extensive set of features for working with dates and times, making it easier for developers to handle various date-related tasks in their applications.
It's commonly used for parsing, validating, manipulating, and formatting dates and times in JavaScript. It provides an extensive set of features for working with dates and times, making it easier for developers to handle various date-related tasks in their applications.
๐7๐1
This media is not supported in your browser
VIEW IN TELEGRAM
๐7๐5๐ฅ2๐ฑ1
CHALLENGE
๐ด What will be the output?? Comment below ๐
const func = () => arguments.length;
console.log(func(1, 2, 3));
๐ด What will be the output?? Comment below ๐
๐4๐2๐ฅ1
CHALLENGE
๐ดWhat will be output??
const obj1 = { a: 1, b: { c: 2 } };
const obj2 = { ...obj1 };
obj1.b.c = 3;
console.log(obj2.b.c);
๐ดWhat will be output??
โค7๐7
CHALLENGE
๐ด What will be the output??
class Parent {
static greet() {
return 'Hello from Parent';
}
}
class Child extends Parent {
static greet() {
return super.greet() + ' and Child';
}
}
const childInstance = new Child();
console.log(childInstance.greet);
๐ด What will be the output??
๐17๐5โค2
es-toolkit - a modern JavaScript utility library that's 2-3 times faster and up to 97% smaller, a major upgrade to lodash
#estoolkit #library #package
Read more ๐ https://github.com/toss/es-toolkit
#estoolkit #library #package
Read more ๐ https://github.com/toss/es-toolkit
๐10๐ฅ1
Did you know about this new feature in town? You can now add elements in between to create visual partitioning.
๐ This feature is available in recent versions of all major browsers, but may not work in old ones.
๐ If you want a defined grouping, with group names though, use the instead
๐ This feature is available in recent versions of all major browsers, but may not work in old ones.
๐ If you want a defined grouping, with group names though, use the instead
๐11โค7๐1
Anyone can access deleted and private repository data on GitHub.
#article #security #git
https://thedevs.link/9Ulvqm
#article #security #git
https://thedevs.link/9Ulvqm
โค4๐3๐2
๐Next month, we will offer a variety of Udemy courses. What specific courses are you interested in? Please let us know.
โค13๐4๐ฅ1
CHALLENGE โ
const array = [1, 2, 3];
const result = array.map(function(n) {
return this ? n : 0;
}, false);
console.log(result);
โค3๐ฅ2๐1