HNHacker News
TopNewBestAskShowJobs

davej

2,298 karma · joined September 7, 2010

https://twitter.com/DaveJ

Founder of ToDesktop: https://www.todesktop.com

dave[@]todesktop.com

[ my public key: https://keybase.io/davej; my proof: https://keybase.io/davej/sigs/FM5YHbUxtgUBcbAxTsHEUoJ99YV2rd9JbFNBjoZ3JBw ]

submissionscomments
davej··on Launching and landing rockets: A comparison between Blue Origin and SpaceX
In reality, the general public has no idea what SpaceX is either.
davej··on Xto6 modernizes your JavaScript code
Perhaps it's fixed on the master branch but it's broken on the websites live transpile thing (which is where I tested it).
davej··on Xto6 modernizes your JavaScript code
Watch out for lexical binding with arrow functions. It could lead to some nasty bugs if you blindly transpile your old code.
davej··on How PostCSS became 1.5x faster by changing 2 lines of code
I have experience with profiling the `delete` keyword. It slows down post-deletion access to the parent object significantly. Generally, I avoid using it and instead set the value to `null`. Technically, this creates a memory-leak because the pointer remains but depending on the characteristics of your application it may be worth it.

The usual disclaimers of "profile it first" and "YMMV" apply, but it's useful to be aware of potential low hanging fruit when JS performance is critical to your application.

davej··on Animated SVG vs. GIF
I agree. It would be nice to see a format like Sublime Text's pseudo animated GIFs [0] take off. It's not perfect because it requires JS + PNG + JSON and currently the python build scripts only work well on linux. If other tools started providing export functionality to this format then it could get more interesting. Historically, iterating on these ideas on the client has been a good way to get standards implemented in browsers.

[0] http://www.sublimetext.com/~jps/animated_gifs_the_hard_way.h...

davej··on New vs. Old – a comparison of 23andMe’s health reports and the raw data
Is there anything that Promethease doesn't already provide?
davej··on CodePush by Microsoft
I wonder could this potentially be used with Electron or nw.js?
davej··on Node.js 5.0 Released
For spread operators? Sure. Adding a build step to your process adds other hurdles though in terms of indirection, particularly when collaborating.
davej··on Node.js 5.0 Released
Highlights for me: npm3 and ES6 spread operator (no destructuring assignment yet though)!
davej··on Photon – Framework for Electron apps
At least go can be searched for with 'golang'.
davej··on Photon – Framework for Electron apps
Yeah, as someone who works with Electron, the naming is often frustrating for doing Google searches. Wished they had stayed with atom-shell for that reason.
davej··on 11 Toughest Cities to Book an Airbnb
I'm back from a month in Berlin and found lots of reasonably priced apartments available. Price was generally lower than other European destinations that I've used Airbnb with. I booked the accommodation a month in advance of the trip though.
davej··on SolarCity didn’t invent solar panel, but it invented something more important
I don't believe this is true, can you provide a source? Tesla was running out of cash at the end of 2008 and private investors saved them. The government loan was in early 2010. I don't believe that there is any evidence that Tesla was running out of cash after the 2008 private investment.
davej··on Highlighter.js
I agree, most of the code in the library is for element navigation. Why not open-source that and let people define their own CSS props.

By the way, I believe it uses the `outline` CSS property as opposed to `border` (border changes layout, outline doesn't).

davej··on Non-Blocking Asynchronous JSON.parse Using the Fetch API
My results on Chrome 43 running on an i7 Macbook Pro. JSON generated from: http://beta.json-generator.com/NJG1eN49

~34KB json string (1st run):

    sync: total time (blocking): 0.412ms
    async: blocking time: 1.822ms
    async: total time: 3.943ms
    ➜ str.length
    34527
~34KB json string (10th run):

    sync: total time (blocking): 0.569ms
    async: blocking time: 0.438ms
    async: total time: 2.336ms
~112KB json string (1st run):

    sync: total time (blocking): 1.217ms
    async: blocking time: 1.036ms
    async: total time: 4.818ms
    ➜ str.length
    114745
~112KB json string (10th run):

    sync: total time (blocking): 1.658ms
    async: blocking time: 0.683ms
    async: total time: 4.444ms
Could do with some proper benchmarking by someone who knows more about benchmarking this stuff for real-world usage (i.e.. not me). By the way the 2nd - 10th run results were pretty similar, the amount of time that async function was blocking gradually decreased as it was run more often (I ran the ~34KB tests first).
davej··on YC Startup School Radio, Episode 1: Alexis Ohanian and Kaz Nejatian
I'm not here to defend the guy but it seems we know nothing (spot the pun) about why Victoria was fired. It may have been completely reasonable, it may not. It may have been a unilateral decision by Alexis but I honestly doubt it, these things still have to be okayed by the CEO.

Pao was in the Reddit community's firing line long before Victoria was fired, they were looking for a reason to pounce.

davej··on YC Startup School Radio, Episode 1: Alexis Ohanian and Kaz Nejatian
You're contradicting yourself, you say that "Not once did he come forward and say it was him" and then you say Alexis publicly admitted it himself.

My point is that we don't really know why she was fired (and why should we?). If Victoria wants to come forward and explain what happened then we can discuss the merits, until then it's speculation.

davej··on YC Startup School Radio, Episode 1: Alexis Ohanian and Kaz Nejatian
All this is speculation.

For good reason, it is not public information who fired Victoria or why. I doubt it was a one-person decision though.

davej··on Your Startup's Pitch Needs Only These 10 Slides
That's the primary purpose of most infographics these days, linkbacks for search engine juice.
davej··on Ng-book 2 is out
Typescript compiles down to ES5, so yes you can write in ES5 but it's not as pretty. You can create a class the standard way using `prototype` and from memory the annotations look something like this:

    MyComponent.annotations = [
      new angular.Component({
        selector: 'my-component'
      }),
      new angular.View({
        template: '<div></div>'
      })
    ];
davej··on Show HN: Manage passwords with GPG
These tools really need a browser plugin for them to be useful to me.
davej··on Reality doesn’t exist until it is measured, quantum experiment finds
I find it fascinating how the speed of light, quantum indeterminacy and Planck's length could all be seen as allegories for computational optimisations in a simulated universe.

This is something that I've thought about for some time, I posted a question about this a number of years ago on Reddit: http://www.reddit.com/r/Physics/comments/g287k/quantum_indet...

davej··on What F1 Cars Would Look Like if F1 Got Its Act Together
It's amazing how quickly that F1 catches up despite the rule changes though. Qualifying times at Austria (last weekend) were within 0.5 seconds of the qualifying lap record, and that's despite the two Mercedes going off-track in their final lap.
davej··on Show HN: Ng-classy – Use Angular 1 and ES6 with ease
Hey, I have a reasonably popular project with a very similar name. It's not a huge issue but it might be a bit confusing for people using our projects: http://davej.github.io/angular-classy/
davej··on Facebook Opens Internet․Org to All Developers Due to Net Neutrality Concerns
Facebook doesn't care about poor people but Facebook is ultimately run by people making decisions and some people care about poor people.
davej··on Automated code review for Python, Django, etc.
So this is a linter? What does this give me that django-lint and pylint doesn't?
davej··on FOAM: New JavaScript Framework by Google Engineers
From the video:

    function constructor(spec) {
      let {member} = spec,
          {other}  = other_constructor(spec),
          method   = function () {
            // accesses member, other, method, spec
          };

      return Object.freeze({
          method,
          other,
      });
    }
davej··on Npm Private Modules
How does versioning work with this? Do you have to point directly at a branch/tag and get the latest or can you somehow use semver fuzzy versions with this? i.e. versions compatible with 1.4 -> '^1.4'
davej··on Etsy Vendors to get option to buy $2,500 of shares before public float
This is more than just a nice gesture, it's also a very shrewd long-term business strategy.

The majority of the value in the Etsy platform comes from their vendors and community. If they didn't have vendors then the site wouldn't be so successful. Etsy are ensuring that their vendors are invested in the site with them and less likely to jump ship to a competing platform.

davej··on How I doubled my Internet speed with OpenWRT
Was interested in this so I did a bit of investigation into whether it makes sense with UPC.

UPC only makes a small amount of bandwidth available on the 'Wi Free' (UPC's version of Xfinity) network, seems to be about 2.5mbps down and 0.5mbps up. In my country (Ireland), the minimum package you need to get 'Wi-Free' is 120mbps down, so It's not really worth the effort for an extra 1% bandwidth.

← PreviousPage 7 of 17Next →