Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
tpoacher
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
21 ms
·
391.
▲
by
tpoacher
2y ago
"Tendency to manifest consumption of sugar beverages attributable to predisposition to type 2 diabetes and cardiovascular disease." Hm. I thought the "switcheroo test" would create an obviously false "what if"
392.
▲
by
tpoacher
2y ago
Page 1: For more details, refer to page 1.
393.
▲
by
tpoacher
2y ago
Yep. Especially when a tail recursion can be immediately converted to an equivalent loop by definition (and vice versa). A bizzare comment at best, from someone writing a book on recursion.
394.
▲
by
tpoacher
2y ago
> Glue work a.k.a non-sociopathic work
395.
▲
by
tpoacher
2y ago
A prof of mine back in Oxford told us a story how he invented a similar noninvasive blood glucose monitoring technique, shown to work, patented it, patent bought by big pharma and silenced. I'm more than convinced we had this tech ag
396.
▲
by
tpoacher
2y ago
Yes you're right; in retrospect I should have used quotes around the phrase "type-operator" or something, this is entirely my wording. And also I'm using 'operator' here loosely, to mean an operation conducted
397.
▲
by
tpoacher
2y ago
Fair enough. Though, to some extent, one could counter this by pointing out that multiple declarations via the comma type-operator are generally considered ambiguous / bad practice in themselves; in which case I would prefer explicit s
398.
▲
by
tpoacher
2y ago
true; but at the same time, any sufficiently complex type is begging to be type-aliased into something more legible/sensible in the first place ... and this is also true for "right-typed" systems. I've seen julia types u
399.
▲
by
tpoacher
2y ago
> Mocking is faster and often feels more straightforward. This makes it a unit test. > However, testing against a real database uncovers hidden pitfalls that can appear as the application matures. This makes real-database testing not
400.
▲
by
tpoacher
2y ago
even better, they should have it above or below! or, declare the type separately, like in fortran or haskell (or in fact, pre-C99 c)
401.
▲
by
tpoacher
2y ago
My own interpretation (which effectively matches the right-left rule, at least algorithmically) is that, (), [], and * are operators, which have different semantics at the declaration vs the 'usage/expression' level, where: (
402.
▲
by
tpoacher
2y ago
It's not (unless you mean "by popular convention", which actually is not necessarily that popular). int* c is perfectly valid syntax and so is int * c. The latter is my preferred convention: it helps me think of the asterisk
403.
▲
by
tpoacher
2y ago
Congrats on your repo. Good to see more fellow medics using github! One comment I would make on your approach to putting anki to work for you with medicine, is that it seems to rely on a 'factoids' approach, as opposed to a '
404.
▲
by
tpoacher
2y ago
I unironically use nano for this (albeit with lots of custom macros). It just works. (though obviously jshell kicks in quite a bit during coding sessions, and on top of that I have several templates and custom shell scripts that help naviga
405.
▲
by
tpoacher
2y ago
> Keeping it simple requires periodic refactoring / code deletion The equivalent in medicine is "Always question the established diagnoses / management plan during a new admission". And just like the periodic refactor
406.
▲
by
tpoacher
2y ago
I do something similar, and in fact have some useful bash scripts to help me remember to log stuff. Basically it's a script that pops up a reminder window at regular intervals, with options for daemonising, and enabling/disabling
407.
▲
by
tpoacher
2y ago
That's oversimplifying things a bit. Not OP, but I also keep a private log. Simply put, different things go in there, compared to a public one; let alone a public one with intended visibility. And some of the most useful logs are the m
408.
▲
by
tpoacher
2y ago
Yeah ... honestly, having an "in Zig" dropped subtly at the top would have alleviated a lot of confusion as to "why this c code looks so weird". :facepalm:
409.
▲
by
tpoacher
2y ago
Meetings (used right) are a great tool, in the same sense that project planners (used right) are a great tool. But then there's Jira. /s
410.
▲
by
tpoacher
2y ago
ah, the classic "--bugs" / "--no-bugs" flag
411.
▲
by
tpoacher
2y ago
The telegram channel is a great idea. Subscribed!
412.
▲
by
tpoacher
2y ago
I call this "top of the notes" syndrome, from my years in medicine, where every now and then a consultant physician would print something out and say "this is important, it should be on top of the patient's notes" (
413.
▲
by
tpoacher
2y ago
Couldn't get past the consent banner. I am not going to click on a thousand "legitimate interest" toggles just to watch a trailer (and most certainly not going to "accept all" just to remove the banner). No idea w
414.
▲
by
tpoacher
2y ago
a lot of the really functional stuff has happened from 17 onwards (though probably present as preview features since 17 perhaps?) e.g. sealed classes are effectively sum types for java; records are effectively product types, and switch expr
415.
▲
by
tpoacher
2y ago
Var1=test echo $var1 will fail unless you are using an external echo command, which is unlikely the bash builtin echo will fail to see var1 because this declaration at the command level only affects subshells So yes.
416.
▲
by
tpoacher
2y ago
Your experience of Java likely relates to Java 8, or possibly even prior versions. Modern Java is an entirely different beast, which feels very functional these days. (and yes, I say this as someone who teaches these things as part of an un
417.
▲
by
tpoacher
2y ago
this fails in bash too, no?
418.
▲
by
tpoacher
2y ago
I really don't get (jupyter) notebooks. It always feels like an over-engineered solution to a simple problem. The only advantage they have over 'proper' code generating a 'proper' report is being able to modify co
419.
▲
by
tpoacher
2y ago
So ... the answer is "yes"? In which case, isn't comparing it to Simulink instead of Sympy a bit ... odd? It's like coming up with a Functional language, and choosing to compare it to Java instead of Haskell. In any case
420.
▲
by
tpoacher
2y ago
This has become a thing in academia too. Small projects asking interesting questions will be laughed out of the room, labelled as lack of "ambition". The fact that not all interesting questions require 4-5 years and millions of do
More ›