Conversation

Notices

  1. I made a Batman story in java script. It's really crappy. http://ur1.ca/afmth

    Friday, 28-Sep-12 18:07:23 UTC from web
    1. @greenenchilada Lol

      Friday, 28-Sep-12 18:08:38 UTC from web
    2. @greenenchilada Javascript games are always crappy. Example: https://github.com/TheLastProject/textmode/blob/master/game/src/textmode_cli.js

      Friday, 28-Sep-12 18:12:28 UTC from web
      1. @omni Argh, double-equals signs. D:

        Friday, 28-Sep-12 18:13:15 UTC from web
        1. @bitshift I only heard about them being bad when you said it two minutes ago. How bad are they, why and will converting everything of that to === fix it?

          Friday, 28-Sep-12 18:14:01 UTC from web
          1. @omni == is the type-coercing equality operator, which leads to such fun as 'undefined == 0' being true (for example, if you ask for a property an object doesn't have, that undefined might be the result). === is the strict one, and should generally be used unless you know you want type coercion.

            Friday, 28-Sep-12 18:16:24 UTC from web
          2. @omni That's basically the gist of it (and yes, changing all == to === should be fine), though if you're interested to know more, http://stackoverflow.com/a/359509 explains it very nicely.

            Friday, 28-Sep-12 18:17:37 UTC from web
          3. @omni This is one of the many reasons why, despite liking its positives, I find it hard to consider javascript a good language - there's just too many weird "gotcha"s.

            Friday, 28-Sep-12 18:18:36 UTC from web
            1. @bitshift Oh hey, you too.

              Friday, 28-Sep-12 18:18:56 UTC from web
              1. @anarchycarcino Yeah, I already saw it over on tumblr when you posted it. :)

                Friday, 28-Sep-12 18:20:08 UTC from web
                1. @bitshift Well good.

                  Friday, 28-Sep-12 18:20:24 UTC from web