5 Tips To Speed Up PHP Development New Jersey

I know for a fact that EditPlus 2 supports regular expressions in their search-and-replace functionality...

Local Companies

Customer Support International
732-623-9861
P.O.Box 434
Iselin, NJ
mysiteonweb.com
973-667-8907
12a yale st
nutley, NJ
Datapositive
973.457.5482
88 Maple Ave.
Morristown, NJ
Sysice Web Design
908-520-0398
PO Box 7200
Hackettstown, NJ
Visual X
973-285-3252
55 Madison Ave Suite 400
Morristown, NJ
ITCN NJ Web Design, Programming, SEO and Marketing
973.538.9066
58 Phoenix Ave
Morristown, NJ
Southern Ocean Technology
(609)978-6242
P.O. Box 1061
Manahawkin,, NJ
Drawing Board Media, LLC
201-445-0065
555 Goffle Road
Ridgewood, NJ
Bluewater Marketing Group
732 744-9119 Ext. 101
402 Main Street
Metuchen, NJ
APRSoft Technologies Inc
(732) 603-0679
5 HearthStone Drive
Edison, NJ

provided by: 

Dennis Pallett, PHPit: Totally PHP

As PHP developers, we all like to create our PHP scripts as fast as possible, and we try to take any shortcuts that we have. In some sense we are quite lazy, and we hate doing all the grunt work. That's why I'm going to give you five tips to really speed up your PHP development, and save some serious time. If you're an experienced PHP developer, these tips will probably seem very obvious to you, so this article is geared more towards beginners.

Tip #1 - Use a good editor or IDE

Using a good editor can really save you time. If you're still stuck on using Notepad to edit your PHP scripts, switch right now. There are plenty of free alternatives around, such as PHPEdit or EditPlus 2 (Shareware). The biggest advantage you get with a proper editor is code highlighting (automatically coloring your code). Code highlighting can help you debug your scripts, or follow code logic. Most editors support code highlighting, and if yours doesn't, then you know it's not suited for coding.

Another great advantage of using a good editor is the ability to do powerful search-and-replace operations. I know for a fact that EditPlus 2 supports regular expressions in their search-and-replace functionality, and I bet most editors do. It just makes it so much easier to replace a snippet of code. Imagine having to replace something by hand hundreds of times. Think of the time that gets wasted.

You can also use a full-blown PHP IDE (Integrated Development Environment). Unfortunately, there aren't many PHP IDE's, and most of them are quite steep in license fees. The best one on the market is Zend Studio, by Zend (the company backing PHP). An IDE can really save you time, by making the debugging process easier, and some IDE's (such as Zend Studio) also include IntelliSense, which will help you with function names and such (e.g. you start typing file_get.. IntelliSense shows a dropdown that matches what you were typing. It's brilliant).

In short, use a good PHP editor or IDE, and you'll save a massive amount of time!

Tip #2 - Use a framework or skeleton

Most of your PHP scripts will probably do many of the same tasks, such as database functionality (insert, update, select, delete), and have many of the same functions. You could re-write these functions and tasks every time you start a new project, but that seems a bit pointless. Instead, you could use an existing framework or skeleton, and base your new scripts on that.

You can either use a full-blown PHP framework, like CakePHP or the Seagull Framework, but you can also use a very simple skeleton that you create yourself. It doesn't have to be complicated at all, and can even be just one file which contains all the functions you commonly use.

If you've already written part of your new script, you've already saved time, no matter how much or little you've already written. If you use a framework, the structure of your script has also been determined already (largely), which can also save time.

In short, you should try to re-use as much code as you can, and try to create (or download) some short of skeleton or framework to really speed up development.

Tip #3 - Don't re-invent the wheel

Continuing the previous tip, something that really speeds up development is using existing solutions. I'm not talking about a skeleton or framework, but using a full-blown script, and customizing it to your needs.

