In this post we compare and analyze the null coalescing operator (
??) and the shorthand ternary operator (
?:). The side-by-side comparison at the end of the article should give experienced users a quick overview, while the beginners can read through the article and understand the underlying concepts.
If you accidentally committed to the wrong branch in your git locally and are looking to undo it, then we’ve got you covered. We look at a few options to undo the last commit in the current branch and see when each option might be useful.