Software Patent Insanity – When will it end?

I’ve been sick today, and so I’ve been laying in bed watching TV and using my iPad for most of the day. As I sat there, I couldn’t help thinking “I’m so grateful for the brilliant insight and tireless effort of Dan Abelow, who has made it possible for me to take my railroad baron skills in Ticket to Ride to the European theater, by way of In App Purchase.”

Actually, though, I did read Fred Wilson’s blog post on how the current patent system, abused more and more by lowly patent trolls, is a threat to innovation.

This isn’t a new problem – I’ve had discussions about the problems with software (and business process) patents over a decade ago, and even then it probably wasn’t new. What is changing, however, is the willingness of patent trolls to go after smaller and smaller businesses, and the fact that technology is so much more a part of every day life for everyone today.

Before, patent suits were largely behind-the-scenes affairs between big companies that resulted in boring settlements or cross-licensing agreements. Or, as I’ve seen firsthand, the threat of patent lawsuits prevented small startups from receiving financing. Unfair and a huge impediment to innovation? Yes. Exciting and interesting to the average American citizen? Not really.

But as actions like the Lodsys suit against mobile apps that utilize in app purchasing become more common, the effects of a horribly-implemented patent system, abused by unscrupulous patent trolls like Lodsys, has the potential to affect the every-day lives of your average person – and perhaps shed some more light on the problem.

The scope of the Problem

The scope of the problem with software patents isn’t obvious at first, but it is an important part of realizing why they are such a threat to innovation and economic growth. Let’s go through a short little exercise -

Grab your smartphone or tablet if you have one. Scroll through the pages and pages of apps you’ve downloaded. Pop open your browser and look through the bookmarks and history items that contain all of your favorite websites. Look through the list of applications listed on your computer.

What do all of these have in common? The vast majority (if not all) of them violate one or more patents. Indeed, any marginally non-trivial app, service, or website probably violates dozens of patents.

Who are these people who have been providing you with applications or services chock-full of patent violations? Are they hardened criminals, numb to the harm they cause others? Or, are they shameless copycats who copy whatever they can find? Or, perhaps, they are hackers who’ve used their computer skills to steal secret designs from competitors?

None of the above. Most patents (especially the ones used by patent trolls) don’t exist as an implemented product, a documented library one can buy, or anything of that nature. They exist solely as one of millions of software patents filed with the PTO, written in legalese so heavy you or I would have a hard time knowing what they are describing.

Figuring out which patents your technology violates is so expensive and time consuming that it is effectively impossible for any small or medium business.

Think about that for a minute. Every small business that creates a technology product or service is sitting on dozens of bombs, any one of which can kill it. How is that fair? How is that good policy for promoting innovation and economic growth?

The worst kind of tax

When it comes to talking about economic growth (or lack thereof), it is hard to get very far without talking about the economic impact of taxes. Patents are a form of a tax, but they are the very worst kind of tax – a tax that is unpublished, seemingly random, and can wipe out your business.

The worst part is that for many of the small victims of these patent trolls, there is very little that can be done to fight this government-enforced monopoly – the very act of defending themselves will at worst case leave them bankrupt, and at best case cost countless hours and tens of thousands (at the very least) of dollars merely to continue to be able to exist.

It isn’t a bad business model – document some basic and broad idea, wait for others to come up with and implement the same idea, then sue them for a percentage of the profits.

Arguments for the patent system

There are lots of arguments for some form of a patent system. The main one is that if I think someone is going to steal my idea (which presumably took a lot of work to come up with), then I won’t bother coming up with new stuff because it will be hard for me to make money off of my work.

As a society that very highly values competition, we are willing to effectively kill competition by granting a monopoly on an idea in exchange for the value of someone coming up with it. This requires 2 things to be true – 1) Your ‘idea’ must be genuinely novel and take a lot of investment to come up with, and 2) The only way you were willing to invest in coming up with the idea was if you were granted a temporary monopoly on it.

