3 ms·
okay, sure you did it.. congrats... but I could do in much less work/lines of code the same: see: https://jsfiddle.net/patrickcurl/zoastuLr/11/ https://jsfiddl
by gremlinsinc 4y ago
okay, sure you did it.. congrats... but I could do in much less work/lines of code the same:
see: https://jsfiddle.net/patrickcurl/zoastuLr/11/ https://jsfiddle.net/patrickcurl/zoastuLr/11/
html: 104 lines
css: 39 lines
js: 62 lines.
The major difference is I can easily 'read' and understand and 'grok' what my code is doing, yours needs more brain power to tie everything together. The majority is layout, css, etc.
Sure vue/react are overkill but alpinejs, etc makes closer to vanilla options viable that still at least have some eye-candy/syntactical-sugar that makes coding sweeter. But, I hate ugly code - I'll abstract away ugly code just to have code that's self-documenting and easy to understand.