HNHacker News
TopNewBestAskShowJobs

leokun

905 karma · joined August 16, 2013

Software engineer at a small San Francisco based software company.
submissionscomments
leokun··on Stolen cobalt-60 found in Mexico; curious thieves likely doomed
Not sure what the significance of this observation is supposed to be.
leokun··on Play, Scala, and Iteratees vs. Node.js and Socket.io
Pretty sure dependencies can come straight from a git url, bypassing npm. Put something on npm, and in your package.json you can depend on something straight up from github. npm will install and build that and it may break your stuff, it's a gamble. Given how dependencies nest into a massive web, you don't have to use many things before you end up with something that breaks you.
leokun··on Play, Scala, and Iteratees vs. Node.js and Socket.io
I'm sorry, it is over the top, I'm just so tired of npm libraries I depend on going dark or changing things without updating the version.
leokun··on Play, Scala, and Iteratees vs. Node.js and Socket.io
I think it's a bit over the top to compare Scala to JavaScript and node.js.

If you're comparing the two you have way more flexibility than you should because these are two widely divergent tools with different implications reaching beyond "easier" or "faster." I don't think people ought to even consider scala if they're considering "easy" as being a significant factor.

Scala enjoys type safety and compilation and a vast and deep sophisticated feature set, not the very least of which is inherited from the proven and storied java libraries. Node.js is a mess of shit heaped on the turd that is script-kiddy npm-land covered with int-less and unicode unsafe JavaScript.

leokun··on These 3 Federal Government Jobs Might Actually Just Change Everything
> it is my responsibility to make the article as enticing as possible to read

It's your responsibility as a writer to be honest. Why is it your job to make a post enticing? If being honest with the title of your post isn't enticing then I'm afraid your article isn't interesting and lying about its contents are not the right solution. And your title is not honest. Change everything? Are you kidding me?

> headlines have evolved over the years because writers have figured out what is more effective

You make it sound like you've no responsibility for your actions. Hey it's out of your hands, other writers have figured this out and you must follow. And all you have to show for it is a flagged post and at least in my case a big minus in my opinion for ride joy. You come across as a bit too much self-promoting. Reviews for your book also mention humble-brags, so it's not a stretch. Personally I put integrity above fleeting success, but your milage may vary.

leokun··on These 3 Federal Government Jobs Might Actually Just Change Everything
> These 3 Federal Government Jobs Might Actually Just Change Everything

That's the worst kind of link bait title. A type lambasted and ridiculed here, xkcd and everywhere else. HN should have some kind of smart filter to just auto flag these kinds of submissions.

Edit: And it's flagged off the home page. Good riddance. Maybe be a little bit less silly with your headline next time jason.

leokun··on Google Puts Money on Robots, Using the Man Behind Android
> All the cogs of the brain are well known and documented since years and their interoperation as well. But we still don't know how it all work together and what function is implemented by it.(I mean publicly. Some people may already know and keep it secret)

I don't think there's a single correct thing about anything in this sentence, it's also a little bit conspiracy crazed.

leokun··on I will not hack on your codebase for free in an interview
I wish I could have gone back in time to look at a codebase before saying yes to a job. I wouldn't have taken it had I seen it.
leokun··on No Girls Allowed
All I was saying is that is possible to actually have an informed opinion about this other than to rely on whatever you think you might have picked up from your own personal life experiences.
leokun··on No Girls Allowed
> I don't buy it.

There's an entire branch of social science that spends a lot of time on marketing, sociology. I recommend reading up on it from an academic perspective. Marketing is very influential but it isn't mind control. I'd say it shapes expectations more than create demand for particular products. And from an anthropological perspective I'd say marketing actually reveals more about a culture than it creates.

leokun··on No Girls Allowed
> Recently she asked for a pirate ship for her birthday, so it isn't all bad.

Hrm, Jake and the Neverland Pirates fan? My daughter likes izzy and I saw an izzy costume on Halloween. Pirates are getting popular.

leokun··on Why the Web Won't Be Nirvana (1995)
That background taskbar looks green and blue like windows xp. Is that right? How could this be 1995 if that's windows xp.
leokun··on Scala – 1 Star – Would Not Program Again
> This issue reached its pinnacle for us when we were unable to figure out how to replicate the magic response composition syntax used by Spray to abstract away the addition of CORS headers to HTTP responses.

I'd just put any kind of application, whether built in Scala, node.js or Go or ruby on rails behind a nginx proxy and use that for setting the headers. That simplifies a lot of things. I hope your HTTP headers aren't really so dynamic that you need to build software that changes them so much, especially not for a RESTful application.

leokun··on Thoughts on Bitcoin
I'm going to buy a bitcoin after the bubble has passed. What do we think the real price is. Like $10 or $100? What's the projected bottom? I'm hoping for less than $10, because cheaper is better. The thought that I would never be able to afford an entire bitcoin has a negative psychological effect, which may be silly.

What I like about alt-coins is how one can use that for games. Imagine making a game where a custom alt-coin, a bitcoin-fork coin that has no value outside of the game, used for transactions. Seems like a cool idea to me anyway.

leokun··on A note to Google recruiters (and on Google hiring practices) (2011)
I think the gist of the problem is that when Google acquires a company the way they handle the non-technical staff can be a bit off-putting. Instead of working hard to find them a place within Google during the acquisition process, or just laying them off with some kind of severance, they put the burden on the individual. You have a year to find a place? Basically that just means, you have a year to find a new place to work.
leokun··on A society of phone zombies
I get that. I totally agree with the point that smartphone use while driving is bad, that's why it's also illegal. But it's dangerous for everyone, not just bicycle riders.

