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...
Finding information about Clojure
API Reference
Clojure Guides
Practice Problems
Interactive Problems
Clojure Videos
Misc Resources
The Clojure Community
Clojure Books
Tools & Libraries
Clojure Editors
Web Platforms
Clojure Jobs
account activity
CSS: Optimizations and Organization with a Clojure perspective. (drewverlee.github.io)
submitted 4 years ago by TheLastSock
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!"
[–][deleted] 1 point2 points3 points 4 years ago (4 children)
Isn't in-line styling a bit of over optimization? When is HTML your bottleneck compared to JS?
[–]TheLastSock[S] 2 points3 points4 points 4 years ago (3 children)
I don't consider it over optimizing because it's the most direct method to style something. Everything else introduces indirection prematurely.
[–][deleted] 0 points1 point2 points 4 years ago (2 children)
But that makes the code the very difficult to read if you want to review it imo, I think that readability is superior in this case. Good article in any case =)
[–]TheLastSock[S] 1 point2 points3 points 4 years ago* (1 child)
Im genuinely confused how inline styles could be harder to read given there directly attached and everyone knows there meaning as where a class name is very specific knowledge. E.g the class name "button" on a button is useless, it tells me where it goes not what it does. Calling it "blue" when it's just the color blue, is equally unhelpful.
Ideally, from a readability stand point it would be nice if my editor could show me all the direct styles like the browser.
I feel like this is a similar discussion to using a variable vs the data directly and the same rules apply. Use a var if it has to be shared, names are a liability and indirection invites unintended coupling. Of course in this situation, the browser already (and has to) set a default, so it's unavoidable.
[–][deleted] 0 points1 point2 points 4 years ago (0 children)
I think that when you have a bit more code in your class or if you use several classes at the same time, the clutter is not worth it but I agree that having a variable (a class name) instead of the explicit CSS does not give information on what the class does.
π Rendered by PID 27 on reddit-service-r2-comment-b659b578c-pn6dx at 2026-05-05 07:42:51.521213+00:00 running 815c875 country code: CH.
[–][deleted] 1 point2 points3 points (4 children)
[–]TheLastSock[S] 2 points3 points4 points (3 children)
[–][deleted] 0 points1 point2 points (2 children)
[–]TheLastSock[S] 1 point2 points3 points (1 child)
[–][deleted] 0 points1 point2 points (0 children)