code-complete

How can I become a better C# programmer?

When you can create classes and do the simple stuff (GUI, reading text files, etc...), where do I go from here? I've started reading Code Complete 2nd Edition which is great but is more of a general programming book. What topics should I learn next? ...

What is a good naming convention for a routine that sets a global variable in the same class

Code Complete (Chapter 7, Section 3) says that a good function should be named for the value it returns and a good procedure name in a class should be named for what it does. When I write synchronized methods in Delphi (pre 2009) I sometimes need to use them to set global variables, a seemingly bad programming practice, but a necessar...

Is Code Complete suitable for Web Developers?

It seems everywhere I go, I am bombarded with mentions of Steve McConnell's Code Complete book, my question is this book relevant for Web Developers (PHP Developers) and not just software engineers etc? ...

Coding style: function and procedures coding standard

Ch 7.6 of Code Complete 2 is confusing me, I've attached some sample code (in php) mind telling me which style is the best? or suggest something better? thanks Style 1 public function register($user, $pass) { if($this->model->isRegistered($user) { return false; } else if($this->twitter->login($user, $pass)) { return $this->mod...

Classes to avoid (code complete)

I am somewhat confused about a paragraph in the code complete book. In the section "Classes to avoid" it reads: "Avoid classes named after verbs A class that has only behavior but no data is generally not really a class. Consider turning a class like DatabaseInitialization() or StringBuilder() into a routine on some other class" My c...

Code Complete 2ed, composition and delegation.

Hi there. After a couple of weeks reading on this forum I thought it was time for me to do my first post. I'm currently rereading Code Complete. I think it's 15 years since the last time, and I find that I still can't write code ;-) Anyway on page 138 in Code Complete you find this coding horror example. (I have removed some of the ...

NetBeans PHP Code Completion for Standard Functions

I have started to use NetBeans 6.9.1 for developing PHP projects. Although it does provide code completion to certain extent, but it's by no means complete. For example, commonly used functions such as implode,explode are not in the list for code completion. Also, it would have been convenient to have code completion for objects made fro...