In my last post about the most powerful developer tool ever made I had a person leave a comment that said this:

I could not agree with you more. Google is your friend! I actually landed my current job because of Google. In my interview I was asked the question, "How would you rate your skills in C#, 1-5?" I replied "4", even though I had never seen a line of C# code. He asked me why I rated myself a 4 and I told him, "Programming is a skill, once you know how, everything else is just syntax and I can just Google the rest."

This comment had me thinking for a few minutes. Sure, knowledge of your programming language and environment are very important, but overall, is programming a generic skill that easily translates between platforms, languages, and toolsets? My first response was “kinda”, object oriented programming is a generic skill. If you know how to write good object oriented software, then you are likely to be able to easily translate that skill into another, demonstrably similar, language.

A Rose By Any Other Name

For example, if I were to be an awesome Java developer (which I am not) who can write great OO code, then I would very likely be able to turn around and write great C# code. I’d have to do quite a bit of searching, and trial and error to find out the particular way to connect to a database, search a string, write to a file, etc… but over the course of a few weeks I could become extremely productive in the alternative platform. As Thoreau said:

Every artizan learns positively something by his trade. Each craft is familiar with a few simple well-known well established facts-not requiring any genius to discover but mere use and familiarity. You may go by the man at his work in the street every day of your life.- And though he is there before you carrying into practice certain essential information-you shall never be the wiser.

There are simple well-known facts at play here, but these are both incredibly similar platforms. They practically share the same syntax, both are object oriented, they are both garbage collected, etc… The similarities go on and on. But if you came from a language which wasn’t so similar, then would we be in the same situation? Is it just syntax at that point? Absolutely not.

There are really two different ways that languages differ. First is in syntax, second is in paradigm. In terms of syntax and paradigm C# and Java are basically the same. Even C# and C++ would be considered very similar in terms of syntax and paradigm, but if a C++ programmer came into C# they could probably get around but would likely perform tasks in sub-optimal ways until they learned the ropes. Obviously the reverse is also true, but to a more extreme degree.

If you were to drop a C# developer into the world of Scala they would feel comfortable with the syntax but the shift to a more functionally oriented language would probably give them trouble for quite a while until they learned the ropes. Going further and putting the developer into a functional language like F# would push them even further, and without proper training and exploration they would probably be solving problems in entirely backwards ways because they are still thinking in their old paradigm. In F# though we still have the object oriented tools available to us, and therefore the C# developer would likely be able to at least fumble their way through a problem. However, if you took a C# developer and dropped them into the world of Haskell they would be a fish out of water. The software would be as foreign to them as a brain would be to a cardiac surgeon.

Making The Switch

Does this mean that the comment on my previous blog post wasn’t true? Absolutely not. In fact, he is almost certainly correct in the vast majority of cases. Object oriented programming dominates the development industry right now and moving between C++, C#, Java, PHP, Delphi, VB.NET, etc… are all extremely similar. Once you’ve learned how to develop in one, you can be fairly comfortable in the others in a matter of days or weeks. It isn’t even that far of a jump to go into object oriented dynamic languages like Ruby, Python, or Grooby. You just have to forget everything you were taught about the importance of type safety! If you are looking for a tutorial, look no further!

The bigger jump is when you look at the next generation of languages coming down the pipe and you start to think about the paradigm shift that would accompany languages like F#, Scala, Erlang, Clojure, etc… These languages, should any of them become mainstream will represent a shift in the fundamental way in which many programmers develop. In fact, many of us are already starting to make this shift if you are working in a OO language such as C# that is slowly starting to push more and more functional concepts into it.

Don’t Forget About the Libraries

Libraries can’t be discounted completely though. I wrote it off as earlier in this post as simply googling for a snippet of code to write to a file or parse a string, but the reality is that libraries that come with languages drarwf the languages themselves by many times. Over time a developer becomes familiar with his/her platform of choice and their productivity can rise substantially. The real question is how long does it take to get to this point? I for one subscribe to the idea that libraries are like spoken languages. The English language may have tens of thousands of words, but any individual usually only uses a few hundred in every day conversation. Those few hundred can take a different amount of time to learn, depending upon the person and the environment.

One thing is for sure though is that a developer writing C# in one shop and a developer writing C# in another shop can be exposed to two entirely different parts of the framework. A good example of this is that I went in for an interview once where the interviewer asked me to tell him how to connect to a database, fire off a query, and then read the results out. Well, I had just come off a two year project where we used a heavy abstraction on top of the data layer that mapped all of it into classes for us. I honestly couldn’t remember what the classes were called, and so I told him that. I explained that I hadn’t needed to use those classes in quite a while, and I made a few guesses about their names. Right now I am using them on a daily basis, and I wish I wasn’t, but I could name all of them off to you and probably even enumerate all of their methods! The point is that library experience is important, and learning tools is important, but they will only take you so far. The rest is up to you and your search engine.

Summary

So does out programming experience translate across languages and platforms? We better hope so, at least to some degree. Otherwise all of those pointy haired guys out there who are looking for the 20 year old guy with a year of experience in the tool du jour would be right! Ugh, that would be the most depressing thing ever. But I don’t think that is the case, I think that good developers span languages and platforms and they are the ones that are always searching for a better way to do something. They are always trying to be more efficient, more productive, and do more with less. They are always looking for a sharper tool. Are your tools getting dull?