Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

comment on

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

ORMs require a lot of investment, so do databases. There are contrarian opinions that say use neither. I'm not sure I could/would abandon SQL, definitely not for unstructured databases like Mongo or whatever else. I think that would be worse because you never really know what you are going to get from a query. Adding columns or whatever they're called without SQL seems like a real joy when some rows have it and some don't. I'm also not about to put the data in some long list of files, don't see that working out, trying to make an API correct without SQL. As the requirements change over time, yuck. BUT I think worth reading about anyways.

Uncle Bob's (Author of Code Complete) NODB

Seems like you would want to instantiate your objects with the data from the database (or wherever), so you can make those objects explode correctly if that data can't be reached. Probably already obvious. ORMs are great for the simple cases, but probably don't stay that way for long. Maybe other languages have great ORMs and I just haven't been exposed to them, but the top answer at SO for best Java ORM has "None" as preferred answer!! I mean, if your database accesses improve over time through the normal course of development, seems like you would lose a lot by not getting your hands dirty, trusting the ORM to get the best query for you. I've always grown frustrated trying to learn an ORM to do basic junk and given up. SQL only has 4 commands to learn. If you even count update since delete + insert.

https://stackoverflow.com/questions/452385/what-java-orm-do-you-prefer-and-why

Indexing a file by hand, very cool reading too. Takes the magic away from database indexes

Index a file with pack for fast access

Using indexing for faster lookup in large file


In reply to Re: Simple OO question... by trippledubs
in thread Simple OO question... by perlidiot123

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 drinking their drinks and smoking their pipes about the Monastery: (3)
As of 2024-03-28 15:44 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found