HNHacker News
TopNewBestAskShowJobs

troym

69 karma · joined March 30, 2013

submissionscomments
troym··on An American airline wins the right to weigh passengers on its Samoan route
> Imagine having to constantly fight similar urges all the time

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.

troym··on RE:DOM – Tiny DOM library
I'd assume it's argument chaining, e.g.:

> find('elements').clear('contents').add('border')

troym··on LogicJS adds logic programming to JavaScript
iAlwaysStartGreenFieldJavascriptWithCamelCase_but_then_comes_the_json_and_all_is_lost.
troym··on Python List Comprehensions Explained Visually
> Code should be clear first, elegant second.

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··on Metabase: Why we picked Clojure
Yes, I understand that. I guess my original question would have been better put: can the notion of "current state" be avoided with persistent data structures, and if so, how?
troym··on Metabase: Why we picked Clojure
> Once you scratch a little bit the surface, you will see the extraordinary power of its persistent data structures.

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··on When I stopped hearing the voices in my head
> So the solution is to provide drugs that somehow deaden random neurons in somewhat random parts of the brain, and hope they don't cause massive side effects down the line?

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··on Federal Judge Strikes Down Idaho ‘Ag-Gag Law’
I tend to agree with you and I understand the distinction you're making.

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··on Federal Judge Strikes Down Idaho ‘Ag-Gag Law’
> that, in fact, the bad actors constitute an overwhelming minority of the population

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··on A cross-platform debugger for Go
There's a more, er... traditional, debugger for Golang in the works: https://github.com/derekparker/delve
troym··on Methylphenidate Exposure Induces Dopamine Neuron Loss in Mice
> I'm pretty sure the side effects would be utterly intolerable even at half of that dose.

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··on Docker 1.2.0, with restart policies
Interesting, thanks! FWIW, ambassadord has consul integration and that's something I've wanted.
troym··on Docker 1.2.0, with restart policies
Maybe a bit off-topic.

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··on Should "Yes, delete it" be red, or green?
(3a) No, because your data model never allows physical deletes. (3b) And because you modeled up to 6NF with temporal keys, you've got the record from (1) and (2) and you know at what times they were related.
troym··on Should "Yes, delete it" be red, or green?
> Making an action undoable often more than doubles the development cost of that feature.

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··on Obama Sued by Rand Paul Over Phone Surveillance Program
Would a similar suit by Pelosi also be theater to you?
troym··on AngularJS 1.2.0-rc1 released
September... 2012. See this thread (one of the longest on the mailing list atm): https://groups.google.com/forum/#!topic/angular/tqFZBkWPvl8

I know that doesn't answer your question directly; just wanted to point you to the existing discussion.

troym··on AngularJS 1.2.0-rc1 released
I avoided routing with Angular as long as I could because my initial attempts were.. shall we say, painful (and I blame me, not Angular).

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··on Wikipedia’s Emergency
Hayek was not a conservative.

http://www.cato.org/sites/cato.org/files/articles/hayek-why-...

troym··on Google’s Go has some coders raving
It's the "blank identifier", a throw-away variable. See http://golang.org/ref/spec#Blank_identifier
troym··on React, a JavaScript library for building user interfaces
AngularJS is too cool for babies!
troym··on [dead]
> The idea of the tax man as a thief in the night is just silly.

Oh, really? Instead of argument by assertion, let's try an idea.

Your neighbor comes and takes your bicycle without your permission and won't give it back. Theft? Sure.

Your neighbor comes in with one of his friends, and they take your bike together, same circumstance. Theft? Sure.

Your neighbor comes in with 2 of his friends, 3, 4, etc. At what point is it no longer theft? 51%, you say? What magically happened at that point? I say nothing: theft is still theft, irrespective of the claims of the majority.

troym··on [dead]
> Taking advantage of the infrastructure, market, and support of one country only to flee to a tax haven abroad is neither moral nor respectable.

A thief comes into your home and takes half of your property. He's done the same with your neighbors, and down the street, he's handing out some of the goods to whomever stops by.

Is it moral or respectable for you to go down the street, get something back, and then move out of the neighborhood because you don't like being robbed?

troym··on Add .txt As the Extension of Your Readme file
I will not: I will not allow the ignorance that spews from Redmond to infect my software.

I will not: I will not cater to users with a broken OS.

I will not: I will not bother because it represents the minimal technical hurdle for Windows users.

troym··on Apple's iMessage encryption trips up feds' surveillance
> how can they justify to give money to criminals ?

Easy: they're both criminals.