Developing in APEX
I see 3 possible ways to develop in APEX.
- Packaged Code: PL/SQL - With this method you take, possibly, an existing application and "skin" it with APEX. Using APEX's built in Form based on a Procedure wizard, this is quick and painless. You spend most of your time just moving buttons around to suit your needs. Maybe I've been reading AskTom for too long, but that's the general approach I take.
- Declarative - Using all the built-in functionality of APEX which creates all kinds of objects (triggers for example) that will be managed by APEX. This is probably most geared towards the power users who don't yet have the ability to write a lot of PL/SQL but have a pretty good understanding of building an application.
- Hybrid - This approach mixes and matches the 2 previous approaches. You use packaged code for the bulk of your application and the declarative functionality within APEX for everything else. For example, the multi row INSERT/UPDATE/DELETE. I can write that whole thing out using TYPEs in PL/SQL, populate an APEX collection, convert that collection to a TYPE and then pass that TYPE back to PL/SQL...but do I want to? It saves a boat load of time to use the built-in features. Ultimately it depends, of course, on many different factors.
I think I will always prefer #1...like I said, I read AskTom for years, mostly for kicks.
Mr. Kyte on where to put data, in the DB or in the web tier:
They belong right next to the data - allows you flexible access to the data - you can build a new application WITHOUT reinventing all of that stuff.
where does the logic to display a bunch of numbers in a pie chart belong? In the application.
where does the logic to ensure that if X=0, then Y must be >= 0? That belongs right next to the data.
So, programming logic - some of it in the application - user interface code, user interaction code, error handling, display of data, report generation - in the application.
Much of it in the database - security, access control, data integrity.
I love APEX, but will it be around forever?
Labels: apex, design, development, oradb