Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

No. Just no. Don't install a library and two others just to show a tree view. Make your own with whatever features you need and just those features, nothing else. Less than 200 lines of code and one day's work for a competent developer. Don't install three libraries in your webpage just to show a tree view.


If you're in the market for a Bootstrap Treeview you're likely already using Bootstrap and therefore jQuery.

Your comment reflects exactly the kind of attitude that puts people off doing open source work. No one is forcing you to use this project, someone put effort into making this and released it to the world for free, what does your criticism add?


It's a problem with HN - Since the average user can't downvote, these trash troll comments stay at the top and derail any conversation, when they should just be insta-downvoted into oblivion.

You're totally right, but everyone should just ignore the idiot troll and move on.


There is no way to know if its a troll or a noob or just a kid trying to learn web development who doesn't know what bootstrap is and has probably heard that external dependencies are typically bad.


> If you're in the market for a Bootstrap Treeview you're likely already using Bootstrap and therefore jQuery.

Is that true if you are using it as part of a react or vue application? I know, for example, that bootstrap-vue replaces the jquery dependency with Vuejs[1]. I'd guess the react equivalent is similar.

[1]: https://bootstrap-vue.js.org/docs


I don't have an opinion one way or the other, but isn't a day of a competent developer's work usually worth quite a lot compared to the integrated maintenance effort of looking after two (one of which is almost universal) library dependencies?


There are many cases where what you need is instant soup powder, not home made velouté.

And this will save me from writing tests for those lines. With all major browsers. And documentation. And maintain all that, of course, for the next 5 years.

And when new devs will arrive in the team to provide the training for the custom code. I may even not be here anymore

So yes, it can be overkill, or just what you need.

E.G: some server side dev need a quick fix for his personal web site.

Besides, even a lib with zero tests like this one will have enough users and tickets open that it will be better tested that the server side dev code that don't know JS much.


Normally I'd disagree, but not this time. There's 0 test coverage. For simple feature libraries at minimum I'd expect it to have tests to be worth considering.


One day's work for a competent developer can be as expensive as $1000 for some locations.


Seems like you have never really worked on a large web app with lots of complex UI requirements, or else you would know what bootstrap is and when to use it and how much developer hours it saves. I am not saying it's the best library out there but it's pretty neat and gets the job done.


It's an addon component to bootstrap. Typically whoever wants to use this would already be using bootstrap in their project.

to your point, of course its not advisable to introduce bootstrap and jquery to your project just because you want to implement a treeview


There is a good chance you already be using 1 if not both of the requirements already if you are building a reasonably responsive web UI that requires a tree view.


No just no to NIH syndrome ?




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: