Why is MAXPAT code so badly formatted?

Jan 17, 2009 at 7:24pm

Why is MAXPAT code so badly formatted?

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.

#41730
Jan 17, 2009 at 7:34pm

* shouldn’t it be more [...]

#148908
Jan 17, 2009 at 7:44pm

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
http://www.cassiel.com
http://www.myspace.com/cassieldotcom
http://www.last.fm/music/cassiel
http://www.reverbnation.com/cassiel
http://www.linkedin.com/in/cassiel
http://www.loadbang.net

#148909
Jan 17, 2009 at 7:48pm

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

http://www.xfade.com

#148910
Jan 18, 2009 at 12:37am

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:

http://www.cycling74.com/forums/index.php?t=msg&th=33035#msg_138471

#148911
Jan 18, 2009 at 3:20pm

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.

#148912
Jan 18, 2009 at 6:37pm

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! ;)

#148913
Jan 19, 2009 at 11:35am

#148914
Jan 19, 2009 at 1:06pm

#148915
Jan 20, 2009 at 11:15am

After posting my previous, I felt I should add that, on the one occasion I met the man, he was charming, helpful, and forthcoming.

#148916

You must be logged in to reply to this topic.