Beefy Boxes and Bandwidth Generously Provided by pair Networks vroom
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: Sensible ordering of 'use' (if any)

by GrandFather (Cardinal)
on Nov 01, 2011 at 09:47 UTC ( #935076=note: print w/ replies, xml ) Need Help??


in reply to Sensible ordering of 'use' (if any)

You could group by "association" then sort within groups. I tend to separate groups by a blank line in such a case.

True laziness is hard work


Comment on Re: Sensible ordering of 'use' (if any)
Re^2: Sensible ordering of 'use' (if any)
by DrHyde (Prior) on Nov 01, 2011 at 10:55 UTC
    use strict and warnings first. 'use utf8' is a bug. The rest doesn't matter.

      use utf8 is a bug? These source files happen to contain a lot of non-ASCII, but maybe I'm misunderstanding you...

        Putting non-ASCII characters in your code is a bug. Therefore 'use utf8' is a bug. Any locale-specific text should be in separate resource files, so that:

        • non-programmers can more easily edit them to, eg, correct your mis-spellings in other languages;
        • programmers are not restricted to using utf-8-capable devices for fixing bugs in an emergency

        I now predict that the usual crowd of idiots will crawl out of the woodwork and say "but any modern machine will Just Work". I invite those people to buy and configure a new laptop for everyone who will have to maintain your code. Right now I'm typing on a machine whose OS was installed less than a year ago. It has problems with properly displaying Funny Foreign Characters.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (3)
As of 2014-04-20 20:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (487 votes), past polls