Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris

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

by anneli (Pilgrim)
on Nov 04, 2011 at 23:43 UTC ( #936050=note: print w/replies, xml ) Need Help??

in reply to Re^4: Sensible ordering of 'use' (if any)
in thread Sensible ordering of 'use' (if any)

Are comments "locale-specific text"?

The reality is, this code will only be used by me, or my friends (with whom I share a language), and so I don't mind putting my logging messages in my (our) preferred language. Furthermore, the code itself does some natural language processing, again not in English, so it's stupid to have the source in ASCII when I'm making remarks in logs elsewhere about particular codepoints but omit the codepoints themselves to keep it ASCII?

I'm not going to go to the effort of making a resource file just so I can put my debugging messages in there (half of which get removed after I'm done working on a feature, mind you, but without use utf8 I still couldn't put them in even temporarily), then put in the effort to translate them into pure-ASCII English (so transliteration is often not viable) for the code.

Putting non-ASCII characters in your code is a bug.

No, it's not.

Therefore 'use utf8' is a bug.

It isn't.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://936050]
[davido]: I am not finding closing STDIN to be an adequate means of making getlogin return undef.
[Corion]: Maybe doing a double-fork (daemonizing) can make go that information away, but maybe not
[Corion]: But I think my knowledge of unix/Linux datastructures is several decades out of date, so I don't really know what information it keeps on processes
[oiskuu]: The useful bits that relate to your process can be found under /proc/self. What information are you thinking of? Tty name?
[tye]: I just daemonized and getlogin() still knew who I had been.

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (8)
As of 2017-06-23 19:32 GMT
Find Nodes?
    Voting Booth?
    How many monitors do you use while coding?

    Results (554 votes). Check out past polls.