Hi Alexander! Next time please delete the rest of the message - it was quite long.
On Fri, 3 Jan 2003, Alexander Maryanovsky wrote: > I won't get into this "war", but I'll respond to a small comment: > > >And you do need a good Java debugger. Trust me. You could always use a > >good debugger, regardless of which language you write in. Too bad jdb is > >pure useless crap. > > I've been coding in Java both professionally and as a hobby (an open source > project) for over 3 years now and my most powerful debugging tool is still > System.out.println(). And no, I'm not writing 50 line programs. When you > have well designed, thought out code ina language that has very few > "surprises" (although any language can be like that if you know it well > enough), all bugs are trivial mistakes. So I'm with Tzahi on this one. > I also use printf's: in Perl, in C and in languages where I did not learn to use the debugger yet. Still, using gdb or the perl debugger can sometimes help you trap bugs that catching with print's will take you much more time. Especially in languages like C or Java where there's compilation involved. As much as a code can be well-thought and well-designed, there can always be typos and things you did not thought about. A misplaced operator, two consecutive if's instead of one nested in the other or vice versa. A missing if altogether. And it can happen while your program is in the 1000's iteration. Would you like to analyze a log of N*1000 lines? Unless you have proven the correctness of code, and verified that your proof is correct, you still can't be entirely free of pitfalls. That's where powerful debuggers like gdb and perl -d kick in. If Java does not have a convenient debugger with similar capabilities, then debugging it can become much more painful than with Perl or C. Regards, Shlomi Fish > > Alexander Maryanovsky. > > ---------------------------------------------------------------------- Shlomi Fish [EMAIL PROTECTED] Home Page: http://t2.technion.ac.il/~shlomif/ Home E-mail: [EMAIL PROTECTED] "Let's suppose you have a table with 2^n cups..." "Wait a second - is n a natural number?" ================================================================= To unsubscribe, send mail to [EMAIL PROTECTED] with the word "unsubscribe" in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED]