troym | 9 years ago | on: An American airline wins the right to weigh passengers on its Samoan route
troym's comments
troym | 9 years ago | on: RE:DOM – Tiny DOM library
> find('elements').clear('contents').add('border')
troym | 9 years ago | on: LogicJS adds logic programming to JavaScript
troym | 10 years ago | on: Python List Comprehensions Explained Visually
I disagree: code should be correct before it is clear. And because it's so easy to mess up a for loop (for me at least), I choose list comprehensions where reasonable.
> you're just being a jerk to the next dev that has to read your code
That's not very charitable to either party. You're assuming that the motive of the author is to be a jerk, and you're assuming that the reader won't understand. If I had a dev on my team who couldn't read a list comprehension, I'd (a) wonder how they were hired, and then (b) teach them.
troym | 10 years ago | on: Metabase: Why we picked Clojure
troym | 10 years ago | on: Metabase: Why we picked Clojure
I've heard this repeatedly, yet in the examples I've read (for web servers and for web ui work with cljs), they're using atoms with `swap!` to provide "current state".
Could you provide an example of using persistent data structures in a web app? Or am I mis-understanding?
troym | 10 years ago | on: When I stopped hearing the voices in my head
The author didn't share a diagnosis, nor did he or she share the specific medication(s) that helped. Given that, how can you conclude that the drugs "deadened neurons"?
I share your skepticism of modern psychiatric medicine, and yet I think you might be missing some understanding and/or empathy for the patient. He or she is describing schizophrenia and major depressive disorder [1], and while often found together, either one can be utterly debilitating. It would not surprise me if the patient had the same concerns as you and I, but was so desperate, so hopeless that they were willing to take the risk.
[1] not a doctor, therapist, counselor or anything close
[edited to fix footnote]
troym | 10 years ago | on: Federal Judge Strikes Down Idaho ‘Ag-Gag Law’
And yet:
> but conceal or misrepresent what they've seen.
That's lying. They're accomplices to the abuse and worse, perpetual enablers of it.
Apologies for veering the thread off-topic. I'm just bothered by the notion of "it's just a few bad apples."
troym | 10 years ago | on: Federal Judge Strikes Down Idaho ‘Ag-Gag Law’
This survey contradicts that assertion: http://www.aele.org/loscode2000.html
From the survey:
`In response to “Please describe the first time you witnessed misconduct by another employee but took no action,” 46 percent (532) advised they had witnessed misconduct by another employee, but concealed what they knew.`
If we can trust the survey results, methodology, etc, the minority of which you speak is 46%.
troym | 11 years ago | on: A cross-platform debugger for Go
troym | 11 years ago | on: Methylphenidate Exposure Induces Dopamine Neuron Loss in Mice
I'm absolutely sure. My son takes methylphenidate for traumatic narcolepsy and hyperphagia. At ~60 kg with a 30mg dose, he's got tremors, sweats, chattering teeth, etc.
I can only assume that the researchers have reason to study using these higher doses in mice, but 1mg/kg and 10mg/kg was the first thing that caught my eye. Neurological degeneration seems entirely plausible when you're frying a brain with speed (so to speak).
troym | 11 years ago | on: Docker 1.2.0, with restart policies
troym | 11 years ago | on: Docker 1.2.0, with restart policies
I haven't found a satisfactory solution to having communicating containers across multiple hosts. There seems to be quite a few solutions in the making (libswarm, geard, etc). How are other people solving this (in production, beyond two or three hosts)?
troym | 12 years ago | on: Should "Yes, delete it" be red, or green?
troym | 12 years ago | on: Should "Yes, delete it" be red, or green?
Every time I've added the feature, it's bordered on trivial (start a timer to execute the actual delete request, show a link to cancel the request, hide the DOM element).
I suppose if you were doing all the work server-side, then yah, it would be difficult. But the way GOOG does it (IIRC) it's not that hard at all.
troym | 12 years ago | on: Obama Sued by Rand Paul Over Phone Surveillance Program
troym | 12 years ago | on: AngularJS 1.2.0-rc1 released
I know that doesn't answer your question directly; just wanted to point you to the existing discussion.
troym | 12 years ago | on: AngularJS 1.2.0-rc1 released
When I returned to the routing bits in my app, I picked up ui-router. It's such a nice library, I can't say enough good about it other than this: it should be in Angular core.
I most appreciate nested routes and the state handling; the integration with ng-animate is just butter. Thank you!
troym | 12 years ago | on: Wikipedia’s Emergency
http://www.cato.org/sites/cato.org/files/articles/hayek-why-...
troym | 13 years ago | on: Google’s Go has some coders raving
I don't have to imagine, I have a child who survived a TBI that included damage to the hypothalamus. He's never satiated, always wants food. Even with strict diet controls and a locked pantry and a refrigerator with a lock and chain around it... he still manages to get food.
It's a living nightmare.