Omnimaga: The Coders Of Tomorrow
Welcome, Guest. Please login or register.
 
Omnimaga: The Coders Of Tomorrow
20 June, 2013, 07:51:23 *
Welcome, Guest. Please login or register.

Login with username, password and session length
 
   home   news downloads projects tutorials misc forums rules new posts irc about Login Register  
+-OmnomIRC

You must Register, be logged in and have at least 40 posts to use this shout-box! If it still doesn't show up afterward, it might be that OmnomIRC is disabled for your group or under maintenance.

Note: You can also use an IRC client like mIRC, X-Chat or Mibbit to connect to an EFnet server and #omnimaga.

Pages: 1 [2]   Go Down
  Print  
Author Topic: The benefits of OOP -  (Read 943 times) Bookmark and Share
0 Members and 1 Guest are viewing this topic.
tloz128
LV6 Super Member (Next: 500)
******
Offline Offline

Gender: Male
Last Login: 03 October, 2011, 03:48:39
Date Registered: 19 March, 2010, 04:19:08
Location: Hyrule
Posts: 317


Total Post Ratings: +52

View Profile
« Reply #15 on: 24 June, 2011, 01:31:18 »
0

I'm not asking whether procedural programming or OOP is better, I'm asking what the benefits of OOP are over procedural programming. Procedural methods aren't perfect. For example, networking in most procedural languages is a PITA because of all the things you have to deal with. There are languages that make networking relatively easy though, like Java. I think tloz128 brought up a good point with the part about working with other programmers. It's much easier to just pass arguments than read the documentation for that routine.
Our robotics team wrote all of its code in C++, and we focused a lot on abstraction. It saved us hours of work and made quick modifications a breeze.
Logged

Naaa... Na Nah Na Nana Na Nah... Hey Jude!
Ashbad
Guest
« Reply #16 on: 24 June, 2011, 03:30:35 »
0

I'm not asking whether procedural programming or OOP is better, I'm asking what the benefits of OOP are over procedural programming. Procedural methods aren't perfect. For example, networking in most procedural languages is a PITA because of all the things you have to deal with. There are languages that make networking relatively easy though, like Java. I think tloz128 brought up a good point with the part about working with other programmers. It's much easier to just pass arguments than read the documentation for that routine.
Our robotics team wrote all of its code in C++, and we focused a lot on abstraction. It saved us hours of work and made quick modifications a breeze.

Same as our team, but we used Java.  It would be a lot harder to access certain things such as solenoids and their functions and modify their states, and even harder to fix on the fly.
Logged
Munchor
LV13 Extreme Addict (Next: 9001)
*************
Offline Offline

Gender: Male
Last Login: 13 June, 2013, 19:29:09
Date Registered: 16 October, 2010, 15:39:13
Location: Position
Posts: 6209


Total Post Ratings: +174

View Profile
« Reply #17 on: 24 June, 2011, 13:43:28 »
0

OOP has many advantages, it makes it easier to define and change objects during code. Let's say I am making a game with a spaceship and I have an object for the Spaceship (a class Spaceship). I just need to do SpaceShip.getDamageLevel(); to get the damage and see if the user lost. Of course all this has to be define first inside the class but it makes programming in larger projects much easier.
Logged
Pages: 1 [2]   Go Up
  Print  
 
Jump to:  

Powered by EzPortal
Powered by MySQL Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Powered by PHP
Page created in 0.195 seconds with 31 queries.
Skin by DJ Omnimaga edited from SMF default theme with the help of tr1p1ea.
All programs, games and songs avaliable on this website are property of their respective owners.
Best viewed in Opera, Firefox, Chrome and Safari with a resolution of 1024x768 or above.