Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
alangpierce
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
47 ms
·
421.
▲
by
alangpierce
12y ago
Changing eval to an interface method would work, but wouldn't get quite the same effect. The way I see it, there's a two-dimensional problem here: one dimension is the different cases for the type (I, B, Add, Mul, Eq), and the oth
422.
▲
by
alangpierce
12y ago
You can get a stronger sum type using the visitor pattern (which is the typical way to get sum types in Java). I ported the code in the post to use that approach, and here's what it looks like: http://play.golang.org/p&
423.
▲
by
alangpierce
12y ago
You would probably also get the opposite problem: I bet some people (particularly international candidates) have little to no experience with Monopoly, and the question would be unfair to them. If the goal is to start with their vague under
424.
▲
Python Puzzlers
(speakerdeck.com)
10 points
by
alangpierce
12y ago
|
1 comments
425.
▲
BigBingo: Khan Academy's New BigQuery-backed A/B Testing Framework
(alangpierce.com)
11 points
by
alangpierce
12y ago
|
0 comments
426.
▲
by
alangpierce
13y ago
It isn't necessarily the case that Google would shut down their bus service if it had to meet the requirements of public transportation. It looks like Google already funds a free shuttle from the Mountain View Caltrain station to Googl
427.
▲
by
alangpierce
13y ago
The blanket statement “Never talk to the police” is obviously either not very well-thought-out or not meant to be precise. What if you're the victim of a crime? A more honest title for this video would be “Talking to the police will on
428.
▲
by
alangpierce
14y ago
One potential downside is that it's a lot harder or more computationally expensive to figure out class/interface relationships in IDEs or other tools. (I haven't used Go, though, so I'm not sure what kinds of tools are available for it.) Ge
429.
▲
by
alangpierce
14y ago
Good language-aware syntax highlighters do a lot more than highlight keywords and other syntactic things, and can make code more readable in a nontrivial way. For example, Eclipse's Java editor will color things differently based on the sco