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

Home » Imported messages » comp.lang.php » Code Stops Working
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: Code Stops Working [message #172409 is a reply to message #172393] Wed, 16 February 2011 19:28 Go to previous messageGo to previous message
Sherm Pendley is currently offline  Sherm Pendley
Messages: 33
Registered: September 2010
Karma:
Member
"P E Schoen" <paul(at)pstech-inc(dot)com> writes:

> "John Andersen" wrote in message
> news:ac29b1ee-97d4-40aa-b70f-13dd13cb50cb(at)v7g2000yqh(dot)googlegroups(dot)com...
>
>> Undo your change and see if it works again!
>> If it does, concentrate on finding the error within
>> your change! If it doesn't work, follow the leads
>> from the other in this group.
>
> Good advice.

*Great* advice! One very common beginner mistake is to make a whole
host of changes at once, before trying to execute the result. When (not
if) problems occur, that makes it difficult to pin down exactly which
one of the many changes is responsible. Keeping changes as small as
possible, and testing in between each, makes it easier.

> I have learned that it is
> always good to make copies of code as changes are made

Ouch. It's far better, IMHO, to use a SCM (source code management) tool
that's been expressly designed for just that purpose, such as Subversion,
Mercurial, or Git. Making backup copies (i.e. foo.php, foo-2.php, foo-
bak.php, foo-ihopethisdoesntbreak.php, etc.) is a pretty poor substitute
for such a tool.

sherm--

--
Sherm Pendley
<http://camelbones.sourceforge.net>
Cocoa Developer
[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
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: about memory usage with php application
Next Topic: PHP currency converter with XML feed
Goto Forum:
  

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

Current Time: Mon Nov 25 23:17:53 GMT 2024

Total time taken to generate the page: 0.04237 seconds