HNHacker News
TopNewBestAskShowJobs

leokun

905 karma · joined August 16, 2013

Software engineer at a small San Francisco based software company.
submissionscomments
leokun··on A Thanksgiving Request from Priceonomics
I bought the book. He's an established writer who does his job of writing well and he has an interesting story to tell.
leokun··on Preorder your very own cold fusion reactor
Berkeley, California is a "nuclear free zone" as the many signs scattered around the city will announce to those that enter. I guess this machine will not be allowed for sale here.
leokun··on Clojure: The JFDI language
Can you name a specific arbitrage opportunity because I wouldn't mind making some money.
leokun··on 62% of 16-24s prefer books as physical products
I buy physical books for my daughter. We also go the library every week and borrow books. I have the same experience without having to resort to reading a physical book myself. I use a kindle fire and have gotten rid of 99% of my physical books and have no intention of ever buying another physical book with the exception of hard to get computer science books that are not available in digital format in any form or shape.

> taking a timeout from electronics is important to his growth

My 5 year old daughter has been able to self-regulate her ipad use, she's had an ipad since she was 3. We only limit videos: when and how many videos she can watch because she won't stop watching them unless we intervene.

leokun··on On Asm.js
> the web is rapidly gaining all the flaws that Flash used to have

False.

1. Modern JavaScript vms are sandboxed, not native plugins with unending security holes.

2. It's nearly all open standards and open source, not proprietary closed source controlled by one company. OpenGL, EcmaScript, W3, Mozilla, Chromium, blink, webkit.

3. It works on mobile devices, flash doesn't.

4. The tools are out there. Check out appcelerator or unity's tools.

5. Flash never had the native performance or hardware acceleration that modern JavaScript has.

6. Don't think Flash ever had the kind of momentum JavaScript has. Like has anyone ever made a derby.js for Flash? A sharejs? Compiled other languages to ActionScript? With source maps to help?

7. Flash avoids all kinds of privacy settings and plugins in your browser. Flash gives you less control.

8. Even Adobe has moved past Flash, these arguments are all done, why haven't you moved on?

leokun··on Learn PHP – Free interactive PHP tutorial
You didn't really have to add the racism to make that point.
leokun··on Salesforce’s Hackathon Scandal: Secret Judging, Favoritism, Cheating?
I've never seen these as doing work for free. I've seen hackathons as a way to get developers excited about a product, platform or API. A cool and fun form of marketing, in effect.
leokun··on End the N.S.A. Dragnet, Now
She's not a hypocrite. She is very open and public about her positions. I do not think she is dishonest I just think she fights against progress.
leokun··on End the N.S.A. Dragnet, Now
In five years she will have done so much more damage it's hardly fun to think about it.
leokun··on Learn PHP – Free interactive PHP tutorial
By unsafe I meant insecure. Also with C you have to import headers.
leokun··on End the N.S.A. Dragnet, Now
> If she runs again in 2012

2012 was last year.

leokun··on Learn PHP – Free interactive PHP tutorial
That's kind of like JavaScript the good parts eh? Cool.
leokun··on Learn PHP – Free interactive PHP tutorial
> how to avoid what PHP has been infamous for : spaghetti code

Spaghetti code is not what PHP is infamous for. Spaghetti code can be written in any language. PHP is infamous for all library functions being in the global scope, lack of sane naming conventions for those things, terrible type conversions, unsafe libraries, starting php with every request, being able to drop raw php right into html templates - what it was initially designed for, and being just a general web programming language not much useful in any other context. It's also got a bad wrap for being the language of choice for people who do not wish to learn any other language or anything about computer science or computers.

PHP is what happened when people learned HTML and saw that once they got to forms they needed something else.

leokun··on End the N.S.A. Dragnet, Now
I think the bit about the single vote was about her? Does it mean they had just one vote in the committee or a single person quashed the bill?

Feinstein lives in an ivory tower, completely isolated from the needs of ordinary citizens in California. She gets six years in office with every election, and was just recently re-elected. She's totally safe, like those tea-party republicans in gerrymandered districts. California is too big of a state for a grassroots organization to challenge her in a primary and she placates enough of various groups with the funds to start an astroturf war and so they leave her alone. She's pretty much untouchable. She often starts on the wrong side of many issues, a notable exception being LGBT rights (good for her and us), and only with intense pressure from public opinion does she bow for appearances only. For example she was for SOPA, against meaningful health reform, and she's been a staunch defender of the NSA.

