3 ms·
Thank you I am the author. I find myself wanting to promote self determination in the JavaScript world, it seems more often than any other ecosystem I've involv
by Kequc 10y ago
Thank you I am the author. I find myself wanting to promote self determination in the JavaScript world, it seems more often than any other ecosystem I've involved myself in to be the one that depends heavily on external libraries and dependencies.
I'd like to advocate for minimising this as JavaScript isn't so archaic as it once was in it's past. By using ES6 or TypeScript, building fully customised modules of one's own isn't the chore they're built up to be.
This tagging script took one full day of programming to finish, including the first draft of the blog post about it. Since then I've done things like added the `clearValue` function, rather than being explicit as to what I wanted to happen in every case that it is used. At that point I thought I better post it before I mess with it too much.
- mosselman 10y agoYes I agree. Using native javascript for specific tasks such as this is probably a good idea in terms of minimising the size of your assets and maximising performance. It can be especially satisfying for the programmer as well. I do understand the need/popularity of libraries like jQuery however; In development teams there aren't always dedicated people for 'just' the back-end or 'just' the front-end. Most people do both in varying levels of competency, a library like jQuery makes it a lot easier for people less at home in the front-end to create things. 'Easiers' because of the cross-browser compatibility, consistency and the fast amount of online resources. So I do get it, while it is still not that hard to pick up some new things. If you are in the front-end a lot/only then sticking to gigantic frameworks without using more modern javascript is just a shame, because it can bring you great benefit.
- reacweb 10y agoHello, I will try to use it very soon (next week). I need to tag embroideries for my wife. Your system covers most of my needs. How difficult would it be to have some groups of tags (for example, a bird tag would implicitely imply a animal tag, or a alphabet_a tag would imply a alphabet tag) and have a different color for tags belonging to these groups ?
- Kequc 10y agoI would structure my suggestions like this. In the `_buildSuggestionElement` method check the type, set a colour from some list you have, or set a class and change the colour in your css. interface ISuggestion { name: string; count: number; element?: HTMLElement; type?: string; }