classical way of program and oop program
I'm new to OOP technology.
I heard about 2 tier and 3 tier architectures (layers). I read some article about that.
but from that I couldn't understand why they do like that.
ok, now let see
If I want to update my records (It has 5 fields). they create three layers for that. If they want to add one or more field(s), they need to modify all the 3 layers.
In classical way we can easily do that.
(If we consider VB and VB.Net)
but one thing I could undedrstand in OOP, function is good (I mean class)
can you suggest any article about OOP programs against classical way of programs.
one thing I know, I couldn't really understand the concept of class in OOP
OOP is a powerfull technology.
I really want to change my classical way of writing programs. that's why I ask.
can you give a good article about this, I really apreciate that.
-thanks.
Re: classical way of program and oop program
2-tier is Client-Server. one of each.
3-tier has many clients going to one machine(a server, as well as the main client). It is the 2-tier client.
Access bogs with 5 users. With 3 tier, only one user hits the db.
Re: classical way of program and oop program
Quote:
Originally Posted by pragashan
I heard about 2 tier and 3 tier architectures (layers). I read some article about that.
but from that I couldn't understand why they do like that.
The reason why they do it is because it enables to encapsulate the desired functionality of each layer separately. And this way if you change anything in Data Tier, then it shouldn't affect the presentation tier.
Quote:
Originally Posted by pragashan
If I want to update my records (It has 5 fields). they create three layers for that. If they want to add one or more field(s), they need to modify all the 3 layers.
Well then this is wrong design.
Quote:
Originally Posted by pragashan
In classical way we can easily do that.
(If we consider VB and VB.Net)
but one thing I could undedrstand in OOP, function is good (I mean class)
can you suggest any article about OOP programs against classical way of programs.
one thing I know, I couldn't really understand the concept of class in OOP
OOP is a powerfull technology.
I really want to change my classical way of writing programs. that's why I ask.
can you give a good article about this, I really apreciate that.
-thanks.
Class is nothing but a logical construct of an object. You define how your object behaves, what kind of properties it has in a class. More like an Employee class can have properties like Name, Age, Salary, Pension, Address, etc. And he can have methods like GiveSalary, Fire ;), Promote, etc. Now this class can represent 1000 employees of a particular company.
You can do a search here on CG to get more insight on OOP. I will try to get you some links here. Also try search on www.wikipedia.com, you can find lot of material there too.