News for hackers. Stuff that matters.
Re:Flexbox Patterns: Build user interfaces with CSS flexbox by indubitably on Tuesday April 19, 2016 @01:59PM (#11528815)
This is a great tutorial, but why obfuscate the CSS as SCSS? In most cases here there’s essentially nothing gained.
Re:Flexbox Patterns: Build user interfaces with CSS flexbox by bobwaycott on Tuesday April 19, 2016 @02:17PM (#11528955)
How exactly is SCSS an obfuscation of CSS?
Re:Flexbox Patterns: Build user interfaces with CSS flexbox by davegauer on Tuesday April 19, 2016 @05:16PM (#11530501)
'Obfuscation' might be taking it a bit far, but demonstrating a CSS feature in anything other than vanilla CSS is, in my opinion, a really poor choice.

It's like having an explanation of a JavaScript feature...in TypeScript.

Re:Flexbox Patterns: Build user interfaces with CSS flexbox by bobwaycott on Tuesday April 19, 2016 @05:23PM (#11530558)
I'll happily agree. I was only pointing out that obfuscation of CSS was not happening.
Re:Flexbox Patterns: Build user interfaces with CSS flexbox by indubitably on Tuesday April 19, 2016 @04:06PM (#11529827)
Since you _italicized_ I guess I better answer!

The tutorial is ostensibly about flexbox, not about CSS precompilation. So, if the you happen not to know SCSS, then it’s obfuscated.

Er, then it’s _obfuscated_.

Re:Flexbox Patterns: Build user interfaces with CSS flexbox by bobwaycott on Tuesday April 19, 2016 @04:22PM (#11530009)
Except it's not, because even though SCSS may alter the presentation of some of the rules, it does not render them unintelligible to the reader.

My italics were to call out you specifically saying SCSS was obfuscating the CSS, when it isn't. None of the styles rules shown are made incomprehensible to the reader.

Re:Flexbox Patterns: Build user interfaces with CSS flexbox by simonw on Tuesday April 19, 2016 @08:14PM (#11531492)

    & + & {
        margin-left: 5px;
    }
Re:Flexbox Patterns: Build user interfaces with CSS flexbox by bobwaycott on Wednesday April 20, 2016 @12:08AM (#11532196)
Alright, a fair enough example of making this rule confusing for someone who doesn't know SCSS to immediately intuit what element this rule is being applied to. But that still doesn't mean the CSS rule itself is obfuscated (anyone familiar with CSS will know this is applying a left margin of 5px to something). Far different from, say, something like:

    wsze2NfA3sjX0eKampvYIZbUISElk+AhNvIs2iYnISsh/fP1MjvHODcrODXA68T5xgcMyDAwPwQ5DQ8WDAfNBAkLFxPYwwsfCwge
That is obfuscated CSS.
Re:Flexbox Patterns: Build user interfaces with CSS flexbox by indubitably on Wednesday April 20, 2016 @01:01AM (#11532359)
I get it, you don’t like my choice of adjective.
Re:Flexbox Patterns: Build user interfaces with CSS flexbox by bobwaycott on Wednesday April 20, 2016 @01:18AM (#11532402)
Not quite. Obfuscation means something, particularly within the realm of software development. It's not like you chose a synonym, and I'm over here being an asshole, pedantically quibbling over why my choice of synonym is the better choice. Obfuscating something in code means rendering it un-parseable by humans.

There's a huge difference between SCSS and obfuscated CSS.

Re:Flexbox Patterns: Build user interfaces with CSS flexbox by indubitably on Wednesday April 20, 2016 @05:19PM (#11537831)
Christ, I get it.
Re:Flexbox Patterns: Build user interfaces with CSS flexbox by cjcenizal on Wednesday April 20, 2016 @11:12AM (#11534977)
Hey, author here. You make a great point. I'll update the examples to be in CSS. Thanks!