Construct that is used as template for creating new objects. Class describes the state and behavior that the objects of the class all share.
6
votes
0answers
381 views
How can I manage different problems in Math Quiz?
Ok, this will be the first question for this project.
This is a Math quiz system. Always must generate different problems for each problem, but at the same time, I have to generate the same exam for ...
1
vote
0answers
24 views
Meta programming: dupping Rails model
Can someone please review my code:
# dup/ish -> //github.com/rails/rails/issues/5449
class Form
include Mongoid::Document
attr_accessor :source
def self.ish(prefix, suffix, &block)
...
1
vote
0answers
42 views
General Code Review - Key Press Handler
I have made a class to import into my projects to more easily handle the state of the keyboard so I can use stuff like:
if(Keys.returnKey(37)){
As opposed to setting up key listeners.
Could you ...
0
votes
0answers
46 views
I would like to ask for suggestions, criticisms and/or possible edits on my class file to be used on an Android Applciation?
I have a class file that would be used to connect and execute queries into the database. The only thing I am confused about is this: do you really need to drop tables and re-create them everytime you ...
0
votes
0answers
262 views
Good, flexible and secure MVC router PHP
I have developed a new router after having learnt a lot from my previous attempts and I will be using this in sites I make from now on.
In a previous question, the issue of REQUEST_URI being too ...
0
votes
0answers
105 views
Translation class with database back-end
From reading the faq, basically I would like if everyone could give me advice on all of the things enunciated there about my code (mainly design pattern usage and security):
Best practices and ...
0
votes
0answers
69 views
Which of ways to construct object is better?
Object, which is going to be constructed, has several constant. What of ways to place constants is better and why?
The first way is function for each member:
BarcodeObject::BarcodeObject() : ...
0
votes
0answers
106 views
Implementation of Javascript Classes and Inheritance
I've created a simple Javascript library to be able to create "classes" and extend them defining instance and static methods and variables.
It consists in a simple function Class with two methods: ...
0
votes
0answers
1k views
Gmail Contacts API Connection Review
I created this class that connects to gMail contacts, and enables you to add/edit/delete the contact.
Curious to see what others think of my code... if you see any areas for improvement, that would ...