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

Re^2: encoding question

by Krambambuli (Deacon)
on May 20, 2010 at 08:56 UTC ( #840875=note: print w/ replies, xml ) Need Help??

in reply to Re: encoding question
in thread encoding question

I don't really like that, sorry.

If someone else will have to look on the code, (and just let's suppose you'll have more such characters following each other in the source,... ), 'reading' what's supposed to be there will be a chore.

Instead, I'd emphasize in comments how the source code should be viewed _and_ what exactly should be seen.

Your solution makes it easier for the machines, but harder for humans.

I like it much more the other way round.


Comment on Re^2: encoding question
Replies are listed 'Best First'.
Re^3: encoding question
by moritz (Cardinal) on May 20, 2010 at 09:00 UTC
    Instead, I'd emphasize in comments how the source code should be viewed

    Two forms of such "comments" can actually be readable by programs:

    # for perl: use utf8; # at the end, for my favourite editor: # vim: fileencoding=utf-8
    Perl 6 - links to (nearly) everything that is Perl 6.
Re^3: encoding question
by JavaFan (Canon) on May 20, 2010 at 13:38 UTC
    Your solution makes it easier for the machines
    But you aren't getting the correct results. And since there's an additional cut-and-paste step involved, it's hard to debug from a website how your source is encoded.

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (6)
As of 2016-02-11 07:16 GMT
Find Nodes?
    Voting Booth?

    How many photographs, souvenirs, artworks, trophies or other decorative objects are displayed in your home?

    Results (362 votes), past polls