2,206 karma · joined Feb 26, 2012 (14y ago) · 296 submissions
comment 12y ago · link · parent
Good commenting is no substitute for good naming. For a variable containing the number 1, "three" is a shitty name.
comment 12y ago · link · parent
comment 12y ago · link · parent
> visually represent logical segments of the code
This is exactly the use case in which function definitions excel. Use functions for this, not comments.comment 12y ago · link · parent
I'm sure it sucks for people with hire/fire authority to have to let somebody go early on when the decision to hire turns out to have been a bad one. But when it's the other way around, and an otherwise excellent new colleague regrets their end of the decision, the effect on morale is a lot more profound and widespread.
It takes some careful introspection and forethought to figure out what those crucial questions are. If they only come to you after the interview, send an email if you have to! But for Pete's sake, ask!
comment 12y ago · link · parent
If it was actually a "porn filter", its purpose would be to filter pornographic material. In reality, there is a list of categories to be censored, and porn is only one of them. Focusing on the words "porn filtering" was a deliberate strategic move by the government, because it makes it more difficult to oppose convincingly.
Those of us who oppose censorship are playing into their hands by referring to this issue using the favourable terms coined by the government. We should all stop referring to it as "porn filtering" and start referring to it as "internet censorship".
comment 13y ago · link · parent
But I remember thinking similar things years ago when Slashdot introduced a bunch of JavaScript enhancements on top of what had been a very spartan HTML-based comment UI. The technologically conservative point of view was wrong then, and I think it'd be equally wrong now.
comment 13y ago · link · parent
On the topic of constructive criticism, differential.io could really do with ditching that "We work at Cintrifuse" interstitial before the blog post is displayed. In the spirit of being constructive, I will simply say that my experience as a reader would have been vastly better without it.
comment 13y ago · link · parent
comment 13y ago · link · parent
And I think there are a lot of us out there who will contribute financially as soon as there's a bonafide way of doing so.
comment 13y ago · link · parent
comment 13y ago · link · parent
So instead of
http://foo.ploeh.dk/customers/1234/orders
You'd have http://foo.ploeh.dk/DC884298C70C41798ABE9052DC69CAEE
And you'd have to get that URL out of the response to another request you'd already made. I never liked this idea, and the linked article provides a really strong counterargument to this approach to HATEOAS. When browsing a website, decisions on what links will be
clicked are made at run time. However, with an API, decisions
as to what requests will be sent are made when the API
integration code is written, not at run time. Could the
decisions be deferred to run time? Sure, however, there isn't
much to gain going down that route as code would still not be
able to handle significant API changes without breaking.comment 13y ago · link · parent