Better HN
topnewbestaskshowjobs
Log inSign up

troym

69 karma · joined Mar 30, 2013 (13y ago) · 27 submissions

Submissions

comment 9y ago · link · parent

> 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.

comment 10y ago · link · parent

I'd assume it's argument chaining, e.g.:

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

3.

3D all-dielectric metamaterial solid immersion lens for subwavelength imaging(advances.sciencemag.org ↗)

2 points · by troym · 10y ago · discuss

comment 10y ago · link · parent

iAlwaysStartGreenFieldJavascriptWithCamelCase_but_then_comes_the_json_and_all_is_lost.

comment 10y ago · link · parent

> 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.

comment 10y ago · link · parent

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?

comment 10y ago · link · parent

> 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?

comment 11y ago · link · parent

> 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]

comment 11y ago · link · parent

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."

comment 11y ago · link · parent

> 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%.

comment 11y ago · link · parent

There's a more, er... traditional, debugger for Golang in the works: https://github.com/derekparker/delve

comment 12y ago · link · parent

> 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).

comment 12y ago · link · parent

Interesting, thanks! FWIW, ambassadord has consul integration and that's something I've wanted.

comment 12y ago · link · parent

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)?

comment 12y ago · link · parent

(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.

comment 12y ago · link · parent

> 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.

comment 12y ago · link · parent

Would a similar suit by Pelosi also be theater to you?

comment 13y ago · link · parent

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.

comment 13y ago · link · parent

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!

comment 13y ago · link · parent

Hayek was not a conservative.

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

comment 13y ago · link · parent

It's the "blank identifier", a throw-away variable. See http://golang.org/ref/spec#Blank_identifier

comment 13y ago · link · parent

AngularJS is too cool for babies!

comment 13y ago · link · parent

> 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.

comment 13y ago · link · parent

> 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?

25.

Show HN: Your Shot, National Geographic Community Photography Site(yourshot.nationalgeographic.com ↗)

1 points · by troym · 13y ago · discuss

comment 13y ago · link · parent

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.

comment 13y ago · link · parent

> how can they justify to give money to criminals ?

Easy: they're both criminals.