Find and replace



  • git clone http://code.google.com/p/closure-library/

    You need a Subversion client to execute this command, but you may already have one. Try the command, and if it doesn't work download and install a Subversion client.

    Bonus WTF: the random garbage along the left and bottom edges of the image did not appear on my screen until I opened the screenshot. Also, my windows are blue, not black.


  •  "goog.require"? "goog.dom"?

    That just sounds stupid..



  • Save the following JavaScript in a file
    called hello.js. Place this file next to
    the closure-library directory.
    Next to?  How close should I put it?



  • Close enough for them to be able to indecently touch each other.



  • Correct me if I'm wrong, but I was under the impression that Git and Subversion were two different programs / repositories?



  • @Rhywden said:

    Correct me if I'm wrong, but I was under the impression that Git and Subversion were two different programs / repositories?

    Congratulations. You've cracked it.

     Edit: goog.dom.appendChild ... why does this exist?



  •  You know, I always found it annoying that a closure is both a language concept and a set of programming language tools.

    And don't get me started on Clojure



  • @fire2k said:

    You know, I always found it annoying that a closure is both a language concept and a set of programming language tools.

    I always find it a bit surprising that Google in particular can't see value of a good neologism for findability of project-related resources and consistently names their projects with common words.
    @fire2k said:
    And don't get me started on Clojure

    Besides wondering how it should be pronounced (I'd say ˈkləʊdʒʊə) that one is a neologism, which makes it easy to distinguish related resources when searching. Much better than "closure".



  • @Bulb said:

    I always find it a bit surprising that Google in particular can't see value of a good neologism for findability of project-related resources and consistently names their projects with common words.
    Clojure isn't a Google project.



  • @TGV said:

    Clojure isn't a Google project.

    But Closure is. So is Go and the short-lived Dart.



  • @Salamander said:

    @TGV said:

    Clojure isn't a Google project.

    But Closure is. So is Go and the short-lived Dart.

     

    What do you mean by short-lived? I thought that was still going?

    It certainly has more traction in Germany than Go...

     



  • @Salamander said:

    @TGV said:

    Clojure isn't a Google project.

    But Closure is. So is Go and the short-lived Dart.

    Bugger me backwards with a buttered stick! I completely missed the point and blindly inferred that this post referred to some odd way to use a decent programming language like Clojure in the browser. Instead, it's another Great Google Product!

     



  • @fire2k said:

    What do you mean by short-lived? I thought that was still going?

    Eh, it could be either one. I just haven't heard anything about it in literally a year and a half, so I assumed it was basically already dead.


  • Discourse touched me in a no-no place

    @Zecc said:

    @Rhywden said:

    Correct me if I'm wrong, but I was under the impression that Git and Subversion were two different programs / repositories?

    Congratulations. You've cracked it.

     Edit: goog.dom.appendChild ... why does this exist?

    Aside: There was a GREAT episode of Babylon 5, where Londo said something like "I do believe you have [the concept] surrounded, Vir!" I can't find that on Youtube.

    At any rate, I guess TRWTF is that, as usual, Ben L. left us to guess the WTF (and that he decided to remove one of our complaints by not making his screenshot stupidly large.) The only WTF I see is suggesting you use subversion to download git. Why not start out downloading git?


  • Winner of the 2016 Presidential Election

    @FrostCat said:

    (and that he decided to remove one of our complaints by not making his screenshot stupidly large.)

    It's still too large to fit on an iPhone screen.

    I try to remember always to tag my imgs with style="max-width:100%" on this site.



  • @FrostCat said:

    The only WTF I see is suggesting you use subversion to download git. Why not start out downloading git?
    No, they are suggesting that you download Subversion in order to execute the command  <font face="courier new,courier">git clone http://code.google.com/p/closure-library </font>


  • Winner of the 2016 Presidential Election

    @pbean said:

     "goog.require"? "goog.dom"?

    That just sounds stupid..


    What if you're a goog.sub?



  • @joe.edwards said:

    I try to remember always to tag my imgs with style="max-width:100%" on this site.
    Maybe Ben has a finger twitch, which results in him inadvertently adding an extra zero, style="max-width:1000%".@joe.edwards said:
    Filed under: Think of the mobile users., .
    I do think of the mobile users.  And then I laugh.

     




  • @Zecc said:

    @Rhywden said:

    Correct me if I'm wrong, but I was under the impression that Git and Subversion were two different programs / repositories?

    Congratulations. You've cracked it.

     Edit: goog.dom.appendChild ... why does this exist?

    The code for that function is this:

    /**
     * Appends a child to a node.
     * @param {Node} parent Parent.
     * @param {Node} child Child.
     */
    goog.dom.appendChild = function(parent, child) {
      parent.appendChild(child);
    };
    

    Which leads me to believe it's only included so the compiler can replace its name with a single letter instead of having to spell out appendChild every time.


Log in to reply
 

Looks like your connection to What the Daily WTF? was lost, please wait while we try to reconnect.