• 0 Posts
  • 12 Comments
Joined 7 months ago
cake
Cake day: December 9th, 2023

help-circle



  • Yes. My rule of thumb is that generally rebasing is the better approach, in part because if your commit history is relatively clean then it is easier to merge in changes one commit at a time than all at once. However, sometimes so much has changed that replaying your commits puts you in the position of having to solve so many problems that it is more trouble than it is worth, in which case you should feel no qualms about aborting the rebase (git rebase --abort) and using a merge instead.



  • The explanation given to you makes it sound like == was deliberately designed to be a more convenient version of ===, but what actually happened was that == used to be the only equality operator in JavaScript, which meant that if you didn’t want it’s auto-coercing behavior then you needed to go out of your way to add additional type checks yourself. Because this was obviously a tremendously inconvenient state of affairs, the === operator was introduced later so that you could test for equality without having to worry about JavaScript doing something clever underneath the hood that you weren’t expecting.




  • No, if anything the way you can tell you are in a dream is because the top spins forever and never starts wobbling; the way he got his wife to eventually concede that she was in a dream was by setting the top in a perpetual spin so that she stumbled upon it still spinning.

    The significance of the ending is not that he is still in a dream but that he is so content with the situation that he stops caring whether he is in a dream or not. (Actually, in fairness that is not quite true either; I’ve heard that basically the ending is more Nolan trolling the audience than anything of narrative significance.)