Software Engineering Management, In a Nutshell

Just saw this on Salon.com, in a letter to the editor about Scott Rosenberg’s new book, “Dreaming in Code”:

There are three options you have when developing software:

1. Quality

2. Lots of features.

3. Low cost

Pick any two.

When you actually go through the combinations, it’s quite funny, and poignant.

Also, check out this excerpt from Rosenberg’s book, called “Words fail us.”  I’m currently working on a software project and we’re doing lots of new and innovative stuff, and I can’t even express how much I connect with this article.  Choosing the right vocabulary may be the single toughest thing in working on software team projects today.

Finished reading Capitalism 3.0, missed speakers, drank dark beer

I finished reading Capitalism 3.0 a couple of days ago, and it was quite good. I promised a review, so that will be coming shortly. I also noticed that Joseph Stiglitz (ex-Chief Economist for the World Bank) wrote a new book as a follow-up to Globalization and its Discontents which is titled, Making Globalization Work, probably a nice follow-up to Capitalism 3.0.

Today after work I headed to NYU to hear Jimmy Wales give a talk on Wikipedia, but was dismayed to discover that the auditorium was packed and I couldn’t get in.

Then, I noticed that Ralph Nader was at the IFC Theater on 6th Avenue presenting the new documentary made about him called “An Unreasonable Man,” and I was about to go to the 4:55pm showing of that, but tickets sold out for that! Man, what bad luck!

At the end of the day, I ended up meeting Max for drinks at McSorley’s, so that’s not so bad. We talked a bit about Richard Dawkin’s book “The God Delusion,” and whether it’s a good thing that there is a zealous atheist roaming the streets of intellectual-dom.

Common Criticisms of Linux, parsed and analyzed

The following post has been sitting in my “drafts” section of WordPress for a good while. I don’t know why I never posted it — it’s been there for more than a year. I think I just thought the article deserved such careful attention that I never sat down to really edit it and prepare it for publication.

The topic is on the common criticisms of Linux, and I think it’s time for me to finally post my thoughts, given the upcoming release of Windows Vista and related products.

Awhile back, /. posted an article entitled “Is It Wrong to Love Microsoft?” The article is horribly written, but does have one point to make: why is it that on /. and other technology news sites like OSNews and Kuro5hin, everyone loves Linux almost unconditionally, and hates Windows unequivocally? I personally am unfond of blind faith as much as I am offended by blind hatred. I’ve thought long and hard about the pros and cons of Linux and Windows, and think I can come up with a pretty balanced evaluation of the two.

Oftentimes the criticisms thrown at Linux are hard to parse, mainly because the authors of these criticisms don’t know much about system design themselves. Having studied it at University, and having been a 10-year user of Windows and Linux (and a 6-year user of Mac OS since version 9), I figured I should chime in.

First, as often happens when evaluating arguments of any kind, one needs to identify the different kinds of critique, and break them down into the smallest possible groups so that they can be evaluated fairly. Broad statements like “Linux is broken” or “Linux is impossible to use” do not identify specific problems, but merely express sentiments, probably acquired through firsthand experience with a particular set of conditions.

Futhermore, attacks mounted at Linux aren’t mounted at Linux “the kernel” but at the whole set of Free (and sometimes, commercial) Software that runs on Linux, which is quite broad and diverse (and not accountable to any one development team, not even distributors). As a result of this, the attacks often seem focused on the whole system, when in fact concern only a small part of the system, and quite often that small part is already in the process of being “fixed”. So, in order to evaluate these arguments, I will begin by pointing out the general complaint lunged at Linux, and then break it down into the proper categories and evaluate each of those in turn, placing whatever context I can to help understand the situation better.

Continue reading Common Criticisms of Linux, parsed and analyzed

Solving “accidents” and “essences” of programming with better languages

Note: this post was written in January 2007, but it has stood the test of time.

The programmer, like the poet, works only slightly removed from pure thought-stuff. He builds castles in the air, from air, creating by exertion of the imagination.

