Handling namespace models (classes) in namespace

The models/ns1/articles.rb is basically setting the table name prefix for all the model classes under that namespace. Thats its use. It’s more DRY’ish to do in there (in a single file), rather than setting the prefix in every model class under that namespace. I am not a big fan of using namespaces in my models. … Read more

Why and how should I use namespaces in C++?

One reason that’s often overlooked is that simply by changing a single line of code to select one namespaces over another you can select an alternative set of functions/variables/types/constants – such as another version of a protocol, or single-threaded versus multi-threaded support, OS support for platform X or Y – compile and run. The same … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)