HNHacker News
TopNewBestAskShowJobs

h_r

116 karma · joined September 11, 2011

submissionscomments
h_r··on Twitter Has Become a Park Filled with Bats and Perverts
Threatening others with physical violence after posting pictures of their kids, shit like that, isn't quite the same as a flying dildo though, right?
h_r··on To fixate on finding work that makes us happy is a luxury
How about "a net drain on resources that the provider of the resources would prefer to spend elsewhere"?
h_r··on Xamarin for All
What about those of us who like F# and want to use that? Are you supporting that as well?
h_r··on Experts, True Believers and Test-Driven Development: how advice becomes a religion
If you're doing OOP this can mean leveraging polymorphic behavior rather than switching on data or data types. It's good to keep in mind even if it doesn't fit every single case.
h_r··on Ask HN: Node vs. .NET Core
I'm mainly a Java programmer here but I like F# a lot. Are there any problems using only F# with .NET Core apps? Do you really need to use C#?
h_r··on I made an iPhone game with PhoneGap and won't do it again
Has anyone tried Xamarin for building mobile apps? Not Xamarin Forms but the lower level tool kit? It sounds pretty good on paper. At work the only negative I heard from one team who tried it is it added too much bloat. But that might just be their coding...
h_r··on Stepping down as Nodevember organizer
Does the main organizer now acknowledge this was a mistake? Sincere question since I have no idea.
h_r··on Apple is under fire for “excessive overtime” and illegal working conditions
I'd like to know what percentage of their business is from Apple though. I suspect it is their biggest customer by far.
h_r··on The mystery noise driving the world mad [video]
Maybe but they address this very point by saying the hum is only in the past few decades but tinnitus has been reported for very much longer. No idea how much data there really is either way.
h_r··on A Famed Hacker Is Grading Thousands of Programs
I think that would fall in the third type of report they are planning to sell: "The third report, which they plan to sell, will contain raw data from their assessments for anyone who wants to recreate them."
h_r··on Announcing TypeScript 2.0 Beta

  let lowerCased = (s : string[] | undefined) => s!.map((str : string) => str.toLowerCase());

  console.log(lowerCased(['A','B']));
  console.log(lowerCased(undefined)); //boom!
It doesn't coerce anything. All it does is let the code pass without error. "s!.map" and "s.map" compile to the exact same Javascript code, which means there is no type coercion going on. Are you sure you know what type coercion is? The first log prints out fine and the second blows up, which proves that undefined isn't being coerced to a string[]. If that was the case, the resulting JS would be checking for undefined and probably creating an empty array.
h_r··on Announcing TypeScript 2.0 Beta
Umm never? That's not the point. It's not changing (coercing) the type of anything, it's just allowing the call without flagging it as an error. The call at run time might still get passed an undefined and fail. It's like choosing an unsafe partial function in Haskell rather than using a total function that forces you to deal with Maybe.

At least that's what it looks like. I've never used typescript or I'd test it right now. I'm on my phone and haven't tried it.

