good-design

Semicolon in namespace. Necessary?

Hello, when working with namespace, I need to finish it with a semicolon? When I put a forward declaration of a class into a namespace, for example, many people doesn't include a semicolon but, it seems to be optional. Does semicolon add functionality or change the current functionality by adding or removing? Thanks. ...

Is SQLite suitable for web site usage

I have a database of 50MB size in SQLite 3. All db objects are accessed through a web service. Is SQLite a good choice for an concurrent online usage of about 500 parallel users. NOTE: Users will use same tables but not same rows. Each user can see/update/delete only his data. ...

Examples of beautiful Javascript

A good way to improve as a developer is to look at well-written code. What examples of beautiful, well-architected Javascript have you encountered? Note that I am not looking for a debate about the language itself. It has good parts and bad parts; some like it, and many hate it. Let's leave that discussion to other threads. ...

Question regarding the "Tell, don't Ask" idea

There is this famous quote that says Procedural code gets information then makes decisions. Object-oriented code tells objects to do things. — Alec Sharp The subject of the post is precisely about that. Let's assume we are developing a game in which we have a Game where there is a Board. When facing the problem of deciding ...

Is there a "right" way to use php?

Hello, I have been learning php, by just plugging away at it. I was hoping someone could point me in the right direction in regards to security, flow and general best practices? Thanks. ...

OOP/OOD Coupling question

I have a function that returns the orders for a given period. I've create a Period object which ensures that, when specifying a date range, the start date is <= to the end date. Likewise, if dealing with a month period, the start and end dates of the period should be the first and last days of the month, respectively. My question is thi...

When Expando Class should be used in Google App Engine Apps?

What are the applications for Google App Engine Expando Class? And what are the good practices related to it? ...