From: Alexandru Popescu Date: 2006-07-07T01:12:16+09:00 Subject: Re: debugging proposal On 7/6/06, Austin Ziegler wrote: > On 7/6/06, Alexandru Popescu wrote: > > On 7/6/06, Joel VanderWerf wrote: > >> You're not going to like this response, but after ruby sinks in and gets > >> in your veins, this is how you debug: > > >> 1. refactor > >> 2. unit test > >> 3. write to stdout / stderr / log files > > I haven't done too much real work on ruby yet, but I still believe > > this is a very bad suggestion. Ruby (and any programming language) is > > about productivity and in my whole experience (I have to agree that > > most of it is spent on Java) never a sout have been more productive > > than a debugging session (for enough complex stuff). > > I think you misunderstood. This isn't a suggestion. It's just how one > ends up debugging most of the time. He he... this may get different interpretations too :-). > Frankly, I think I have missed a > graphical debugger exactly once in my Ruby programming. Everything > else has been easier to deal with with judicious use of tracers and > logging. > My point was simply that the Ruby world will finally need to support any type of "debugging" sessions, so people can choose what way they feel more productive. I am aware of the fact that your experience and Joel's on Ruby is much bigger than mine; but I am quite sure that people coming from other worlds will look firstly to debugging options (being used to these) before trying out the Ruby ways. And I don't think they do something wrong about it. I know people (and I have some guys even in my team) that are feeling more productive with souts. Some of them because they haven't realesed how helpful a debugging session may be, some of them just because they are. For me, it really doesn't matter how they do it, as long as they are successful and optimal :-). BR, ./alex -- .w( the_mindstorm )p. > -austin > -- > Austin Ziegler * halostatue@gmail.com * http://www.halostatue.ca/ > * austin@halostatue.ca * http://www.halostatue.ca/feed/ > * austin@zieglers.ca > >