Announcement

Collapse
No announcement yet.

Can somebody (meaning Asher) explain to me why this is even legal?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Can somebody (meaning Asher) explain to me why this is even legal?

    HTML Code:
    <script type="text/javascript">
    function wtf()
    {
    var a=null;
    a.thisIsATerribleIdea=2;
    //WHY?! WHY IS THIS ALLOWED? GOD DAMMIT I HATE YOU ALL
    }
    </script>
    This is a CRIME AGAINST HUMANITY (meaning I found it endlessly frustrating today at work).
    I demand intervention from the INTERNATIONAL COURT OF JUSTICE.

    javascript

    Note that I know hardly any javascript. I know plenty of PHP. Translating some javascript to PHP? Hate hate hate.
    If there is no sound in space, how come you can hear the lasers?
    ){ :|:& };:

  • #2
    I hate Javascript because virtually everything is legal. Javascript is a 100% Libertarian's nightmare in a tech microcosm.
    "The issue is there are still many people out there that use religion as a crutch for bigotry and hate. Like Ben."
    Ben Kenobi: "That means I'm doing something right. "

    Comment


    • #3
      wait, what does that even do?

      Comment


      • #4
        it sets a equal to null
        then it creates a child in a, which it sets to 2. a is now an object, of type null, that has a child integer with value 2.
        If there is no sound in space, how come you can hear the lasers?
        ){ :|:& };:

        Comment


        • #5
          I like it.
          12-17-10 Mohamed Bouazizi NEVER FORGET
          Stadtluft Macht Frei
          Killing it is the new killing it
          Ultima Ratio Regum

          Comment


          • #6

            Only because we have to suffer through it?
            Physicists are the worst programmers anyway
            CLOSELY FOLLOWED BY BUSINESSMEN
            If there is no sound in space, how come you can hear the lasers?
            ){ :|:& };:

            Comment


            • #7
              At least half of Goldman's codebase was written by physicists.
              12-17-10 Mohamed Bouazizi NEVER FORGET
              Stadtluft Macht Frei
              Killing it is the new killing it
              Ultima Ratio Regum

              Comment


              • #8
                It must be written in NA-ZI++

                That was a terrible pun I know
                If there is no sound in space, how come you can hear the lasers?
                ){ :|:& };:

                Comment


                • #9
                  I approve of your anger, but not of your puns.
                  "The issue is there are still many people out there that use religion as a crutch for bigotry and hate. Like Ben."
                  Ben Kenobi: "That means I'm doing something right. "

                  Comment


                  • #10
                    The best programmers are angry programmers. It's true.

                    Code I develop for personal use is littered with profanity. I'm tempted to start doing in the code too, but it doesn't parse
                    "The issue is there are still many people out there that use religion as a crutch for bigotry and hate. Like Ben."
                    Ben Kenobi: "That means I'm doing something right. "

                    Comment


                    • #11
                      You could embed it as a 38.5-integer array.

                      SP
                      Last edited by Fve Crathva; July 1, 2010, 22:54.
                      I got the Jete from C.C. Sabathia. : Jon Miller

                      Comment


                      • #12
                        EDIT: nvm
                        If there is no sound in space, how come you can hear the lasers?
                        ){ :|:& };:

                        Comment


                        • #13
                          Edit: code doesn't work on Poly
                          "The issue is there are still many people out there that use religion as a crutch for bigotry and hate. Like Ben."
                          Ben Kenobi: "That means I'm doing something right. "

                          Comment


                          • #14
                            The main problem with Javascript is that the people who write in it tend to be stupid.

                            Here's code MS wrote for Sharepoint:
                            Code:
                            function DeferCall() {
                                if (arguments.length == 0) {
                                    return null;
                                }
                                var args = arguments;
                                var fn = null;
                                if (browseris.ie5up || browseris.nav6up) {
                                    eval("if (typeof(" + args[0] + ")=='function') { fn=" + args[0] + "; }");
                                }
                                if (fn == null) { return null; }
                                if (args.length == 1) {
                                 return fn();
                                } else if (args.length == 2) {
                                    return fn(args[1]);
                                } else if (args.length == 3) {
                                    return fn(args[1], args[2]);
                                } else if (args.length == 4) {
                                    return fn(args[1], args[2], args[3]);
                                } else if (args.length == 5) {
                                    return fn(args[1], args[2], args[3], args[4]);
                                } else if (args.length == 6) {
                                    return fn(args[1], args[2], args[3], args[4], args[5]);
                                } else if (args.length == 7) {
                                    return fn(args[1], args[2], args[3], args[4], args[5], args[6]);
                                } else if (args.length == 8) {
                                    return fn(args[1], args[2], args[3], args[4], args[5], args[6], args[7]);
                                } else if (args.length == 9) {
                                    return fn(args[1], args[2], args[3], args[4], args[5], args[6], args[7], args[8]);
                                } else if (args.length == 10) {
                                    return fn(args[1], args[2], args[3], args[4], args[5], args[6], args[7], args[8], args[9]);
                                } else {
                                    var L_TooManyDefers_Text = "Too many arguments passed to DeferCall"
                                    alert(L_TooManyDefers_Text);
                                }
                                return null;
                            }
                            (the purpose of the code is to get around IE5 Javascript limitations, but there's much better ways to do this)
                            "The issue is there are still many people out there that use religion as a crutch for bigotry and hate. Like Ben."
                            Ben Kenobi: "That means I'm doing something right. "

                            Comment


                            • #15
                              SURELY that is a joke.
                              If there is no sound in space, how come you can hear the lasers?
                              ){ :|:& };:

                              Comment

                              Working...
                              X