By jonahx
If you’re saying your sole reason for doing this is to ease your javascript selection, I think that’s a poor reason. If you have a serious dynamic javascript page of any complexity, you have should have a pure js model and your view should be updating off that, using react, mithril, or your own vanilla update function. Now, not everyone would agree with that, and there may be use cases where it’s overkill, but in that case I still don’t buy the argument, as you can just write a short helper function that makes things just as easy as selecting with dataset.
I don’t think a fear of javascript should be driving decisions about markup. You should write your markup in the clearest, most semantic way possible, and let what are ultimately trivial js problems take care of themselves.
Read more here: https://news.ycombinator.com/item?id=10463250
jonahx comments on "CSSgram: CSS library for Instagram filters"
No comments:
Post a Comment