22
nirvan
3y

There are 2 types of developers. Console.log() and alert().

Comments
  • 0
    Also, to heck with those conditional breakpoints even
  • 1
    And third type that dont use fucking JS but C instead
  • 2
    No, no one should ever alert()
  • 2
    I've never heard of anyone using alerts. Seems weird to inspect an object with alerts. Would the object even be formatted?
  • 2
    @Haxk20 you're telling me you use C for stuff most people do with JS? I've gotta see this. You must be a next level developer.
  • 0
    This practice is only valid if every log starts with "Achtung!".
  • 0
    @tizo no oh god no but I'm not web dev I'm android or app dev so I don't use js at all
  • 0
    @tizo i was just making fun
  • 1
    alert(JSON.serialize(object));

    good thing about alert is that it pauses execution of script (but some browsers now think that it is good idea to remove such feature)
  • 1
    I use prompt, and then I tell him what he should do with his error.
  • 2
    @MaxDeepField if pausing execution is something you prefer, how about checking out Chrome's "debugger" statement? Does exactly that.
Add Comment