HNHacker News
TopNewBestAskShowJobs

jdavid

1,293 karma · joined May 9, 2007

Justin Kruger ( San Francisco, CA )

A software engineer making his way in the world.

  https://github.com/jDavidnet
  https://twitter.com/JustinDKruger
Current Projects

  * learning ML
  * ...
submissionscomments
jdavid··on "Hello World" for authentication in a Backbone.js app
@jenkinsj Great work. This is clean, readable and well commented. Many of the patterns are great for a `hello world` backbone/node app.

I noticed you are using the underscore.js templating engine, and that you are embedding the templates in script tags within a 'shadow' dom poly-fill.

you might want to use <template> tags instead, and use display:none to poly-fill. I found that it works pretty well, and it's more semantically correct. Browsers should expect template tags in the future to be templates. I have tested this in number of browsers and it seems pretty well supported even in IE.

<template> tags reference http://www.html5rocks.com/en/tutorials/webcomponents/templat...

jdavid··on How should I behave as a developer in a project that's headed for failure?
As a Developer, I would buy a book or pay for a class on a topic covering how do you improve team dynamics and strive for success. Most of my schooling and knowledge is from the perspective of building a 'thing' and it would be great to learn how to rebuild a team when management is lackluster. Out here in Silicon Valley there are a lot of inexperienced managers working on good or great products, and as an engineer you might recognize the problems, but not know how to help them, or nudge them in the right direction.

It would be nice to learn from the experience of others rather than having to learn on your own each time.

Maybe this is something to talk about at FAILCON?

jdavid··on How should I behave as a developer in a project that's headed for failure?
It sounds like this is a 'Kobiashi Maru' Test, which is a no win situation that Starfleet gives to it's cadets.

After this project you will have 5 developers, and several managers that will go on to other projects. I'd say half of those people know what you know, and no one knows how to fix it. If you just work hard on the project one of those developers or managers in years to come might come looking for you to join them on an endeavor. Other than school, I think this is how people develop trust in each other.

If you choose to stay or go, either way you'll build character. It's up to you to decide if you are the sort that digs in and runs to the fire, or the sort that flees to live another day. NOTE: not everyone succeeds that runs towards the fire, but some do, and some consider them heros. Other's consider them fools.

jdavid··on Show HN: {{Mailstache}}, Templating for email.
This could be a great tool for those business founders that need to send a flood of emails quickly.
jdavid··on US immigration bill to increase H1B visa up to 180000
just a thought, does this affect the aquihire pipeline?
jdavid··on The Internet Explorer 6 Countdown
I was wondering if this has to do with the Great Firewall of China and Packet Shaping in some way.

The other explanation is that China just pirates really old versions of windows for everything.

jdavid··on Comcast injecting JS
This is either a bad april fools joke, or it might be related one of the following:

* ISP - 'six strikes' of content abuse

http://www.techradar.com/us/news/internet/broadband/six-stri...

* EBS - Emergency Broadcast System

http://www.washingtonpost.com/blogs/blogpost/post/wheres-an-...

http://news.cnet.com/8301-19882_3-57321623-250/wheres-the-em...

jdavid··on Kerbal Space Program - space flight simulator game
Ok so one of the coolest things in this game is that you can have multiple flights occurring at once. Has anyone been able to intercept another flight they have put into space?

What other crazy feats would be interesting to accomplish?

From what I can tell you can only attempt things based on this solar system.

This game is so enthralling for an engineer. It plagues me every moment since I got the game I love this sandbox space simulator. I hope they keep taking my money and really improve the game. It seems to work slightly better on my mac than on my pc, and the ship builder is a bit wonky, but I hope they improve that soon. Right now I spend too much time building things that should be much easier to construct.

Are any of you sharing designs on the wiki yet?

jdavid··on Kerbal Space Program - space flight simulator game
I first read it as Kabal Space Program.
jdavid··on 3D-ifying Documents Using CSS Transforms
Very cool.
jdavid··on Reinventing the Airline Industry
This is kinda my point the pricing is based on old maximums. Today the pricing could have a consumer centric model priced around arrival performance vs. ticket refund-ability and other sub classes.
jdavid··on 2005 - Paramount Said No To TrekUnited Crowdfund Campaign
Star Trek has always been a forward thinking community and back in 2005, fans tried to crowd-fund $10M to produce a 5th season of Star Trek Enterprise. $3M was put in by private donors of which one was believed to be Paul Allen.

Beyond that the crowd raised $145,000 dollars to bring the total to about $3.2M raised.

This month Veronica Mars will probably beat this amount on Kickstarter, a platform created to do just that, raise money from the crowds.

We have come a long way. On to the future..

jdavid··on Reinventing the Airline Industry
Another problem in the airline industry is pricing stability. current prices have been climbing over the last few years and pricing has always been confusing. I think there are several possible algorithm and economic models that could be leveraged to solve pricing on the fuel side, and on the consumer ticket side.

