Viewing profile — timoxley
timoxley
HN member- Joined
- Mon, Mar 26, 2018, 12:36 PM UTC
- HN karma
- 40
- Public activity
- 22 items
- HN profile
- View on Hacker News ↗
About timoxley
No profile information was provided.
Recent public activity
-
comment
Comment #49095849
The obvious answer is rather than wipe, have a pin code that logs into a convincing and clean phone?
-
comment
Comment #48574630
I've recently switched off those to Cursor. More flexible tool, better interface.
-
comment
Comment #48066016
end user doesn't care, if it don't work it don't work
-
comment
Comment #43487836
Great stuff. Feature requests: non-wp login, accents, Bar lines, support for non-4/4, swung meter, search by pattern (e.g. write a kick snare pattern, find beats with same kick sna…
-
comment
Comment #41350970
I feel like this indicates there's a market for traffic-spike insurance
-
comment
Comment #40005004
Clbuttic is even the (Collins) dictionary-defined nomenclature for this effect: https://www.collinsdictionary.com/us/dictionary/english/clbu...
-
comment
Comment #39479468
I have a similar story! Locked out of my car. Bikers park next to me. "You locked out? Hang on a moment" Goes into a Subway, comes back with a coat hanger. Less than a minute later…
-
comment
Comment #16694487
> the behavior has always been The ECMA spec only defines Javascript 1.3 and above. See this description for logical operators for Javascript 1.1: https://web.archive.org/web/20060…
-
comment
Comment #16680639
> which might promote misunderstanding of the behavior This isn't a misunderstanding, binary logical operators in JS short-circuit like this by design. I believe && and || returned…
-
comment
Comment #16680467
what are the downsides
-
comment
Comment #16680450
The `err, result` function signature implies the function is an asynchronously executed node-style callback, which can never return anything anyway. Well, it can return something, …
-
comment
Comment #16680384
Post is referring to async programming in node's callback style (non-promise-based functions executed asynchronously) where return values cannot be captured even if you want to.
-
comment
Comment #16680342
The `err, result` signature of the function indicates that it will be executed asynchronously, and thus the return value can't be captured by anything anyway.
-
comment
Comment #16680323
The `err, results` params form the signature of a continuation-passing style "errback": function(err, results) { if (err) // … } It is assumed that this function will be executed a…
- comment
-
comment
Comment #16680203
It depends. Short, dense code can make the code more difficult to understand/change later, while overly bloated code can have the same effect. I often find inelegant, yet straightf…
-
comment
Comment #16679965
> calls at the end can still fail and need handling… You can’t conveniently omit the mess that would be created for checking each of those. For the purposes of this post, it is ass…
-
comment
Comment #16679490
I'm trying to imagine worst case scenarios here, and at least in an environment like JavaScript, I'm struggling to see how a beginner being overeager with early returns can possibl…
-
comment
Comment #16679332
> ... makes case analysis easier ... > ...making the code look less complicated than it actually is... > I'd rather emphasize the underlying declarative intent, the state machines,…
-
comment
Comment #16678647
If the return value is important: if (err) return void handleError(err) And in non-promise-based async JS, the return value is almost always lost/useless anyway so `return x` has n…
-
comment
Comment #16678538
A big gotcha with `&&` as a guard in JS is that it can return any falsey typed value if you don't coerce the guard to a boolean. e.g. const check(cond) => cond && otherValue If `co…
-
comment
Comment #16678465
Yeah no hard rules, agreed on this point, especially when the if/else body is short.