Slashdot is powered by your submissions, so send in your scoop

 



Forgot your password?
typodupeerror
×

Comment Dawkins is just a bully (Score 1, Insightful) 1152

He's a douche about the whole thing. People think he's insulting because he's a total dick when he talks about religion. There are lots of folks who can critizise religion without being jerks about it. At least for me, it's not Dawkin's ideas that people are offended by, but how he expresses them. More proof Dawkins is a jerk:

http://www.slate.com/articles/double_x/doublex/2012/10/sexism_in_the_skeptic_community_i_spoke_out_then_came_the_rape_threats.single.html

http://blogs.discovermagazine.com/badastronomy/files/2011/07/dawkins_watson1.gif

Comment My views (Score 3, Interesting) 472

From my blog:

http://madsoftware.blogspot.com/2007/06/my-confession.html

I have a confession to make. Forgive me. Wait, don't forgive me. I'm completely unapologetic. I am a programmer, and I don't write comments. I just needed to get that off my chest.

I don't believe in comments.

I have been writing a lot of fairly complex code lately. And all the while, the voices of dead Computer Science professors have been speaking to me. They repeat the mantra of good code commenting. I feel guilt, like when I go to church. Or when I don't make my bed in the morning. Of course, not one of them is able to give me any good suggestion of what a good set of comments is. They just tell me what isn't a good comment. So does that mean that anything else is a good comment? Like lots of swear words in the code. That's probably more useful than real comments, because they make me laugh and keep me from falling asleep at the keyboard.

Good comments, I'm told, are not just a rehash of what is already in the code. Well, if it isn't already in the code, then it isn't much use to the program is it? I don't believe in comments. I think they are mostly a waste of time. Maybe not for you, but for me they just make my life difficult. I have to make a context switch to English in order to write them. That takes time and just serves to confuse me.

Whenever I write English, I take the audience of my writing into account. Who is the audience for my comments? Some moron with a basic C++ book on his desk? Or the great man himself, Bjarne Stroustrup? Bjarne is pretty smart and will probably be able to figure out my code just fine without me, or my comments. Because he speaks C++. I speak C++ too, so that's how I like to communicate with computers and other people who speak the same language.

So I don't write comments. I'm one of those people who likes to use good variable names, good function names, and good file names. When I look at others' comments, I don't usually trust them, because they often don't make any sense. Or they are just plain wrong. That's just awesome. Like the time I first starting programming and I spent two days wondering why the second member of a pair of ints (pair) was always zero, even though the comments said it should contain some valuable piece of information. Actually, it was the first member, not the second one, which I finally figured out by actually looking at the damn code. Wonder of wonders, the code actually told me what the code did. Amazing.

I think that instead of comments we should put quotes of great authors at the top of all our code. That way, when people read our code, they will think that our code is profound, because we quote the greats of our time like, Dostoevsky, Helen Keller, or Dave Barry. And the best thing would be to just randomly pick those quotes so that when people try to make some connection between the code and the quote, they'll spend lots of time trying to figure out. Then they'll feel stupid, but won't want to admit it and we can fun of them when they can't explain the connection. And we won't have had to be smart at all, because all those people that we referred to are smart.

Have I even written comments? Of course, I slap all my comments in the headers, when I don't feel like writing documentation. Or when the function name is getting too long. Or when some fellow programmer makes me feel guilty for not following the religion of comments. What is the point of writing commments if the function name tells the whole story? Take vector for example, the size() function returns, guess what, the size of the vector. I know what you're thinking, that is completely non-intuitive. It's got to be commented. Look, if the function name can't tell you what the function does, then maybe you should change the function name. And if your function name gets too long, then maybe your function is doing too much.

