Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re^4: Choosing a Platform

by drago99 (Sexton)
on Jul 27, 2004 at 16:00 UTC ( [id://377773]=note: print w/replies, xml ) Need Help??


in reply to Re^3: Choosing a Platform
in thread Choosing a Platform

While this is indeed the most measurable decision you can make, it is hardly the most important.

I agree, to a point.
We took a task-by-task look at how much code (and therefore how much time) it takes to do 10 common tasks in Java, .NET and Perl.

  1. Regex search-n-replace.
  2. Read in a file, line by line, storing only the lines that match a regex.
  3. Open a recordset and iterate through it.
  4. Make an HTTP request.
  5. Perform XSLT transformations on XML.
  6. Iterate through a hash or other deeply-nested data structure.
  7. Sort an array or hash, by keys or values, with your own sorting algorithm.
  8. Append variables and static strings.
  9. Run another program and collect its STDOUT.
  10. Execute part of your program within another thread, or fork off a separate process.

When writing a web-based application, these are arguably some of the most common tasks. If each one only takes 1-2 lines of code, or if each one takes 5-10 or 15-20 lines of code, it can make a serious difference in the amount of time it takes to write, and the amount of code you have to maintain.

Bugs are more easily identified in less code. That's a pretty important factor to take into account, IMHO.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others perusing the Monastery: (7)
As of 2024-03-28 22:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found