A government-enforced monopoly is a pretty drastic – and potentially harmful – thing, so if we are going to buy into that concept we’d better be getting a lot out of it. As I’ll try to explain in the next few sections, I don’t think we are getting even close to enough out of the deal (at least with regards to software patents) to make it worth the cost.

Necessity, the mother of invention

Software development, as a profession, is largely about coming up with solutions to problems. For a given problem, there are generally only a handful of reasonable ways to solve it, and developers independently working on a similar problem will likely come up with generally similar solutions.

If you were to get 100 developers who were ignorant of the Lodsys patents (which, until Lodsys began firing off lawsuits, could have been pretty much any developer) and tell them you need to be able to sell expansions of your game to your users, and give them each an afternoon to come up with a rough solution, you’d likely get back ideas that could be grouped into half a dozen or so similar distinct ideas. Of those half-dozen distinct approaches, at least a few of them would probably violate the Lodsys patents.

The fact is that most of us solve similarly-difficult problems on a consistent basis – it is part of our job, and it is part of the reasons software developers are compensated somewhat more than average. The business side of the organization comes to us and says “We need to be able to do X.” So, we sit in front of a whiteboard for an hour or whatever, and then start implementing it.

Most of us don’t think “Hey, that’s a good idea! I should write my name on it and send it to the PTO so nobody else can do that without my blessing.” If we’re nice enough (and/or our egos are big enough), we’ll even write about it so others can use our idea.

Some people, however, feel like every idea they come up with is special and that nobody else should be able to do something like it unless they first pay for a license. Those people are assholes.

The cost of an idea

When I look at patents involved in some of these lawsuits, one thing almost always jumps out at me – once you get past all the lawyer-speak and understand what the patent is describing, it becomes clear that there wasn’t a lot of work involved in coming up with the idea. In fact, I wouldn’t be shocked to find that the effort to file the patent significantly outweighed the effort in coming up with the original idea.

If your patent is for a medication that your company spent years of effort and billions of dollars to research and produce, I can get behind patenting it. If your software patent describes something I wrote in High School using Perl, I’m going to have a hard time accepting your idea as a patentable one.

Counterpoint: Open Source Software

Open sourcing your software is pretty much the opposite of patenting it – rather than claim a monopoly on my idea, I’m going to go to great lengths to give it away to others so they can use it. It is a powerful counterpoint to the argument that patents foster innovation.

Go back to the original exercise I had you do earlier. Now consider this – all of those apps, services, and websites most likely rely heavily on open-source software (yes, even iOS uses plenty of open-source components). This simple blog relies heavily on open-source: The software used is WordPress – an open-source blogging platform, which is written in PHP – an open-source programming language. The content is stored in mySQL – an open-source database. All of it is running on Linux – an open-source operating system. To write this post, I’m using Chrome – an open-source web browser, which is running on Mac OS X – an operating system that relies heavily on open-source components.

Even you – one of my 3 or 4 readers – are almost certainly utilizing a wide array of open-source software to view this post.

The fact that open-source software plays such a pivotal role in everything we do is clear, convincing evidence to me that we can have invention and innovation on a breathtakingly large scale without the need to patent every idea we come up with.

The ‘small inventor’ myth

The final defense patent supporters like to throw out is a hypothetical one – patents are needed to help the small inventor who has his ideas ripped off by a big, evil corporation. I have to ask – how many times has a small inventor ‘invented’ some software and successfully used a patent to keep a big corporation from stealing it? We have a long history of patent trolls abusing software patents, but have we ever seen someone legitimately use one in this way? I haven’t.

Conclusion

So, to summarize – most software patents encapsulate something that an average developer could reasonably come up with on their own, are overly broad, and don’t typically represent a large amount of investment. The people at the PTO should hate themselves for approving them. Even worse – patents don’t even seem to be required to get people to innovate and invent new software. So why are we continuing to allow them?

A lot of people talk about half-measures that could be used to improve the patent system, while still allowing software patents – and a lot of the ideas are decent, but come with their own set of drawbacks.

