18
10Dev
14d

Apparently one of my classmates either really likes python or really hates js

Comments
  • 0
    I don't see what is weird or shit about this
  • 1
    Lol try running that in browser and you will see
  • 1
    Some people want to see the world burn!
  • 1
    @asgs print() will print.
  • 2
    I really like having a debug() function that console.debug()’s because I can turn them all off in one place. It’s also less typing.

    Generally though I use a nested logger that I wrote. It allows specifying logging level, indentation depth, tags, etc. makes reading the logs actually blissful.
  • 0
    @010001111 true, but it is not on the window object. It is misleading at best, but not as harmful as setting an alias for cd to do rm rf
  • 0
    Haha, let them see how it's done in Java before they make another excuse of shorten logger function.
    Plus, it's sickening to see they not using spread operator argument in console.log's alias.
  • 0
    I'm probably guilty of that as well.
    When I want to do some quick debug message on the console it's always a pain for my fingers to get to the . key for some reason.
  • 0
    Yeah, limiting console.log to one single parameter
  • 0
    Not snake enough. This is more like it so you can print many args like in sneklang:

    print(...args) {console.info(args)}
Add Comment