(Edit: my answer didn't quite make sense! It's different since without ! it compiles as an error because, in this case, you can't map over undefined. With !, it just ignores that possibility although it could still happen. The compiler cannot verify all run time possibilities since your sum type says it really can be undefined.)

(Re edit! Verifying the types vs skipping that verification is not the same thing as coercing the types)

h_r··on Announcing TypeScript 2.0 Beta
>! is just an inline type coercion.

Are you sure about that? It sounds more like a signal to the compiler to "trust me, I know what I'm doing" and would blow up if you passed undefined anyway. Maybe the author didn't explain it very well. That is, not a type coercion so much as a hint to not bother checking this access.

h_r··on Silicon Valley entrepreneurs turn to fasting and 'smart drugs'
What are some drawbacks you've experienced?
h_r··on F.B.I. Recommends No Charges Against Hillary Clinton for Use of Personal Email
The definition of "criminal treatment" is precisely the point here. Merely calling it criminal doesn't make it so.
h_r··on Why metadata is bad – 3 minute video your Mom will understand
I find it interesting and funny that this video about metadata turned into one giant metadiscussion of the video with almost no mention of the actual content.
h_r··on DO Not CLOSE THE ISSUE ASSHOLE
Having a native code dependency in a Node package DOES seem pretty insane to me though, unless absolutely forced. I'm surprised Google would do that.
h_r··on Hey Apple, a Five-Year-Old Computer Isn’t ‘Sad’
It's obvious you never worked for a large bureaucratic company having to support many intranet legacy web apps. Of course you can run another browser for the other stuff. This is about the financial costs of software resulting in "corporate standards" including some ancient browser.

This is not at all unusual. And it's hardly a thing to flame the messenger on. It's just a reality some people deal with.

h_r··on Why America is moving left
What I think is funny is that he said exactly why in the second paragraph. You make it seem as if you got so pissed off at the first sentence that you immediately hit the reply link without bothering to read what he said. Why not address the reason he stated?
h_r··on Is vast inequality necessary?
Did you get to the end? He says explicitly that inequality is inevitable. He's asking whether the American kind of vast inequality is necessary.
h_r··on MSBuild is going cross-platform with .NET Core
Adding to all the good points that others mentioned, this sort of consistency only grows in importance in large companies where developers support many different projects. It allows you to focus on the business problems rather than spend time getting used to dozens of variations in the build themselves.

We had this problem with Ant many years ago. Everyone did their builds differently and half of them were subtly broken.

h_r··on Let's stop kidding ourselves about APIs
I'm curious what you call it when you add an API to some business functions that run on a mainframe in order to make them available to other external software written Java or .NET, for example. This kind of thing is done all the time in enterprise shops. Trying to frame it as a political power struggle between the negotiating parties frankly sounds pretty ridiculous.

I have direct experience doing this sort of thing for years. It's really just a strategy for better leveraging your existing business assets. What is the value of saying, "That's no application programming interface, it's just an implementation detail." I think it just confuses the concept for possible surrounding context. If that context is missing (negotiating, somewhat hostile parties), then all you've done is say that you can't call it API. Hmmm ok then...

h_r··on Let's stop kidding ourselves about APIs
This is what I was thinking and I must have been thinking about it a lot longer before hitting the reply button because I believe I said almost the same thing. I just wanted to mention that I wouldn't have posted my reply if yours was here when I started composing it.
h_r··on Let's stop kidding ourselves about APIs
I have to say I find this line of thinking somewhat incoherent. I'm thinking of cases where someone creates software and also offers an API to enable tooling, alternative interfaces and that sort of thing. Take Github or Microsoft TFS, for example: they offer an API that exposes functionality that they control but what is political about it?

Or say I offer a REST API at work to some business functionality locked up in a mainframe in order to expose it for reuse by other apps and workflows, and the consumers desperately want me to do it (or anyone who has the time to do so). What is political about that? Talking about the API is going to revolve around requirements that other apps have that could be satisfied by such an API. How is it useful to view that as a type of political border dispute?

API seems to be a fairly narrow concept to me that appears in various contexts, some of them political and others not.

h_r··on Show HN: SnapRides – Carpool scheduling with a panic button
I'm one more person who had the same reaction to idea of a panic button. After spending a couple of minutes on the site I merely felt confused about what it was supposed to be.
h_r··on The Bug Nobody Is Allowed to Understand
Such a "spec" would not be able to describe how systems interact: protocols, failure modes, SLAs, etc. In other words, the kinds of things you want specified when engineering a system. These are also specs
h_r··on The Two Pillars of JavaScript: Part 1: How to Escape the 7th Circle of Hell
To be fair, planning ahead and getting it right requires a relatively stable specification of the requirements. This is not often found in a typical business environment.
h_r··on Tor Browser 4.0 is released
Showing what? That you might have been using your own node for something?
h_r··on Ask HN: What do you do to blow off steam?
I don't know what it is about water but I run along the lake Michigan shore. The sound of the water lapping against the wall or crashing onto the shore is a great stress reducer.
h_r··on This Is What Tech's Ugly Gender Problem Really Looks Like
I disagree but it is tough to reach consensus on this without a real definition being offered, and there was none.

You actually are free to express yourself however you like without violating laws or the civil rights of others. All I heard in the way of a definition is "... and I also want to be free of any consequences I really don't like.". Well, too bad because that doesn't exist and asserting such a "freedom" isn't much different than asserting that unicorns exist. It's a fantasy concocted in your head, not a real thing.

← PreviousPage 3 of 4Next →