There is a problem with static variables and functions in how it is used by apps and frameworks in PHP , they are used as global functions or parameters while this is by far what they mean. It is easy to write the same functional or even procedural code in PHP using static variables dressed up as OOP. I have nothing against functional programming or even procedural (my work for some years was turning Cobol into Java , and I have seen real diamonds in the way they done it (along of course of rubbish) ) . There is no …

Member Avatar
Member Avatar
+0 forum 10

As a beginner at programming, I have been programming with OO languages for 3 years and I can not really imaging programming in a non OO environment so I have a few questions: 1. Is there any advantage using procedural than oo? 2. What kind of programmes do you write with procedural languages that do not require objects? 3. What can procedual languages do for us that OO languages cannot?

Member Avatar
Member Avatar
+0 forum 4

please tell me in how many ways OBJECT ORIENTED PROGRAMMING is different from procedural programming in JAVA

Member Avatar
Member Avatar
+0 forum 6

hi all i am making a tabbed notepad and i have added RichTextBox At runtime.now i want to add it's sub procedural but i don't know how to add sub procedural at run time. i want to addd sub procedural with handle textchanged event. i had added follwig code for sub procedural but it's shows me error. my rutime richtexbox name is Nrt(10000). Private Sub Nrt_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) handles Nrt.TextChanged .... ....logic code.... ... End Sub **pls help me how to add sub procedural with handle textchanged **

Member Avatar
Member Avatar
+0 forum 1

Hello, I'm researching on android game development, especially the SurfaceView method to make simple 2D game. I've learnt about SurfaceView and a gameloop to call the overridden onDraw() function. My question is, using a game loop that constantly update and draw, how can I perform some procedural task, such as 5 second-countdown before the real game begins. I understand that we can make this work by enabling countdown if (elapsedTime < 5000) like this, but I want to avoid game loop keep checking if the elapsed time is less than five seconds. Any suggestion?

Member Avatar
+0 forum 0

Hi, I've been reading into testing my PHP code particularly unit testing using PHPUnit. The problem I have is that most of my code is procedural with not even many functions. I have read that unit testing is more suitable for OO PHP however i have seen that many people say it can be used to test procedural. However, the examples i have seen of this have not been with code similar to mine. I was wondering if anyone could demonstrate with some of my code how i would unit test parts of it. I have included my file that …

Member Avatar
Member Avatar
+0 forum 4

Hey, I am a programmer in PHP Procedural and have just applied for a new job to further my career as a PHP Programmer, however they said it's advised to learn PHP OOP... so I have been watching some tutorials about PHP OOP and it just looks like OOP is making procedural code 10x longer for no reason..... Whats the point in learning OOP when it does nothing that procedural programming doesn't do it seems? It just seems like your wrap a load of functions in a class why not just have functions...... Anyone shed some light on this? Dan

Member Avatar
Member Avatar
+0 forum 3

Hi! I have a question regarding a problem I've faced dealing with object oriented PHP. I'm used to always return a value after a method has been executed and then use the returned value in other methods. But that's because I've always done that in procedural programming. So I wonder if it's normal practice to instead use the properties of the class and use [B]$this[/B] to retrieve those values in the different methods instead of passing them as parameters? What is best and how should I do? code example. This: [CODE] class example { function __construct($param){ $result = $this->foo($param); $result2 …

Member Avatar
Member Avatar
+0 forum 2

I have recently started learning Object oriented programming and design. I had made a small program using the procedural design to move a block after selecting it in XNA. I then tried to make the same program with an Object centered Design, but I am not able to make it work. The block is to change color when clicked but isn't in the OO version and I am not able to figure out why :(( . I have uploaded both the solutions, I want the OOP version to works as the procedural one is working. i.e. Change color when clicked …

Member Avatar
Member Avatar
+0 forum 2

The End.