Stable prices means that consumers and airlines can both plan better.

For consumers, it means confidence in buying a ticket.

For airlines, it means predictable revenue, and costs, which should add to the market cap of the companies.

jdavid··on Reinventing the Airline Industry
I think Electrostatic engines will be a huge leap forward for jet engine travel.
jdavid··on Facebook using Content Security Policy headers for Webkit.
I also find it interesting that they define allowed websockets, but don't define which iFrames are allowed.
jdavid··on Facebook using Content Security Policy headers for Webkit.
For the less informed CSPs are a new web tool to help websites defend against cross site scripting.

Here is a definition of the spec, although this is only implemented for chrome, and safari. http://people.mozilla.org/~bsterne/content-security-policy/d...

jdavid··on The “Steam Box” era begins with the Piston, a $1,000 PC-in-a-console
This is what Asia does, they skip the consumer research and just make stuff and sell it at a small markup over cost. This is not a new product, a revolution, or anything other than a tiny PC. Some people will buy it, it might even be called a platform, but it's not a revolution.
jdavid··on Inter-window messaging using localStorage
This method may allow message passing between tabs, and windows, but it does not do so between iFrames. Two iFrames on the tab will not trigger storage events on each other.

In my opinion this is a bug that should be fixed,

https://code.google.com/p/chromium/issues/detail?id=177342

jdavid··on The HTML A element is broken
the larger problem with javascript linking is, the 'new tab' problem. On windows and linux center clicking the mouse on a link opens a new tab and does not focus on it. most javascript does not simulate this behavior.
jdavid··on The HTML A element is broken
Just write a polyfil in javascript for the functionality you desire on your site. It shouldn't be that hard to implement.
jdavid··on Show HN: Slidescroll – view your slide decks together
Great work. It's come along way since the earlier prototype I've seen.

For larger groups it would be great if you could click a link and go into private browsing mode, but still know what slide the group was on.

jdavid··on Why Did The Media Keep The Recent Peaceful Icelandic Revolution Quiet?
Maybe I have been watching too much 'Newsroom', but

'Isn't it a journalists Job to make relavant News, Relavant to the Public.'

jdavid··on Benchmark Comparison of Python Hashing Functions
MD5/ SHA is designed to be slow. so it makes sense that one that is optimized to be chaotic, low collision probability and even distribution could be faster.
jdavid··on Ask HN: Should your UX contain 'greyed-out' features?
so data is a requirement for you too?

teaching a user about a pattern is not a good enough reason?

jdavid··on Ask HN: Should your UX contain 'greyed-out' features?
what requirements would you have to implement a grey-ed out feature?
jdavid··on Ask HN: Should your UX contain 'greyed-out' features?
It seems that data is a core element of the 404-test/ 404-link-test approach. Would you ever do it without data? to teach a user about a future feature?
jdavid··on Ask HN: What do you think of the new mobile Ubuntu OS?
I am glad they are trying it, but it'a quite the molehill to climb up 4 or 5 years after Apple and Google tried it, and palm, ms, mozilla and blackberry have had moderate success or failure.

It's important for the web to stay free, but we also need the app ecosystem for this to work, and mobile payments are a big part of that.

How does Ubuntu get developers paid, and more so than an app for Apple or Android?

jdavid··on Ask HN: How do you protect your Javascript-powered WebApps?
If it's a web app and it makes API requests it might be pretty hard to make cross-domain web requests. So if your app is naturally complicated enough this isn't an issue.

If it's like a javascript web game without much of a server component, you could try to hide a lot of the execution of the code within in a closure. dynamically loading the code with a script would add to this obfuscation.

in the end you are probably fine.

one final bit of obfuscation that i have always wanted to try was to load the JS via a web-socket on a worker process. that should even hide a lot of the js file being loaded.

if you needed to go farther some people have even done some degree of encryption. again all of this is probably way more than you need. I've never worried about this. if someone has the time to steal your code and work with it you should probably hire them or go have coffee with them and ask for feedback.

it's a great honor for someone to read and interact with your code.

jdavid··on Ask HN: How to help a friend find her first tech job?
I'd get her set up with a GitHub account and have her start improving open source software.

There are also a number of companies doing 'developer boot camp' http://devbootcamp.com/

Some of the dev camps will charge a nominal $10k-$20k but will take consulting referral fee and pay for the boot camp costs if you get placed by one of their recruiters.

jdavid··on Ask HN: Should your UX contain 'greyed-out' features?
My gut reaction agrees, but I have seen times, especially at 'telly' where we were able to do a quick test and prove that users were interested in a feature.

However in that case we were both watching data and only running the test for a few hours.

I'm wondering when there are best practices to do this, and maybe when not to do it.

← PreviousPage 2 of 20Next →