You might not need JavaScript
21–30 of 254 posts
Re: You might not need JavaScript
#22The site makes no claims as such, but it undermines its own credibility if it uses .js files. Surely they could have figured a way to do without them.
Re: You might not need JavaScript
#23Another point of view: an exceptional article by Jenn Schiffer "A Call For Web Developers To Deprecate Their CSS" https://medium.com/cool-code-pal/a-call-for-web-developers-t... - HN Submit here https://news.ycombinator.com/item?id=12691081
Surely that's a parody. If it's not...
Note the absurd metric (lines and spaces) to justify how the blown-up version is considered to be smaller. Also note that the article consequently talks about "Node code" even though they are talking about client-side JavaScript.
From the article:
#gulp {
color : #0000ff;
padding : 10px;
}
This CSS takes up 4 lines, and at least 13 spaces. [...]
document.getElementById(‘gulp’).style.color=‘#00f’;
document.getElementById(‘gulp’).style.padding=‘10px’;
This Node code takes up only 2 lines and there are 0 spaces.
Essentially, we are saving lines, spaces, and files (delete
your .css documents!).Re: You might not need JavaScript
#24Does anyone else feel that a site called "You Might Not Need Javascript", probably shouldn't use Javascript?
Re: You might not need JavaScript
#25Since half the examples do not work on Safari, I believe the title is a bit misleading.
Re: You might not need JavaScript
#26Why do people try so hard not to use tools that make their life easier?
You might not need a car - you can walk. But it makes life easier and it just works!
Re: You might not need JavaScript
#27It's sad that this site uses SCSS for displaying the rules, I'm using it in production and fully understand it, but it's needlessly abstracting the rules for the sake of a few extra words in each declaration. That aside, these are some pretty cool examples. Are there ways of doing this with CSS which doesn't screw with my browser back button?
Re: You might not need JavaScript
#28Re: You might not need JavaScript
#29Or, you could use JavaScript and do something in 30 seconds rather than fiddling with CSS. Why do people try so hard not to use tools that make their life easier? You might not need a car - you can walk. But it makes life easier and it just works!
Assuming you're more proficient in JS than CSS ;) With CSS3 I find some animation is easier w/ transitions and keyframes than JS.
Re: You might not need JavaScript
#30Does anyone else feel that a site called "You Might Not Need Javascript", probably shouldn't use Javascript?