|
Without telling me to buy a book, would anyone be interested in answering the following question?
if i am in a namespace with a class named foo. and i wanted to build another class called bar. how would i proceed to make foo, aware of bar and vice versa...
Started by Mike G on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
*/ function test() { $x = new \MyProject\Bar(); } } ?>
If the... .
*/ } namespace AnotherProject; class Foo{ /* ...
No book, but see the namespace documentation
If your classes are in different namespaces:
<?php namespace MyProject; class Bar { /* .. .
|
|
Hi,
I have some software that is heavily dependent on MySQL, and is written in python without any class definitions. For performance reasons, and because the database is really just being used to store and retrieve large amounts of data, I'd like to convert...
Started by Ben on
, 9 posts
by 9 people.
Answer Snippets (Read the full thread at stackoverflow):
In-memory collection, whatever) and the basic Fruit class will be completely unaffected..
|
|
Is there a way to write OO-like code in the C programming language?
See also:
http://stackoverflow.com/questions/351733/can-you-write-object-oriented-code-in-c http://stackoverflow.com/questions/415452/object-orientation-in-c Found by searching on "[c...
Started by mixedpickles on
, 10 posts
by 10 people.
Answer Snippets (Read the full thread at stackoverflow):
I) { (this->SomeFunction)(this, i); }
The file functions fopen, fclose, fread are examples of OO code.
|
Ask your Facebook Friends
|
I'm a PHPer, and am not writing object-oriented code.
What are the advantages of OO over procedural code, and where can I learn how to apply these ideas to PHP?
Started by Rich Bradshaw on
, 21 posts
by 21 people.
Answer Snippets (Read the full thread at stackoverflow):
Then, i learned OO, and the code....
Always.
To make good use of it, you also need to follow sound OO design practices.
Essentially, he takes non-OOP programming techniques, and analyses their basic functions.
Software Construction".
|
|
Possible Duplicate:
PURE JAVA and OOP…?
EDIT: Dupe of http://stackoverflow.com/questions/1346202/pure-java-and-oop-closed
Ruby is a pure OO Language,right? What about Java?
Answer Snippets (Read the full thread at stackoverflow):
If a "pure" OO language requires everything to be an object,....
If you want an example of a pure OO language, Smalltalk would be one.
Therefore Java is not as it has primitive types.
In a "pure" OO language, everything is an object.
|
|
Besides the general, "What is OO?" question, I want to understand how one transitions from a procedural-based programmer to someone who gets OO .
I'm anticipating the winning answer would contain thoughts on SOLID, as well as some practices/drills for...
Started by Brett Veenstra on
, 28 posts
by 26 people.
Answer Snippets (Read the full thread at stackoverflow):
I learned OO from lots of really boring it until I started to code OO ....
The pacing & reinforcement of this book really helped me to get a better handle on a lot of the abstract & organizational logic .
The purpose of OO completely.
|
|
I have used OO programming languages and techniques years ago (primarily on C++) but in the intervening time haven't done much with OO.
I'm starting to make a small utility in C#. I could simply program it all without using good OO practice, but it would...
Started by Adam Davis on
, 13 posts
by 13 people.
Answer Snippets (Read the full thread at stackoverflow):
It is in fact gravely
Then of course the programming techniques... .
Martin's Agile Principles, Patterns, and Practices in C# contains a lot of principles for good OO is a distinctive feature of OO programming and often seen as the "essence" of OOP.
|
|
Ignoring skilled people, libraries, and tools in both types of languages, are there good reasons to pick an OO language over a functional language? For what kind of projects?
Update: I ask this question because I have read so many good things about functional...
Started by StackUnderflow on
, 14 posts
by 14 people.
Answer Snippets (Read the full thread at stackoverflow):
The most obvious answer....
There are some languages that do a good job of blending the OO and functional paradigms (I believe F# and Scala are two that do this, to a certain extent, depending on your definition of "OO" and "functional").
|
|
I've noticed that the majority of enterprise web apps I've worked on over the past few years have seemingly mis-used the powers of oo.
That is, what once would have been perhaps 1000 lines of HTML and script, has often now morphed into 10,000 lines of...
Started by LuftMensch on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
Update 1: it is important to understand could apply oo, tdd, ddd, anything, and if the devs doesn't understand what they are doing as many design patterns and OO principles....
It gets equally awful on either case.
Or not to use oo design.
|
|
Months after my company has upgraded from 4.6c to ECC6.0, our team of programmers are still coding in the traditional 4.7c way. I'm eager to try out the new OO approach of ABAP, but much to my dismay most people here only emphasize on getting things done...
Started by SteD on
, 8 posts
by 8 people.
Answer Snippets (Read the full thread at stackoverflow):
Even if you do not want use OO programming, using ABAP Objects is still a good reason to convince yourself to move ....
Code Reuse Interfaces Taking advantage of these, there are many important reasons for using OO ABAP "whenever possible".
|