I feel that if the problem fits into the idiom of the language forget the problem space.
Languages are made with a particular application in mind, so it seems foolish to disregard this.
Doing so often means being counterintuitive in solving a problem, approaching the problem from the
point of the language. Which can often gives positive results and gives you a better insight into the system
that aping the existing system won't yield.
I am all for abstraction where it is practical, I baulk at "This frees you from the petty detail of the underlying -programming- language".
I don't want to be freed from this very fundamental thing, I choose to code in a language that lends
itself to the problem, be it Perl, Bash, C, Java, Javascript, VB or XML. Right Tools for the right Job etc. These days there is a blur as most languages are striving for complete coverage of applications.
splitStringByChar isn't that @foo=split//,$bar or a kingdom of alternatives to be used discerningly in situ?
--
Brother Frankus.
¤
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: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.