I've often wondered about this. What, precisely, "turns off" someone about having shorthand notation for things?

There are a lot of things businesses and people in general look at when trying to figure out what language to program things in. One of the major concerns is whether or not code can be maintained. Part of this is readability. Readability can go down dramatically if you're trying to understand the code of someone who likes to use "slick tricks"

A good example of this is "magical" functions and variables, i.e. $_, @_, split, print, tr///, s///, //, etc.... Sometimes it makes a lot of sense to use the shorthand form (i.e. shift; instead of my $foo = shift (@_);) Other times it makes code confusing and errors hard to catch.

This is not to say that languages that support terseness are bad (it's mostly the way people use "contractions", as you called them). But because with some languages such terseness is not possible, obfusication becomes hard, and the readibility goes up. The silly thing about all of this is if coding standards were implemented so that readable code was created, languages where terseness was possible would be used more (IMHO). But that's some people for you -- instead of allowing coders bend and break the rules when it is good to do so, all rule bending/breaking is verboten. Go figure.


In reply to Re: Re: Re: Re: OT: JavaJunkies (Javamonks sorta) by Vautrin
in thread OT: JavaJunkies (Javamonks sorta) by coreolyn

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.