on 08-10-2011 8:54 PM
Hi masters
I have to maintain an application developed by another consultant. He put all the business logic, all the methods etc inside de component controller instead of create cust controllers, is it a problem ?
Hi,
It depends on How complex the Business logic. sometimes for small applications you can continue using Comp Contr but according to best practices it is always good to put Business Logic in Custom controllers.
Generally, its good to follow MVC paradigm, in that if Business Logic is complex we need to modularize Controller logic into many controllers so as to make a single controller less heavy.
Regards
Tushar
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
which best practice says that?
following is from JA310 training material.
>Before implementing a custom controller, consider carefully whether its presence will simplify or
>complicate the overall architecture of your application. Custom controllers should only be added in
>situations that will optimize or simplify the architecture of your application.
Custom controllers are to be used in special cases only such as when your application is huge and you want to modularize it. For example, creation of Order to Cash (Sales Order Creation) process. Now you may want to keep interface with Finance, interface for Purchase Order, Trucking/ Shipping etc seperate from each other.
Now, in such cases you may want to use seperate custom controllers handling seperate business logic/ flow.
Custom controllers are provided just to make your project more manageable.
Regards
Vineet
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
i think it is quite ok,
creation of additional custom controller is problem.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.