If you're going to build a CMS for your website, which is actually one of the most common things PHP developers create, then you should first look at existing scripts. There are plenty of great scripts already, and many of them are completely free, often licensed under an open source license, such as the GPL license. A good example of this is WordPress. Originally, WordPress is a blogging tool, but it can easily be used as a CMS for your website, and you can even extend it using template hacks, plugins or code modifications. This will save you a significant amount of time, which means you can focus your time on other tasks.

Of course in some situations, when you have really specific needs, it won't be possibly to use an existing script, but before you start, try and find something that resembles your needs. Have a look on HotScripts and search Google. There's a big chance that it already exists.

Tip #4 - KISS (Keep It Simple Stupid)

During the development of a new script, you will probably run across many problems, and you'll have to think of a good solution. The best way is to keep the solution as simple as possible, and as soon as you notice that your code becomes 'filthy', you should consider re-doing it in another way. By filthy I mean overly complicated, and believe me, I've written plenty of filthy code myself. You get started on some solution, but along the way, you discover more problems, and instead of taking a step back and looking at what the actual problem is, you furiously code along. This might seem to save time, but in the long run you will only end up with thorny code, that is hard to understand.

The best way is to make everything as simple as possible. I keep everything as short as possible, and my if-statements and loops are never longer than 10-20 lines. If they become longer, I will first look if I can't do it simpler, and if that's not possible, I break it up in blocks, to make it easier to follow. In some cases I rewrite a particular block of code 3 or 4 times. This might seem a huge waste of time, but it will save you a huge amount of time in the long run.

So in short, try to keep everything as simple as possible. You should be able to immediately understand what's happening, without having to read a huge API guide or the comments.

Tip #5 - Document your code

Another great way to speed up development is to properly document your code, especially the complicated parts. However, you shouldn't over do it. The style of comments below is ridiculous, and completely pointless:

As you can see, the comments add no value at all. Just by quickly glancing, you can figure it everything the comments say, so the comments don't serve any purpose at all. Better would be something like this:

This is already much better, because we immediately know what the purpose is a of certain code block. From there we can then figure out how the code actually works.

Even this style of commenting isn't perfect, but there isn't a "perfect" style of commenting. Each developer has his or her own style, but make sure that other developers can read your code as well. This is especially important when you work in a team.

If you properly document your code, you will be able to understand it much easier later on, which means you won't have to spend (much) time on figuring out what the code actually does, and can immediately start writing new code. Good documentation can really save you a good deal of time.

Conclusion

In this article I have shown you five ways to shorten your development time and being able to release faster. I must tell though you that the above tips don't always work, but even if you only use one or two shortcuts, you've already saved precious time.

If you have any tips yourself, or would like to comment on one of the tips above, feel free to leave your comments below.



Read full article at websitemagazine.com

Featured Local Company

Customer Support International

732-623-9861
P.O.Box 434
Iselin, NJ
http://www.philcsi.com

