16

I did it guys. I finally used binary tree traversal in a web page. With fucking JavaScript.

Comments
  • 13
    Jokes on you, I can find 10 JS libraries to do that.
  • 1
    If it's not a secret, what's the context?
  • 0
    @frogstair Good libraries have tried to be less bound by dependencies lately. Some are even completely dependency-free.
  • 0
    @kamen tbh I'm not sure if that's always a good thing. Let's say that library A depends on B, and C also depends on B. If A tries to "get rid of its B dependency" it'll just re-implement it and we'll end up with duplicate code
  • 1
    @eo2875

    You mean the library will, I won't though.

    I'll be totally fine except not have to worry about dependencies there anymore
  • 1
    @eo2875 I was talking about genuine situations when a library is self-sufficient - e.g. lodash. But yeah, what you described is also valid, and in that case it's kind of a "pick your poison" scenario.
Add Comment