bio | website | slava-semushin.blogspot.com |
---|---|---|
location | Russia | |
age | 26 | |
visits | member for | 2 years, 2 months |
seen | May 13 at 8:51 | |
stats | profile views | 102 |
Apr 12 |
awarded | Yearling |
Jan 2 |
awarded | Nice Answer |
Oct 4 |
awarded | Nice Answer |
Apr 12 |
awarded | Yearling |
Jun 23 |
answered | Java: Simplify a loop |
May 26 |
comment |
Learning OOP PHP, simple MySQL connection class. @skippychalmers IMHO these made code more readable. |
May 14 |
comment |
Learning OOP PHP, simple MySQL connection class. @php-grasshoppa 1) Database and Mysql classes in different files because I preffer to place each class to separate file. Easy to maintain and easy to search when you need it. Why it in different classes? In this case, it is looks useless and no needed really. But if you will add support for MSSQL, PostgreSQL etc, then base class will be usefull. It contains common information with database' credentials. 2) Database class marked as abstract because this class should not be created by new Database in program. As I said above it encapsulates common information with related methods. |
May 14 |
revised |
Learning OOP PHP, simple MySQL connection class. fixed typo |
May 13 |
answered | Learning OOP PHP, simple MySQL connection class. |
May 13 |
revised |
Learning OOP PHP, simple MySQL connection class. added link to first post |
May 13 |
suggested | suggested edit on Learning OOP PHP, simple MySQL connection class. |
May 10 |
comment |
Event Registration @peanutsmonkey When you use one object your code is not object oriented yet IMHO. I updated my answer and include more info. |
May 10 |
revised |
Event Registration added more ideas |
May 9 |
comment |
Event Registration @peanutsmonkey Magick numbers is "unique values with unexplained meaning or multiple occurrence which could (preferably) be replaced with named constants" (from en.wikipedia.org/wiki/Magic_number_%28programming%29) |
May 9 |
awarded | Editor |
May 9 |
revised |
Version comparison function fixed indentation |
May 9 |
answered | Event Registration |
May 9 |
answered | Critique my first OOP attempt |
May 5 |
comment |
A do while loop where its body breaks it? @mmocny, I agree. IMHO this version a bit more readable. |
May 4 |
answered | Is this a decent way of writing a start-stop-daemon script? |