Thank you!

I just wanted to note that it is interesting how ZF2 can go from procedural
to OO, and back.  index.php uses procedural functions, before starting up
the main OO application, back to the possibility of calling procedural
scripts from within the object-oriented code.

For some reason it bugs me, as I typically have worked with OO code like
Java where everything is OO, or procedural-style code that called OO in C++,
but calling procedures from OO code seems like breaking object-orientedness. 

So in a sense the way I am thinking about code now is more like everything
really is procedural behind the scenes, and OO is a helpful wrapper over the
procedural code.  Calling procedural code from OO is much like back in the
days of computer science and like it has always been:  place instruction
pointer on block of code you want to execute, and execute it.  Then return
to the calling code, which can be an "object". 



--
View this message in context: 
http://zend-framework-community.634137.n4.nabble.com/Best-Practices-on-incorporating-non-OO-non-ZF2-code-into-ZF2-app-tp4661601p4661623.html
Sent from the Zend Framework mailing list archive at Nabble.com.

-- 
List: [email protected]
Info: http://framework.zend.com/archives
Unsubscribe: [email protected]


Reply via email to