Omgili - forum search, search forums  
  

Discussions about long class

Displaying 1 - 10 out of 342,731 discussions.  
RSS Feed Options
Time Frame: (Any time)   Minimum number of replies: (2)   Minimum number of discussing users: (0)
  |  

Page: 1   2   3   4   5   6   7   8   9   10  
Keep this page open to be updated with the newest discussions automatically.
In PHP, is there any performance impact on using one long class with a lot of functions in it? Or is it advisable to use many small classes and call them separately when needed? I am a newbie in OOPS and please ignore any silliness in the question. Thanks...
Started by on , 6 posts by 6 people.  
A set ....
Very long classes with a lot of methods and properties are very difficult to understand.
Can and should put things in the same class as long they are directly related to the logicFirst, think about clean OOP design.
Let me explain, this is about displaying class source code in IDEs. I have always only one class per file. A class is declared like this in the file mod1.js: MYGLOB.MOD1.ClassXy = function () { //constructor, do somothing } MYGLOB.MOD1.ClassXy.prototype...
Started by on , 3 posts by 3 people.  
Utility functions The pattern also provides a nice way of having utility functions (or class-wide data) used by the class without having to make them public at all -- not on the constructor function in `memberfunc1` utility.call(this, '....
When is a function too long? is a subset of this question, I think. What are a few good metrics for determining that a class is too long? I'm rerevising a set of code acceptance guidelines for a project with external contractors, and realized I haven'...
Started by on , 7 posts by 7 people.  
We count responsibilities." [Chapter 10, page 136] One class should have unit of your design (a type or a class) should be responsible for only one thing (whatever "one in use, I would consider the scope of responsibility....
Use a different measure.
Ask your Facebook Friends
Hi, I have two geo-spatial simple convex polygon areas, in latitudes and longitudes (decimal degrees) that I want to compute using Javas Polygon class. I basically want to see if these two lat,long polygons intersect, and to calculate the areas (in sq...
Started by on , 4 posts by 4 people.  
The steps involved would be converting the lat/long into absolute x/y/z, they say The Polygon class encapsulates a description of a closed, two-dimensional region within, as long as you view Polygon as....
Treat them as flat polygons.
Example: class Vendor_ClassName_Helper { CONST FIRST_OPTION = 1; CONST SECOND_OPTION = 2; public function __construct($option, $otherArgument) { } } client code: $obj = new Vendor_ClassName_Helper(Vendor_ClassName_Helper::FIRST_OPTION, $var); Any good...
Started by on , 5 posts by 5 people.  
For example, class Example { private function __construct() { } public static method createA shorter name for class or constant's ....
I avoid long lines and improve readability in most languages by breaking up the parameters-keyword.
I have a (for me) complex object with about 20 data member, many of which are pointer to other classes. So for the constructor, I have a big long, complex initialization list. The class also has a dozen different constructors, reflecting the various ways...
Started by on , 11 posts by 11 people.  
Example: class Object { public: Object(const (I don't recommended if this class owns the data member object), you can have a private method doing: class Object { Object (const....
Their common code in a private init() member function.
When you need to have very small objects, say that contains 2 float property, and you will have millions of them that aren't gonna be "destroyed" right away, are structs a better choice or classes? Like in xna as a library, there are point3s, etc as structs...
Started by on , 7 posts by 7 people.  
One not that clear how, if at ....
If you have that many of them they're likely part of a class instance (on the heap valueS" implies their storage on the heap somewhere, probably an array field of a class instance.
It's that big of a deal.
I've got a bunch of functions that I want to move into a class. They're currently split into a couple of fairly long files. I'd prefer not to have one 2500 line file, but as far as I can tell, you can't use include to split a class up into multiple files...
Started by on , 7 posts by 7 people.  
class Page { function buildPage($content) { ....
Also, I tend to make the $this variables in the Page class, but still group it into another class.
HTML class for maintaining my sanity and not creating gigantic classes.
Some friends and colleagues of mine have a little running contest to find or write the longest class/variable/property/method names possible. Keep in mind, we try to be good boys and girls and keep the naming intelligible and concise, while still explaining...
Started by on , 11 posts by 11 people.  
A couple of examples from the NSString class: NSString.completePathInfoString:caseSensitive world: SetProcessWorkingSetSize I find it's ....
Very descriptive, but sometimes miles long.
They're kings at that.
Check out Apple's documentation.
I have a method that processes thousands of items and it takes a long time. What is the "right" way to have the method that is doing the long operation report back its progress as it does this? For example, if I wanted to have a progress bar in my UI ...
Started by on , 4 posts by 4 people.  
Background worker class and passing messages using progress events from a different class in c# In this particular case I would be inclined to create a custom event and fire it from the long running is always updated in the main....
Page: 1   2   3   4   5   6   7   8   9   10  
Related Searches
bob long s class trigger    breakdance classes long island   
More Information


Forum Search About Omgili Help Plugins Forum/Board Owners Privacy

i
In Title
In Topic
In Reply
Exclude
Boost