Ian Sinke

Posts Tagged ‘Coding’

What’s your favorite language?

In Software on Thursday, November 8, 2007 at 8:19 am

Programming language, that is. The TIOBE index updates its list of the 50 most popular programming monthly. Check out their website for lots of cool graphs and historical info. Here’s this month’s list.

  1. Java
  2. C
  3. Visual Basic
  4. C++
  5. PHP
  6. Perl
  7. Python
  8. C#
  9. Ruby
  10. Javascript
  11. Delphi
  12. D
  13. PL/SQL
  14. SAS
  15. Lisp/Scheme
  16. Lua
  17. Cobol
  18. ABAP
  19. Pascal
  20. Ada
  21. Fortran
  22. Transact-SQL
  23. Logo
  24. MATLAB
  25. Actionscript
  26. ColdFusion
  27. Prolog
  28. FoxPro/xBase
  29. Awk
  30. Labview
  31. RPG
  32. ML
  33. Haskell
  34. Bash
  35. Groovy
  36. Smalltalk
  37. Natural
  38. Tcl/Tk
  39. Erlang
  40. CL (OS/400)
  41. Forth
  42. Focus
  43. APL
  44. VBScript
  45. Scala
  46. Icon
  47. Factor
  48. IDL
  49. Objective-C
  50. PL/I

Stupid coding mistakes

In Software on Wednesday, November 7, 2007 at 9:16 pm

Ironically, the five mistakes I make the most when coding (this is C#, of course – still my favorite language) are simple, stupid things. Here they are.

5. Forget to close a curly brace.
4. Forget to type the second of the parentheses.
3. Forget to close a set of quotes.
2. Forget to type a semicolon at the end of a line.
1. Use “=” instead of “==”.

Learning Java and Liking it

In Software on Wednesday, August 1, 2007 at 8:10 am

After listening to Scott Hanselman’s Hanselminutes podcast about being a better developer, I decided to learn a new programming language. I already knew VB and C#, and was working on Ruby and C++, so after looking at the TIOBE index (which shows what the most popular programming languages are), I decided to learn Java, it being the most popular.

First, I went to the Sun web site and downloaded the Java Developer Kit. Needing an IDE, I downloaded NetBeans 5.5 (and immediately regretted not downloading 6.0 Beta, because 6.0 Beta supports Ruby and Ruby on Rails). After the downloads completed, I installed them and got right to work.

First step when testing any programming language: Hello World! I found the Java language similar to C# (but after all, C# is supposed to be similar to Java) and very easy to use. NetBeans’ code completion (Intellisense) was very nice in that it gave you HTML help right in the editor (a blessing – no other help file came with the Java SDK), but it didn’t deserve the name “code completion”, because it didn’t complete your code for you. When you pressed the spacebar, it just entered a space instead of completing the word. I did notice, however, that some really common words had shortcuts, say, if you wanted “string”, you could type “str”.

NetBeans’ debugging features were great. Errors showed up as little red X’s in the breakpoint column, with a handy “lightbulb” icon that offered a bunch of potential fixes (something like the “lightning bolt” in Word and Visual Studio).

When I successfully ran my “Hello World” application, I was surprised to see that it had adopted the Java “cross-platform” UI theme. A quick Google search and a few lines of code fixed that.

In conclusion, I’m very pleased with Java as a language and NetBeans as an SDK. Of course, Java apps are a bit slow, but the fact that they run in a Java Virtual Machine on just about any OS is great.