Personally, and I'm sure the downvotes will keep flying in, I think it's completely reckless to ride a bike in dense traffic, surrounded by people who are on their smartphones and driving too fast, but you can feel all self-entitled to the road because the law just happens to be on your side (but not the infrastructure - not many bike lanes), but maybe instead ride on less busy roads or just don't ride at all.

I give bikers a lot of space, and everything that is required for them to be safe, but though I will never do anything less, I have learned to resent it. So many people riding their bikes just seem oblivious to their surroundings and make bad decisions and simply get in the way not caring. Then you come and post on the internet about how bad drivers are. I wish it was safer for people to ride bikes. I wish bike riding were a great thing where there were many lanes available, and everything was happy and safe, but it's not. So maybe just stop riding your bike, or ride on a less crazy road.

leokun··on A note to Google recruiters (and on Google hiring practices) (2011)
The thing that bothers me is the complete disconnect between the recruiters and the interviewer. The recruiter's job is to funnel as many developers as possible into the gaping maw of Google's human resource hiring system. So they use all the tricks any recruiter does by sending you insincere emails that vaunt your background, skills and experience. Very positive, uplifting full of the sky is the limit at Google marketing.

Then when you get into the process after talking to the recruiter for a few minutes it turns into a completely other kind of experience, somehow suddenly you're supposed to feel grateful for this opportunity to interview at Google, and it's time to go through the attrition gauntlet, try not to feel self-entitled like you deserve to work at Google.

Like maybe just be upfront about the expectations, because the disconnect from recruiter first contacts "you are the best please let us talk to you" to "oh shit you want work here? Yeah good luck with that." is really annoying and I stopped the whole process before ever talking to anyone.

And I like technical interviews, because I like the challenge. But not with Google.

leokun··on A society of phone zombies
> as a bicycle commuter

Smartphone use in a vehicle is a problem, so I agree with the gist, but this part about you riding a bike is completely irrelevant to the point you made. But maybe you want some kind of cookie for being so respectful of the environment and conscientious enough to ride a bike on a regular basis. So I just wanted to take this moment and thank you for riding your bike. You're a good person. You should tell more people that you are a bicycle commuter so you can get more people to thank you for your service to the world.

leokun··on 24 Pull Requests - Giving gifts of code back for Christmas
Eh, pull requests can actually create a lot of work for an OSS project, especially if they are not very good. So make sure the project wants your help, you understand what they want, and opt for quality over the number of pull requests.
leokun··on The "Anyone But Richard M Stallman" (ABRMS) License
I hope not. This is terrible.
leokun··on The "Anyone But Richard M Stallman" (ABRMS) License
It is not self-evident that it is satirical. It seems malicious enough to me.
leokun··on Announcing Scala.js v0.1
> Look carefully - what I wrote is not a library; it's a standalone binary. It's run exactly once, when you write the code, so speed isn't an issue.

Oh missed that.

> This is an issue no matter what language you use.

It's a lot bigger issue when you have to define classes for each type of possible response.

leokun··on Announcing Scala.js v0.1
Given that it uses reflect I bet your library very slow. I wonder how it compares to parsing JSON in Python or node.js.

> except for null/undefined,

That's not a small issue.

Not only do JSON responses for API's vary a great deal from request to request, some handle errors without HTTP response code's. So the JSON you get back can be very different then you might expect otherwise.

leokun··on Announcing Scala.js v0.1
I use argonaut.io and it isn't really hard so much as tedius compared to JavaScript or Python.
leokun··on Announcing Scala.js v0.1
I wonder how complicated it is to parse JSON in Scala.js. It's pretty involved in regular Scala and incredibly easy in JavaScript, so what's it like in Scala.js?
leokun··on IRCCloud
This didn't work for grove.io. Nobody pays money for IRC. There is a tiny, in the not worth it department, fraction of people willing to pay a couple of dollars for an IRC client.

At best you could build something like HipChat or Olark using IRC as a backbone and hide all the complexity of it from the end user and maybe then you have a chance.

Finally, less people are using IRC all the time. If you look at channels that have been around a long time, they've got less users than they used to.

leokun··on Choosing Scala
I knew a little Java, mostly from working with Android. I didn't feel like I was able to do anything within minutes. The very first thing I tried to do though was parse JSON and getting a JSON library working with sbt took about 2 days working part time.
leokun··on Choosing Scala
I use sbt for the moment. I may figure out how to get sbt to autocompile with changes. Intellij, while a very good and powerful IDE, can't really replace vim for a vim user because vim users learn vim esoterics by infusing the commands into muscle memory.
leokun··on Choosing Scala
Thanks for pointing me to your blog post, that's very useful. The points about what are great about Scala also very interesting. I really like scala, despite the hard work it takes to get going.
leokun··on Choosing Scala
I don't come from a CS background, but I have been programming professionally many years and recently got started with Scala. I had tried Go before and I like Go. I also really like Scala.

Scala requires much more work to learn than Go. I don't think I ever ventured out much from the offical Go documentation, the spec and effective Go and the library documentation to learn Go. With Scala I've already bought 3 books, and have bookmarked nearly 100 sites. I frequently have very many tabs opened with various scaladocs, examples and stackoverflow questions open.

My favorite thing in Scala is Akka. I quite like Akka and I like the functional programming that's possible with Scala. The build tools, like sbt require getting used to but I'm able to pretty much get along just fine without an IDE. I do have intellij open but I hardly look at it. I do all coding in vim and testing with sbt.

About 14 days in and I can connect to TCP and parse JSON ok. That's where I'm at. There have been some pretty frustrating moments, mostly dealing with 3rd party libraries (like scalaz, not documented much) and sbt, but once overcome it feels rewarding.

My other favorite things in scala: it has a REPL, s"String $interpolation" and pattern matching.

← PreviousPage 3 of 12Next →