Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

comment on

( [id://3333]=superdoc: print w/replies, xml ) Need Help??
I am also accumulating a list of things I would prefer not to see in productive code. I'll most certainly never use these myself.
Knowing what keeps people from learning Perl 6 is interesting to note, especially as I've submitted a TPF grant proposal to write a book to help people learn it. I'd like to process the points you list here, and see if we can reach a common ground.
Single quotes and minus signs in variable names.
Generally, I use double quotes for strings, unless there's a reason that those don't work well. Very few programmers want to care about which kind of quote to use per string, they'd rather just have a single go-to quoting character that works in almost every case. It's also very common to want to show something in your string that is not just static text, so double-quote string interpolation is often used. On the minus signs in variable names, I was unsure about this when I started with Perl 6 as well, because I was not used to it. I tried to avoid them in variables and sub names. But they're completely valid in Perl 6, and read pretty nice. They're also correctly handled in interpolated strings, which was my biggest worry. Once I realized they're not breaking anything I started using them more often than underscores, since a minus is easier to produce (no shift required) and they read nicer to me.
Letters with diacritics in variable names.
These I still avoid, since they're hard to produce for many people. Generally, I write my code in an English mindset, so words with diacritics aren't a common sight anyway.
Literals like ½ for numbers. Unicode operators which I don't see on my keyboard.
I'm gonna take these two together as they are the same issue as far as I'm concerned. Fancy Unicode characters that people don't have as a generic key on their keyboard. I actually do not avoid these. I'm using vim as my editor, which has a plugin to convert Texas ops to Unicode ops on-the-fly. I wonder if CommaIDE does the same. If it doesn't, it should. You note yourself that it's explicitly about Unicode operators you don't see on your keyboard. Would you oppose these operators still if there was a clean solution to create these operators that worked for you? Like your editor automatically converting them for you, or a certain script that you could run over your source files that would convert them automatically (which could be hooked into another process).
Quoting functions with three or more letters. qqw qww qqww.
I think many of these "large quoting constructs" are confusing, especially to people new to the language. I personally avoid them.

In reply to Re^2: Why should any one use/learn Perl 6? by tyil
in thread Why should any one use/learn Perl 6? by skooma

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



  • Are you posting in the right place? Check out Where do I post X? to know for sure.
  • Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
    <code> <a> <b> <big> <blockquote> <br /> <dd> <dl> <dt> <em> <font> <h1> <h2> <h3> <h4> <h5> <h6> <hr /> <i> <li> <nbsp> <ol> <p> <small> <strike> <strong> <sub> <sup> <table> <td> <th> <tr> <tt> <u> <ul>
  • Snippets of code should be wrapped in <code> tags not <pre> tags. In fact, <pre> tags should generally be avoided. If they must be used, extreme care should be taken to ensure that their contents do not have long lines (<70 chars), in order to prevent horizontal scrolling (and possible janitor intervention).
  • Want more info? How to link or How to display code and escape characters are good places to start.
Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others having a coffee break in the Monastery: (4)
As of 2024-04-18 01:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found