Stuff with the Perl Foundation. A couple of patches in the Perl core. A few CPAN modules. That about sums it up.
I'll try to present this somewhat neutrally. There's a long-standing argument about business rules and databases and in my quest to get this written before breakfast, I'm going to oversimplify like mad. Don't shoot me.
Business logic in the application:
Business logic in the database:
So my informal, useless survey is basically this:
Other thoughts, comments welcome.
survey response (Score:1)
Never.
2. How often have you had completely separate apps writing to the same data store (using completely different code bases)?
A couple of times. Putting the logic in the database generally also simplifies data retrieval and storage in the app layer.
3. Do you depend on non-portable database features?
Absolutely.
4. Have you experienced programmers damaging your data because the logic wasn't in the da
Real world? (Score:1)
So, I my responses:
1) porting: nearly never (almost 100% mysql)
2) multiple apps: on at least two occasions
3) db features: not often
4) damag
Response (Score:1)
Once.
I would say 50% of the time (but I'm a Middleware Engineer and not a web programmer).
Quite frequently.
Actually... not that I c
Replies and nits (Score:2)
You have to be careful whenever you use the word "all" or "always" when it comes to computing.
:-)Generally, the business logic that belongs in the database is usually "data rules", like "an order must have a customer", "a customer must have a name". Business logic that doesn't belong in the database are things like process flow logic. Generally.
Now on to your questions:
A few times: Informix to Sybase, pro
Database Usage (Score:2)
1. How often have you ported an app from one database engine to another (e.g., MySQL to Oracle)?
One migration, from RDB to Oracle, but only because Oracle bought RDB, and that was the only path forward. (Come to think of it, that may have just been a re-branded version of RDB, so there was no real migration to speak of.)
Lots of work with custom data storage solutions (as in, write your own database engine), typically because there was an expectatio
Databases and Data Logic (Score:1)
Short answer -- If you have DBAs who earn their big bucks, do it their way. If not, ask why not; and do it so that your next project will be easier. Data logc belongs in the DB. Logic specific to a specific use of the data belongs in the specific application.
Stored procedures and triggers are typically hidden. DB Neutral
Bill
# I had a sig when sigs were cool
use Sig;
Survey Response (Score:1)
How often have you ported an app from one database engine to another (e.g., MySQL to Oracle)?
3 times from MySQL to PostgreSQL, but they were all small DBs. A couple times from Access to MS SQL but I'm not sure how much that counts.
I've never done this when there was more than app using the DB.
How often have you had completely separate apps writing to the same data store (using completely different code bases)?
Many, many times.
Do you depend on non-portable database features?
Always -
survey response (Score:1)
Response. (Score:1)
Once in 8 years.
About a dozen (still maintained) projects.
It depends. Beyond default values, not nulls, primary keys, foreign keys, autoincrement and constraints (cascade delete...) I generally don't encode
"It's trivial to inspect and change." is a biggie (Score:1)
Re: Informal Survey on Databases (Score:1)
A fair number of times. Must be a dozen or so in the last 10 years. Once already this year and it's only February - and this was the second time that this particular application had it's database changed from underneath it.
A significant minority of applications.
Answers ... (Score:2)
2. Whenever I have seperate applications writing to the database, they're pretty much always just seperate wrappers around a library - eg, a GUI front-end and a command-line front-end.
3. I try not to use DB-specific features, at least in low-end databases like SQLite and MySQL, on the (alm