Object-oriented programming is a programming paradigm using "objects": data structures consisting of data fields and methods together with their interactions.
3
votes
0answers
1k views
Performance issues using images with arbor.js
I've been working on adapting arbor.js to use images. However, being a relative js noob what I have is totally un-optimised. As far as I can tell, the way I've set it up is recreating the image object ...
2
votes
0answers
41 views
Sensor calibration design pattern
Lets say I have a few sensors. Most sensors provide 3 values like a Accelerometer.
public class GenericSensor {
double x, y, z;
}
public class Accelerometer extends GenericSensor {
double ...
2
votes
0answers
91 views
Passing data associated with a user object between views- PHP MVC
I am using a lightweight PHP MVC (homegrown--not by me--but based off of Codeigniter) to develop a web application. Currently, I only have one object--the User.
The web application allows each user ...
2
votes
0answers
68 views
Designing a communication system for a program that uses object aggregation
I'm making a Component Based Game Engine, and i try to separate data from logic as much as possible by using this design:
Engine
/ ...
2
votes
0answers
49 views
find all members of an instance in python, excluding __init__
the vars key word gives me all the variables in an instance, for example:
In [245]: vars(a)
Out[245]: {'propa': 0, 'propb': 1}
However, I am not aware of a single solution to list all callable ...
2
votes
0answers
77 views
How to use different behaviours in the same ViewModel?
I have the view designed for the long running tasks. It has a header and a progress bar.
So the model has the text for a header and a counter for a progress bar and a TotalAmountOfWork field. The ...
2
votes
0answers
73 views
Plugins/modules shared by multiple programs
I want to define plugin like objects for my program. They should look like this:
class ModuleBase
{
public :
void baseFunction1();
void baseFunction2();
...
virtual void init() = 0;
...
2
votes
0answers
155 views
Leaflet: Pass an extra argument to L.geoJson options
I'm working on choropleth maps using Leaflet framework. I'd like to have several separate layers for several years, so i' ve written this code (note that only names of 'style2002' and 'style2010' ...
2
votes
0answers
77 views
data base schemas have normalization algorithms; is there an analogous analytic technique for class diagrams?
I have a class diagram but I do not know how to check its quality, I mean something like normalization on database that remove the usual mistakes. About class diagram I read on a OOD book that usually ...
2
votes
0answers
168 views
Java (SE) form validation API
Coming from PHP, using CodeIgniter, where handling form validation was simple as pie; I'm now looking for something similar to my Java application. (not a web-application, that is)
Sure, I can create ...
2
votes
0answers
193 views
geocoder: distance sortable index
I'm developing a rails app where Users are having many Items. The users are geocoded thanks to another model I called Place that is relying on the ruby geocoder gem.
class Place < ...
2
votes
0answers
168 views
Bug in the official Android Fragments training sample?
It seems to me that there must be a bug in the Android Fragments demo.
As background, Fragments are apparently sometimes instantiated by the Android OS and thus need a public no-arg constructor:
...
2
votes
0answers
186 views
Type Hinting for array in class method generated by WSDL2PHP?
I am working with class code generated from the WSDL into PHP. The piece that is hanging me up is the way the class methods were written so that simple arrays appear to be required to be objects of ...
2
votes
0answers
341 views
How to implement a permissions system that varies according to the values a user is attempting to save?
The context is a educational administration system built on the Zend Framework. We are implementing a RESTful MVC to handle pretty much all data interactions with clients. Relationships between ...
2
votes
0answers
1k views
c++ Build Error - undefined reference to base class constructor
Using a base class called Collection, I need to implement my derived class, VariableArray. However, I keep getting the error message
undefined reference to `Collection::Collection()'
I am not ...