• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
Noulakaz

Noulakaz

The blog of Avinash, Christina, Anya and Kyan Meetoo.

  • Home
  • About
  • People
    • Christina & Avinash Meetoo
    • Avinash Meetoo
    • Christina Meetoo
    • Anya Meetoo
    • Kyan Meetoo
  • General
    • News
    • Mauritius
    • Politics
    • Education
    • Business
    • Travel
  • Computing
    • Apple
    • Linux
    • LUGM
    • Programming
    • Web
    • Technology
    • Knowledge Seven
  • Entertainment
    • Music
    • Movies
    • Photography
    • Sports

Programming

Two gems from Queue

2 July 2007 By Avinash Meetoo 6 Comments

I was reading this month’s edition of ACM Queue magazine and I came across (until now) two gems.

The first one is at the end of an interview of Michael Stonebraker, creator of Ingres (ancestor of PostgreSQL) and now adjunct professor of computer science at MIT. He is being interviewed by Margo Seltzer, one of the founders of Sleepycat Software (now owned by Oracle), makers of Berkeley DB. She is now professor in computer science at Harvard.

Here is the gem:

STONEBRAKER […] I think MIT has some of the smartest people on the planet. So does Stanford. So does Berkeley.

SELTZER There’s another school up the river, Mike, that you’re missing.

STONEBRAKER I applaud your efforts to improve computer science at Harvard, and I wish Harvard would get deadly serious about computer science because there’s a tremendous upside that you can realize over time.

SELTZER Well, come meet our students!

Those two are (amicably) arguing about whether MIT is better than Harvard and Margo Seltzer says “Well, come meet our students!”. I find this beautiful… and enlightening. This is THE metric to use to judge a university: are the students good or not!?!

I dream of a University of Mauritius capable of producing young Torvalds, Jobs or Gates every year.

Programming in the 2000’s

The second gem is in an article written by Michi Henning, chief scientist at ZeroC, makers of Ice. He writes about APIs and how they should be designed. At one point, he goes lyrical about how programming should be taught in universities:

Back in the late ’70s and early ’80s, when I was cutting my teeth as a programmer and getting my degree, much of the emphasis in a budding programmer’s education was on data structures and algorithms. They were the bread and butter of programming, and a good understanding of data structures such as lists, balanced trees, and hash tables was essential, as was a good understanding of common algorithms and their performance tradeoffs. These were also the days when system libraries provided only the most basic functions, such as simple I/O and string manipulation; higher-level functions such as bsearch() and qsort() were the exception rather than the rule. This meant that it was de rigueur for a competent programmer to know how to write various data structures and manipulate them efficiently

We have moved on considerably since then. Virtually every major development platform today comes with libraries full of pre-canned data structures and algorithms. In fact, these days if I catch a programmer writing a linked list, that person had better have a very good reason for doing so instead of using an implementation provided by a system library.

Similarly, in the ’70s and ’80s, if I wanted to create software, I had to write pretty much everything from scratch: if I needed encryption, I wrote it from scratch; if I needed compression, I wrote it from scratch; if I needed inter-process communication, I wrote it from scratch. All this has changed dramatically with the open source movement. Today, open source is available for almost every imaginable kind of reusable functionality. As a result, the process of creating software has changed considerably: instead of creating functionality, much of today’s software engineering is about integrating existing functionality or about repackaging it in some way. […]

Little seems to have changed since then: my son, who is currently working toward a software engineering degree at the same university where I earned my degree, tells me that still no one bothers to explain these things. (Bold text mine)

Beautiful. Instead of focussing on implementing a linked list, it is better to teach young programmers (i.e. first year students) how to use one from the standard library of any modern programming language.

It’s important for young programmers to understand the characteristics of linked lists, things like the complexity of common operations, and what is feasible with them and not. Then, in a second course, the CS students (and not the IT students) could learn about implementing such data structures.

It’s difficult to resist something as obvious as this.

Filed Under: Education, Programming, Technology

Three great technical books

14 June 2007 By Avinash Meetoo 3 Comments

I’ve just discovered ProgrammingBooks.org and I find it great. I’m impatient to start contributing to it as soon as they solve their user signup problem as it is not working well presently.

