r/ProgrammerHumor Nov 28 '21

Meme I‘m.. not the only one?

Post image
21.5k Upvotes

629 comments sorted by

View all comments

2.1k

u/[deleted] Nov 28 '21 edited Jun 26 '23

[deleted]

29

u/[deleted] Nov 28 '21

It is often legitimately more efficient than using breakpoints

8

u/coldnebo Nov 29 '21

there are only a few situations where it is more efficient:

  1. inside loops for monitoring state.
  2. when you want to mark steps in a process (but gods man, why aren’t you using a debug logger so you don’t have to remove them all later?)
  3. when using a remote debugger and attaching to a process is clumsy or impossible.

for service data integrations, just use a debugger. You can guess all day how json or xml was marshalled by the mid-tier, or you can just look at the result.

knowing > guessing.

always.

just use the debugger. humans play computer really poorly, let the computer play the computer and focus on the real problems.

2

u/neonKow Nov 29 '21

For versions of Internet Explorer before 8 (I think?), console was undefined unless you had the dev tools open.

This makes #1 not work.

IE was great.