Consider that another human is your audience. Choose identifiers such that a comment is unnecessary. Comments should not say what is obvious. (This assigns foo to x.) Comments should say what is not obvious and cannot be made obvious by the code itself.
That's one of my peeves. When I see a comment like that, I scream (usually silently) that I know you're assigning foo to x. I want to know WHY you're assigning foo to x!
x = foo;// assign foo to x in order to make x equal to foo.
Happy now?;-)
Re:Other people's code? I can't even figure out mi
on
Code Is Not Literature
·
· Score: 1
(I'm sure it's obvious enough, [...])
For anyone sufficiently familiar with the (American?) grading system, possibly. All others are left puzzling until they get to the end of that parenthetical remark.
Re:I don't see how any programmer would think that
on
Code Is Not Literature
·
· Score: 1
I don't see how any programmer would think code was literature, except perhaps highly technical literature.
Maybe because he does literate programming.
You read novels from beginning to end.
Novels are by far not the only type of literature. I don't know about you, but I rarely read a textbook from beginning to end.
Meaningful names are like labels on buttons. You'd certainly prefer a TV remote where the buttons have text or symbols telling you (or at least giving a hint about) what functionality they provide to a remote where the buttons are labelled with letters from A to Z, and a documentation that (hopefully) tells you that button X increases the volume.
No, they are making very small devices you'll not notice on the fly. And they'll add circuits to control the fly. The result will be a biological espionage drone which nobody will suspect.
It is as opt-in as making phone calls. If you don't do either, most probably the NSA doesn't intercept your communications. Therefore according to your logic, NSA is opt-in as well.
Well, why not take a lesson from the Islamic terrorists and tell people that they'll get dozens of virgins in heaven if they donate organs? Heck, there's evidence they'll even agree to life-ending donations that way!;-)
Yes, the number two being that even honest doctors might be more inclined (without even being aware of it) to interpret ambiguous results as "dead" rather than "alive".
Imagine the great investment opportunities as soon as organ derivative markets appear... I'm not sure they will increase the availability of kidneys, though.
OK, so what have science and technology ever done for us? :-)
That indeed was the first thing which came to my mind when reading the summary.
Consider that another human is your audience. Choose identifiers such that a comment is unnecessary. Comments should not say what is obvious. (This assigns foo to x.) Comments should say what is not obvious and cannot be made obvious by the code itself.
That's one of my peeves. When I see a comment like that, I scream (usually silently) that I know you're assigning foo to x. I want to know WHY you're assigning foo to x!
x = foo; // assign foo to x in order to make x equal to foo.
Happy now? ;-)
For anyone sufficiently familiar with the (American?) grading system, possibly. All others are left puzzling until they get to the end of that parenthetical remark.
Maybe because he does literate programming.
Novels are by far not the only type of literature. I don't know about you, but I rarely read a textbook from beginning to end.
Wikipedia disagrees:
Literature is commonly classified as having two major forms—fiction and non-fiction—and two major techniques—poetry and prose.
Meaningful names are like labels on buttons. You'd certainly prefer a TV remote where the buttons have text or symbols telling you (or at least giving a hint about) what functionality they provide to a remote where the buttons are labelled with letters from A to Z, and a documentation that (hopefully) tells you that button X increases the volume.
Canonical's Linux Attitude?
No, they are making very small devices you'll not notice on the fly. And they'll add circuits to control the fly. The result will be a biological espionage drone which nobody will suspect.
However people will try to kill it anyway.
Perhaps the news is that someone from Utah accepts the principles of evolution?
He taught them to machines because he didn't manage to teach them to the people around him.
But how is that different from current AI?
Current AI would call it "object 0x2f26b".
Using the internet at all is opt-in.
Want to try again?
It is as opt-in as making phone calls. If you don't do either, most probably the NSA doesn't intercept your communications. Therefore according to your logic, NSA is opt-in as well.
Amazing how all the hating posts today are AC. Working for Microsoft perhaps?
Who is leading this campaign today?
Seeing how your post is a hating post, and that you're posting anonymously, you might have a point. ;-)
I will also add that in cases of immediate threats it would ok to do
No.
He actually added it, so yes, his statement that he will add it was clearly true.
slash code just ate the < SARCASM > around "dump the human trash where it belongs"....
Slashdot never was good at dealing with sarcasm. ;-)
Oh, that's funny. I was thinking about live donors of kidneys.
How dare you think a Slashdot discussion is about the topic of the article! ;-)
Well, why not take a lesson from the Islamic terrorists and tell people that they'll get dozens of virgins in heaven if they donate organs? Heck, there's evidence they'll even agree to life-ending donations that way! ;-)
You mean, by not wearing a helmet, they opt-in to organ donor? :-)
On the other hand, giving (resp. selling) an organ while you're alive is exactly what the article is about.
He probably recognizes that being illegal is exactly what makes it a crime. So the obvious way to reduce crime is to legalize it. ;-)
The jobs those people tend to do don't require much training.
Yes, the number two being that even honest doctors might be more inclined (without even being aware of it) to interpret ambiguous results as "dead" rather than "alive".
Imagine the great investment opportunities as soon as organ derivative markets appear ... I'm not sure they will increase the availability of kidneys, though.
Yeah, sure, of course you can manipulate this. See also http://tinfoilhat.slashdot.org/story/14/01/18/052203/most-urls-are-honest
That looks very much like assembly language to me. Which was explicitly excluded in the question.