Good, maintainable programs are easy to understand not because they have lots of comments explaining their complex structure, but because they are straightforward, not complex. Complex is a synonym for spaghetti. Code should be more like ravioli. Good ravioli, not that crap they give you in restaurants. Chef Boyardee is delicious. The mental model of a good program is easily understood by normal humans. And if that mental model is nice and straightforward, then the functions that act on it should also be straightforward. A function called get_ the_ thing_ and_ reroute_ the_ other_ thing_ with_ the_ thing_ you_ have_ from_ before() doesn't need to commented, it needs to be thrown out. The class it lives in probably does too. It's doing too much.

I'm religious, but not about programming. In religion, there are things that you believe just because they seem right. Code comments may feel right, but they just don't prove their value outside of giving people a good feeling. I'm going to love my enemy for no good reason, because that sounds like a good idea. But I'm not going to type any more comments until I have a mathematical proof that it's good for me, like ravioli.

Comment Re:Don't look now... (Score 2) 122

Thing is, I *want* a walled garden where I can install apps without fear of destroying my phone. I love having someone else vet the apps for malware. Now, I'm not saying that google is actually doing this, but the more they lock down their app store, the better it is. My problem is with Apple's App Store which gives you no option of going outside the walled garden if I feel like it.

Comment Re:Even better - just meter the whole damn thing (Score 1) 329

Gas, power, and water utilities manage to deliver and upkeep what's arguably a more complicated infrastructure with the same model, why should data be any different?

Because gas, power, and water can be saved for another day. Any bandwidth we don't use right now is lost forever. It's actually more economical on a dollars per byte basis to keep your network near saturation.

The GP was talking about infrastructure, not product. Infrastructure in the gas, power, and water sectors follow the same rule as network infrastructure. They exist and have to be maintained no matter how much product they deliver.

Comment Re:sue the carrier as an accompilce in the theft (Score 1) 269

How is the carrier supposed to know that the device was stolen? What would stop you as the original owner from selling the device and then reporting it stolen? Just to piss off the new owner? Now the carrier has to setup this whole infrastructure to manage all this tracking and arbitration. With a car, there's a title that has to be moved around. You want that for cell phones???

NASA

Submission + - NASA Open Sources Aircraft Design Software (openvsp.org)

sabre86 writes: "At the American Institute for Aeronautics and Astronautics Aerospace Sciences Meeting in Nashville, NASA engineers unveiled the newly open sourced OpenVSP, software that allows users to construct full aircraft models from simple parameters such as wing span and fuselage length, under the NASA Open Source Agreement. Says the website, 'OpenVSP allows the user to create a 3D model of an aircraft defined by common engineering parameters. This model can be processed into formats suitable for engineering analysis.'"

Comment Re:"If this was Microsoft" (Score 4, Interesting) 186

Actually it's pretty cut and dry here. I really don't see room for question. The main problem that South Korea has with Android is that magnifying glass in the top left corner. You tap it and it seems to only get its results from either local machine or Google.com. The first isn't the problem and neither is the second. What the problem seems to be is that there doesn't see a way to change where Internet results as received from.

You're thinking about this backwards. That's not monopoly abuse because they don't have a monopoly in mobile operating systems. You have to be abusing a monopoly position to impact competition. They're not in the case you cited. How exactly are they using their monopoly in *search* to keep Android competition out? If you can't fill in the blanks of "Google is using their monopoly in ___ to keep the competition out of ___.", then you don't have a case.

Comment Re:Make it send data to you (Score 3, Insightful) 360

It's called a "report a bug" menu item that automatically compiles as much data as you can think of that might help, including making the user include a description of the bug. Also, there's nothing wrong with just going over to the coworkers desk and working it out. Or schedule a day with the users when you'll be in their "area" to address issues and watch for bugs.

The reality is that most bugs *aren't* intermittent, and if you can fix all the bugs that aren't, then the intermittent ones tend to go away. The remaining stuff is tough to deal with, but certainly manageable.

Slashdot Top Deals

A morsel of genuine history is a thing so rare as to be always valuable. -- Thomas Jefferson

Working...