Log in

View Full Version : nEtiquette in in use of [code] blocks.


IanB
16th November 2005, 07:43
Dear all,

I don't know about others but I am finding it increasingly irritating that people expecting help in this forum (and others) are pasting ever increasingly wide blocks of text into [ code ] blocks.

As a mark of respect to those who you expect to help you, please try to sensibly pre wrap the text of your code blocks to some reasonable maximum width.

Please make use of the Preview Post button, if it grows a horizontal scrollbar, edit it!

Thanks in anticipation
IanB

CWR03
16th November 2005, 07:52
You could always set your screen resolution to 15360 x 11520...

Any tips on a quick way to pre wrap rather than placing a Return at each point it would create a scrollbar? I've seen a few really bad ones.

IanB
16th November 2005, 08:48
I tend to prefer 20480 x 15360 for the really recalcitant posts :p

Usually a code block contains code and it would be kind of nice to keep it syntacticly correct so good wrapping does require some intelligent decision by ones good self. Better 1 single author of a message spend 2 extra minutes pre wrapping their text than every single reader doing it for multiple offending posts. The default width of the form compose box is not a bad guide for wrapping.

Many decent editors have very good semi-intelligent wrapping technology geared towards the language currently being written. E.g. VIM set textwidth or wrapmargin appropriatly, select a block of text (v, V or ^V) and type "gq". I've been told EMACs has even more powerfull constructs.

Mug Funky
16th November 2005, 09:37
i find if you're scrolling horizontally while writing the script it's a good sign it needs wrapping...

usually the backslash does pretty well. it can also greatly help readibility, especially in those long "interleave()" parts (like interleaving 5 mocomped clips and smoothing them together with some threshold).

something like:

interleave(c.blablabhlabhalbh(blah=blah,blah2=blahblah),
\c.blablahgogogopowerrangers(fgsfds=true),
\c,
\c.yougettheideabynow(duh=false),
\c.zOMG(lol=true))

temporalsoften(2,8,8)
selectevery(5,3)

is fine...