GithubHelp home page GithubHelp logo

Mis-leading "client-side" text about less-docs HOT 10 OPEN

less avatar less commented on July 2, 2024
Mis-leading "client-side" text

from less-docs.

Comments (10)

jonschlinkert avatar jonschlinkert commented on July 2, 2024

yeah that's a much better description

from less-docs.

Soviut avatar Soviut commented on July 2, 2024

I agree. Though perhaps we can provide actual situations where both would be used. Nothing too verbose, just some clear delineation between the two in order to make the choice obvious. I would literally have two lists, side by side, titled "Should I compile?" and "Should I run live?" and outline reasons for each.

We've encountered enough people producing dynamic libraries/frameworks/sites that listing them will help both newcomers and people looking to do cutting edge dynamic stuff.

from less-docs.

jonschlinkert avatar jonschlinkert commented on July 2, 2024

Great ideas, IMO you should just create exactly what you're saying right here and we'll build on it. The docs will be all in markdown so this kind of conversation will be a good start

from less-docs.

Soviut avatar Soviut commented on July 2, 2024

Okay, I'll start this off. Correct me if any of the points aren't true enough:

Should I compile?

  • I'm in production and I don't want LESS taking extra time to compile my stylesheets (every millisecond counts)
  • I want to see the generated CSS so I can optimize my LESS
  • I want to further minify my CSS after it's compiled
  • I want to post-process or trigger other build steps*** needs work

Should I run live?

  • I'm in development and don't want to run extra tools while I test
  • I'm working in a remote sandbox that won't let me compile but I don't want to keep uploading compiled CSS files while I test
  • I need to pack everything into one HTML file for templating reasons
  • I'm creating a dynamic templating system that needs to update on the fly
  • I'm comfortable with only supporting the most recent browser versions (less.js does not attempt to remain compatible with older browsers)

from less-docs.

andrewwakeling avatar andrewwakeling commented on July 2, 2024

I'm seeing the "intended usage" quoted in response to a few issues raised. (e.g. less/less.js#1654).

From what I'm observing it should clearly say:
"If you are using LESS in production you should NOT use 'less.js' and you should be compiling your stylesheets."

...and maybe even go as far to say, "If you decide to use 'less.js' in production, you do so at your own risk."

I am a bit saddened by the lack of enthusiasm in encouraging the "sensible" usage of less.js in production because I see this as being LESS's strongest and most unique feature in comparison to other stylesheet languages.

from less-docs.

Soviut avatar Soviut commented on July 2, 2024

That's why I think my suggested "when should I compile, when should I run live/less.js?" side-by-side comparison is crucial. It allows people to understand the pros and cons of both before they choose.

We've seen a lot of recent issues from people who are basically just suffering from a bad workflow complaining about less.js

from less-docs.

jonschlinkert avatar jonschlinkert commented on July 2, 2024

We've seen a lot of recent issues from people who are basically just suffering from a bad workflow complaining about less.js

Indeed. I have to be blunt thought, from the time I first heard about less.js (2 years ago), I remember reading time and time and time again not to compile in the browser unless you absolutely needed to. This has never been hidden information. At this point we're splitting hairs on how to say the same thing differently - but no matter how we say it, people who don't RTFM will come here and complain about the same point over again.

from less-docs.

jonschlinkert avatar jonschlinkert commented on July 2, 2024

.. and I'm not trying to be harsh, it just seems like the reality of it

from less-docs.

Soviut avatar Soviut commented on July 2, 2024

I know that when I got into LESS, the first instructions on the site that I saw were "here's how easy it is to add in the browser". This was important as it gave me a low barrier to entry, but there was no clear instructions on how to deal with production. As a result, one site I built several years ago still has less.js being used in production.

Now that so many handy desktop compilers and workflow tools like Grunt exist, illustrating those early on the website, right next to less.js instructions would go a long way to preventing newcomers from travelling too far down the wrong path.

Hell, let's make a featurette video.

from less-docs.

jonschlinkert avatar jonschlinkert commented on July 2, 2024

illustrating those early on the website, right next to less.js instructions would go a long way to preventing newcomers from travelling too far down the wrong path.

Agreed. Let's do that. The featurette video is a good idea too. I've wanted to get code mirror hooked up so that users can play with the code examples too.

from less-docs.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.