Few media of creation are so flexible, so easy to polish and rework, so readily capable of realizing grand conceptual structures. Yet the program construct, unlike the poet’s words, is real in the sense that it moves and works, producing visible outputs separate from the construct itself. It prints results, draws pictures, produces sounds, moves arms. The magic of myth and legend has come true in our time. One types the correct incantation on a keyboard, and a display screen comes to life, showing things that never were nor could be.

… The computer resembles the magic of legend in this respect, too. If one character, one pause, of the incantation is not strictly in proper form, the magic doesn’t work. Human beings are not accustomed to being perfect, and few areas of human activity demand it. Adjusting to the requirement for perfection is, I think, the most difficult part of learning to program.

Frederick Brooks, author of the The Mythical Man-Month, distinguished between two problems in software development: the accidental problems and the essential ones. You can read Brooks’ watershed article on this topic, “No Silver Bullet”, freely available online in HTML or PDF, or as part of his book.

Those in the industry like to argue that we have made huge leaps in terms of the “accidental” problems in recent years. Programmer productivity is better with the help of better software revision systems, but more importantly there are RAD tools, like user interface builders and powerful IDEs, like Eclipse and Visual Studio. Do I think we’re headed in the right direction?

In a sense. I think those tools are useful, but only because I think all we can do is shrink the accidental problem as small as possible, and then do our best to tackle the essential. The major win in terms of the accidental and even the essential is high-level programming, and I mean really high level, like Python.

