Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
subtenante
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
10 ms
·
31.
▲
by
subtenante
10y ago
It's not guaranteed to be unique?
32.
▲
by
subtenante
11y ago
Indeed, thanks!
33.
▲
by
subtenante
11y ago
I use it especially for enums so it's like: MatchMap.of(someOptional, defaultValue) .whenEquals(MyEnum.VALUEX, v -> someFn(p1, p2)) .whenEquals(MyEnum.VALUEY, v -> otherFn(p1, p2)) .resolve();
34.
▲
by
subtenante
11y ago
Funny, I happened to code something just today very similar, but a lot lighter (just two classes, Match for consuming only, and MatchMap for mapping the optional. No when/get, just a when taking two parameters : the predicate and the m
35.
▲
by
subtenante
11y ago
It's interesting, but I find peculiar the choice of the words which are overspaced. I would expect works like 'that', 'from', 'with' far more important for chunking than 'to' for instance.
36.
▲
by
subtenante
11y ago
Hiring someone is taking power over someone else's life. When you become a boss, you become the main source of income for someone. He/she becomes your subordinate. And you will make a part of your profit from his/her work. Th
37.
▲
by
subtenante
12y ago
35 hours, in France, is just the legal threshold over which hours are counted as extra (and thus are paid more). No one in France is forced to work 35 hours "only". Besides, we are talking about employees, which means a hierarchic
38.
▲
by
subtenante
12y ago
How does your bank create free money when you make a loan ? The argument "where does the extra money comes from?" is looking at it the wrong way. The right question is: does it stimulate the economy? Currently, people do not spend
39.
▲
by
subtenante
12y ago
I think you are mistaken on the positions of the PCF. Please read the political program for the 2012 elections "L'Humain d'abord" and tell me where it favors "totally state-governed economy" or is "against
40.
▲
by
subtenante
12y ago
The coalition still exists, but the French communist party (PCF) is generally not considered extreme left either, at least in France. They have had ministers in governments in the last decades. They have been financed by the USSR in its tim
41.
▲
by
subtenante
12y ago
Of course not. Alexis Corbière (from the same party than Mélenchon) is actually the one who got this analysis of the trailer first. It may have been a mistake from his, but he surely didn't do it for the money. He has already co-writte
42.
▲
by
subtenante
12y ago
This is false. Mélenchon does not wish media to talk about him (his private life is almost completely unknown, people know he has a daughter, but not much else) . He wants the media to talk about his ideas, and he takes any occasion he has
43.
▲
by
subtenante
12y ago
Well, no, Mélenchon is not a moron, but one the the greatest intellectuals France has at the moment. He is one of the few French politicians to actually develop new ideas, instead of supporting the liberal dogmas which are ruining Europe. A
44.
▲
by
subtenante
12y ago
> That's, at best, misleading. I don't think so. Talking about engagement and participation is very well, those are indeed important aspects of a citizen's life, but they can also happen in regimes which are not democracie
45.
▲
by
subtenante
12y ago
Those two things are not exclusive (you can have both, any of them, or none). A republic means the laws are applicable to all citizens ; it defines a juridic order. A democracy means that the sovereignty is in the people ; it defines a way
46.
▲
by
subtenante
12y ago
By measurable, I mean objectively. Mattering "as much as a vote can possibly matter" is not objective. Because in that case, all the ones who did not express their vote also had a decisive (non-)vote. Their (non-)vote made the s
47.
▲
by
subtenante
12y ago
> Your vote may not matter, but the act of voting does matter. I don't even believe so. Consider someone who has no family nor friends, and lives isolated 50 miles from the nearest village with a voting urn. Her vote has no social
48.
▲
by
subtenante
12y ago
I find unhealthy this obsession with "making a difference", more precisely the way it is often interpreted as it is in this article. Voting is the essence of democracy. If you believe in democracy, you know your vote makes a diffe
49.
▲
by
subtenante
12y ago
How to think backwards about nature and science. Jellyfish do not "use" formal mathematical models. They do stuff. Our mathematical models may be good approximations of what they do.
50.
▲
by
subtenante
13y ago
map.getPlayer()['hasItem'] = function yes () { return true; };
51.
▲
by
subtenante
13y ago
Win at the roulette <=> run the table.
52.
▲
by
subtenante
13y ago
Large code bases now will REALLY look like spaghetti !
53.
▲
by
subtenante
13y ago
Indeed, you're right. It still feels quite strange to me to use the fact that a function (used as behaviour and not data) is, from the language features, technically a variable to call that kind of construct a closure. But thanks for t
54.
▲
by
subtenante
13y ago
But if they're really closures, how can we explain such behaviour?: http://jsfiddle.net/9uqZg/
55.
▲
by
subtenante
13y ago
It's not very proper to call these closures, is it? Their purpose is not to close around external variables available in the lexical scope. And I'm ready to upvote the first blog post entitled "the 'considered harmful&#x
56.
▲
ESLint, a pluggable JSHint alternative
(nczonline.net)
2 points
by
subtenante
13y ago
|
0 comments
57.
▲
by
subtenante
14y ago
Hi HN. I worked on this project last year and have stopped for 6 months now. I'd like some input from the community to know if the project is interesting to others than me. I was in the process of rewriting the rendering part to make it clo
58.
▲
Show HN : Org-Mode parsing in Javascript (project stalled)
(github.com)
1 points
by
subtenante
14y ago
|
1 comments
59.
▲
by
subtenante
14y ago
I highly doubt that, given the choice between a sandwich and a lottery ticket, a starving person would choose the ticket. Death from starvation in societies where lotteries exist for the masses is quite low. For example in France where I li
60.
▲
by
subtenante
14y ago
This is all bad probabilities if you don't take into account the fact that you repeatedly buy tickets. I'd like to see a more detailed study counting the probability of never winning when playing systematically for 20 years, for example. Bu
More ›