Re: Anyone have experience with any php debuggers? [message #180148 is a reply to message #180147] |
Tue, 15 January 2013 13:28 |
The Natural Philosoph
Messages: 993 Registered: September 2010
Karma:
|
Senior Member |
|
|
On 15/01/13 10:36, Arno Welzel wrote:
> Am 04.01.2013 19:13, schrieb The Natural Philosopher:
>
>> On 04/01/13 16:50, Peter H. Coffin wrote:
>>> On Fri, 04 Jan 2013 08:52:33 -0500, Jerry Stuckle wrote:
>>>> On 1/4/2013 7:06 AM, bill wrote:
>>>> > On 1/3/2013 8:18 AM, M. Strobel wrote:
> [...]
>>>> >> But why worry? A developer has an IDE.
>>>> >>
>>>> >> /Str.
>>>> >>
>>>> >
>>>> > I prefer HTML-Kit Tools as an editor and it is not part of an IDE.
>>>> > bill
>>>>
>>>> Sorry, I agree. A DEVELOPER has an IDE. A hacker uses an editor.
>>>
>>> A real hacker redirects echo straight to a text file. (;
>>>
>> Its about as stupid as saying a real woodworker has a planer
>> thicknesser, table router, spindle moulder and a press.
>>
>> And doesn't use hammers chisels and hand saws and scrapers.
>>
>> Yet the best musical instruments and cabinet making is all done with
>> hand tools.
>>
>> I was writing code long before we HAD IDEs. And once you had blown the
>> EAROM you had to guess at why it didn't work. Because we didn't have
>> enough ICES to go round.
> [...]
>
> The had the first IDEs including source level debuggers in the late
> 1980s long before Windows or Linux became popular as they are today (and
> when i started software development, Windows 3.1 didn't even exist) -
> and yes, i really liked the opportunity to have "projects" and
> debugging. Just because it is technically possible to do something
> without a special tool it does not mean that using better tools is not
> wise.
>
> BTW: The GNU Debugger was created in 1986.
>
>> BECAUSE we were professionals we learnt to write code in such a way that
>> the chances of a bug were very very low.
>>
>> Its hackers who use IDES to throw code together, and then spend the next
>> day bodging it until it works, simply because they have the tools that
>> make debugging easier than writing proper code in the first place.
>
> I doubt that you ever did projects with thousands line of code from
> scratch and more than one person working on the same project this way.
>
>
I can assure you I did.
MOSTLy in assembler. The project managers job was to carve it out into
small chunkes that a single coder COULD handle and write the interface
specs so that the assignment of blame was self evident, and to enforce
coding standards sos that the next person along COULD understand waht
had been written. Keep it simple, don't be clever, comment clearly.
EVERY functional block HAD, on pain of being fired, to say what global
variables it used. So you could grep through the code to fouind out
which functions did that.
Every functional block HAD to explain in English, what it was supposed
to do, and comments throughout the code related to these comment block
to show which bits of the code were supposed to actually do what was
listed above.
I may these days hack with less comments, but if my code does NOT work I
go back to that style of comment. At least it reminds me weeks later
what the code is SUPPOSED to do, even if it doesn't.
I've found aids good for syntax bugs, but not for logical bugs.
A proper compiler and proper language that requires explicit
declarations of variables takes care of most of the syntax.
The logic? that you have to figure out the hard way.
But at least if the comment sasy 'check dumledore has been initialised
by Hogwarts' and the code says otherwise, you have a hint...
The trouble is PHP allows lazy coding. Type $dumbledore and its not
clear whether the variable is being assigned, set, or both. Slack typing
means that you need === as well as == and = ...
It truly is a hackers language.
--
Ineptocracy
(in-ep-toc’-ra-cy) – a system of government where the least capable to
lead are elected by the least capable of producing, and where the
members of society least likely to sustain themselves or succeed, are
rewarded with goods and services paid for by the confiscated wealth of a
diminishing number of producers.
|
|
|