Link Details

Link 110824 thumbnail
User 111696 avatar

By bloid
via blog.tmorris.net
Published: Sep 05 2008 / 15:21

Write a parser that accepts command line arguments. For each command line argument, print out true or false, depending on whether or not that value parses.
  • 14
  • 2
  • 1461
  • 395

Comments

Add your comment
User 181090 avatar

hchaudh1 replied ago:

2 votes Vote down Vote up Reply

I understand the need for concise code and all, but what is the point of these examples?
Can we have another post that says something like:
"
Write code that accepts a String, converts it into an Excel document and a PDF document, does some type of validation, stores the files to a DB and exposes the 2 files to be available for download over a web service.
"
Concise code is cool and all, but don't libraries, maintainability, best practices (design patterns) etc. count for anything?

User 329505 avatar

masteromd.blogspot.com replied ago:

0 votes Vote down Vote up Reply

You're plain right!

User 179375 avatar

Ricky Clarkson replied ago:

0 votes Vote down Vote up Reply

If you'd actually read to the bottom you'd discover that it's more about composable code.

Add your comment


Html tags not supported. Reply is editable for 5 minutes. Use [code lang="java|ruby|sql|css|xml"][/code] to post code snippets.