The real thing that scares me, though, is the fact that much of the damage has already been done. Millions of incredibly simple, overly broad software patents already litter the landscape – much like how cluster bombs and land mines make an area unsafe even long after the conflict has been resolved. Even if we were to stop issuing software patents immediately, the ones already issued are broad enough to hinder innovation for the next decade.

How will we get out of this mess we’ve allowed to happen? I don’t know. But like Fred Wilson said, enough is enough. At some point, this madness has to end.

New Mac OS X app released – Graphical Http Client

I’m a huge fan of the app store model that has sprung up over the past few years, and I Apple’s introduction of the iPhone App Store may have been more influential than the iPhone itself. Part of the reason I like it so much is that I think it is a good business model, but it also brings back memories of my Dad and I making applications and sharing them via CompuServe and AOL message boards when I was in Jr High. It is pretty cool to build something that entertains or helps thousands of people across the world (and make a few bucks to fuel your computer habit in the process!)

Nostalgia aside – I’ve released a new Mac (desktop) app to the Mac App Store called ‘Graphical Http Client’. This is a developer tool aimed at helping developers test and interact with REST-based services. Typically, when experimenting with or testing these services, you’ll use a command-line tool (like curl), access it with your browser (if it is a really simple GET request), or write tests to work with these services. My software aims to make this interaction somewhat easier. Some features include:

- Perform any HTTP method (GET, POST, PUT, DELETE, etc..)
- Ability to set request headers
- Ability to set authentication (Basic or Digest)
- When you perform the request, you’ll see the HTTP status code, how long the request took, the response headers, and the response body
- Nice formatting for requests that return JSON
- Ability to view HTML responses in a web view
- You can save the response body as a file (useful for when it returns binary data like an image)
- You can also save your requests and open them up later to save time
- Plus a bunch of other stuff

You can view it on my website here, or directly on the Mac App Store.

If you do download it, please leave feedback in the App Store and/or at my User Voice site.

5 good books I’ve read this past year

I’m a huge fan of reading – especially science and history books – and I don’t even want to know how much money I’ve spent at Amazon.com and Barnes and Noble over the years. I’ve read (or, in some cases, re-read) a number of really good books over the past year or so, and wanted to share them along with some short notes about what liked or thought about them.

1. A Short History of Nearly Everything by Bill Bryson

A Short History of Nearly Everything is a fun examination physics, chemistry, biology, and general science. The book is quite enjoyable to read and Bill Bryson is quickly becoming one of my favorite authors (Life at Home: A Short History of Private Life is another book of his that I recently read and really enjoyed).

One major theme that stands out is just how tenuous our existence on Earth is. Consider this quote:

“To appreciate just how narrow, you have only to look at Venus. Venus is only twenty-five million miles closer to the Sun than we are. The Sun’s warmth reaches it just two minutes before it touches us. In size and composition, Venus is very like Earth, but the small difference in orbital distance made all the difference to how it turned out. It appears that during the early years of the solar system Venus was only slightly warmer than Earth and probably had oceans. But those few degrees of extra warmth meant that Venus could not hold on to its surface water, with disastrous consequences for its climate.”

The book is full of examples of how tiny changes to one of a number of variables result in us not being here – a truly humbling notion. If you are looking for a fun, easy to read introduction to a great deal of interesting science, this book is worth picking up – I got the illustrated version for my Dad for his birthday, and he’s been enjoying it as much as I did.

2. 1776 (Illustrated Edition) by David McCullough

David McCullough has written a number of well-researched, interesting historical books. My interest in his work was kicked of by 1776, which examines the military side of the beginning of the founding of our country.

Calling this new version of 1776 “Illustrated” is selling it a bit short – there are indeed a lot of interesting illustrations, but it also includes a number of sealed pouches that contain maps, letters, and historical articles that help bring the most important year of our country to life. McCullough’s writing also has a way of bringing the main cast of characters in the revolution to life.

Much like Bryson shows us how fragile our very existence is, McCullough shows us how victory in our fight for independence was never assured and was often close to failing, only sustained by unlikely and lucky events – Washington’s crossing of the East River, aided by a fortuitous fog comes to mind.

