Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
ajanuary
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
21 ms
·
181.
▲
by
ajanuary
11y ago
More who on earth would really write a function that took a named argument, ignored it, and compared a value in the outer scope. All of the examples that look confusing are artificially simple and doing things you wouldn't normally try
182.
▲
by
ajanuary
11y ago
The syntax isn't new, and people haven't had issues with it in other languages.
183.
▲
by
ajanuary
11y ago
> Other missing features: request a film for streaming that's not currently available, so they have some way to gauge demand; As a UK user, it'd also be nice to be able to somehow monitor when something that's only availa
184.
▲
by
ajanuary
11y ago
I read this as an interesting extension of "sane defaults" in library design: adopt new sane defaults for your applications particular domain.
185.
▲
by
ajanuary
11y ago
IDEs make it trivial to find the value of a constant. IDEs like IntelliJ and Chrome developer tools will even show you them inline while debugging.
186.
▲
by
ajanuary
11y ago
HKT = Higher-Kinded Polymorphism [1] [1] http://www.hydrocodedesign.com/2014/04/02/higher-kinded-type...
187.
▲
by
ajanuary
11y ago
Sorry, I was unclear. I meant if you're looking a someone else's site, it's worth looking up the images as a proxy for legitimacy.
188.
▲
by
ajanuary
11y ago
It's always worth doing a reverse image search on testimonial photos.
189.
▲
by
ajanuary
11y ago
Buttons at pedestrian crossings have a use beyond controlling the lights - it triggers the visual, physical and audio feedback for when it's safe to cross. At work there is a crossing at some traffic lights that doesn't have a but
190.
▲
by
ajanuary
11y ago
I don't know Elixir, but it does some questionable things. For instance, it appears to read and process the entire ascii_chars.txt file for each character in the output. It's not a big file, but it wouldn't be difficult to re
191.
▲
by
ajanuary
11y ago
Depending on who you talk to, a unit isn't necessarily a single class.
192.
▲
by
ajanuary
11y ago
HSTS is designed to protect against downgrading from HTTPS to HTTP. Best I can tell, it doesn't protect against downgrading from an HTTPS with a validated certificate chain to HTTPS without a validated certificate chain. To do that, yo
193.
▲
by
ajanuary
11y ago
Very few people are going to notice that something that used to be green now isn't. In an attempt to increase security against passive monitoring (a laudable aim) this scheme heavily neuters https' ability to increase security aga
194.
▲
by
ajanuary
11y ago
Won't treating self-signed certificates as not-errors make 1 (prevent MITM attacks) worse though? You could then MITM an https site, serve up a self-signed cert, and anyone but the most observant users won't notice that something
195.
▲
by
ajanuary
12y ago
Having a method allows sum to be written as: return listOfTxnAmounts.stream().reduce(BigDecimal.ZERO, BigDecimal::add); rather than what you have to do for operators(unless there is a way of referencing the operators I haven't
196.
▲
by
ajanuary
12y ago
Stream already has a max method: return listOfTxnAmounts.stream().max(BigDecimal::compareTo).orElse(BigDecimal.ZERO); (They behave differently for a list that only has negative numbers, but it seems like that isn't a part of t
197.
▲
by
ajanuary
12y ago
Commenting on the argument rather than the conclusion, it does an odd bait-and-switch. > there is a statement that 'there is no such thing as insensitive web traffic' -- yet there is. [...] Forcing these transfers to go to HTTP
198.
▲
by
ajanuary
12y ago
I think the diagram must be slightly incorrect, else there are some odd bits. * 20 is copied into 22 unchanged * 20 = min(min(14, 15), 14) - min(14, 15), which all simplifies to 0
199.
▲
by
ajanuary
12y ago
This demonstrates a different problem - enums are closed. If I want to add an Owl, I can't do it without editing Type. This might break the API contract (if you own the library) or not be possible (if it's a third part library). T
200.
▲
by
ajanuary
12y ago
There are strong arguments for both, but if you're going to decide on classes, ES6 classes are preferable to ES5 style.
201.
▲
by
ajanuary
12y ago
> we can assume that the threat is the most common one No we can't.
202.
▲
by
ajanuary
12y ago
As others have said, the default configuration is to not order another if one is already ordered. In addition to that, you'll get a push notification from which you can quickly cancel the order. I don't know how the two combine th
203.
▲
by
ajanuary
12y ago
When you push the button you get a push notification to your phone, which will show you the price and give you the option to cancel it, which at least gives you some way to back out if the price is hiked up.
204.
▲
by
ajanuary
12y ago
You can easily press "cancel order" when the push notification comes through to your phone.
205.
▲
by
ajanuary
12y ago
> If I have to approve orders on my phone as the video suggests, I may as well create the order then and there. The first shot of the phone is during setup. The second shot is the "an order was made" push notification, which y
206.
▲
by
ajanuary
12y ago
Unfortunately mark doesn't seem to work while you're following.
207.
▲
by
ajanuary
12y ago
If we're using the "reference type" meaning of reference, then the phrase "objects are passed by reference" is grammatical nonsense. At best it becomes a tautology - "reference types are passed as reference typ
208.
▲
by
ajanuary
12y ago
Comedy panel shows Do the right thing - UK comedy panel show hosted by Danielle Ward and team captains Michael Legge and Margaret Cabourn-Smith. Pappy's flatshare slamdown - Comedy panel show hosted and captained by UK sketch comedy
209.
▲
by
ajanuary
12y ago
"Just fine" might be overstating it a little. For example, I've often hit path length limits with npm. But definitely better than most people seem to expect.
210.
▲
by
ajanuary
12y ago
http://en.wikipedia.org/wiki/Colorfulness Colorfulness, chroma, and saturation are related but distinct concepts referring to the perceived intensity of a specific color. [...] Chroma is the colorfulness relative
More ›