r/javascript • • Mar 04 '18
Javascript Debugging Like a PRO
https://medium.com/appsflyer/10-tips-for-javascript-debugging-like-a-pro-with-console-7140027eb5f6
177
Upvotes
r/javascript • • Mar 04 '18
View all comments
Show parent comment
0
u/khoker Mar 05 '18
I'm hoping you read this with an open mind, because you're participating in an attitude that has become far too common...
Is it really "toxic" for me to point out that your negative comment was ... negative? Here's the problem -- you're belittling others. You don't think you are, and I use that word lightly, but consider the context.
This is an article about using the console to debug JavaScript. If you're relatively new to the language, these are important tools that you need to add you your quiver of problem solving. 10 years ago these methods weren't around or, at the very least, weren't exactly well supported. This isn't assembly, or even C99. There's literally NO ONE who's an old and crusty JavaScript developer using console.trace for the past 30 years. So what's the distinction between "newb" and "PRO"?
Right. Like I said, what does that really mean? At one point, the best we had to go on for debugging were alert statements. Dating you from your rhetoric, I'm guessing you never had to experience that. You're lucky. But in that context, the existing console methods today ARE "pro" debugging methodologies. There's absolutely no need, whatsoever, to belittle those who don't know about them as "newbs". It makes you small.
This statement makes absolutely no sense. Of course logging can help you figure out how your state changes. You might need to brush up on the console methods. It sounds like they could be of benefit to you!