Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse

NodeBB

  1. Home
  2. uncategorized
  3. Seriously ....

Seriously ....

Scheduled Pinned Locked Moved uncategorized
22 Posts 6 Posters 2 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • meluzzy@woof.techM meluzzy@woof.tech

    @catraxx @107d There is an advantage to CSS in JS, It makes it easier for a big development team to handle styles.
    Frontend web development can get very chaotic very fast if not handled correctly.
    In my previous job we had LESS mixed with SASS mixed with react-css-classes mixed with native .css imports mixed with Tailwind mixed with Bootstrap... It was a nightmare because everyone just came and did waterver they felt like it. So actually imposing something that forces all CSS to be done in a very specific way saves a lot of disasters from happening.

    catraxx@tech.lgbtC This user is from outside of this forum
    catraxx@tech.lgbtC This user is from outside of this forum
    catraxx@tech.lgbt
    wrote last edited by
    #21

    @meluzzy @107d I disagree. Using less and sass together in a project already requires two separate preprocessors and i can just as easily do that is js if i want to. Simply putting it in the js will not save you got to make sure everyone understands the rules.

    I also saw the opposite: backend devs fuzzing about in the styling, which they neither had the permission two, nor the knowledge for, but "because it was right there", they would simply mess around in it.

    As a frontend dev, i vastly prefer the css to be entirely separate, in small files that match the component i am working on. Putting it in js complicates everything, makes it far easier to break and less readable in bigger files.

    1 Reply Last reply
    0
    • catraxx@tech.lgbtC catraxx@tech.lgbt

      @c0debabe Yeah because oooOOOOooo scary, we encode the classnames so you can't reverse engineer or shitty slow as fuck, piece of absolute shit website.

      tay@tech.lgbtT This user is from outside of this forum
      tay@tech.lgbtT This user is from outside of this forum
      tay@tech.lgbt
      wrote last edited by
      #22

      @catraxx @c0debabe i doubt the intended use case was to prevent reverse engineering. maybe a happy side effect, but that just looks like tailwind (or similar) & a name mangler (generally for avoiding clashes but well, not required if you're using tailwind)

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Login or register to search.
      Powered by NodeBB Contributors
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups