Why I Stopped Using Sass

Поделиться
HTML-код
  • Опубликовано: 15 июл 2024
  • Have you ever heard how much better Sass is than plain old vanilla CSS? Sass and SCSS has been the go-to for web developers for over a decade, but these days it's not quite as necessary as it used to be. In this video, I'm going to explain why I don't use Sass any more, as well as explain why I don't need its most popular features when I'm writing my CSS. Next time you start a new project, maybe think twice before reaching for Sass over CSS...
    Why I don't use vendor prefixes: • What is CSS Prefix?
    How to use CSS variables: • Making CSS more effici...
    Do you still need a CSS reset?: • Do We Still Need CSS R...
    🌐 My website: ericmurphy.xyz
    💸 Support the Channel: ericmurphy.xyz/donate
    🎥 Watch my videos on Odysee: odysee.com/@ericnmurphy
    💻 My GitHub: github.com/ericmurphyxyz
    0:00 What's Sass?
    2:00 What about variables?
    3:33 What about nesting?
    7:08 What about mixins?
    8:03 Why I don't use Sass
    8:47 So what do I use instead?
  • НаукаНаука

Комментарии • 44

  • @Sonya_Makepeace
    @Sonya_Makepeace 9 месяцев назад +1

    I love sass. I only started using it a week ago and I'm hooked.

  • @manankataria
    @manankataria Год назад +3

    What is your opinion on tailwind , personally i like vanilla css 😊 it is javascript that gives me nightmares 😢😢.

  • @moeabdol_
    @moeabdol_ Год назад +9

    Sass is a compiler and thus there should not be an issue with performance since your final production bundle will include the compiled css and not sass.

    • @EricMurphyxyz
      @EricMurphyxyz  Год назад +4

      No performance issue with Sass, I just like reducing complexity in my projects.

    • @moeabdol_
      @moeabdol_ Год назад +3

      @@EricMurphyxyz I love your work man. Thanks a lot.

  • @neontuts5637
    @neontuts5637 Год назад +9

    Thanks for sharing. Most of the time I use the BEM naming convention for classes in HTML and CSS.

  • @fesprogrammer605
    @fesprogrammer605 3 месяца назад

    Your vim looks the same as vscode or you are using vscode with a extension of vim

  • @amardeepgill3213
    @amardeepgill3213 Год назад

    is that CSS LSP that gives u selector specificity on hover?

  • @nomadshiba
    @nomadshiba Год назад +1

    i just use vanilla css
    love grids

  • @AnalyticMinded
    @AnalyticMinded Год назад +5

    I'm not a webdev, but have been tinkering with html and css since the early 2000's. Never used Sass, and I actually didn't know what it was up until last year. I also learned about Tailwind css, which, to be honest, looks absolutely horrible. Seems to go against the spirit of css of separating content from presentation. Have you used it?

    • @heroe1486
      @heroe1486 Год назад +5

      If you're just tinkering a bit and not using JS frameworks you might not get why Tailwind is useful, when you write reusable components your frontend is separated into multiple parts and it's not as messy.
      Tailiwind has been made with that in mind, you can still use the apply directive to have regular css like functionality but that's not how it's intended to be used

    • @oscarljimenez5717
      @oscarljimenez5717 Год назад

      @@heroe1486 Tailwind is useful because is more composable, is one of the first in break separation of concerns in component code, this give you the ability to not leave your component and concentrate all styles, html, and functionality in one single reusable component, also the performance vs others normal aproach like css or scss is abysmal. Kinda make CSS more scalable. But i also not a huge fan, but i understand his pros. I use PandaCSS because it give me everything that tailwindCSS give, but without losing readabilty or having to learn anything new, just write CSS in your component, and also is the more scalable way of all, because it also have typesafe tokens, so if you change something your editor will scream.

    • @potato7083
      @potato7083 7 месяцев назад

      You are the issue, you don't know how to use tailwind.

  • @Barnardrab
    @Barnardrab 11 месяцев назад +5

    It's great that native css is picking up functionality. Now if only they could add TypeScript support to HTML files.

    • @EricMurphyxyz
      @EricMurphyxyz  11 месяцев назад +1

      Maybe someday...one can dream, right? :)

    • @user-sw1wq8lh2w
      @user-sw1wq8lh2w 8 месяцев назад

      or experiment with strong typing in JS directly

  • @Atractiondj
    @Atractiondj 4 месяца назад

    Personally, I would like the properties of @mixin in vanilla css

  • @sh8yt
    @sh8yt Год назад +1

    Talk about postcss, 🤔 i think tailwindcss

  • @itsabhiyan
    @itsabhiyan Год назад +1

    You use sass nesting when you use things like ::after, ::before, :hover, :active, :focus, etc. To do these without nesting is a fucking nightmare

    • @nested9301
      @nested9301 21 день назад

      Css has nesting out of the box no need for sass my boy

    • @itsabhiyan
      @itsabhiyan 20 дней назад

      @@nested9301 see my comment is 1 year old, and CSS nesting had just begun then. Only postcss supported it well.

  • @soniablanche5672
    @soniablanche5672 11 месяцев назад +1

    so sass is basically the jquery of css

    • @Cyrus_G
      @Cyrus_G 9 месяцев назад

      no. its the javascript of css

  • @heroe1486
    @heroe1486 Год назад

    Vscode nah you've betrayed the community, just kidding but yeah why would I need SASS and its overhead when I could just easily write this logic in JS which is already a programming language, + vanilla CSS is also capable these days, with more and more features added.
    Might be good for people who do styling for a living tho, but that's not my use case, tailwind and vanilla CSS when needed + JS when styling is based on some logic is enough

  • @omega_sine
    @omega_sine Год назад +3

    I see all the soy devs use tailwind so I’ve been looking into that. I will say it is nice that I don’t have to think about what to my name divs anymore. Also nice that the @base thing presets some options to give a consistent look across browsers.

    • @EricMurphyxyz
      @EricMurphyxyz  Год назад +1

      I've been meaning to check out tailwind. The classes approach seems weird to me but I also found a tool that converts it to normal CSS so we'll see...

    • @Joe_Yacketori
      @Joe_Yacketori Год назад

      @@EricMurphyxyz Converting it to normal CSS (I'm assuming what you mean by that is converting the ad hoc utility classes into separate stylesheets with semantic classes) would probably cause you to miss out on one of the big advantages of Tailwind: how light the CSS ends up being. Tailwind output CSS is never a gram over 15 KB for me.

    • @potato7083
      @potato7083 7 месяцев назад

      Soy devs are even better than grown up weebos like u.

  • @b_delta9725
    @b_delta9725 Год назад

    i find most of these to not be my case. css has nesting, but sass has better nesting. sass has also loops that are better implemented that if I used Javascript. i find myself using almost all quirks that sass use, because it makes my code simpler in really large projects. postcss can emulate many of them but with less support and a few more bugs, nothing crazy but still worth mentioning. Great video though, wish more people used their own postcss config

  • @naranyala_dev
    @naranyala_dev Год назад

    modern css is so good ....

  • @jhonyortiz5
    @jhonyortiz5 Год назад +6

    Its pretty ugly but honestly tailwind is probably the best way to use css. It makes things dead simple. And there are extensions to hide all the clases to make it less busy while coding.
    EDIT: I think one of the advantages is that you dont have ti think at all about performance. With tailwind there are no "tricks" to make it faster. Its pretty much as fast as its going to be whether you take performance into account or not. For better and for worse of course but 90% of the times, for the better.

    • @Joe_Yacketori
      @Joe_Yacketori Год назад

      Tailwind is just so so so much better. Semantic class names seem like they should be better in theory, but in practice they always just end up sucking way more ass than the big ugly utility class lists. I suspect most human beings would innately assume that classes like "article-body" and "left-aligned-main-header" etc. are better since they organize styles into logical bins and tuck them away, and also make it easy to not have to re-style similar elements all over again. In reality though, these classes end up typically being non-reusable since there's always one little pesky style that needs to be different between element A and B, and all these semantic class names end up taking up 200 KB.
      The only elements that I find ever truly benefit from a standard class are buttons. I always end up setting the padding, the hover color, etc. the same way, so buttons get a semantic class even when I'm using tailwind.

  • @potato7083
    @potato7083 7 месяцев назад

    sass is for PWD's

  • @itsabhiyan
    @itsabhiyan Год назад

    15:15 I think its useless to talk about css performance

  • @sostrcan
    @sostrcan Год назад +21

    I stopped using Sass when they added BLM banner to their website.

    • @grihamsarthi8599
      @grihamsarthi8599 Год назад +3

      Almost all the projects virtue signal. It's not viable imo

    • @b_delta9725
      @b_delta9725 Год назад

      ah yes, stopped using the free-to-use software because they support politics you don't. there's a saying that "if hitler himself came back from the grave and did a good Git commit, we should accept it", and I think you should consider that.