1776 is a great read, and the documents that accompany the illustrated edition make it come alive even more.

Other books from David McCullough I’ve really enjoyed: The Great Bridge – a history of the Brooklyn Bridge and the men who built it. Truman – A look at an unlikely president who oversaw a lot of important events in American history.

3. American Prometheus: The Triumph and Tragedy of J. Robert Oppenheimer by Kai Bird and Martin J. Sherwin

I have a huge interest in World War II history, and I’m also interested in science and technology, so this book about Oppenheimer seemed like it would be a good read. I found the book to be an interesting look at Oppenheimer’s life, the development of the atomic bomb, and the terrible way in which he was treated after the war.

I find it somewhat disgraceful the way the western allies treated some of their scientists after the war – these were men who applied their genius to hasten the end of the war and undoubtedly save millions of lives. Oppenheimer and many of his fellow Manhattan project scientists became casualties of McCarthyism. Alan Turing, the British scientist instrumental in breaking German ciphers and an important figure in the history of computer science, was relentlessly persecuted for being a homosexual and eventually committed suicide in 1954 (Britain issued an official public apology for this in 2009).

Interestingly, Truman is portrayed somewhat less charitably in this book than in McCullough’s “Truman” – as Oppenheimer is dealing with feelings of guilt about developing the atomic bomb, Truman (who ultimately approved its use) grows impatient with him, perhaps dealing with his own feelings about it.

4. Team of Rivals by Doris Kearns Goodwin

This year marks the 150th anniversary of the start of the Civil War, and perhaps no single individual is more central to this period of history than Abraham Lincoln. Team of Rivals concentrates on Lincoln’s relationships with important members of his cabinet – Seward, Bates, Chase, and Stanton – who were once his bitter political enemies. Unlike many political and business leaders who surround themselves with yes-men, Lincoln recognized the intelligence and usefulness of his political rivals (who, for the most part, had little respect for him at the time) and included them in his cabinet, knowing full-well they would challenge him.

Team of Rivals shows the intelligence and shrewdness of Lincoln, and how he eventually earned respect and friendship from his former enemies.

5. Conspiracy of Fools by Kurt Eichenwald

Greed, corruption, and incompetence have been major components of corporate america and wall street for the last few decades, and I really enjoy books that go into the details of some of our biggest scandals. Conspiracy of Fools takes a look at one of the more infamous scandals – Enron.

Eichenwald tells a fascinating story about what went on at Enron, and how the company was ultimately ruined by greedy executives who did anything they could to make more money. The large amount of research that went into Conspiracy of Fools is evident, as is some of the bias in that research – Ken Lay is portrayed as almost completely oblivious to any wrongdoing going on, Jeff Skilling’s portrayal is likewise somewhat sympathetic, and others like Andy Fastow, Dick Causey, and David Duncan are portrayed quite negatively.

Ultimately, it is a fun and interesting inside look at one of the bigger business scandals in recent history.

Where do software bugs come from?

Last night, I came across this question on StackOverflow, essentially asking how you can be a zero-bug programmer. Many of the responses can be boiled down to “Don’t write any code.”, which is pretty much how I’d respond to that question.

If you continue to throw ever-increasing amounts of time and money at a software project, you can certainly get closer and closer to feeling confident you have no problems in your code, but almost any non-trivial piece of software is likely to have some (albiet, probably rare and minor) bugs in it.

I don’t, however, think an appropriate response to this fact is to throw up our hands and say “oh well, what can you do?”. Bugs are a serious problem that pretty much every software developer faces – from those building small sites in PHP to engineers writing software to guide spacecraft. Bugs are embarrassing when they are your fault as the developer. They are costly for project teams to fix. They cause your users frustration, inconvenience them, cause them to lose money, and may even kill them.

So, if it is impossible (or at least highly impractical) to create software that is guaranteed to have 0 bugs, how can we at least minimize the number of bugs (especially common and/or serious ones)?

