Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: Ninja style coding... is it bad?

by ccn (Vicar)
on Sep 03, 2004 at 23:04 UTC ( #388444=note: print w/ replies, xml ) Need Help??


in reply to Ninja style coding... is it bad?

As an extreme example imagine that other author is you a year ago. Now you looking at your old code and what?.. I think "Ninja coding" is bad in that case. On the othe hand it can be a good thing if another's code is good but different (e.g. Abigail's style of '=>')


Comment on Re: Ninja style coding... is it bad?
Re^2: Ninja style coding... is it bad?
by Aristotle (Chancellor) on Sep 03, 2004 at 23:20 UTC

    Depends. Not everyone is fond of Abigail's style either — it's quirky and occasionally fun, but it's not gospel just because of who he is. On numerous occasions, tye has bemoaned the fact that we can't make the fat comma DWIM better than it already does because people do all kinds of quirky stuff with it; I like his argument.

    Other aspects of a coding style are largely a matter of personal preference. I have my reasons for the style I chose for myself, but it's suited to the way my perception and cognition work, and I doubt anyone would agree with all of my choices. The important part, in that case, is to achieve consensus among all parties and then be consistent with it.

    Tools like PerlTidy are also helpful to keep negotiations to a minimum, as the code can be re-styled to meet the official style guide or any individual's tastes on the fly. This allows people to have their cakes and eat them too they can disagree and still cooperate without having to negotiate a compromise.

    Makeshifts last the longest.

Re^2: Ninja style coding... is it bad?
by Anonymous Monk on Sep 06, 2004 at 15:12 UTC
    I don't think that's a relevant example. The essential difference is that you, a year ago, will never come back, and will not edit the code anymore. The other author however, may.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://388444]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (6)
As of 2014-08-21 00:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (126 votes), past polls