Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
p2t2p
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
24 ms
·
181.
▲
by
p2t2p
6y ago
On one hand, W3C doesn't matter anymore. Google is the internet. On other hand there's Apple with their Safari and I have high hopes that even if Chrome implements that, Safari won't so Google will have to play by Apple'
182.
▲
by
p2t2p
6y ago
I disagree with that. There's enough offerings on the market to cover everything. Companies should be able to differentiate their offerings and target certain categories of the population. If something doesn't fit you - don't
183.
▲
by
p2t2p
6y ago
No way. I leave 110km from my office now, in a beautiful village with rain forest and waterfalls. No way I'm getting back to the city unless I have to.
184.
▲
by
p2t2p
6y ago
see my comment for the parent with _a_ solution =)
185.
▲
by
p2t2p
6y ago
The only caveat is that if you change `Iterable<Integer>` to say `Iterable<String>` the compilation error becomes a bit weird in that it says you provide `Iterable<Object>` while `Iterable<String>` is requested. But
186.
▲
by
p2t2p
6y ago
Sooooo.... A bit more involved than what you describe but I managed to do that: public <A, B, T extends Iterable<A>, R extends Iterable<B>> R process(T input, Function<? super A, ? extends B> transformer,
187.
▲
by
p2t2p
6y ago
Yeah, as Joker_vD said you need _some_ common ground as to where you get your methods from. I dream about "implicit" interfaces in Java like in Go. So everything that has "flatMap" would implicitly implement "FlatMa
188.
▲
by
p2t2p
6y ago
Oh my god, there's more to that, Optional is a class, not an interface and it's final :facepalm:
189.
▲
by
p2t2p
6y ago
Also I don't understand why would you need HKT here. I don't see language limitation here, I see poorly designed inheritance in the standard library. They should've introduced "FlatMappable" type and make Option and
190.
▲
by
p2t2p
6y ago
I'm working in a product that is about 10 years old and 4 months ago it went through a quite a big project which purpose was to add extended auditing to be more enterprise friendly. The system was flooded with auditing events on variou
191.
▲
by
p2t2p
6y ago
I'm not sure if I catch your drift, but if I do: public <T, Z, F extends Function<? super T, Z>> Z apply(Function<F, Z> target, F fn) { return target.apply(fn); } @Test public void test() th
192.
▲
by
p2t2p
6y ago
> why not make them public in the first place? Because in future I may want to add some validation there, or processing, like sending events on set of a value, etc. Properties in C# was a genius move that solves it correctly.
193.
▲
by
p2t2p
6y ago
I can turn any collection to list like that: public <Z, T extends Collection<Z>> List<Z> process(T collectionOfInteger) { return collectionOfInteger.stream() .collect(toList()); }
194.
▲
by
p2t2p
6y ago
Works perfectly: public <T extends Collection<Integer>> T process(T collectionOfInteger) { return collectionOfInteger; }
195.
▲
by
p2t2p
6y ago
No worries in Java (and I bet in C#) in works no problemo: public <T extends Collection<Integer>> T process(T collectionOfInteger) { return collectionOfInteger; } And basically your T will be as wide as the interface
196.
▲
by
p2t2p
6y ago
Back to FIDO I guess? Lemme quickly find my point's number and blow dust away from my 56k....
197.
▲
by
p2t2p
6y ago
The whole thing reminds me more and more of subculture of Russian jails. By touching or interacting with something disgraceful, even in-directly, you'll acquire "зашквар" and will be put out-of-the-law (criminal law that is)
198.
▲
by
p2t2p
6y ago
> The same with class Math, such as Math.floor and Math.ceil. I still want to group them somehow and this "somehow" better have name "Math" so other people would see what it is. Why are people so attached to name &quo
199.
▲
by
p2t2p
6y ago
Y-day I deleted my account and re-newed blocking of reddit in my /etc/hosts and I suggests everyone to do the same.
200.
▲
by
p2t2p
6y ago
The magic of it is it just keeps on working. All those big changes didn't cause any instability for even once.
201.
▲
by
p2t2p
6y ago
That doesn't really matter, the point is that an authoritarian regime has an easy solution. In Russia they may or may not limit it to fines (I'm not sure if it can be converted into criminal charges if you accumulate too many fine
202.
▲
by
p2t2p
6y ago
That's, easy, just like they do it in Russia - jail time and fines for having Space X antenna.
203.
▲
by
p2t2p
6y ago
All the people I asked enjoy the car very much. So for the exception of that sad marketing twist the product seems to be quite enjoyable. I still can't afford it though :)
204.
▲
by
p2t2p
6y ago
It very much does. Classic kettle for gas stove by Kitchen Aid
205.
▲
by
p2t2p
6y ago
I call bs on that article. A guy wants to do nothing and get the stuff for cheap. We'll guess what, even if you get your thing for cheap once you get on the internet you'll be open for all kind of malice and there's ain'
206.
▲
by
p2t2p
6y ago
I was working in a mobile gamedev in 2013 before the whole thing about Facebook and stuff and after talking to one of the game designers I thought to myself "Drugs. We're making drugs and invent techniques to milk users for their
207.
▲
by
p2t2p
6y ago
They addressed it in Russia btw. Now it is the law that whoever accepts the payment carries the responsibility. So shit like > manufacturers typically say that they can't refund the windows license and tell the user to contact micro
208.
▲
by
p2t2p
6y ago
It does a bit. First, you get a backup of all the old emails (person in the case lost access to 15 years worth of emails). Second, the sync is configured, so you have a backup of freshly arriving emails. That's reduces your risk alread
209.
▲
by
p2t2p
6y ago
I don't get it, mate. Email is like the easiest. Get Fastmail, pre-pay for three years, go into settings, use import from Google, bam, Calendars, contacts, email is all sucked in from Google and also email and calendar sync configured.
210.
▲
by
p2t2p
6y ago
This is something I always read from people who produce a puddle of noodle soup that keeps crunching through corner cases instead of producing something structured and actually readable by human beings.
More ›