In the meantime, here are three books I bought relatively recently and which I find excellent:

The second edition of Programming Ruby is extremely interesting to read (the first version is available freely online). It describes the Ruby programming language of course as well as its standard library. Ruby is an extremely expressive programming language as it allows the programmer to solve complex problems very easily. I’ve already written about my fascination with that programming language. The metaprogramming aspects of Ruby will blow your mind away!

Linux Kernel Development fully describes (and explains the rationale behind) the various subsystems found in the Linux 2.6 kernel. It’s one extremely complex and specialized subject that has been made simple thanks to the pedagogical talent of the author. Incidentally, my students have indirectly benefited from that book in the sense that I know a lot more about the kernel than before. Consequently I regularly ask them to investigate sections of the Linux kernel (e.g. the scheduler or the process creation mechanism) and write reports for me…

The third book is also another book that I’ve read cover to cover. The Inmates are Running the Asylum has an obscure title (at first) and it’s only when the author explains its meaning that you realize that this book is a gem. The Inmates are us, programmers. And the Asylum is the software that we are always trying to write. The point is that we, programmers, design the user interface of a software in order to please us and not the real end-user. Consequently, the software becomes difficult to use for the majority and therefore is not successful. The author argues that one should always use a goal-directed design approach. Incidentally, the author is the creator of Visual Basic but he does not like to use it to design user interfaces… I’ve already written on that.

Filed Under: Education, Linux, Programming, Technology

The best way to introduce programming

3 June 2007 By Avinash Meetoo 67 Comments

I’ve decided to teach the Programming Methodology course to first year Computer Science & Engineering students as from next academic year. I love programming. And I want to share my enthusiasm to the young people who join the CSE department. For me, programming is art and, fortunately, I am not alone to think that.

This is the course outline from the official CSE programme:

Pseudocode; Structured Programming Techniques; Program Structure; Simple Data Type; Control Structures; Modularity; Structured Data Types; Introduction to Object Oriented Programming; Programming Style and Testing, Abstract Data Types, Arrays, Linked Lists, Stacks, Queues, Trees, Graphs, Operations on Trees and Graphs.

(Astute readers will have noticed that ; (semicolons) are used initially and , (commas) afterwards – this is an indication that this one year-long course is the concatenation of two previous semester-long courses – Programming Methodology and Data Structures)

Lately, I have been discussing with some colleagues about the reasons why many of our current students have lots of difficulties to tackle this course. One reason might be that many of them have chosen CS for the bad reasons (I don’t want to get into that…) and they don’t have the necessary skills to be good programmers no matter what we do. Another reason might be the way the course is taught by focussing a lot on programming language constructs instead of solving problems. Another possibility might be the actual programming language used (i.e. C++) etc. etc.

I’ve realized that one good way to teach programming is to use the same techniques used in the best universities in the world. Naturally (and this has been pointed out to me by one colleague), there is a risk that what is good for exceptional students (like what you have in top universities) might be catastrophic for our Mauritian students but, personally, I don’t buy this. The first reason is that we are trying to teach art and, as far as I know, to learn art, one needs to have taste (aka aptitudes aka interest aka resonance etc.) That’s it. No need for 3 A’s at A-Level. The second reason is that we are a university and not a university– and therefore we should not lower our standards to accommodate more students. I’ll be direct. If the student cannot follow a university-level course, then he/she has no place in a university. Once I asked a professor from a South-African university about how to handle students who don’t like to read and she told me:

Throw them out!

Ok. This is drastic. But this is how universities become top universities. And this is how they help create the Silicon Valley.

Anyway, I looked at what is taught in top universities and I found out the following:

  • Harvard’s Introduction to Computer Science I – The course has three goals (i) to teach problem solving through the development of algorithms (ii) to teach computer programming as a means to express algorithms (iii) and to convey a broad picture of the different aspects of computer science in the real world. The programming languages used are C and Ruby. According to me, C is a beautiful language to understand what a computer is and Ruby is perfect to write algorithms solving complex problems as the language is so expressive.
  • Cambridge’s Foundations of Computer Science – At the end of the course, the student should (i) be able to write simple programs (ii) understand the importance of abstraction in computing (iii) be able to estimate the efficiency of simple algorithms (iv) and know how to use currying, higher-order functions and lazy evaluation. The programming used is the functional language ML.
  • Stanford’s Programming Methodology – The course covers fundamental programming concepts and software engineering techniques. It uses Karel the Robot which is a simulator to learn programming in Java.
  • And finally MIT’s Structure and Interpretation of Computer Programs and Berkeley’s version – The course is an introduction to computer science, with particular emphasis on software and on machines from a programmer’s point of view. It concentrates mostly on the idea of abstraction, allowing the programmer to think in terms appropriate to the problem rather than in low-level operations dictated by the computer hardware. The programming language used is the functional language Scheme and the textbook is obviously the world-renowned SICP.

