1. Kyle Weems: function awesomeWorkday(tasks){if (tasks instanceof coolJsonStuff || tasks instanceof coolApiStuff) { return true; } else { return false;}}

    cssquirrel even the if/else is redundant ;)

    
    function awesomeWorkday(tasks) {
      return (tasks instanceof coolJsonStuff || tasks instanceof coolApiStuff) ? true : false;
    }
    

  2. Cross-browser selection UI injection flow:

    1. Listen for mouseup on body
    2. When triggered, let s be window.getSelection()
    3. If s.isCollapsed === false, return
    4. Else, let r be s.getRangeAt(0)
    5. Create a new element e
    6. Call r.surroundContents(e)
    7. e.innerHTML and e.textContent now return useful values, and e’s coordinates can be used to inject UI into the page

    To resolve: what element should e be? Or more accurately, what display property should it have? Possibly inline-block (inline mucks up if selection is across block elements, block mucks up selections within text nodes)

    Turns out there are problems with r.surroundContent, namely that it does not handle partial element selections. See MDNs explanation and solution.
  3. Pushed lots of note UI updates to today, including porting almost all the to Backbone. Still :

    • Improving location UI: improve cancelled state text, fix located state
    • Make a view for note lists, inc. event handling like add new note to the list when it’s posted from the dialog. This will also minimise the number of requests.
    • Make the backend auto-add hashtags to the note tags property. It should have been this way all along.
  4. Just pushed a plugin which auto–populates the <ins> and <del> elements with their little–known datetime and cite attributes. Hopefully, coupled with my article update histories and a bit of , this’ll allow for some native-HTML version control type stuff.

  5. Writing a jQuery plugin. I have become my own worst enemy. But all the other in-place edit plugins are either horrible or try to be a REST syncing service too.

  6. Jack Way: @BarnabyWalters Angular.js, Node.js, Testacular. I highly recommend NetBeans btw.

    Jack Way netbeans is certainly the best IDE for php I’ve used so far. Angular.js looks nice, I’m trying to learn ember at the mo but the docs are rather inadequate.