1
frogstair
35d

OK so I figured out scss, and I gotta say, the idea of code-generated code is nice, but the implementation with sass is terrible. It's just a string composing machine, the Syntax doesn't have to be soooo terrible. 6/10, definitely room for improvement

Comments
  • 0
    What would you do differently?
  • 0
    @kamen remove the $ for variables, and make it more traditional-looking with proper function declarations, fors whiles and etc, and I guess just minify the syntax, it just feels extremely cluttered tbh
  • 0
    It depends.

    https://sass-lang.com/documentation...

    https://sass-lang.com/documentation...

    Sass was never designed in my opinion to be a programming language. More a CSS (text) generator on steroids- hence preprocessor.

    It's the same game for every eg templating engine out there. You must seperate between what's necessary and what distinguishes the syntax / language from the programming language, so programmers don't end up with a very dangerous mindset: That the templating engine can do everything the programming language can.
    (Which mostly leads to rage when they realize: NOPE that:s not possible).

    I think that SASS does this quite good...
  • 0
    @IntrusionCM I mean I think the syntax is just way too bloated. I guess something could be simplified in it
  • 0
    @shoop agree to disagree. :)

    I really hate the perversity that everything needs to be as short as possible... Just for the sake of saving keystrokes.

    It's this ... Lazyness... That bothers me the most.

    I always hate it when people write code to be as short and implicit as possible, leaving a pandoras box of subtle bugs and behaviourism behind. Which might or might not work under certain circumstances.

    The trend to debloat / shorten things worries me ... But maybe I'm suffering a bit from "Too old for this shit TM".

    It's just... Javascript / PHP / Python with it's weird / weak typing all did it because of lazyness... And it still pains a lot of people. Guess we'll have a retro revival in the next years XD
  • 1
    @IntrusionCM im not saying lighten the way the programming language works. I'm saying make the syntax in particular simpler and more understandable.

    Example: #{$variable} imo looks way worse than +variable, and less intuitive too. You spend more time comprehending what that means because it's non-standard
  • 0
    Hey $ is cool it gives me nice php vibes once a while
  • 0
    @Kalashnikov no php vibes are nice
  • 1
    @IntrusionCM example: code should be somewhat readable at first glance, but when you look at this, you don't even know what to look at first
Add Comment