JS FS BC W7

Chunhao Weng
2 min readAug 16, 2021

Random notes. Unorganized thoughts. Not an article.

VS Code diff between two files

code --diff file1.js file2.js

“In fact, rather unintuitively, if you add pre-sorted data into a BST, it will have maximal inefficiency, O(n)O(n).”

“Updating a global package would make all your projects use the new release, and as you can imagine this might cause nightmares in terms of maintenance, as some packages might break compatibility with further dependencies, and so on.”

  • you up the major version when you make incompatible API changes
  • you up the minor version when you add functionality in a backward-compatible manner
  • you up the patch version when you make backward-compatible bug fixes

which

--

--