Why is MAXPAT code so badly formatted?


    Jan 17 2009 | 7:24 pm
    Is it just me or is MAXPAT code rather badly formatted?
    Take http://pastie.org/363372 for instance, should it be more like http://pastie.org/363375?
    What would be really, really cool was if Cycling74 would consider using http://en.wikipedia.org/wiki/YAML code instead.

    • Jan 17 2009 | 7:34 pm
      * shouldn't it be more [...]
    • Jan 17 2009 | 7:44 pm
      On 17 Jan 2009, at 19:24, Redd Vinylene wrote:
      > Take http://pastie.org/363372 for instance, should it be more like http://pastie.org/363375?
      JSON is whitespace-agnostic, so it doesn't matter. If you want to
      prettyprint it, then it wouldn't be difficult to knock up a parser for
      it (or in this case, a simple regexp-based whitespace eliminator).
      > What would be really, really cool was if Cycling74 would consider
      > using http://en.wikipedia.org/wiki/YAML code instead.
      Utterly fantastic idea: I'm sure they'll be right on it.
      -- N.
      Nick Rothwell / Cassiel.com Limited
      www.cassiel.com
      www.myspace.com/cassieldotcom
      www.last.fm/music/cassiel
      www.reverbnation.com/cassiel
      www.linkedin.com/in/cassiel
      www.loadbang.net
    • Jan 17 2009 | 7:48 pm
      On Jan 17, 2009, at 11:24 AM, Redd Vinylene wrote:
      > Is it just me or is MAXPAT code rather badly formatted?
      Formatting is largely a matter of taste. Maybe if you set a tab to be
      two spaces in your text editor, you would be happier with the .maxpat
      formatting?
      - C
      Chris Muir
      cbm@well.com
    • Jan 18 2009 | 12:37 am
      Quote: Redd Vinylene wrote on Sat, 17 January 2009 11:24
      ----------------------------------------------------
      > What would be really, really cool was if Cycling74 would consider using http://en.wikipedia.org/wiki/YAML code instead.
      ----------------------------------------------------
      This has come up before:
    • Jan 18 2009 | 3:20 pm
      Quote: Redd Vinylene wrote on Sat, 17 January 2009 20:24
      ----------------------------------------------------
      > Is it just me or is MAXPAT code rather badly formatted?
      ----------------------------------------------------
      Not to be blunt, but it's just you.
      I once consulted for the IT unit of a large pharmaceutical where development management was trying to enforce TAB=3 spaces as a formatting requirement. I quit, of course, because TAB=4 is the only true, divine and sanctified way to layout source code. If you do not *grasp* this (and I do not merely say comprehend), you are *useless*.
      And also clearly condemned to eternal sulfurous hellfire.
      ====
      Please take all of the above with sufficient amounts of salt. But you do realize that arguing that some amount of white space is "bad" or "good" or "worse" or "better" is sheer religious warfare combined with arrogance worthy of the young Boulez. If tab stops worry you, get a configurable text editor.
      Or, better still, a life;-
      BTW, the first part of my story is true.
    • Jan 18 2009 | 6:37 pm
      Quote: Peter Castine wrote on Sun, 18 January 2009 15:20
      ----------------------------------------------------
      > ...arrogance worthy of the young Boulez...
      ----------------------------------------------------
      Really? His sudden metamorphosis is news to me! ;)
    • Jan 19 2009 | 11:35 am
    • Jan 20 2009 | 11:15 am
      After posting my previous, I felt I should add that, on the one occasion I met the man, he was charming, helpful, and forthcoming.