Why is this important? Well, Brooks once talked about how PL/I was a great software engineering language because the statements written to the compiler are “pretty close” to the “thought stuff” the programmer is working with in his head. But PL/I is nowhere near there (neither is C++, or even Java or C#). However, Python heads in that direction.

In my head, unless I really am immersed in C code all the time, I don’t think of things like types, memory management, or, God, pointer arithmetic. When we solve problems, we solve it in something computer scientists have used for years: pseudocode. Pseudocode is nothing more than code that expresses an algorithm or approach without worrying about the gory details of the underlying hardware.

Python isn’t quite pseudocode, but it’s closer than anything else I’ve seen. And that’s a huge help to productivity not just from the point of view of the single developer, but, I’d argue, also from the point of view of a team of developers. Code readability is hugely important in team environments. C and Perl can be very unreadable, which makes them ill-suited to team development. Java and C++ are better, but even they suffer from some readability problems, where the actual solutions can be masked by “best practices” and strange ways of exploiting constructs of the language. Python can be hacked too, but it tends not to be, and it tends to have very high readability.

But what about the tools mentioned above (Eclipse & Visual Studio)? I often wondered about all the *nix programmers (including many of my past Computer Science professors) who still load up terminal with vim or emacs for their programming needs. Wouldn’t they benefit from the latest and greatest in IntelliSense, Refactoring, CallTips, SaneOnlineDocumentation, and any other CamelCase ideas I can think of for a development environment?

Well, most *nix users would say that stuff is unnecessary–and in many senses, they are right. The essential problem remains, no matter how fancy your IDE.

A lot of *nix developers shrink their accidental problem on a “as-needed” basis, by coding scripts or plugins or configurations for their highly-extensible text editors. Or incorporating tooling that is freely available online in the wider F/OSS community.

But nowadays, productivity is starting to be a concern even in the F/OSS world, where users have traditionally stuck with the old “mortar and pestle,” or, should I say, “gcc and gdb”.

But Python offers a nice, alternative path, I think. The accidental problem is worth shrinking. But I think it can be done simply by one major refocus:

(1) make the language usable, not the tool. IMO, this is already done with a high-level language like Python.

…and…

(2) create source code analyzing tools that integrate with development environments to make the language-bearer more productive.

You can see enormous success in (2) with the Eclipse IDE project for Java programmers. My main problem: Eclipse’s focus is on a language that isn’t very usable, that is, Java. Java is certainly better than C, but still, it has significant problems that stop it from connecting me (the programmer) with my problem-solving ideas — that is, the “thought-stuff” of programming, as Brooks called it, above.

At my new job, I work with Java eight hours a day, but my code just doesn’t read and work like my Python code, which is much closer to the underlying algorithms and approaches. Java certainly pushed forward OOP on the masses of computer programmers, but it did so without incorporating other non-OOP concepts, whether from the dynamic language, scripting language, or functional language traditions. One simple example: having Lists and Hashes as built-in types, with tons of syntactic sugar, for crying out loud! Most problems break down to List and Hash problems, after all.

What’s more, programmers have learned that OOP, per se, is no panacea. I’ve seen many convoluted OOP designs that I wish were written functionally, or even just procedurally, and which might have been more performant (and more comprehensible) if they had been written in a non-OOP style.

As the Python community says, “Practicality beats purity”. The “legacy” OOP software engineering community thinks that there will be a silver bullet (OOP! AOP! XP! MDE!). But: I think just getting programmers closer to the “thought-stuff” — via high-level languages like Python, and lightweight tooling around the editor and the command line — will be an effort with better rewards.


Update from the future in June 2020, 13 years later: I was right. I’ve incorporated all my years of experience writing professional Python into The Elements of Python Style, which you can read online. If you’re still stuck in a programming language like Java, C#, or C++ which is far away from the “essential”, you’re well advised to check out my Idiomatic Python Resources compendium. I personally can’t believe just how successful Python has become in the intervening 13 years. Its massive success surprised all of us, the early champions and fans, included. And I don’t personally miss my RAD tools one bit. I only ever open an IDE when working with Java code, specifically, IntelliJ. But for every other language, vim and the “UNIX IDE” suffices. Plus, with projects like VS Code, Onivim 2, Language Server Protocol (aka langserver, LSP), and Jupyter, you can “have your cake and eat it, too”. Also: Brooks was right. Despite the tooling improvements (most notably, cloud computing), the essential problem of programming remains.

The Unkindest Cut

A relatively unsophisticated article on circumcision showed up on Salon a few days ago. It’s entitled “The Unkindest Cut” and is about the conflict of a Jewish father between his Jewish mother and his non-Jewish wife over the issue of whether to circumcise his newborn son. Although it mentions some of the history of circumcision in the United States, it doesn’t go into nearly enough depth about how strange and barbaric the practice is. A letter that came into Salon from a reader has some good points, however:

This is one of the hottest parenting issues (along with breastfeeding and sleeping). I am not surprised that Salon is already flooded with letters and the emotions are rising high on both sides. I am the mother of a 3-year-old boy. He is uncircumcised and the idea of having him circumcised never even crossed my mind. I am from Europe, therefore circumcision is not part of my culture. My husband is a Hindu from India, so it isn’t part of his culture either. There is more and more evidence that shows that circumcision is an unnecessary procedure. There are more and more organizations and individuals trying to educate the public about this. Two of my favorites are: www.jewsagainstcircumcision.org and www.nocirc.org.

There is lots of very useful information regarding this topic. There are a few points I’d like to make for the sake of argument against it. Some fathers say: I want my son to look like me. So if you had a finger, a hand, or an arm missing from birth or as a result of an accident would you want to chop off your child’s corresponding body part just to make him look like you? (Sorry this is not my own idea but I like it a lot). The other point is my original thought: we, as Western society are outraged by the practice of female circumcision (mostly practiced in Africa and some predominantly Muslim areas elsewhere). What is the difference? That female circumcision is not a tradition in our culture. So it’s O.K. to keep mutilating our boys as long as we leave our girls alone… How hypocritical! And on top of that both traditions originate on the same basis: to reduce sexual pleasure and the desire to masturbate and enjoy sex.

As per some first person accounts from men who grew into adulthood intact and then got circumcised, they tell exactly how much less pleasurable sex is afterwards… Do a search on your favorite search engine for more info on the topic.

So as a parent of a boy I will leave my son’ penis alone and will make sure that everybody else does until he is old enough to make a decision about having his own body part cut off (which I think would only occur if he ends up having problems with having foreskin and sex would be unpleasant or painful).

I am not condemning people who think differently. I simply feel sorry for their baby boys… I hope one day we’ll come to our senses about this painful and inhumane practice.

As for the author, I feel sorry for him too, that he had to go through this emotionally painful experience to come to understand that he made the wrong choice.

I have a lot more to say on this topic (in fact, in college I wrote long research papers on the topic, including some original research into grotesque Victorian age masturbation control techniques, which were the precursors to routine circumcision), but probably won’t get the time to write it up. If you’re wondering about it, drop me a line.

Conversation on Torture with Doomsy

Been having a cross-blog discussion with Doomsy over at the Liberal Doomsayer about our recent crimes torturing detainees, as widely reported in NYTimes and on Alternet. A follow-up to this post from me that I figured I should post again here:

The thing is, I don’t think we ever can redeem ourselves. America hasn’t been a saint throughout its military and political history, but as many leftist columnists are now pointing out, we have dropped our bar so far below the one we set at Nuremberg that it’s hard to see how the world can forgive us, never mind we, the people, forgiving the US Government. Saddam, a dictator we helped create and helped carry out his war crimes, was executed in an instant, in the most inhumane way. A member of the military I recently interviewed told me [paraphrasing] that “every military officer knew full well that Saddam would be executed the second he was turned over to the ‘Iraqi Government’,” and those quotes are his, not mine. In his mind, and he has been in West Baghdad for the last year fighting on the front lines, the “Iraqi Government” is nothing more than a a few corrupt politicians and a few importantly-placed American agents. “We’ve turned over detainees who weren’t even proven guilty of their crimes in Iraq, and the ‘Iraqi Government’ murdered them with a shot in the head before we were even out the door. We’ve all come to understand that ‘handing someone over to the Iraqis’ is doublespeak for ‘send that person to die’. Who physically pulls the trigger is really an irrelevant detail.” So I don’t want US Government officials telling us this is “their [the Iraqi’s] system, their method of justice.” It’s ours, the blood is all over our hands. The fact that we torture should come as no surprise. And the case of Donald Vance (note: an American contractor who blew the whistle on his employer in Baghdad and was held and tortured by our military) just shows that no one is safe, that we don’t reserve our techniques for those we consider “evil”, but that it has just become a routine process for our military operations.

“The Good Shepherd”: A Good Film Concept, but Lacks a Pulse

I have to agree with Peter Travers’ review of The Good Shephard. The movie is not a complete failure: it’s beautifully made, and beautifully acted. Unfortunately, it is just not well-written.

We go through three hours of meeting character after character, in different time periods, sometimes the same character appears twice with different names (due to double-agentry), and at the end of it all you feel that the only character who got a bit of development was the leading one, Matt Damon’s, who hardly spoke a word throughout the movie.

I tried hard to like this movie, I really did. But I think it’s a crime to employ this much acting and cinematography talent, and end up with a movie that says little else about life inside the CIA but the spy cliche, “trust no one.” The movie is full of visually memorable scenes, but absolutely no memorable dialogue.

The movie should have been more focused, had less characters, and covered less ground. DeNiro: either you make a seven hour epic, or you make a Hollywood two hour film. You can’t have your cake and eat it too, I’m afraid.

Free and DRM-Free E-Books

I got a Nokia 770 for Christmas, to replace my aging and dying Palm V. I’ll probably write more about the 770 and the Palm V later, but suffice it to say that I got the Palm V when it came out, approximately 10 years ago, and have used it ever since. My main uses for it were AvantGo and Vindigo, although in the past I did get other uses out of it as well. I plan to keep the Palm around mainly for the Vindigo features, which I haven’t seen done better anywhere else. (No book on the planet has as much information about NYC as my 8MB Palm V with Vindigo loaded on it.)

I basically got the 770 because of all the great stuff I heard on Teleread and other sites about its use as a portable e-book reader. Indeed, that has been the most pleasant experience on the device. With the Evince PDF viewer and with FBReader (an Open Source ebook reader for a lot of different formats, including HTML, Plucker, and zTxt), I am able to read a ton of stuff while I’m in my commute, and all on a beautiful 800×480 screen that fits in the palm of my hand. (Yes, finally I get to read with serif, anti-aliased fonts!)

I have been overwhelmed with how many free e-books you can find online, thanks in part to efforts by groups like Creative Commons. Here are some good ones:

Feel free to post more in comments!