This is what I understand:

  • Focus is on solving problems (and not in low-level operations dictated by the computer hardware)
  • Very high-level languages (or environments) are used: Ruby, ML, Karel the Robot and Scheme. Interestingly, Harvard uses Ruby and C I guess to give the student a grasp of both worlds.
  • Three of the top five universities of the world use functional programming languages to introduce programming. I may be on the right track after all in my quest to learn Haskell. Incidentally, the first programming language I used at university when I was a student was Scheme.
  • Python is not used by the top 5 (Pascal Grosset won’t like that). Must be because it’s not different enough from C (apart from the syntax) i.e. it is not very high-level.
  • Those top university are not afraid to use non-mainstream languages and environments. This is an indication of being intelligent by the way: the people there think different!

My conclusion?

Let’s see. First of all, I’ll propose that the course be very progressive but ultimately tough. I’ll try to propose to my colleagues that we completely rework the lectures and lab sessions to focus on problem solving. I’ll also propose that we use a very high-level language. Scheme is great (especially DrScheme) but it might be a little too much for my colleagues. Haskell (and especially Hugs) might also be a little too much. Ruby is the next best choice. But I better find a good interactive and multiplatform and free environment first. Any idea?

(An update: I’ve (re)discovered jEdit which coupled with the Ruby Editor Plugin seems to be a fantastic free IDE for Ruby and it works on all platforms which run Java i.e. on everything!)

(Artwork by Piet Mondrian)

Filed Under: Education, Programming, Technology

  • « Go to Previous Page
  • Page 1
  • Interim pages omitted …
  • Page 21
  • Page 22
  • Page 23
  • Page 24
  • Page 25
  • Interim pages omitted …
  • Page 44
  • Go to Next Page »

Primary Sidebar

Our Personal Websites

Avinash Meetoo
Christina Meetoo
Anya Meetoo
Kyan Meetoo

