Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

comment on

( [id://3333]=superdoc: print w/replies, xml ) Need Help??

If I would be hiring a programmer I would be most interested in his code. Not what cool sites/programs did he work on, what cool pages does he have to show but ... is his code readable? Does he handle errors carefully? Is the application multi-user safe? (Sure , you can't prove it is, but sometimes it's dead easy to see it is not.) If something breaks does the admin/developer get enough information to find and fix the problem?

Show me your code and I know who you are.

Jenda

P.S.: I've seen quite a few webbased applications that appeared to be working ... but only because the author ignored all errors and reported success even if the action blew up and because we were lucky and the race condition did not happen just as we were looking.

A great example was the project I'm spending most of my time now when we got it to fix and extend. Stored procedures did not care whether their commands succeeded, middle tier ignored errors comming from the database, ASPs ignored errors from the middle tier, most variable names were just one letter, ...

And the multiuser safety? Well ... there was a table with an Identity field (MS SQL, autogenerated ID), instead of inserting the row and getting the generated ID they

  1. connected to the DB
  2. fetched the max(ID)
  3. disconnected
  4. incremented it (in the ASP!)
  5. did some unrelated stuff to increase the likelihood of problems
  6. connected to the DB
  7. tried to forcefully insert the new row with this ID (using SET IDENTITY_INSERT ON)
  8. disconnected
  9. ignored the result of the action and reported success

I could not kill them ... they were too far.


In reply to Re: Re: OT: Database Certificate == 'Good Career Move'? by Jenda
in thread OT: Database Certificate == 'Good Career Move'? by jerrygarciuh

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 learning in the Monastery: (5)
As of 2024-03-28 16:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found