“We cannot solve our problems with the same thinking we used when we created them.” - Albert Einstein

Whenever talking about software quality (or lack thereof), the knee-jerk response is always “write more tests!” It always strikes me as a little amusing to think that developers who are capable of writing a piece of software with a bug in it are also capable of writing 100% comprehensive tests that are completely free of bugs themselves.

Tests are, of course, incredibly valuable and I don’t want to demean their value – indeed, they are useful beyond just testing for bugs, and I’ve found them helpful as supplemental documentation and as ways to improve my APIs. I do, however, think that blindly writing more tests as a solution to buggy software is misguided. To understand why that is, we must first understand how we get bugs in our software in the first place.

Where do bugs come from?

A lot of the time, we naively assume that a bug happened because a programmer did something wrong. Technically, this may be true, but it is neither useful nor interesting to think of it this simplistically. What are some more specific reasons?

  1. Programmer error. Perhaps, the programmer did indeed screw up. Maybe it was a typo, or perhaps they didn’t understand a particular API and misused it. Even within this category, there are a bunch of useful things to consider – is it because of lack of training? Not enough documentation of APIs a developer is using? Hiring inexperienced programmers?
  2. Insufficient requirements. Often, specific pieces of functionality are incompletely and ambiguously defined. The code may be completely bug free for every situation the developer was told to think of, but there are holes in the requirements that don’t manifest themselves until later.
  3. Seams in functionality. The Agile methodology has, on the whole, been hugely positive for the software development industry. One negative aspect to how some teams implement it, however, is that while each user story (piece of functionality) may be completely bug free, the seams between those pieces of functionality are often messy, poorly tested, and often buggy – partially owing to the fact that you may have had one developer and one qa resource working on one part, and a completely different pair working on the other part. In my own personal experience, a disproportionate number of bugs appear in the seams between functionality.
  4. Third party libraries. Sometimes the code we have little or no control over contains bugs.
  5. External resources. Sometimes resources outside of the control of our program contain bugs.

I could go on, but hopefully I’ve given you the idea that a lot of factors cause or contribute to bugs in software products and that it is useful to try to think about these reasons.

How do we avoid making bugs?

So, knowing how we end up with bugs, how can we minimize them?

  1. Develop better. Whether this means more training, more code reviews, or just hiring better developers.
  2. More, and better, tests.
  3. Static analysis tools.
  4. Better requirements.
  5. More manual QA.
  6. Many, many more ways….

Hopefully as you read through my causes of bugs above (and thought of your own), you realized why I think tests aren’t necessarily the best method for dealing with buggy software in all cases. If your problem is that specifications are poor and incomplete, it is impossible for more tests to help you. If your programmers are making a lot of mistakes, they don’t need to write more tests – they need to write fewer bugs. If most of your bugs manifest themselves in the seams of functionality, one functional test is probably going to be worth more than a thousand unit tests.

You can’t improve what you can’t measure

Back around 2000, I started a company to track the results of online advertising. Companies were spending ghastly amounts of advertising with little idea of which advertisements were making them a lot of sales and which ones were complete wastes. That company didn’t do incredibly well because I was 18, kind of an idiot, and had absolutely no money. I still, however, believe in the power of hard data and analytics to help us make better decisions and gauge our success. I also believe that these concepts can be applied to making better software. However, nobody – including myself – is bothering to track how bugs actually happen and how we can most effectively prevent them.

Indeed, I’ve used a number of high-quality open-source and commercial issue tracking tools. They are all really good at recording bugs, prioritizing them, tracking them as they get resolved, and helping us remember when we fixed them. But I’ve yet to see an issue tracking tool that actually tries to help you make better decisions about where to concentrate your future software quality efforts. This is unfortunate, because I think issue tracking tools are ideally situated to be the place where causes and possible solutions are recorded and measured.

Half the money I spend on advertising is wasted; the trouble is I don’t know which half.” – John Wanamaker

Software projects spend a lot of money in an effort to ensure a quality product. Much like the problem John Wanamaker had with his advertising money, I think projects waste a lot of money trying to improve quality.

