Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

How do I streamline my coding and work habits?

coding habits streamline
0
Posted

How do I streamline my coding and work habits?

0

The Pragramtic Programmer is a good guidebook of work practices/conventions. They do address issues like code organization, method/variable naming, project documentation, and source management. Where it’s most helpful is as a succinct introduction to a bunch of practices make your life easier.

0

Get a good source control system, like Subversion. Set up your own personal standards for organizing your files and organizing your code. In PHP, for instance, keep similar functions together in the same include file and always prefix your functions with the name of the file they’re in. For instance, keep all your functions related to users in ‘/include/user.

0

Use a model-view-controller-based web application framework like CakePHP or CodeIgniter for PHP (they’re similar to Ruby on Rails). It makes your code organized and easy to understand. Models handle the database work, views are the screens that appear in the application, and controllers tie everything together.

0

You definitely need source control. I’d recommend Perforce, since it comes with some nice GUI tools & for a single user tends to work better than CVS. You also should a class/function browser, & generate whatever the PHP equivalent of doxygen docs are now & then to keep track of what you’re doing. Keeping a by-hand changelog is another option.

0

Seconding kirkaracha. Also have a look at Symfony. The documentation is superb and the development model it enforces has been a real revelation to me. It takes care of a lot of the grunt work and frees your mind to work out how you want things to work. It also integrates a database abstraction layer and object model. If you’re doing web apps, it can be a godsend.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.