This really isn't a comment on whether one language is better then another, but how different languages are better for different tasks. Of course, it doesn't tend to focus on how many things are done with C that might by more easily accomplished in perl (or possibly vice versa, but I can't really think of any..?). Especially with something like the example given in the parent node, which smells a lot like 'homework' and lets me rant about something I always found irritating in the C class I took. Why do they always blood assign stupid text processing programs in C?! I could write the same program in like, 3 lines of perl code, but instead it takes me 400 lines of C (Granted, a large portion of it is from writing my own linked list.. but still) it was irritating, especially after having used perl for the last year or so before I took the class. It would be nice if language classes tried to focus on their strengths, rather then weaknesses.
-
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.
|