Consider a product that currently has 50% test code coverage and too many bugs. A manager may say “We need to raise our test coverage to 75%!”, and the developers dutifully go off and spend a few weeks writing tests to get test coverage up to an acceptable level. At the end of the exercise, they have 75% test coverage – a 50% increase!

Has the quality of their product gone up by 50%? My experience tells me “No”. The reason is usually  a combination of a few factors – lack of testing probably wasn’t the whole problem, and test coverage is raised by testing the easiest (and probably least-buggy) stuff first. All of that time spent increasing code coverage was probably a waste, or at least not as effective as other efforts could have been – perhaps the requirements could have been documented more precisely, or rather than trying to hit a test coverage target, problematic portions of the application could have been identified and tested more thoroughly.

Conclusion

I have no product to sell, nor do I have a comprehensive solution to software quality to propose. I do hope that this post maybe sparks some thought and discussion on how we can better analyze our past coding mistakes and figure out better, more efficient ways of preventing them in the future.

Visual Studio 2010 – A bunch of code completion/navigation features I miss from Eclipse

For those of you who don’t know me, I’m a long-time Java developer (although I’ve spent plenty of time playing around with other languages and platforms). I’m also a big believer in developer tools – I create developer tools as part of my day job, and take advantage of tools as part of all the programming I do. Finally, I’m incredibly lazy and I’d spend all day playing video games if I could, so saving time is important to me  - every millisecond I save typing code is a millisecond more I can play World of Warcraft or Gran Turismo 5.

This weekend, I spent a bunch of time playing around with C#, ASP.NET MVC 3, and Visual Studio 2010. There are a lot of compelling things for me about this platform – C# is incredibly close to Java (even looking at IL code, I was surprised at how similar it was to Java bytecode) but has some features we Java developers can only dream about, there is a lot of progress within the whole .NET ecosystem, and the deployment mode of ASP.NET websites has potential to solve some problems I have deploying Java applications.

Overall, my experience making a few small ASP.NET websites this weekend was pretty good. For the purpose of this post, however, I’m going to concentrate on my experiences with Visual Studio’s code editor – specifically, some things I really miss from the JDT in Eclipse. It is important to keep in mind that this isn’t meant to be a comparison of the two tools and a declaration of  which one is better – the scope of my wishes are pretty narrow, and frankly, I don’t care which one is better since they rarely directly compete. It also isn’t meant to be a rant on how much Visual Studio sucks, as I think it is generally a good tool that, like any other tool, has  some things that I wish worked a little differently.

Also, I freely admit that some of my complaints/wishes may be invalid – maybe there is a way to do what I want, maybe what I want to do is stupid, or maybe there is a good reason I can’t do what I want. Feel free to correct me in the comments :)

With that rambling preamble out of the way, here are the things that I miss from Eclipse:

1. Open Type

It is really handy to be able to open a class by its name. Open Type.. is a considerably more efficient way to navigate to an arbitrary class than finding it in the project tree and it has saved me countless hours. Here is what it looks like in Eclipse:

A couple of things to note – 1) It can open any type in your workspace, whether it is a class you’ve written, one from a referenced library, or from the JDK. 2) It has pretty smart matching (ie, you can use * liberally or do something like NPE to have it find NullPointerException. 3) It is really fast.

I can’t tell you how much I use this every day. Visual Studio has similar capabilities, so let’s see what it looks like:

Not bad, but there are a few differences:

  • It doesn’t include referenced libraries. Actually, the scope of the navigation was a little tricky to figure out. It would occasionally return an external class, but only if I already had it open in another tab.
  • It also includes member variables and other items. I can see how this would sometimes be useful, but it can get noisy – it would be nice if there were an easy way to filter results.

2. Class Hierarchy

