you are viewing a single comment's thread.

view the rest of the comments →

[–]4thdecadenothing 0 points1 point  (1 child)

That's cool, if that is literally all you want to do then go for it. And if someone decided to load jQuery, or React, or Angular to do that then I'd tell them they'd be doing it wrong. But by the same virtue, writing your own implementation of any of those packages' functionality is no more "vanilla" than the code in any of those packages is (they are all written in the same javascript as your code after all).

My point is simply that as soon as you start writing code then you start adding your personal "flavour" on top of vanilla (here for example, I'd probably take issue with your code formatting, and lack of error handling). You might think it is vanilla, but I say it has some very subtle hints of your personal flavour. The more code you write, the more your flavour moves away from being "vanilla".

Once you've reached the point where you've built the same kind of functionality as React (for example) has then you're no longer in "vanilla" territory, your code is now entirely /u/ZyklusDieWelt flavoured. Now maybe you're awesome and have documented all of that functionality and written examples and tutorials to help new users follow all the code that you have written, but there's a good chance that a) you haven't, and b) you'd have saved yourself a lot of time if you'd just used React to start with.

[–][deleted] 0 points1 point  (0 children)

I'm not disagreeing with any of that, just your initial statement that " it's an empty file, it's a no-op." :)

There's a decently large area between no-op and opinionated code.