1. Recent Articles

    1. What's the difference between these two objects (one is the factory pattern I think)

      Explore reddit.com (7 hours, 11 min ago)

      This is what I would do: var Counter = function() { var val = 0; this.increment = function() {return val+= 1;} } c = new Counter and this, I think, is a factory pattern. I saw this in the jsdev video posted yesterday here on /r/javascript. I'm not clear on why I'd use this instead of the above code: var makeCounter = function() { var val = 0, increment = function() {return val += 1;}, counter = {increment: increment}; return counter; } c = makeCounter() submitted by dogjs [link] [1 comment] (Read Full Article)

      Comment

    2. Color-coded comments

      Explore reddit.com (7 hours, 51 min ago)

      I had an idea the other day, and threw together a quick script to test it out. It modifies the background color of comments based on their karma score--useful if you're skimming a long post. The code: postSum = $(".sitetable").find("div.entry").length; voteSum = 0; highestKarma = 0; $(".sitetable").find("div.entry").each( function() { commentHtml = $(this).find(".unvoted").html(); if (commentHtml != null) { commentKarma = parseInt(commentHtml.replace(" points", "").replace(" point", "")); if (commentKarma > highestKarma) highestKarma = commentKarma; voteSum += commentKarma; } }); $(".sitetable").find("div.entry").each( function() { commentHtml = $(this).find(".unvoted").html(); if (commentHtml != null) { commentKarma = parseInt(commentHtml.replace(" points", "").replace(" point", "")); pct = (commentKarma / highestKarma); if ... (Read Full Article)

      Comment

    3. Probably belongs in /r/trees

      Explore reddit.com (8 hours, 16 min ago)

      I was tagging a blog post with "Javascript" as one of the keywords. Suddenly, I noticed that I had mispelled the word in question, producing: Javiscript I reflected on my error for a second and saw it... Javis Crypt I thought Javis Crypt would be a cool name for a website concerning the black art of prototype based languages. Extra points if the site admin's username was Javis. submitted by hansineffect [link] [comment] (Read Full Article)

      Comment

    4. A writer’s inspiration: The English language

      Explore Bit Stampede (9 hours, 39 min ago)

      I love the English language. It’s crazy, complicated, and bloated, and those are all things that contribute to its amazing expressiveness. If a word doesn’t exist, someone will make it up, or rip it off from another language. It’s a quirky, twisted amalgamation of words and syntax from a broad swath of other languages. From [...] (Read Full Article)

      Comment

    5. Having Fun with JavaScript and Skype Emoticons

      Explore reddit.com (17 hours, 2 min ago)

      submitted by elijahmanor [link] [comment] (Read Full Article)

      Comment

    6. Dev Blog - » Sexybuttons for ExtJS

      View all 2 articles » Explore Lyquidity Solutions (10 hours, 30 min ago)

      Buttons are declared like any other ExtJS button in which the 'ui' property is used to define an alternative presentation. By default, buttons are black but there are 10 standard colors though you create a class in defining a ... (Read Full Article)

      Comment

    7. HighCharts extension for ExtJS 4 | Joe Kuan Defunct Code

      View all 2 articles » Explore Joe Kuan Defunc Code (8 hours, 41 min ago)

      Recently, I received more emails asking me for getting the HighCharts to run on ExtJs 4. I didn't expect anyone will be interested as ExtJs 4 comes with its own chart library. Well, here is it is. I have ported the HighChart ExtJs 3 ... (Read Full Article)

      Comment Mentions:   Firefox   Mac OS

    8. Is this a javascript issue? If so, could somebody please help me? (xpost from /csshelp)

      View all 4 articles » Explore reddit.com (13 hours, 34 min ago)

      Hey everyone, I have a theme applied to my wordpress blog but I'm looking to change two things... 1) I'd like to have the top menu bar and bottom thumbnail bar STAY ont he screen, instead of disappearing when the mouse is moved off screen. 2) In conjunction with the first change, I'd like to have the images fit BETWEEN those, instead of going behind the MENU bar and BEHIND the thumbnails. I haven't edited the site further because I want to try and fix this. The author of the theme hasn't been the most helpful... The site is Christopher ... (Read Full Article)

      Comment

    9. Unbookmarking the Future of Browsing

      Explore dietrich (Jan 26 2012)

      I am needy: I want to remember URLs. Bookmarking is too manual and akin to throwing URLs in the sarlacc pit. The user-interface pieces around bookmarking have not changed in a decade. No, the awesomebar is not a good tool for this. I don’t even come close to being able to recall what I want [...] (Read Full Article)

      Comment Mentions:   Firefox   Javascript

    10. Casting Shadows with Three.js

      View all 2 articles » Explore reddit.com (17 hours, 6 min ago)

      submitted by jetienne [link] [comment] (Read Full Article)

      Comment

    11. Look, I did a Plasma Effect with webkit transitions (no canvas)! (xpost from r/webdev)

      Explore reddit.com (Jan 26 2012)

      submitted by Scorcherr [link] [comment] (Read Full Article)

      Comment

    12. Better Know a WebDev: Greg Koberger aka gkoberger

      View all 5 articles » Explore The Mozilla Blog (12 hours, 57 min ago)

      Better Know a WebDev: Greg Koberger aka gkoberger Welcome to another thrilling installment of your favorite, and only, recurring series on this blog: Better Know a WebDev! This is a special week, as we’re featuring someone who just moved from web development into a product role with our Add-ons team. Give a big welcome and congratulations to Greg Koberger! What do you do [...] (Read Full Article)

      Comment Mentions:   Firefox   Javascript

    13. JavaScript Graphing and Visualization Solutions

      Explore reddit.com (Jan 26 2012)

      I'm looking for the best javascript and graphing solution out there. My best I mean it should be easy to work with accepting simple arrays or even json data and look sweet. I don't want to spend a few hours developing using the second best or some other crap. I had thought there was one Google was linking to a while back but could not find the link in my history. submitted by systematical [link] [1 comment] (Read Full Article)

      Comment

    14. One reason why HTML5 gaming is limping along

      Explore Christian Heilmann's blog (Jan 26 2012)

      TD;TR: Converting games to HTML5 is hurting the cause. We need more games written in web technologies. OK, I might be a bit late to the party but the latest “web version” of Angry Birds, “subtly” advertising this time not itself but Wonderful Pistachios was the talk of the day on some of my mailing [...] (Read Full Article)

      Comment Mentions:   Google   Safari   Google Web Toolkit

    15. Function Declaration as anti-pattern? - Rhinocerus

      View all 3 articles » Explore Rhinocerus (Jan 26 2012)

      http://www.blog.highub.com/javascrip...undup-issue-2/ [...] Function Declarations is added under General Patterns section, it was first mentioned on John Resig's recent blog post. // antipattern function getData() {} // preferred ... (Read Full Article)

      Comment Mentions:   John Resig