Live data from Hacker News

You might not need JavaScript

youmightnotneedjs.com

11–20 of 254 posts

Re: You might not need JavaScript

#13
A few days ago a saw a talk about CSS animations with RxJS [0] and the gist about CSS only stuff was something like: "Yes, you can do much with CSS only, but it gets ugly fast."

Often you're better of to do a mix of both, because some things that are very complicated in CSS are two-liners in JavaScript.

[0] https://www.youtube.com/watch?v=lTCukb6Zn3g

Re: You might not need JavaScript

#14
post #5

It'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?

You might not need Sass.

Re: You might not need JavaScript

#17
There is some useful stuff to learn from here, undeniably, but many of these are a bit useless when you compare them with what you would actually typically need on a real site. Yes, the "image slider" is vaguely functional, but really most of the time you will want a lot more control than just the CSS animations allow; similarly, yes, the form validation is a starting point, but normally you would want to customise the error messages and generally fiddle around with it a lot more; I'm not really sure the modal is fit for purpose beyond the most basic use case... etc.

It's fun to see what you can partially achieve without JavaScript, but there is no shame in using JavaScript sensibly to enhance the usefulness of a web site.

Re: You might not need JavaScript

#19
post #16

Another 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...
Post reply on HN