Senator Feinstein is a defender of the status quo. She's a conservative. Not a social conservative or neo-conservative, but someone who fights progress. Her office is in an actual giant tower right outside of the Montgomery Street Bart station and she wouldn't even come down to visit protestors and talk to them when we were there on behalf of OFA and there quite a few of us. It might as well have been built in ivory. That was the only protest I have ever taken part in. It wasn't even really a protest, just a show of support for Obama's health care plan.

Politicians like Feinstein make me cynical about politics. I feel helpless to be able to contribute change, so I just don't want to care anymore. Whatever, she's the boss. Great. Could be worse I guess.

leokun··on The strict Pragma is a Cultural Marker
I just don't understand why anyone developing a language would think dynamic scope would be a good idea.
leokun··on PayPal releases Kraken, Node.js framework
I pick less chance for errors over performance. Referencing variables outside of local scope is something I avoid. Write beautiful code first, because it's easier to optimize beautiful code than to beautify optimized code.
leokun··on PayPal releases Kraken, Node.js framework
Someone else asked this too, check out my answer there.
leokun··on PayPal releases Kraken, Node.js framework
Yeah didn't notice the lack of doc comments. That is nice to have for a library.
leokun··on PayPal releases Kraken, Node.js framework
Native methods can be slower than simply using a for (Edit: while) loop:

http://allyoucanleet.com/post/21624742336/jsconf-us-12-slide...

self = this is error prone because it relies on JavaScript's lexical scope to share a variable across nested functions. It's a gross abuse of closures. It invalidates the ability to bind or use apply later, since everything is bound to that local variable self, and it's simply not needed and is probably used to avoid considerable use of bind, but using bind is only an issue when you write flock of seagull style nested function code. using self = this is not the right solution, writing more modular code with smaller functions is.

leokun··on PayPal releases Kraken, Node.js framework
====

Don't like:

dust.js templates instead of handlebars

self = this all over the place

native use of forEach and Object.keys instead of underscore or lowdash

====

I like:

that you can change the template system

grouping routes, I always add this myself, makes it more django like

security stuff like csrf

dev and prod environment awareness

directory layout is cool

apache license

uses grunt

they use Object.create!

one var statement per function

krakens

====

Overall pretty awesome.

p. s. I have no idea how to format text here.

leokun··on Safari Push Notifications
We've developed a WebRTC PeerConnection video chat, and it is not so great just yet. It barely works in Firefox, and is all around buggy and constantly changing.
leokun··on Wikimedia Foundation sends cease and desist letter to WikiPR
> We still have not taken the step of building a wikipedia page for our startup, and instead have continued to focus on making it notable.

Do you not know about Wikpedia's policies? You should probably not create a wikipedia page for your own product. If you become notable someone else will do it for you. You have a major conflict of interest, and thus you should just not do it, and you should probably not edit it either if one is ever created.

https://en.wikipedia.org/wiki/Wikipedia%3ASpam#Advertisement... https://en.wikipedia.org/wiki/Wikipedia:Notability_(organiza...

leokun··on Report: Dropbox seeks new funding, valuing company at $8 billion
Yeah, it's like leaving money on the table I suppose.
leokun··on Why Russians Are Not Smiling (2011)
I've never seen too many people smile waiting for Bart either, and I've looked for smiles.
leokun··on Bloomberg News Suspends Reporter Whose Article on China Was Not Published
China has its own quality brands. Lenovo comes to mind. Lenovos are probably some of the best laptops out there.
leokun··on Mercurial developer responds to "Switch to git?"
Agreed, Google Code is awful. The tree ui for browsing code is so very terrible. Browsing commits is a terrible pain. Viewing diffs is awful. And the site just looks ugly and is hard to use. I was tired of Google Code before I even knew about GitHub, I had switched to Unfuddle.
leokun··on Ask HN: CS Degree, felony conviction, need not apply?
Some companies cannot hire felons. Companies that require PCI compliance and companies with secured data centers like Rackspace will often not hire felons as a policy. I'd hire you though. I hope someday after we've had enough of ruining people's lives in our never ending drug war we can get a general amnesty for all drug convictions for non-violent offenders.
leokun··on China to Ease One-Child Policy; Will Also Abolish Re-Education Through Labor
> There isn't a single communist country, and I don't think there has ever been any.

The Animal Farm problem I guess, maybe AI can help some day.

leokun··on ZeroMQ is just sockets
If you read the name as "zero message queue" is it surprising that it doesn't have persistence? There's no message queue.
leokun··on Renault will remotely lock down electric cars
Cars without access to official batteries will probably create a market for Zoe batteries from third parties.
← PreviousPage 4 of 12Next →