home | tags | Search | Feed
Tag >> Object Oriented Programming
|
|
Posted by: orjan in Programming, Object Oriented Programming, Design Patterns on
Nov 09, 2008
Just giving a few thaugts on this subject, sitting up and can't sleep, 3:37am...
To start with, I mainly code PHP, just to let you get a feeling on what I'm talking about in some ways.
I know the basics in OOP, that's not a problem. I've written a few classes here and there, when I have found it useful. The problem I have is that in most cases, I find the OOP less useful than procedural programming
|
|
|
Posted by: Jordan in Object Oriented Programming on
Oct 05, 2008
I was reading an OOP design pattern book and it mentioned creating Tramp Variables. This was the first time I'd heard this particular term used to describe a function variable and it actually made me laugh. I did a search on google for "Tramp Variable" and couldn't find anything relating to what I'm fixing to write so this term must be relatively new, extremely old (and unused), or something
|
|
|
Posted by: Jordan in Programming, PHP, Object Oriented Programming on
Aug 14, 2008
The PHP reflection API allows you to view metadata and comments in your PHP scripts which allow you to create highly expandable PHP scripts. It may seem trivial, the ability to look at your own source code from your script but the set of classes and methods provided by this API give you the ability to create easy plugin features, invoke code pragmatically and create instances of code.
Imagine you
|
|
|
Posted by: WingedPanther in Object Oriented Programming, GUI, Cpp on
Aug 14, 2008
Not much to say, since I've been reading function definitions, etc. Pretty boring stuff. Getting anything to Link, however, has been an adventure.
GCC has a few interesting "quirks": first, it doesn't automatically locate compiled objects in the search path. Second, it doesn't automatically handle linking of dependent object files in the correct order. The result is that you end up with
|
|
|
Posted by: John in Programming, PHP, Object Oriented Programming, Design Patterns on
Jul 16, 2008
One of the many annoyances of programming is a variables scope. Generally variables can be declared within the global namespace or the local namespace. When working with methods and classes global variables appear to be a good idea, however overuse of the global namespace can cause variables to clash, it also undermines encapsulation. Moreover, a class which depends on a global variable is
|