GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   Procedural vs oop programming (https://gfy.com/showthread.php?t=1144490)

Klen 07-02-2014 09:52 AM

Procedural vs oop programming
 
Which one you use and why?

k0nr4d 07-02-2014 10:00 AM

Both but mostly procedural, because it's easier for clients to follow when they want to make minor changes themselves without actually knowing PHP.

Ferus 07-02-2014 10:09 AM

95% oop for C#

Klen 07-02-2014 10:11 AM

Quote:

Originally Posted by Ferus (Post 20144983)
95% oop for C#

I am quite sure how oop is only way to do it in c#,unless dude which was holding a class about it was deliberately showing only oop way

editeur 07-02-2014 10:12 AM

I write in Erlang and use functional one.
There's not much difference between OOP and procedure, both are imperative and both work with mutable data.

Ferus 07-02-2014 10:22 AM

Quote:

Originally Posted by KlenTelaris (Post 20144985)
I am quite sure how oop is only way to do it in c#,unless dude which was holding a class about it was deliberately showing only oop way

You can write C# without using the OOP thought or design.

A language in itself is not OOP, its how you use it. A "modelling approach" so to speak

Ferus 07-02-2014 10:24 AM

Quote:

Originally Posted by editeur (Post 20144986)
I write in Erlang ....

Phone hacker? 2600?

Klen 07-02-2014 11:26 AM

Quote:

Originally Posted by Ferus (Post 20145004)
You can write C# without using the OOP thought or design.

A language in itself is not OOP, its how you use it. A "modelling approach" so to speak

Good to know that.

symtab 07-02-2014 11:32 AM

I prefer oop (easier to maintain, easier to extend) in PHP. I however dont like the new style with namespaces and where evertyhing is a object (its really slow compared to classic oop/procedural).

michael.kickass 07-02-2014 01:19 PM

It depends on the problem but clearly oop is the common choice.

CurrentlySober 07-02-2014 01:49 PM

I prefer poop programming over Procedural...

Klen 07-03-2014 02:50 AM

Quote:

Originally Posted by michael.kickass (Post 20145284)
It depends on the problem but clearly oop is the common choice.

Yes it depend on problem and needs.Dont see point of using oop if you just want to print hello world.

Klen 07-03-2014 10:52 AM

Bump for more programmers

sarettah 07-03-2014 11:00 AM

I've done lots of oops programming.

Oops, forgot the semicolon. Oops, forgot the bracket. Oops, gonna need an admin panel for that, aren't we. Oops, sorry I wiped out the database, but it's a whole lot cleaner now, don't you think.

When I was in the military I was involved in one program where we went Oops, there goes the Chinese Embassy.

I've been doing exclusively Oops programming since I started in on this shit and that is a long, long time ago. Figure I'll probably be doing Oops programming till the day I die.

;p

.

ianlester 07-03-2014 11:29 AM

It depends on the size of the project imo.

If it's really small then procedural makes a lot of sense. It's quicker to code in most cases & as k0nr4d said easier for non-programmers to edit.

However, as the scope & size of the project increases, you will find OOP to be much more efficient. Especially when you have multiple programmers working on the same code base.


All times are GMT -7. The time now is 07:48 PM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123