Related Articles
- Internet Connection Speed New Jersey
Computer has played a more and more important role in people's daily life, especially among young generation. And computer connection speed has the one of most significant issue in this situation. Read the following article, get more information about that.
- Web Design - Top 5 Companies New Jersey
- Tips for Better Broadband Speed New Jersey
- Preventing online child exploitation New Jersey
- Database Query Language in Dynamic Web Development New Jersey
- Choosing an Internet Service Provider New Jersey
- ActiveX Program New Jersey
- How To Choose High Speed Internet Providers New Jersey
- Advantages Of Broadband Connection New Jersey
- Zoom Tool of Flash New Jersey
Regional Articles
- 5 Tips To Speed Up PHP Development Absecon NJ
- 5 Tips To Speed Up PHP Development Asbury Park NJ
- 5 Tips To Speed Up PHP Development Atlantic City NJ
- 5 Tips To Speed Up PHP Development Barnegat NJ
- 5 Tips To Speed Up PHP Development Basking Ridge NJ
- 5 Tips To Speed Up PHP Development Bayonne NJ
- 5 Tips To Speed Up PHP Development Bayville NJ
- 5 Tips To Speed Up PHP Development Belle Mead NJ
- 5 Tips To Speed Up PHP Development Belleville NJ
- 5 Tips To Speed Up PHP Development Belmar NJ
- 5 Tips To Speed Up PHP Development Bergenfield NJ
- 5 Tips To Speed Up PHP Development Blackwood NJ
- 5 Tips To Speed Up PHP Development Bloomfield NJ
- 5 Tips To Speed Up PHP Development Boonton NJ
- 5 Tips To Speed Up PHP Development Bordentown NJ
- 5 Tips To Speed Up PHP Development Brick NJ
- 5 Tips To Speed Up PHP Development Bridgeton NJ
- 5 Tips To Speed Up PHP Development Bridgewater NJ
- 5 Tips To Speed Up PHP Development Browns Mills NJ
- 5 Tips To Speed Up PHP Development Burlington NJ
- 5 Tips To Speed Up PHP Development Caldwell NJ
- 5 Tips To Speed Up PHP Development Camden NJ
- 5 Tips To Speed Up PHP Development Cape May Court House NJ
- 5 Tips To Speed Up PHP Development Cape May NJ
- 5 Tips To Speed Up PHP Development Carteret NJ
- 5 Tips To Speed Up PHP Development Cherry Hill NJ
- 5 Tips To Speed Up PHP Development Clark NJ
- 5 Tips To Speed Up PHP Development Clementon NJ
- 5 Tips To Speed Up PHP Development Cliffside Park NJ
- 5 Tips To Speed Up PHP Development Clifton NJ
- 5 Tips To Speed Up PHP Development Collingswood NJ
- 5 Tips To Speed Up PHP Development Colonia NJ
- 5 Tips To Speed Up PHP Development Cranford NJ
- 5 Tips To Speed Up PHP Development Denville NJ
- 5 Tips To Speed Up PHP Development Deptford NJ
- 5 Tips To Speed Up PHP Development Dumont NJ
- 5 Tips To Speed Up PHP Development East Brunswick NJ
- 5 Tips To Speed Up PHP Development East Orange NJ
- 5 Tips To Speed Up PHP Development Eatontown NJ
- 5 Tips To Speed Up PHP Development Edison NJ
- 5 Tips To Speed Up PHP Development Egg Harbor Township NJ
- 5 Tips To Speed Up PHP Development Elizabeth NJ
- 5 Tips To Speed Up PHP Development Englewood NJ
- 5 Tips To Speed Up PHP Development Englishtown NJ
- 5 Tips To Speed Up PHP Development Ewing NJ
- 5 Tips To Speed Up PHP Development Fair Lawn NJ
- 5 Tips To Speed Up PHP Development Flemington NJ
- 5 Tips To Speed Up PHP Development Forked River NJ
- 5 Tips To Speed Up PHP Development Fort Lee NJ
- 5 Tips To Speed Up PHP Development Freehold NJ
- 5 Tips To Speed Up PHP Development Garfield NJ
- 5 Tips To Speed Up PHP Development Glassboro NJ
- 5 Tips To Speed Up PHP Development Hackensack NJ
- 5 Tips To Speed Up PHP Development Hackettstown NJ
- 5 Tips To Speed Up PHP Development Haddon Township NJ
- 5 Tips To Speed Up PHP Development Haddonfield NJ
- 5 Tips To Speed Up PHP Development Haledon NJ
- 5 Tips To Speed Up PHP Development Hammonton NJ
- 5 Tips To Speed Up PHP Development Hazlet NJ
- 5 Tips To Speed Up PHP Development Hightstown NJ
- 5 Tips To Speed Up PHP Development Hillside NJ
- 5 Tips To Speed Up PHP Development Hoboken NJ
- 5 Tips To Speed Up PHP Development Holmdel NJ
- 5 Tips To Speed Up PHP Development Howell NJ
- 5 Tips To Speed Up PHP Development Irvington NJ
- 5 Tips To Speed Up PHP Development Iselin NJ
- 5 Tips To Speed Up PHP Development Jackson NJ
- 5 Tips To Speed Up PHP Development Jersey City NJ
- 5 Tips To Speed Up PHP Development Kearny NJ
- 5 Tips To Speed Up PHP Development Keyport NJ
- 5 Tips To Speed Up PHP Development Lakehurst NJ
- 5 Tips To Speed Up PHP Development Lakewood NJ
- 5 Tips To Speed Up PHP Development Linden NJ
- 5 Tips To Speed Up PHP Development Livingston NJ
- 5 Tips To Speed Up PHP Development Long Branch NJ
- 5 Tips To Speed Up PHP Development Lyndhurst NJ
- 5 Tips To Speed Up PHP Development Madison NJ
- 5 Tips To Speed Up PHP Development Mahwah NJ
- 5 Tips To Speed Up PHP Development Manahawkin NJ
- 5 Tips To Speed Up PHP Development Manchester Township NJ
- 5 Tips To Speed Up PHP Development Maple Shade NJ
- 5 Tips To Speed Up PHP Development Maplewood NJ
- 5 Tips To Speed Up PHP Development Marlboro NJ
- 5 Tips To Speed Up PHP Development Marlton NJ
- 5 Tips To Speed Up PHP Development Matawan NJ
- 5 Tips To Speed Up PHP Development Mays Landing NJ
- 5 Tips To Speed Up PHP Development Medford NJ
- 5 Tips To Speed Up PHP Development Merchantville NJ
- 5 Tips To Speed Up PHP Development Metuchen NJ
- 5 Tips To Speed Up PHP Development Middletown NJ
- 5 Tips To Speed Up PHP Development Millville NJ
- 5 Tips To Speed Up PHP Development Monroe Township NJ
- 5 Tips To Speed Up PHP Development Montclair NJ
- 5 Tips To Speed Up PHP Development Moorestown NJ
- 5 Tips To Speed Up PHP Development Morganville NJ
- 5 Tips To Speed Up PHP Development Morris Plains NJ
- 5 Tips To Speed Up PHP Development Morristown NJ
- 5 Tips To Speed Up PHP Development Mount Holly NJ
- 5 Tips To Speed Up PHP Development Mount Laurel NJ
- 5 Tips To Speed Up PHP Development Neptune NJ
- 5 Tips To Speed Up PHP Development New Brunswick NJ
- 5 Tips To Speed Up PHP Development Newark NJ
- 5 Tips To Speed Up PHP Development Newton NJ
- 5 Tips To Speed Up PHP Development North Arlington NJ
- 5 Tips To Speed Up PHP Development North Bergen NJ
- 5 Tips To Speed Up PHP Development North Brunswick NJ
- 5 Tips To Speed Up PHP Development Nutley NJ
- 5 Tips To Speed Up PHP Development Ocean City NJ
- 5 Tips To Speed Up PHP Development Old Bridge NJ
- 5 Tips To Speed Up PHP Development Orange NJ
- 5 Tips To Speed Up PHP Development Palisades Park NJ
- 5 Tips To Speed Up PHP Development Paramus NJ
- 5 Tips To Speed Up PHP Development Parlin NJ
- 5 Tips To Speed Up PHP Development Parsippany NJ
- 5 Tips To Speed Up PHP Development Passaic NJ
- 5 Tips To Speed Up PHP Development Paterson NJ
- 5 Tips To Speed Up PHP Development Pennsauken NJ
- 5 Tips To Speed Up PHP Development Perth Amboy NJ
- 5 Tips To Speed Up PHP Development Phillipsburg NJ
- 5 Tips To Speed Up PHP Development Piscataway NJ
- 5 Tips To Speed Up PHP Development Plainfield NJ
- 5 Tips To Speed Up PHP Development Plainsboro NJ
- 5 Tips To Speed Up PHP Development Pleasantville NJ
- 5 Tips To Speed Up PHP Development Point Pleasant Beach NJ
- 5 Tips To Speed Up PHP Development Princeton Junction NJ
- 5 Tips To Speed Up PHP Development Princeton NJ
- 5 Tips To Speed Up PHP Development Rahway NJ
- 5 Tips To Speed Up PHP Development Ramsey NJ
- 5 Tips To Speed Up PHP Development Red Bank NJ
- 5 Tips To Speed Up PHP Development Rockaway NJ
- 5 Tips To Speed Up PHP Development Rutherford NJ
- 5 Tips To Speed Up PHP Development Sayreville NJ
- 5 Tips To Speed Up PHP Development Scotch Plains NJ
- 5 Tips To Speed Up PHP Development Secaucus NJ
- 5 Tips To Speed Up PHP Development Sewell NJ
- 5 Tips To Speed Up PHP Development Sicklerville NJ
- 5 Tips To Speed Up PHP Development Somerset NJ
- 5 Tips To Speed Up PHP Development Somerville NJ
- 5 Tips To Speed Up PHP Development South Amboy NJ
- 5 Tips To Speed Up PHP Development South Orange NJ
- 5 Tips To Speed Up PHP Development South Plainfield NJ
- 5 Tips To Speed Up PHP Development South River NJ
- 5 Tips To Speed Up PHP Development Summit NJ
- 5 Tips To Speed Up PHP Development Teaneck NJ
- 5 Tips To Speed Up PHP Development Toms River NJ
- 5 Tips To Speed Up PHP Development Trenton NJ
- 5 Tips To Speed Up PHP Development Tuckerton NJ
- 5 Tips To Speed Up PHP Development Union City NJ
- 5 Tips To Speed Up PHP Development Union NJ
- 5 Tips To Speed Up PHP Development Vincentown NJ
- 5 Tips To Speed Up PHP Development Vineland NJ
- 5 Tips To Speed Up PHP Development Voorhees NJ
- 5 Tips To Speed Up PHP Development Wayne NJ
- 5 Tips To Speed Up PHP Development West Milford NJ
- 5 Tips To Speed Up PHP Development West New York NJ
- 5 Tips To Speed Up PHP Development West Orange NJ
- 5 Tips To Speed Up PHP Development Westfield NJ
- 5 Tips To Speed Up PHP Development Westwood NJ
- 5 Tips To Speed Up PHP Development Williamstown NJ
- 5 Tips To Speed Up PHP Development Willingboro NJ
- 5 Tips To Speed Up PHP Development Wyckoff NJ
Related Articles
- Tips for Better Broadband Speed New Jersey
Your choice of ADSL router can make a huge difference to the actual speed of your connection. BT demonstrated two different routers connected to exactly the same 8Mb/sec ADSL line that varied in speed by as much as 3Mb/sec - nearly half the available bandwidth of the line.
- Choosing an Internet Service Provider New Jersey
- Web Design - Top 5 Companies New Jersey
- Database Query Language in Dynamic Web Development New Jersey
- Preventing online child exploitation New Jersey
- Advantages Of Broadband Connection New Jersey
- Zoom Tool of Flash New Jersey
- Internet Connection Speed New Jersey
- How To Choose High Speed Internet Providers New Jersey
- ActiveX Program New Jersey

Rss   Delicious   Digg   Add To My Yahoo   Add To My Google   Bookmark   Search Plugin

Topics:
Advertising Family Home Services Real Estate Resources
Business Services Fashion Industrial Goods & Services Retail & Consumer Services
Career Financial Services Insurance Software
Cars Food & Beverage Internet Technology
Computer Hardware Franchise Legal Telecommunications
Construction Health Miscellaneous Trade Shows
Education Holidays Nightlife Travel
Entertainment Home Appliances Online Database Weddings
Environmental Home Electronics Pets World History