Core to Object-Oriented Programming (OOP), a class is a template for creating new objects that describes the common state(s) and behavior(s).

learn more… | top users | synonyms (1)

3
votes
1answer
50 views

Immunity of login/signup class to all types of attacks

I am going to use the following class which is very simple to use and get user info in pages: ...
7
votes
0answers
104 views

UIntArray class in PHP (part 2)

This question is the follow up of the question: UIntArray class in PHP @Brythan provided a really nice review and I have improved my class. I have addressed almost all the issues he pointed out ...
4
votes
0answers
103 views

Wrap function pointers in template classes

I'm working on a C++ library for Arduino and other embedded systems. I'm currently working on wrapping up function pointers and member-function pointers into two C++ template classes (function and ...
2
votes
0answers
37 views

Application Class Security

Is my Application.php class secure for continuing development? The Application.php acts as a registry for the whole application. I tried not to rewrite already working code that is being pulled from ...
2
votes
0answers
121 views

PHP upload class

I know there are many PHP upload classes out there, but I'm comfortable with my own code, so I made a simple one here. What do you think of my approach when ...
2
votes
0answers
115 views

Meta programming: dupping Rails model

Can someone please review my code: ...
1
vote
0answers
16 views

Class method to insert a record into MySQL

I'm just starting out using OOP; classes and methods etc. I've been looking around for some PDO classes/wrappers out there, but there's not much to choose from. So I've tried to make my own. Started ...
1
vote
0answers
36 views

Parsing a logic formula

I recently made a little program which task is to parse a logic formula (given in conjunctive normal form) I do the parsing with reloaded operator>> but I am ...
1
vote
0answers
33 views

PHP MIMEType class

There isn't a very reliable way (in my opinion) to get the mime type of a specific extension, regardless of the file actually being of that type or not. This type of thing usually is used when ...
1
vote
0answers
54 views

Singleton request validator and sanitizor class

I have tried to code a PHP singleton class for validating multiple/single fields (sanitizing is optional). When validating single field, on success it will return 1 (...
1
vote
0answers
152 views

Creating a game with rectangular shapes

I'm using Pygame to create a small game with few rectangle shapes. However, I want to learn more about classes, and I'm trying to use them. I'm very new to classes and inheritance, but I want to ...
1
vote
0answers
107 views

Trying to understand hooks class

I've built a small hooks class for adding some capabilities of basic plug-in functionality. Is there room for improvement? I am just beginning to learn OOP, so ...