Archives

  • July 2025 (1)
  • June 2025 (1)
  • May 2025 (3)
  • April 2025 (4)
  • January 2025 (3)
  • December 2024 (2)
  • November 2024 (2)
  • October 2024 (3)
  • September 2024 (7)
  • August 2024 (1)
  • July 2024 (1)
  • June 2024 (2)
  • May 2024 (3)
  • January 2024 (2)
  • December 2023 (1)
  • October 2023 (1)
  • September 2023 (4)
  • August 2023 (3)
  • July 2023 (1)
  • June 2023 (4)
  • May 2023 (1)
  • April 2023 (1)
  • March 2023 (5)
  • February 2023 (1)
  • December 2022 (1)
  • November 2022 (1)
  • October 2022 (4)
  • August 2022 (4)
  • July 2022 (3)
  • June 2022 (5)
  • May 2022 (5)
  • January 2022 (3)
  • December 2021 (2)
  • November 2021 (1)
  • October 2021 (1)
  • September 2021 (4)
  • August 2021 (2)
  • July 2021 (14)
  • May 2021 (2)
  • April 2021 (4)
  • March 2021 (9)
  • February 2021 (2)
  • January 2021 (1)
  • October 2020 (1)
  • September 2020 (1)
  • August 2020 (2)
  • July 2020 (5)
  • June 2020 (3)
  • May 2020 (5)
  • April 2020 (6)
  • March 2020 (2)
  • February 2020 (2)
  • January 2020 (2)
  • October 2019 (1)
  • September 2019 (2)
  • July 2019 (2)
  • June 2019 (1)
  • May 2019 (3)
  • April 2019 (2)
  • March 2019 (1)
  • February 2019 (1)
  • January 2019 (3)
  • December 2018 (1)
  • October 2018 (3)
  • August 2018 (2)
  • July 2018 (2)
  • June 2018 (1)
  • May 2018 (2)
  • April 2018 (1)
  • February 2018 (1)
  • December 2017 (1)
  • October 2017 (1)
  • September 2017 (1)
  • August 2017 (1)
  • July 2017 (1)
  • May 2017 (4)
  • April 2017 (3)
  • March 2017 (4)
  • February 2017 (5)
  • January 2017 (3)
  • October 2016 (1)
  • September 2016 (1)
  • August 2016 (4)
  • July 2016 (1)
  • June 2016 (1)
  • March 2016 (3)
  • February 2016 (3)
  • January 2016 (1)
  • December 2015 (1)
  • November 2015 (2)
  • September 2015 (1)
  • August 2015 (3)
  • March 2015 (1)
  • December 2014 (1)
  • November 2014 (4)
  • October 2014 (1)
  • March 2014 (2)
  • February 2014 (3)
  • December 2013 (1)
  • October 2013 (1)
  • September 2013 (1)
  • August 2013 (1)
  • July 2013 (1)
  • June 2013 (2)
  • May 2013 (1)
  • March 2013 (3)
  • January 2013 (2)
  • December 2012 (3)
  • November 2012 (4)
  • September 2012 (3)
  • August 2012 (2)
  • July 2012 (3)
  • June 2012 (2)
  • May 2012 (1)
  • April 2012 (2)
  • February 2012 (1)
  • January 2012 (4)
  • December 2011 (2)
  • November 2011 (1)
  • October 2011 (4)
  • September 2011 (2)
  • August 2011 (1)
  • July 2011 (2)
  • June 2011 (4)
  • April 2011 (7)
  • March 2011 (2)
  • February 2011 (1)
  • January 2011 (3)
  • November 2010 (3)
  • October 2010 (1)
  • September 2010 (2)
  • August 2010 (4)
  • July 2010 (2)
  • June 2010 (1)
  • May 2010 (3)
  • April 2010 (4)
  • March 2010 (3)
  • February 2010 (3)
  • January 2010 (5)
  • December 2009 (2)
  • November 2009 (3)
  • October 2009 (1)
  • September 2009 (5)
  • August 2009 (3)
  • July 2009 (1)
  • June 2009 (3)
  • May 2009 (2)
  • April 2009 (7)
  • March 2009 (12)
  • February 2009 (10)
  • January 2009 (5)
  • December 2008 (4)
  • November 2008 (11)
  • October 2008 (6)
  • September 2008 (7)
  • August 2008 (3)
  • July 2008 (8)
  • June 2008 (6)
  • May 2008 (5)
  • April 2008 (7)
  • March 2008 (6)
  • February 2008 (3)
  • January 2008 (6)
  • December 2007 (11)
  • November 2007 (10)
  • October 2007 (7)
  • September 2007 (9)
  • August 2007 (3)
  • July 2007 (7)
  • June 2007 (8)
  • May 2007 (14)
  • April 2007 (11)
  • March 2007 (18)
  • February 2007 (14)
  • January 2007 (15)
  • December 2006 (16)
  • November 2006 (10)
  • October 2006 (7)
  • September 2006 (8)
  • August 2006 (8)
  • July 2006 (6)
  • June 2006 (4)
  • May 2006 (13)
  • April 2006 (10)
  • March 2006 (11)
  • February 2006 (7)
  • January 2006 (14)
  • December 2005 (8)
  • November 2005 (6)
  • October 2005 (7)
  • September 2005 (2)
  • August 2005 (6)
  • July 2005 (2)
  • June 2005 (6)
  • May 2005 (15)
  • April 2005 (12)
  • March 2005 (3)
  • February 2005 (8)
  • January 2005 (3)
  • December 2004 (1)
  • November 2004 (2)
  • October 2004 (2)
  • September 2004 (3)
  • August 2004 (3)
  • July 2004 (3)
  • June 2004 (3)
  • May 2004 (6)
  • April 2004 (10)
  • March 2004 (12)
Creative Commons License This work is licensed by Avinash Meetoo under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 Unported License.