Slashdot Mirror


Zen Coding

Download Squad has a quick review, with video, of Zen Coding (Google Code project page here), an extremely well-thought-out accelerator for anyone who codes HTML. Its syntax is CSS-like. Zen Coding has been around for a while — here's its author Sergey Chikuyonok's introduction in Smashing Magazine from last November — and it has now picked up support for more than a dozen editing environments, including Notepad++ and TextMate.

22 of 175 comments (clear)

  1. don't mock the Notepad++ by MoFoQ · · Score: 3, Interesting

    don't mock the Notepad++....it's very powerful, yet lightweight and unbloated.

    I'm sure many slashdotters here also live by the "Notepad++ code"....

    1. Re:don't mock the Notepad++ by EvanED · · Score: 3, Insightful

      Yeah, god forbid someone pay money for software they use and like.

    2. Re:don't mock the Notepad++ by bit01 · · Score: 3, Insightful

      Yeah, god forbid someone pay money for software they use and like.

      The price and license are important software characteristics whether you like it or not. A non-zero price can make it a practical impossibility to use in many organizations because of the paperwork involved. A license that doesn't allow you to install it where ever you need it, as you need it can also be a problem.

      Since their are many free alternatives available in this category it's easily possible that the pay software is more trouble than it's worth even if it is otherwise superior, as the GPP was implicitly pointing out.

      ---

      Like software, intellectual property law is a product of the mind, and can be anything we want it to be. Let's get it right.

  2. Zen by mindbrane · · Score: 5, Insightful

    Is there a better commentary on the west's general inability to grok zen than our endless bastardization of the word, zen?

    --
    ideopath @ play
    1. Re:Zen by istartedi · · Score: 5, Funny

      Is there a better commentary on the west's general inability to grok zen than our endless bastardization of the word, zen?

      ZEN is not a ticker symbol on the NYSE yet, so I guess not.

      --
      For all intensive purposes, "whom" is no longer a word. That begs the question, "who cares"?
    2. Re:Zen by Anonymous Coward · · Score: 3, Informative
      Zen came to fruition the Tang Dynasty, at the height of development of Buddhism in China. It came as the highest practice, equivalent to Indian Prajnaparamita and Tibetan Dzogchen or Mahamudra traditions. The people who practiced it were those who already had great meditative ability and high capacity for understanding. Without a solid foundation, studying Zen (especially in the West) is simply nonsense. Without a background in the Buddhist sutras, you will likely just become confused or fool yourself into thinking it's just a mind game. From a real Zen master, Hsuan Hua:

      The stupid transmit to the stupid,
      One is teaching but neither has any idea.
      The teacher goes to hell.
      Where will the student end up?

    3. Re:Zen by Hognoxious · · Score: 3, Interesting

      Zen has nothing to with "spirituality".

      Oh come on, try to make an effort.

      It should be "Zen has nothing to do with spirituality and everything to do with spirituality" or "The student asked about the spirituailty in Zen. 'Lemons', replied the master, and the student was enlightened".

      --
      Confucius say, "Find worm in apple - bad. Find half a worm - worse."
  3. The lesser known Zen Coding koans by Anonymous Coward · · Score: 3, Funny

    such as:

    * What is the sound of one interrupt flapping?
    * If an exception gets thrown in an operating system, and no one is around to catch it, does it make a sound?

    1. Re:The lesser known Zen Coding koans by Anonymous Coward · · Score: 4, Funny

      I prefer my koans with ice cream.

  4. Re:Vim? by vroom · · Score: 5, Informative
    The official page doesn't mention vim support, but this script seems to match the functionality pretty closely http://mattn.github.com/zencoding-vim/

    Check the TUTORIAL file in the repo to either turn on by filetype or globally

  5. Let's see... by oljanx · · Score: 4, Insightful

    When I "write HTML" I'm actually writing HTML, CSS, JavaScript, PHP and SQL queries at the same time. On a good day. What the hell, why not add another syntax?

    1. Re:Let's see... by pavera · · Score: 5, Insightful

      Please keep your SQL and HTML separate. Don't punish those who will come after you.

    2. Re:Let's see... by EvanED · · Score: 3, Insightful

      What the hell, why not add another syntax?

      To be fair, the syntax is very much like CSS. Further, it's not like it stays in the file for those who come after; it's just that the editor expands things for you.

    3. Re:Let's see... by EvanED · · Score: 3, Insightful

      So it's kind of like Lisp macros, except that they are expanded in the source to make maintenance both more difficult and less efficient than just starting over from scratch.

      If that's your attitude, feel free to go ahead and use Markdown or ASCIIDoc or one of the other markup lanugages that you can compile to HTML.

      However, this is something you can use in documents that are already HTML, need to be HTML because that's what your employer or customer demands, etc. without affecting the end result. Saying "let's replace HTML with something better" is not exactly a realistic proposition.

    4. Re:Let's see... by eelke_klein · · Score: 5, Interesting

      Maybe you should make that, please keep your SQL, PHP, JavaScript, CSS and HTML seperate.

    5. Re:Let's see... by hgavin · · Score: 3, Informative

      how do you use them without inline JS?

      http://en.wikipedia.org/wiki/Unobtrusive_JavaScript

  6. Not sheer genius by MichaelSmith · · Score: 4, Insightful

    TFA shows how Zen lets you type in a terse message and have it expanded into a chunk of html code and describes it as sheer genius. Thats neat but I have nedit macros which do pretty much the same thing. They are time savers for sure.

    But nothing which you couldn't do a thousand ways. With perl, awk or sed.

  7. I nominate this for all-time... by bcrowell · · Score: 4, Informative

    ...crappiest article ever to get frontpaged on slashdot.

    It's a couple hundred words worth of "OMG!" with a code example.

    1. Re:I nominate this for all-time... by greg1104 · · Score: 5, Funny

      You should save your vote for when its dupe shows up in a couple of days.

  8. Accelerator by neoform · · Score: 4, Insightful

    an extremely well thought-out accelerator for anyone who codes HTML.

    I don't think that word means what you think it means.

    --
    MABASPLOOM!
  9. The master told me by goombah99 · · Score: 4, Funny

    The master told me to mediate on the sound of one parenthesis closing. I am ashamed that I don't know what this means. Or was that his point.

    --
    Some drink at the fountain of knowledge. Others just gargle.
  10. You don't "code" HTML by Viol8 · · Score: 4, Insightful

    You code in java,C++,javascript, but HTML is a formatting language - you do not code in it because it isn't a coding language. I know it makes fluffy web page designers feel like their playing with the big boys to talk about "coding" in HTML but you might was well talk about "coding" .ini files.