Why Today’s Programming is Still Similar to what it was Decades Ago

My physics teacher likes to say that physics like to make problems they face look like ones that they know how to solve. A simple harmonic oscillation was one he frequently used in class, as is presumably the case in physics in general.Anyhow, why they do such is simply so that you can solve a problem to meet homework deadline, get a novel prize or whatever.

In computer programming, I think, there is a similar case as well. A newbie, as he learns programming for the first time, quickly realizes that he can and need often use a common pattern when writting code. For example, in dealing with a set of elements, handing each item at a time iteratively is a quite common technique. If not in procedural programming, one but programs in functional programming, still, recursively calling a function with unfinished items and results is almost only way to go. You hardly get surprised: everyone solves a problem in the way you are so familiar and so knowledgable. Extreme programming works nicely because most of the time, what you have to do is code and test things very very carefully rather than solve problems you don’t know how to solve. You have to create a text editor? Then immediately you expect you are going to make a program with a big data buffer that is modified as the user wants and GUI components displalying the content of that buffer. MVC is but a natural consequence.

The situation changes when you start programming using OOP, reusable components, concurrency, Haskell or anything looking unusual. Code become a manifest of the world view, philosophy about computers. The creators of Next thought it is insanely great but not many people, many enough for being commercially feasible, shared the view. Smalltalk was meant to be intelligent tools for all of us humans, but it simply did not solve our problems for computers: number cranking. Then we ask why? The following are reasons I suspect might be a case.

* No one knows what is OOP; it’s not like math we all have struggled for years, nor is von Neumann machine that every computer user is familiar with (we cannot do real programing for the turing machine). The claim that OOP modeling the real world is rubbish; diamond inheritance, subclassing, the principle of subtyping, danger in down casting, etc, etc, cannot be found in everyday lives.

* Concurrency is a fantasy; After all, computers do one thing at a time. Trying to make things look like happening at the same time only leads programming to the hell of scheduling operations, resulting in a profound fear that someday the program might halt all of a sudden due to deadlock.

* Reusabiliy, once seen as a key to solve never-materialized software crisis, is a fallacy of false analogy. Making software is not quite the same as manufacturing automobiles. A software component can be copied without any cost. The term reusability and scenarios it tells us will not happen. We need a different jagon.

* Haskell, despite the affection of computer scientists, is miserable failure. Lisp and its derivatives like Scheme are ones that are used largely and taught in school as a general functional programming language. Haskell may improve productivity dramatically but if non-geniuses cannot use it, it will remain as a toy not a tool for real programmers.

* Prolog? AI? Genetic algorithms? Voice recognition? Agents? …. Who has any clue about them.

In other words, this is the core of reasons why script programming; C++ style OOP, as oppose to Objective-C style or SELF-like style; UNIX-style IO operations, as oppose to Java-style; are so popular. As the creator famously noted, Perl was designed to solve real problems for real programmers. C is still a favorite of many real programmers. Computers cannot be more than computers. And so we must try to solve problems in the way we know, or the way that was used to because the architecture of computers is still the same today as decades ago.

89 Comments

  1. 2004-05-18 6:47 am
  2. 2004-05-18 6:53 am
  3. 2004-05-18 6:55 am
  4. 2004-05-18 7:10 am
  5. 2004-05-18 7:33 am
  6. 2004-05-18 7:42 am
  7. 2004-05-18 7:51 am
  8. 2004-05-18 8:04 am
  9. 2004-05-18 8:16 am
  10. 2004-05-18 8:28 am
  11. 2004-05-18 8:32 am
  12. 2004-05-18 8:33 am
  13. 2004-05-18 8:39 am
  14. 2004-05-18 8:43 am
  15. 2004-05-18 8:51 am
  16. 2004-05-18 8:52 am
  17. 2004-05-18 8:57 am
  18. 2004-05-18 9:01 am
  19. 2004-05-18 9:06 am
  20. 2004-05-18 9:16 am
  21. 2004-05-18 9:16 am
  22. 2004-05-18 9:23 am
  23. 2004-05-18 9:23 am
  24. 2004-05-18 9:40 am
  25. 2004-05-18 9:45 am
  26. 2004-05-18 9:48 am
  27. 2004-05-18 9:48 am
  28. 2004-05-18 10:34 am
  29. 2004-05-18 10:36 am
  30. 2004-05-18 10:45 am
  31. 2004-05-18 11:12 am
  32. 2004-05-18 11:43 am
  33. 2004-05-18 11:44 am
  34. 2004-05-18 11:44 am
  35. 2004-05-18 11:52 am
  36. 2004-05-18 12:02 pm
  37. 2004-05-18 12:22 pm
  38. 2004-05-18 12:27 pm
  39. 2004-05-18 12:28 pm
  40. 2004-05-18 12:35 pm
  41. 2004-05-18 12:36 pm
  42. 2004-05-18 12:37 pm
  43. 2004-05-18 12:42 pm
  44. 2004-05-18 12:44 pm
  45. 2004-05-18 12:45 pm
  46. 2004-05-18 12:46 pm
  47. 2004-05-18 1:14 pm
  48. 2004-05-18 1:28 pm
  49. 2004-05-18 2:00 pm
  50. 2004-05-18 2:01 pm
  51. 2004-05-18 2:17 pm
  52. 2004-05-18 2:33 pm
  53. 2004-05-18 2:40 pm
  54. 2004-05-18 3:03 pm
  55. 2004-05-18 3:05 pm
  56. 2004-05-18 3:19 pm
  57. 2004-05-18 3:26 pm
  58. 2004-05-18 3:36 pm
  59. 2004-05-18 3:41 pm
  60. 2004-05-18 3:47 pm
  61. 2004-05-18 3:47 pm
  62. 2004-05-18 3:48 pm
  63. 2004-05-18 3:52 pm
  64. 2004-05-18 4:03 pm
  65. 2004-05-18 4:06 pm
  66. 2004-05-18 4:10 pm
  67. 2004-05-18 4:17 pm
  68. 2004-05-18 4:21 pm
  69. 2004-05-18 4:22 pm
  70. 2004-05-18 4:30 pm
  71. 2004-05-18 4:37 pm
  72. 2004-05-18 4:41 pm
  73. 2004-05-18 4:55 pm
  74. 2004-05-18 5:02 pm
  75. 2004-05-18 5:07 pm
  76. 2004-05-18 5:41 pm
  77. 2004-05-18 5:43 pm
  78. 2004-05-18 7:04 pm
  79. 2004-05-18 7:34 pm
  80. 2004-05-18 7:34 pm
  81. 2004-05-18 7:43 pm
  82. 2004-05-19 1:27 am
  83. 2004-05-19 5:26 am
  84. 2004-05-19 6:43 am
  85. 2004-05-19 6:46 am
  86. 2004-05-19 11:06 am
  87. 2004-05-19 3:02 pm
  88. 2004-05-19 3:28 pm
  89. 2004-05-20 1:25 pm