Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
ajanuary
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
37 ms
·
331.
▲
by
ajanuary
13y ago
I'm not really familiar with Go, but surely the answer to almost all of those can be "the same as variables in the same scope as the string"?
332.
▲
by
ajanuary
13y ago
> I disagree, especially in the presence of syntax highlighting editors. Every syntax highlighter in an editor I've seen for Ruby handle highlighting string interpolation just fine.
333.
▲
by
ajanuary
13y ago
To expand on that: only since RFC 7158, earlier versions required the root to be an array or object. So if you're generating json, it's advisable to wrap it so that parsers written according to the older specs won't choke on
334.
▲
by
ajanuary
13y ago
There's two effects that can happen when you split revenue between ad and paid subscription. Firstly, if you don't have enough value-add for subscribers, you make the ad version worse to artificially increase the perceived value o
335.
▲
by
ajanuary
13y ago
I'm also a big fan of how the back button is on the opposite side of the screen to the remote for no reason.
336.
▲
by
ajanuary
13y ago
My university used to have a similar length restriction. When I enquired about it, it was because they unify the password across all their systems, and some of the systems are old.
337.
▲
by
ajanuary
13y ago
I use http://hnnotify.com/ , it seems to work pretty well.
338.
▲
by
ajanuary
13y ago
A useful function function overValues(f) { return function(x) { return f(x); } } Then you can do ['10', '10', '10'].map(overValues(parseInt)); However, usually you're going to want to do
339.
▲
by
ajanuary
13y ago
Not just javascript, a whole bunch of language's parseInt implementation will interpret the base from a leading zero etc.
340.
▲
by
ajanuary
13y ago
> It is certainly reasonable to expect "parseInt" to parse an integer out of a string in base-10 by default It does. > and entirely unreasonable to expect to be required to provide a base as anything except an optional argu
341.
▲
by
ajanuary
13y ago
I feel like I should point out that the stack is an implementation detail [1] Though in this context it's relevant to point out pretty much any implementation will stack allocate them, it's not accurate to say C# has stack allocat
342.
▲
by
ajanuary
13y ago
Definately looks better with some blur text-shadow: 0 0 4px rgba(0,255,0,1.0)
343.
▲
by
ajanuary
13y ago
Unreal Engine 1 - 3 had a similar approach. The linked post describes why they no longer feel that approach is beneficial for them. [Edit] Is Unity's approach drastically different in a way that solves them?
344.
▲
by
ajanuary
13y ago
I'm pretty sure I've heard phrases like 35 to the gallon before.
345.
▲
by
ajanuary
13y ago
I absolutely agree it would be beneficial for static analysis tools to regularly be run on openssl. My stance (which I made clearer elsewhere in the thread) is more along the lines of: if it's not being done by the core maintainers, bu
346.
▲
by
ajanuary
13y ago
From my experience with static analysis tools it's very easy to write perfectly valid code that the tool doesn't like, so it wouldn't surprise me too much. Of course, the argument can often be made that if it isn't clear
347.
▲
by
ajanuary
13y ago
I don't know how Coverity works - is it possible that surrounding it with more complex code will cause it to miss the bug because it doesn't have enough information to not constantly raise false positives?
348.
▲
by
ajanuary
13y ago
Someone commented (I can't find it now) that post disclosure they ran 5 or 6 coverage tools and one of them flagged it. They didn't say how much else got flagged, and how many false positives there were. It's very easy to ret
349.
▲
by
ajanuary
13y ago
The parent wasn't saying code should be short, they were saying the syntax for lambdas should be short. Yes, short code doesn't automatically translate to readible code. But neither does long code. You can't wheel out objecti
350.
▲
by
ajanuary
13y ago
You realise the equivilent Objective-C syntax is ^{} right? And access modifiers are + and - rather than static and nonstatic. Objective-C definitely isn't above using lightweight syntax. Where it favours verbosity is APIs.
351.
▲
by
ajanuary
13y ago
Clarification: all Turing complete languages allow you to do any _computation_ all Turing complete languages allow you to do.
352.
▲
by
ajanuary
13y ago
The context is America's constitution, in which case it specifically is freedom from state mandated consequences. there is a worry that his stepping down represents a degradation of his right to Free Speech, as enshrined in his c
353.
▲
by
ajanuary
13y ago
The level files are 503ing, but it looks like the level counter is still incrementing if I go out of the exit and back in again. You might want to add some response code validation in. GET http://alex.nisnevich.com/untr
354.
▲
by
ajanuary
13y ago
I made one with Helvetica written in arial. I always find it interesting to see who picks up on it, but I haven't quite worked out if that makes me like them more or less.
355.
▲
by
ajanuary
13y ago
It says at the top "Without support for transform-style: preserve-3d you will see the fallback style (fill horizontal)." I think support for it is a little flaky on certain linux/graphics driver combos.
356.
▲
by
ajanuary
13y ago
I feel like on HN I could convincingly pretend it's something to do with distrusting Google with my data. In reality it's user incompetence. Back in iOS6 I added a passcode to changing location service permissions on a whim of sec
357.
▲
by
ajanuary
13y ago
What do you mean by "this pattern"? The article lists several iterations. With the double dialog approach, you definitely have a point. Google Maps on iOS nags me every time I open it to give it location permissions. However, tyin
358.
▲
by
ajanuary
13y ago
With the double dialog approach the first dialog could repeatedly nag. They'd have to know to accept the first dialog and decline the second, and even then the first dialog would have to be explicitly programmed to stop nagging if the
359.
▲
by
ajanuary
13y ago
I've never been able to get my head around the idea of free will. Maybe it's because in lacking even a rudamentary background in philosophy. I think people mean they make decisions. Doesn't that mean randomness robs you of fr
360.
▲
by
ajanuary
13y ago
Really interesting to see the iterations from obviously awful through acceptable all the way to obvious in retrospect but takes a non-obvious amount of thought and design.
More ›