.comment-link {margin-left:.6em;}

filling the void

Thursday, November 05, 2009

It's OK to not write unit tests

This guy is 100% correct. It's perfectly fine to not write unit tests for everything.
I don't even know what to write here. This guy is just so fucking right. Read the article, and follow some of the links. Do it! Stop being a slave to dogma!

Labels: , ,

Saturday, December 15, 2007

The Dangers of Open Source Software

It is as sinister as the title suggests, but not in the direction you would think. I came across this today. It's a blog post from the guy who writes Paint.NET.
Just like all of the software I write, it is Open Source. For those of you know don't know what this means, it means that you give away the source code that makes up the software for free for everyone to see. The advantages of this are many. It fosters an atmosphere of honesty, since you can't sneak nasty stuff into your software if anybody can look at what you did. It also helps other developers learn new things, by looking at how you solved a particular problem.
There are many open source projects out there. Linux is one, Apache is another, and the different BSD distributions are open source as well.
Now, the disadvantage, as Rick Brewster points out, is that people can just take your code and do whatever they want with it. In his case, this means that someone basically just stole all his code, and some code from contributers to Paint.NET and rebranded it as their own. Taking code isn't a problem, but stealing the whole application and removing the credits, copyright and license (which is illegal in almost all countries I know), is just plain wrong.
Rick could sue the person, but I doubt it would do any good. The FSF could take on the case and rally some publicity for it, but the only thing that might come of that is that this particular instance of code stealing gets punished.
The problem, of course, is that there is no way to prevent people from doing this, short of taking them all to court, which just isn't practical. The open source business model will always suffer from this. People are basically immoral and will do anything to help themselves. If this is at the expense of others, so be it.
We can hope that the world will become a better place all we want, but that won't make it so.
When I see my code reused, I'm just happy someone liked what I did, but then I don't write the kind of software that Rick does.

Rick's software might be big enough to reach a critical mass of complaint where someone will do something about it, but most people who write open source software will not have that luxury. If people would do this to Linux, heads would (and do) roll, since it's such a big thing, but most open source authors will just have to bend over and take it up the ass when things like this happens. Our only hope is that the thieves step far enough over the line so that they commit a punishable offense.

Labels:

Friday, November 23, 2007

Skype Crypto Unbreakable by German Police

Slashdot is running this article today. It's about how the German police is having difficulty breaking the cryptography used by the popular voice communication software Skype.

Germany's top police officer, Joerg Ziercke, said. "The encryption with Skype telephone software ... creates grave difficulties for us... We can't decipher it. That's why we're talking about source telecommunication surveillance — that is, getting to the source before encryption or after it's been decrypted."
My first reaction to this was "so, any and all other forms of encryption are easily breakable to you then?". This is, hopefully, not true, but it was phrased in such a way.
There was an especially good comment, with a really good finisher, and it was this one by hanssprudel:

This is a good thing. Having to install monitoring at the source or destination means an operation that requires effort and, hopefully, a court order. This means that their is judicial oversight, and that to catch criminals police have to do, you know, police work rather than just sitting around spying on us.

Ubiquitous encryption does not make law enforcement impossible. It just makes indiscriminate law enforcement impossible.
The bold face is mine. (If hanssprudel doesn't like me reprinting this, he's welcome to talk to me about it, and I'll fix it).
I think it's a good thing that the police should have to earn their keep. Sure, the beat cops are out there getting shot at, and they earn their paycheck, but in the age of digital surveillance, it has become to easy for organizations (governmental or otherwise) with clandestine agendas to spy on what other people do.
Granted, it has become easier to hide what we do as well (we as in normal people, not clandestine organizations), but that doesn't mean that the intelligence community should get carte blanche for spying on us.
Regardless of what technology you use, there should be checks and balances in place to make sure that the rights of the individual are not being violated. We should not regulate technology. That is useless, because it changes faster than the laws do. We need to regulate what can be done to people rather than how.

Labels: , , , , , ,

Sunday, July 08, 2007

Software is NOT an Engineering Discipline

I've had my fair share of software engineering courses, and what all my teachers keep telling me is that software is lagging behind other engineering disciplines in rigorousness and formality.
The problem, of course, is that software engineering is not an engineering discipline!
The most obvious point to this is that if software has some problem, it can be fixed after the fact. If a bridge has a problem you had better fix it before production starts. Same thing with building houses. You can't build something like Burj Dubai just to realize after a while that every other floor has no plumbing installed.
Another point is that you never have rigorous requirements when you build software. When you build a bridge, you know that it has to extend from point A to B, has to carry such-and-such a load etc, etc. With software, even the clients that know exactly what they want (which is to say, almost none), can't possibly come up with as exact a specification for what they want as someone commissioning a bridge or a house or a car.
People everywhere are trying to come up with different ways and methodologies for more exact specifications for software. Various modelling disciplines are showing up, but all they have to show for it is sporadic book sales. When you look at software projects as a whole, they are impossible to strictly specify. Some individual parts, like some protocol entity or some database interface, are possible to specify in a strict way, but they are still very much black boxes.
The fact that software can become so complex and so dynamic makes it impossible to include among the ranks of other engineering disciplines. In all other forms of engineering, you're bound by these lovely things called the laws of physics. In computer science, you are bound by only one thing, and that is execution time. If something isn't supported on the platform you are using, you simple emulate it. I'd love to have a device that could produce energy from nothing, but that goes against the laws of physics. In computer science, however, you would just create what you wanted. Like previously mentioned, the only thing that restricts what you can do in computer science is the time it would take for the computer to finish the task.

People can keep telling themselves and their students what they want, but I don't think I will ever be convinced that software deserves the prestigious "engineering" prefix.

EDITED TO ADD: Apparently I'm not alone in my opinion. (You really should read those links, especially the first one.)

Labels: ,