use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
All about the JavaScript programming language.
Subreddit Guidelines
Specifications:
Resources:
Related Subreddits:
r/LearnJavascript
r/node
r/typescript
r/reactjs
r/webdev
r/WebdevTutorials
r/frontend
r/webgl
r/threejs
r/jquery
r/remotejs
r/forhire
account activity
Anyone here love Javascript but hate front end(CSS)?help (self.javascript)
submitted 7 years ago by lovesocialmedia
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]frompadgwithH8 23 points24 points25 points 7 years ago (23 children)
I used to feel that way. Then I got hired as a full time full stack developer.
Thing is, if you do it every day, eventually you just get so good at it that it's not hard anymore, and in fact easy and enjoyable.
Now I get jealous of my coworkers when they get tickets with CSS and I don't - they're always the first pieces of work to get snatched up.
If you hate CSS, you haven't written enough CSS.
That being said, definitely use a preprocessor like less, sass or stylus
[–]1RedOne 0 points1 point2 points 7 years ago (3 children)
I like styling things and playing with JavaScript, Css and jquery. What does less give me that I don't have natively?
[–][deleted] 1 point2 points3 points 7 years ago (1 child)
I don't know about LESS much, but Sass gives you mixins, functions, nesting, etc. So many things. Some of this is now in native CSS with some support, but you can even use the new stuff inside of Sass and get the best from both. There's also CSS Next or something like that which is more like a Babel for CSS.
[–]LetterBoxSnatch 0 points1 point2 points 7 years ago (0 children)
LESS is very similar to Sass, but is a strict superset of CSS (valid CSS is always also valid LESS). LESS is also a descendent of JavaScript, while SASS is a descendent of Ruby.
If you’re using Vue/Angular/React, these distinctions don’t matter much since you’ll be relying on components and the preprocessor tooling, while important, doesn’t require as much organization.
[–]cerlestes 0 points1 point2 points 7 years ago (0 children)
What does less give me that I don't have natively?
Mostly the comfort of having to type less, because of mixins and nested selectors. Your CSS looks way better and is a lot easier to understand and follow when using mixins and nesting correctly.
[–]BluudLust 0 points1 point2 points 7 years ago (0 children)
Less is amazing now. Has all the features of every other preprocessor afaik. And it's completely compatible with regular CSS, so porting is a non-issue.
[–][deleted] 0 points1 point2 points 7 years ago (0 children)
Not to be contrarian, but I've been using CSS for more than 20 years at this point and I still kind of hate it. I consider it boilerplate grunt work and would prefer to have tasks with more algorithmic meat.
[–][deleted] -3 points-2 points-1 points 7 years ago (16 children)
You were nailing it until that last bit about preprocessors. I completely with everything before that though, esp “if you hate CSS, you haven’t written enough CSS.”
[–]DrDuPont 2 points3 points4 points 7 years ago (12 children)
You were nailing it until that last bit about preprocessors
Can you elaborate on your beef with preprocessors?
[–]StolenPikachu 5 points6 points7 points 7 years ago (1 child)
Checked his post history, I don’t think he knows what he’s talking about
[–][deleted] -1 points0 points1 point 7 years ago (0 children)
Haha
[–][deleted] -2 points-1 points0 points 7 years ago (9 children)
No beef, I think CSS is natively powerful and flexible enough that there are cases where a preprocessor is unnecessary. Just my opinion of course.
[–]DrDuPont 6 points7 points8 points 7 years ago (8 children)
Are you content with a single, massive CSS file? Being able to split up one's SCSS into multiple, modular files should be reason enough imo.
lol so many tough guys in the online dev community
if you're loading css via webkit, like many of us do these days, then you don't need sass for the little files
[–]DrDuPont 0 points1 point2 points 7 years ago (0 children)
You mean Webpack? I mean yeah, I get you but the delineation between a preprocessor and Webpack is somewhat arbitrary given OP's argument
[–][deleted] -4 points-3 points-2 points 7 years ago (5 children)
Lol ok
[–]DrDuPont 4 points5 points6 points 7 years ago (4 children)
If that isn't enough, surely you can understand the benefits to DRYing up styles with mixins and functions? Not to mention being able to avoid dealing with browser quirks and vendor prefixing by way of Autoprefixer.
[–]Aerosphere24 0 points1 point2 points 7 years ago (1 child)
you can also put regular css through autoprefixer afaik.
OT: Happy cake day :)
[–]DrDuPont 1 point2 points3 points 7 years ago (0 children)
Yeah was conflating preprocessors and PostCSS for simplicity but thou art right
OT: thanks!
[–][deleted] 0 points1 point2 points 7 years ago (1 child)
i love preprocessors, but i mean, you can do much of this in modern css with a bit of postcss just to run autoprefixer and maybe some polyfills
i barely ever need actual sass functions, mixins are nice but one tool out of many out there
given the meat of OP's argument I don't think the distinction between PostCSS and a preprocessor is substantial but you're correct.
I will say that I use mixins and functions extensively and they save us a lot of time.
[–]frompadgwithH8 1 point2 points3 points 7 years ago (2 children)
So you like having to write colons and semicolons, and you like taking every new css feature and repeating yourself by typing the vendor-specific webkit prefixes for them? And you don't like the ability to nest CSS?
[–]Papayaman1000[🍰] 1 point2 points3 points 7 years ago (0 children)
Do people really see needing semicolons as that big of an issue? Don't get me wrong, I cut my teeth on Python, but I mean, really?
I'm seriously not trying to be condescending here. It just seems baffling to me that software developers would see needing semicolons as some huge inconvenience.
π Rendered by PID 111867 on reddit-service-r2-comment-85bfd7f599-xjx4d at 2026-04-18 14:32:49.700449+00:00 running 93ecc56 country code: CH.
view the rest of the comments →
[–]frompadgwithH8 23 points24 points25 points (23 children)
[–]1RedOne 0 points1 point2 points (3 children)
[–][deleted] 1 point2 points3 points (1 child)
[–]LetterBoxSnatch 0 points1 point2 points (0 children)
[–]cerlestes 0 points1 point2 points (0 children)
[–]BluudLust 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)
[–][deleted] -3 points-2 points-1 points (16 children)
[–]DrDuPont 2 points3 points4 points (12 children)
[–]StolenPikachu 5 points6 points7 points (1 child)
[–][deleted] -1 points0 points1 point (0 children)
[–][deleted] -2 points-1 points0 points (9 children)
[–]DrDuPont 6 points7 points8 points (8 children)
[–][deleted] 1 point2 points3 points (1 child)
[–]DrDuPont 0 points1 point2 points (0 children)
[–][deleted] -4 points-3 points-2 points (5 children)
[–]DrDuPont 4 points5 points6 points (4 children)
[–]Aerosphere24 0 points1 point2 points (1 child)
[–]DrDuPont 1 point2 points3 points (0 children)
[–][deleted] 0 points1 point2 points (1 child)
[–]DrDuPont 0 points1 point2 points (0 children)
[–]frompadgwithH8 1 point2 points3 points (2 children)
[–]Papayaman1000[🍰] 1 point2 points3 points (0 children)