News for hackers. Stuff that matters.
Re:25 Years of CSS by habosa on Wednesday June 02, 2021 @05:34AM (#27366686)
+100. I did Android dev for like ~7 years and recently have been doing more Web dev. Yes CSS is a tricky language but I always get where I am going. On Android I frequently have to give up and settle for a more vanilla style because what I want to do will require like 1000 lines of code copied from StackOverflow. Even something as simple as "A rounded EditText with inset shadow" is hours of work. With CSS that's two lines.
Re:25 Years of CSS by toyg on Wednesday June 02, 2021 @10:00AM (#27368772)
Two lines today. CSS has come a loooong way... One could argue that the main advantage of CSS is that is a living standard, constantly adding and improving features and seeing a competition between implementations; whereas more traditional technologies are typically mono-vendor and, for one reason or another, have long stagnated.
Re:25 Years of CSS by Aeolun on Wednesday June 02, 2021 @11:31AM (#27369843)
To be fair, if you wanted to implement it before CSS support, I think you’d have a hard time reaching 1000 lines to do it. 50ish maybe (in JS and HTML).
Re:25 Years of CSS by davidwparker on Wednesday June 02, 2021 @02:39PM (#27372344)
I'd suggest checking out Flutter if you're doing mobile dev (or at least Android). It makes styling ridiculously easy.
Re:25 Years of CSS by habosa on Thursday June 03, 2021 @05:32AM (#27378900)
Agreed! The beauty-per-effort-unit on Flutter is so high. There's a reason that Android's new UI framework looks a lot like Flutter widgets!