Another handy thing is to be able to quickly view the class hierarchy for any given type. It can be really useful to instantly know stuff like “What are this class’ super types?” or “What known implementations of this interface are there?”. Eclipse has a Type Hierarchy view that you can access by selecting any class name (it doesn’t have to be at the class declaration) and either right-clicking and selecting ‘Open Type Hierarchy’ or simply hitting F4. This opens a nice view of the type hierarchy that looks like this:

Visual Studio does have a type hierarchy viewer, but I couldn’t figure out how to get it to show any arbitrary type – you have to use the tree view to find the particular type you are looking for.

3. Code Complete

Code completion is a lazy developer’s best friend, and I’d heard great things about IntelliSense. My experience was that while it worked in more contexts than in Eclipse, the code complete in C# code felt really sub-optimal. First, let’s compare aut0-completing a method on the string class in both languages. Note: I’ve butchered these a little bit to get them to fit correctly in my blog. In both cases, they look a little better in the actual IDE.

Eclipse:

A couple of things that I want to point out about what you see in the code-complete popup:

  • It shows the full method signature, as well as other info. You see the return type (immediately after the method signature) and which class that method actually comes from (to the right of the return type). If there are overloaded methods, you see all of them.
  • If there are any JavaDocs associated with that method, you’ll see them on the right.
  • The symbol on the far left tells you what kind of method this is – public, protected, or private.

Now, let’s take a look at what a similar situation looks like in Visual Studio:

We get a roughly similar view, but the information is harder to process. Parameter information and the return type is instead located on the right-popout that you only see if you hover your mouse over the auto-complete candidate for a second. Worse, it is poorly formatted and the information doesn’t jump out at you like it does in the Eclipse scenario. Finally, if there are overloaded methods, you can’t see their signatures in this view.

4. Code Complete, Part 2

So, what happens once we hit ‘enter’ on one of those items?

Eclipse:

You’ll note that it not only inserts the rest of the method name, but stubs out the entire call for me with placeholders. As I type in real values for each of the placeholders, I can hit ‘tab’ to go to the next one. It also helpfully shows the parameter types in the tooltip above it. Really useful.

Visual Studio:

This is what it looks like in Visual Studio immediately after hitting ‘enter’. This is not very helpful. Hitting control + space at this point does nothing.

I have to think there is a way to get VS to do something more useful here (let me know if there is!), but really, it shouldn’t take another key combination or other action to get it to do something close to what Eclipse does.

5. Code Complete, Part 3

The scope of IntelliSense seemed really limited, too. For example, I was trying to use the DbContext class from System.Data.Entity. So, I typed DbC and then hit ctl+space, and wasn’t presented with anything useful. In Eclipse, if you were to do something similar, you’d see something like this:

Selecting one of those would cause Eclipse to automatically import the proper package.

Visual Studio clearly knows enough to do this – when I right-click on DbContext, it offers me the option of importing the correct namespace. Why couldn’t it do this as part of the IntelliSense functionality?

6. Sundry

There a ton of little things that annoyed me or felt sub-optimal, but didn’t warrant screenshots or their own section:

  • Eclipse has a feature where you can tell it to automatically put semi-colons and braces at the end of the line when you type them. This saves you having to cursor over or hit ‘end’ to do that (I told you I was lazy!).
  • Code Snippets are pretty cool – Eclipse has a similar feature. I have 2 problems with Visual Studio’s implementation: 1) They aren’t editable or createable through a simple interface in the IDE (that I can tell). 2) They show in the same IntelliSense popup as everything else, yet you hit ‘tab’ instead of ‘enter’ to activate them. Why?
  • It is kind of annoying to have to manually build the project to get certain things to happen. Why can’t it be continuously building like Eclipse Java projects? I realize this occasionally causes problems in Eclipse, but you can turn it off if you want.

Conclusion

Admittedly, when you use a tool for 8 or so hours per day for a number of years, you develop a ton of muscle memory, and using anything else feels really weird. I think, though, that some of the things I’ve pointed out above aren’t just ‘different’ in Eclipse, but are actually better, and it would be nice to see them in Visual Studio. I’m pretty open-minded, though, so if I’m somehow wrong, feel free to let me know via the comments!