Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I started with Pascal in school (6th grade I think). The book contained a few lines of code and said: This is the smallest program possible: it does nothing.

  program HelloWorld;
  begin
  end.
I was puzzled: why would you need to write something for it to do nothing? But it becomes clear very easily: all programs need to have a special structure to be correctly defined. This structure happens to be a block of code with a name. And that explanation was enough to satisfy me for the moment. I turned a few pages, and sure enough all examples had that structure with something else inside. I was already feeling good with myself for being able to recognize well structured programs.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: