ATAR Notes: Forum

VCE Stuff => VCE Technology => VCE Mathematics/Science/Technology => VCE Subjects + Help => VCE Computing: Software Development => Topic started by: MJRomeo81 on September 15, 2012, 01:56:26 am

Title: Object Oriented VS Procedural approach
Post by: MJRomeo81 on September 15, 2012, 01:56:26 am
I figured I would start a general thread discussing programming paradigms. While this isn't part of the VCAA course, I was wondering what the general consensus on this board seems to be. Has anyone coded with OO principles before?
Title: Re: Object Oriented VS Procedural approach
Post by: Lasercookie on September 20, 2012, 10:02:27 pm
I've played around with it a bit before, but didn't venture too far into it (didn't get my head completely around concepts like inheritance, polymorphism etc. ) I think a lot of it went over my head, but it made a bit of sense when I tried coding a bit in it.

I think I indirectly dealt with it using Tkx for GUIs in Perl for ITSD. Widgets are objects etc. There's "object descriptions" listed as a design tool in the VCAA glossary. I assume the same for VB.Net. I know Python is fairly similar in that regard too.

For Perl at least, I didn't really go into the real concepts and approach you take for OO though (I guess the handy thing about most languages being multi-paradigm).
Title: Re: Object Oriented VS Procedural approach
Post by: paulsterio on September 20, 2012, 10:15:20 pm
Although I've never really programmed a project big enough for object-oriented concepts to be of use, I've implemented things like inheritance and polymorphism before, when I was learning about object-oriented programming.

My view is that the bigger your project, the more you'll benefit from object-oriented programming purely because it encourages planning and structure over writing heaps of code without thinking about how it all relates.
Title: Re: Object Oriented VS Procedural approach
Post by: Yendall on September 27, 2012, 11:36:14 am
I've played around with it a bit before, but didn't venture too far into it (didn't get my head completely around concepts like inheritance, polymorphism etc. ) I think a lot of it went over my head, but it made a bit of sense when I tried coding a bit in it.

I think I indirectly dealt with it using Tkx for GUIs in Perl for ITSD. Widgets are objects etc. There's "object descriptions" listed as a design tool in the VCAA glossary. I assume the same for VB.Net. I know Python is fairly similar in that regard too.

For Perl at least, I didn't really go into the real concepts and approach you take for OO though (I guess the handy thing about most languages being multi-paradigm).
VB.net is object-oriented.
Title: Re: Object Oriented VS Procedural approach
Post by: paulsterio on October 03, 2012, 09:58:49 am
Most modern languages are object oriented, but it's really up to the programmer whether to see their programming as object-oriented and whether they use object-oriented styles.
Title: Re: Object Oriented VS Procedural approach
Post by: Yendall on October 03, 2012, 02:36:18 pm
Most modern languages are object oriented, but it's really up to the programmer whether to see their programming as object-oriented and whether they use object-oriented styles.
Yeah this is true :)
What would be an example of an object-oriented style in VB?
Title: Re: Object Oriented VS Procedural approach
Post by: MJRomeo81 on October 03, 2012, 02:58:48 pm

To me, once you get your head around the concepts, the code looks a lot more cleaner particularly with inheritance (eliminating redundant code and extending the use of existing classes). Dealing with errors is a lot more pleasant too (exceptions to improve error handling - try/catch blocks).
Title: Re: Object Oriented VS Procedural approach
Post by: Yendall on October 03, 2012, 03:10:25 pm
I base all my programming around objects really. I'm not familiar with the stages of OOP though, I should probably research into that more.