4. April, 2008
4. April, 2008
in by Michael Neumann

I’ve learned a lot of languages over the past. But only a handful of those are still of interest to me. What those languages “left” have in common is that they allow to divide groups of digits in numbers, like in:

1_000_000

This rules out Python, Erlang, C, C++, Java, while leaves in Ruby, Ocaml and D. The latter three are those languages that I like most. Just a coincidence?

24. January, 2008
24. January, 2008
in by Michael Neumann

A recent article asked the question whether dynamic languages can scale or not. I think the question can’t be answered that easily. Just because a project that used Python failed, doesn’t prove that dynamic languages can’t scale. There are just too many reasons for project failure. And I think Smalltalk proved that there can be big commercial projects that build on dynamic languages. The best thing of course is to reduce or even avoid the need of scaling, by careful architecturing and refactoring and by using the right tool. And IMHO lines of code isn’t a very good measurement for scaling.

I don’t think static typing is the silver bullet. It’s still far too limited, at least when using it in an imperative language.

One sentence in the above mentioned article made me feel somewhat sick:

“Languages like Ruby and Scala introduce new programming constructs and paradigms that are beyond the cognitive abilities of the average programmer”

At first I think, Java is far beyond the cognitive abilities of the average programmer. The whole environment a Java programmer usually has to use is incredible complex (build systems Maven, Ant, web frameworks, OO mapper) counting probably many millions lines of code.

The cited sentence also means that we need stupid programmers that don’t extend their knowledge. I couldn’t live in a setting like that. I expect from people and especially from programmers to be flexible, to be able to learn new languages. It’s the only way to prove that they have really understood the ideas behind the language and not just it’s syntax and how to apply syntax to specific problems. If they aren’t flexible enough, they will soon be replaced by machines. It’s that simple. So instead of accepting that programmers are limited, challenge them and give them a possibility to enhance their knowledge. But never accept sentences like the one above.

23. September, 2007
23. September, 2007
in
»
»
by Michael Neumann

Every real programmer should definitively know C. It’s a nice (arguable), small, and for sure understandable language which runs on most if not all machines (or at least a cross-compiler exists). Great operating systems like Linux or BSD are written in C. Languages like Ruby or Python are written in C as well. So what about C++?

Well, C++ is a really big beast! It has a lot of features not found in C:

  • Strong(er) typing (I think C99 has this as well)
  • Classes and namespaces
  • Templates
  • Exceptions

But well, as I said, C++ is big, and I heard someone saying that there is not even one compiler around that implements every little detail of C++. Uh, if there is not even one compiler that fully supports C++, how can there be any one guy who understands every little detail of C++? Except Bjarne of course, the creator :).

While C++ has a lot of features, it misses something very important: A garbage collector! That’s an absolute MUST HAVE for any real application.

Another big annoyance in my opinion in C++ is that you usually split your classes into a header (.h) and an implementation file (.cc), which doesn’t help readability.

If you use CplusRuby you get everything that C++ can do, with plain C and Ruby, plus a garbage collector, and a lot of more features. In the next version, I’ll implement templates, which is something that I really need to improve performance. So stay tuned.