FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » Books?
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: Books? [message #177369 is a reply to message #177367] Tue, 20 March 2012 09:19 Go to previous messageGo to previous message
M. Strobel is currently offline  M. Strobel
Messages: 386
Registered: December 2011
Karma:
Senior Member
Am 20.03.2012 02:39, schrieb Christopher M.:
> "macca" <ptmcnally(at)googlemail(dot)com> wrote in message
> news:7257183.754.1332178327363.JavaMail.geo-discussion-forums@vbhv6...
>> PHP 5 Objects, Patterns, and Practice
>> Matt Zandstra
>
-- cut ...
> and learn about PHP best coding practices.

- use proper code indenting to make your code readable
- document your code with phpDocumentor or other
- use meaningful variable and function names
- use an editor with syntax highlighting to help find any unbalanced quotes
and parentheses before running the script
- if something does not work like expected: use a debugger to inspect your
variables at every execution step, IMO a must for serious programming
- get used to a version control system early, you will populate your file system
with test1.php, test2-old.php, test2-1.php and so on not knowing what you will need
later and what to delete

This was the easy advice, now the difficult:

- break down a problem into smaller 'working units' using functions and objects
- design your functions (and methods) to work on data passed in by parameters, the
benefits will be better isolated testing, and reuse of code
- test your code after every logic step
- work on your understanding of the whole system: client browser, IP (address, ...),
TCP (port, SSL, ...), DNS, HTTP (headers, ...), HTML, CSS, JavaScript, web server
settings, PHP settings, logging, ...

There is a reason why good programmers can ask for high hourly rates.

/Str.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Import values from XML file
Next Topic: Stats comp.lang.php (last 7 days)
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Thu Nov 28 08:00:19 GMT 2024

Total time taken to generate the page: 0.03473 seconds