{"id":38,"date":"2008-01-14T12:57:47","date_gmt":"2008-01-14T11:57:47","guid":{"rendered":"http:\/\/www.bluej.org\/mrt\/?p=38"},"modified":"2024-12-26T13:43:31","modified_gmt":"2024-12-26T13:43:31","slug":"the-pitfalls-of-java-as-a-first-programming-language-a-response","status":"publish","type":"post","link":"https:\/\/blogs.kcl.ac.uk\/proged\/2008\/01\/14\/the-pitfalls-of-java-as-a-first-programming-language-a-response\/","title":{"rendered":"The Pitfalls of Java as a First Programming Language &#8211; A Response"},"content":{"rendered":"<p>Two computing practitioners from an Ada shop in New York, Dr. R.B.K Dewar and Dr. E. Schonberg, who are also professors emeritus at New York University, have recently <a href=\"http:\/\/web.archive.org\/web\/20080816023612\/http:\/\/www.stsc.hill.af.mil\/CrossTalk\/2008\/01\/0801DewarSchonberg.html\">slammed Java as a first programming language<\/a>. Their article has received quite a bit of attention and created wide discussion.<\/p>\n<p>I think they are completely barking up the wrong tree.<\/p>\n<p>Dewar and Schonberg report some observations, and than jump to conclusions that are not in any way supported by the observations or their argument.<\/p>\n<p>Specifically, they state that today&#8217;s students are lacking certain skills (low level programming and formal methods), and then go on to blame the use of Java as an introductory language for this problem.<\/p>\n<p>To state my conclusion upfront: They describe a badly designed curriculum, and then blame one programming language for the education&#8217;s problems.<\/p>\n<p><!--more--><br \/>\nThe fallacy in Dewar and Schonberg&#8217;s argument is mainly that they imply that the use of Java means that low level programming, such as pointer arithmetic and runtime complexity, is not being taught anymore.<\/p>\n<p>While it is true that this is the case in some institutions, and when present indeed represents a problem, it is not necessarily connected with the use of Java as a first language. True, Java isolates the programmer from direct pointer manipulation, so this is an area that is not practiced in introductory Java courses. However, I have never seen anyone arguing that this means that this material should not be taught anymore.<\/p>\n<p>In many good institutions that I am familiar with, including my own, this material has been moved to other, often second year, courses. It seems from what they describe that this may not be the case at NYU. That is then indeed a hole in the curriculum. But blaming the programming language on bad curriculum design is a simplistic and misleading argument that lacks real insight.<\/p>\n<p>Dewar and Schonberg complain that &#8220;the Java programming courses did not prepare our students for the first course in systems&#8221;. Well, tough luck. If they expect C programmers, a Java course indeed would not prepare them well. Nobody said that teaching Java would magically produce C programmers. If we want students to be competent C programmers (and we certainly want that for our computer science students, but not necessarily for the multimedia students) then we need to teach C as well.<\/p>\n<p>They are essentially complaining that, now that we don&#8217;t teach our students C anymore, they don&#8217;t know C anymore. Well, then teach them C before you expect them to use it. But this still does not make any reasonable argument why Java should not be the<em> first<\/em> language. Java as a first language has many advantages over C (or Ada, which the authors, somewhat desperately, try to present as a necessary modern mainstream language).<\/p>\n<p>The authors state that <em>&#8220;Because of its popularity in the context of Web applications and the ease with which beginners can produce graphical programs, Java has become the most widely used language in introductory programming courses&#8221;. <\/em>Here, they fundamentally fail to understand why so many educators have adopted Java as a teaching language.<\/p>\n<p>The truth is, it was neither because of the web, nor because of graphics, but because Java represents a reasonably clean, manageable, nicely designed and very well supported implementation of a modern programming paradigm: object orientation. It certainly represents object orientation, which educators decided they want to teach, better than C, C++, or the authors&#8217; favourite: Ada.<\/p>\n<p>Java allows discussion of the most important concepts of programming, such as abstraction and professional quality program construction, to be done first, so that low level details can be filled in in later courses with other languages.<\/p>\n<p>Java clearly was and is a much better choice of language for introductory teaching than C, C++, or Ada, from the late 90s, when most schools switched to it, to the present day (despite a longish number of detailed criticisms that I might have).<\/p>\n<p>Dewar and Schonberg want us to custom train students for their little niche of applications: security sensitive real time applications. Sure, that is an important field, and computer scientists need to be trained for it. But this is not <em>all<\/em> there is, as the authors seem to think. The field of computing has grown significantly since Dewar and Schonberg&#8217;s view of it seems to have solidified.<\/p>\n<p>The fact is that introductory computing courses are now taken by people from what are (or should be) different disciplines: computer scientists, software engineers, multi-media experts, electronic engineers, applied computing students, network computing students, and a lot more, with differing degree names in different parts of the world. The field has developed.<\/p>\n<p>Some institutions still try to squeeze all in a single degree, but that does not really work anymore. It has passed breaking point. The field has grown so much, we really need different degrees. Everyone of those needs a first programming course. Clearly not everyone of those needs Ada. Or even C.<\/p>\n<p>Blaming the first language for a failure to design a good curriculum where other necessary languages are taught appropriately is a na\u00efve argument that misses the point and isn&#8217;t helping anyone.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Two computing practitioners from an Ada shop in New York, Dr. R.B.K Dewar and Dr. E. Schonberg, who are also professors emeritus at New York University, have recently slammed Java as a first programming language. Their article has received quite &hellip; <a href=\"https:\/\/blogs.kcl.ac.uk\/proged\/2008\/01\/14\/the-pitfalls-of-java-as-a-first-programming-language-a-response\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":179,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[63,107],"class_list":["post-38","post","type-post","status-publish","format-standard","hentry","category-java","tag-java","tag-teaching"],"_links":{"self":[{"href":"https:\/\/blogs.kcl.ac.uk\/proged\/wp-json\/wp\/v2\/posts\/38","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blogs.kcl.ac.uk\/proged\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blogs.kcl.ac.uk\/proged\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blogs.kcl.ac.uk\/proged\/wp-json\/wp\/v2\/users\/179"}],"replies":[{"embeddable":true,"href":"https:\/\/blogs.kcl.ac.uk\/proged\/wp-json\/wp\/v2\/comments?post=38"}],"version-history":[{"count":3,"href":"https:\/\/blogs.kcl.ac.uk\/proged\/wp-json\/wp\/v2\/posts\/38\/revisions"}],"predecessor-version":[{"id":1229,"href":"https:\/\/blogs.kcl.ac.uk\/proged\/wp-json\/wp\/v2\/posts\/38\/revisions\/1229"}],"wp:attachment":[{"href":"https:\/\/blogs.kcl.ac.uk\/proged\/wp-json\/wp\/v2\/media?parent=38"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blogs.kcl.ac.uk\/proged\/wp-json\/wp\/v2\/categories?post=38"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blogs.kcl.ac.uk\/proged\/wp-json\/wp\/v2\/tags?post=38"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}