Did Wirth write something about refraining from use of a resource merely because it is available? I'm almost certain I read it in something he wrote or in something biographical. Haven't found it with Google. A citation? Thanks, ... Lyall E. -- 123456789 123456789 123456789 123456789 123456789 123456789 123456789 12 Tel +1 360 639 0202 or +1 604 822 7107 http://easthope.ca/Peter.html Bcc: peter at easthope. ca
Every extra facility adds the baggage potential problems. That's why I didn't want color in the early days of computing. And perhaps why many *nix <piano-players> don't want visual input via mouse. This relates also to ETHO's simple-wipe coloring facility, which offers massive extra cognitive power. It apparently depends on the individuals <psychology>, because forth-users don't appreciate the founder's introduction of colorforth. A text wrote "you can use colors to make it more attractive..." It's not about "attractive" !! Different colors penetrate immediately to the primitive subconscious, bringing information, with the minimum of effort/distraction. It's efficient: like breathing.
I think the idea is slightly more complex than that:
From "A Brief History of Software Engineering" (2008)
What happened in software engineering was predictable and inherent in a field of engineering, where the demands rise, work is done under time pressure, and the cost of resources are almost disappearing. The consequence is waste of cheap resources -- processor cycles and storage bits -- resulting in inefficient code and bulky data. This waste has become ever-present and represents a grave lack of sense for quality. Inefficiency of programs is easily covered up by obtaining faster processors, and poor data design by the use of larger storage devices. But their side effect is a decrease of quality -- of reliability, robustness, and ease of use. Good, careful design is time- consuming, costly. But it is still cheaper than unreliable, difficult software, when the cost of "maintenance" is not factored in. The trend is disquieting, and so is the complacency of customers. j. On Mon, Dec 14, 2015 at 9:20 PM, <peter@easthope.ca> wrote:
Did Wirth write something about refraining from use of a resource merely because it is available? I'm almost certain I read it in something he wrote or in something biographical. Haven't found it with Google. A citation?
Thanks, ... Lyall E.
-- 123456789 123456789 123456789 123456789 123456789 123456789 123456789 12 Tel +1 360 639 0202 or +1 604 822 7107 http://easthope.ca/Peter.html Bcc: peter at easthope. ca
-- Oberon@lists.inf.ethz.ch mailing list for ETH Oberon and related systems https://lists.inf.ethz.ch/mailman/listinfo/oberon
Did Wirth write something about refraining from use of a resource merely because it is available? I'm almost certain I read it in something he wrote or in something biographical. Haven't found it with Google.
Project Oberon, section 2.3: (https://www.inf.ethz.ch/personal/wirth/ProjectOberon/PO.System.pdf, p.19) "The high priority given in the system's conception to modularity, to avoiding unnecessary frills, and to concentrate on the indispensable in the core, has resulted in a system of remarkable compactness. Although this property may be regarded as of little importance in this era of falling costs of large memories, we consider it to be highly essential. We merely should like to draw the reader's attention to the correlation between a systems' size and its reliability. Also, we do not consider it as good engineering practice to consume a resource lavishly just because it happens to be cheap." A passage which stayed with me, too - and why I always recommend anyone interested in Project Oberon to spend as much time as possible with the original texts, which (unusually for most computing texts) reward a good read. Cheers, Paul
On Tue, December 15, 2015 5:40 am, Paul Reed wrote:
Project Oberon, section 2.3: (https://www.inf.ethz.ch/personal/wirth/ProjectOberon/PO.System.pdf, p.19)
Also, we do not consider it as good engineering practice to consume a resource lavishly just because it happens to be cheap."
That's it! Thanks! ... Peter E. -- Telephone 1 360 639 0202 or +13606390202. Bcc: peter at easthope.ca http://easthope.ca/Shop.html
Hello Paul, Peter and all other oberonneurs, one of my former highschool students is writing a Python programmes that have very long listings. Despite the structured nature of Python his programmes become to complex to explain to me. Now I think I remember a quote from Niklaus Wirth where he states that every module that is longer than one page should be rewritten in separate modules. Did anyone remember this quote? And, do you think this adagium is only valid for the Main Module or is it also applicable for, say math library modules? Greets, Frans-Pieter Paul Reed schreef op 2015-12-15 12:40:
Did Wirth write something about refraining from use of a resource merely because it is available? I'm almost certain I read it in something he wrote or in something biographical. Haven't found it with Google.
Project Oberon, section 2.3: (https://www.inf.ethz.ch/personal/wirth/ProjectOberon/PO.System.pdf, p.19)
"The high priority given in the system's conception to modularity, to avoiding unnecessary frills, and to concentrate on the indispensable in the core, has resulted in a system of remarkable compactness. Although this property may be regarded as of little importance in this era of falling costs of large memories, we consider it to be highly essential. We merely should like to draw the reader's attention to the correlation between a systems' size and its reliability. Also, we do not consider it as good engineering practice to consume a resource lavishly just because it happens to be cheap."
A passage which stayed with me, too - and why I always recommend anyone interested in Project Oberon to spend as much time as possible with the original texts, which (unusually for most computing texts) reward a good read.
Cheers, Paul
-- Oberon@lists.inf.ethz.ch mailing list for ETH Oberon and related systems https://lists.inf.ethz.ch/mailman/listinfo/oberon
'One page per procedure' possibly but definitely not 'one page per module'. I don't recall seeing a quote but I have always used a *rule of thumb* that if you can't see all of a procedure at once then you should *consider* refactoring it. Hence what might have been 'a page' in the past might now be 'a screenful'. This is deliberately vague e.g. if I regularly use one of my widescreen monitors in portrait orientation with a relatively small font I can see a lot more than otherwise might be posible. However, you should be very careful when communicating guidelines of this sort to inexperienced programmers to make sure they they don't interpret them as commandments set in stone. Otherwise they might arbitrarily break up large procedures into smaller illogical chunks just because they have been given a rule to follow. You should give some examples of horror cases that obviously need splitting up and other examples of procedures that are large for a good reason (e.g. a case statement with many cases), Regards, Chris Burrows http://www.cfbsoftware.com
-----Original Message----- From: Oberon [mailto:oberon-bounces@lists.inf.ethz.ch] On Behalf Of Frans-Pieter Vonck Sent: Wednesday, 16 December 2015 7:09 AM To: oberon@lists.inf.ethz.ch Subject: Re: [Oberon] Use of resources.
Hello Paul, Peter and all other oberonneurs,
one of my former highschool students is writing a Python programmes that have very long listings. Despite the structured nature of Python his programmes become to complex to explain to me. Now I think I remember a quote from Niklaus Wirth where he states that every module that is longer than one page should be rewritten in separate modules. Did anyone remember this quote? And, do you think this adagium is only valid for the Main Module or is it also applicable for, say math library modules?
Greets, Frans-Pieter
I'll add this. I'm 60 years old. I've been in this crazy racket since before I turned 15. In all that time, with a specific exception which I'll talk about in the next paragraph, I've seen EXACTLY one (1) procedure that NEEDED to be more than one printer page (about 66 lines) long, that could not have been profitably factored. It was the photon torpedo routine from the Matuszek-Reynolds-McGehearty-Cohen STARTRK game. Written in FORTRAN IV for the Control Data 6600, it essentially had to run a loop that simulated firing of up to three torpedoes, simulated the torpedo flyout, with random perturbations, checked for impact with various objects, and, in the case of impact on a star, simulated recursion with an explicit stack to compute 8-way connectivity of star clusters, to nova all the affected stars. It was about two pages of dense code, one statement per line, minimally commented. (It was assumed that the reader knew what was going on, and knew what he was doing.) The exception is certain large finite-state automata with fairly sparse next-state matrices. These tend to arise in automated test equipment scenarios, parsing "interesting" ad hoc communication sequences with the device under test. I've never found a "good" way to factor or modularize these, and I've been looking, on and off, for over twenty years. -----Original Message----- From: Chris Burrows Sent: Tuesday, December 15, 2015 3:40 PM To: 'ETH Oberon and related systems' Subject: Re: [Oberon] Use of resources. 'One page per procedure' possibly but definitely not 'one page per module'. I don't recall seeing a quote but I have always used a *rule of thumb* that if you can't see all of a procedure at once then you should *consider* refactoring it. Hence what might have been 'a page' in the past might now be 'a screenful'. This is deliberately vague e.g. if I regularly use one of my widescreen monitors in portrait orientation with a relatively small font I can see a lot more than otherwise might be posible. However, you should be very careful when communicating guidelines of this sort to inexperienced programmers to make sure they they don't interpret them as commandments set in stone. Otherwise they might arbitrarily break up large procedures into smaller illogical chunks just because they have been given a rule to follow. You should give some examples of horror cases that obviously need splitting up and other examples of procedures that are large for a good reason (e.g. a case statement with many cases), Regards, Chris Burrows http://www.cfbsoftware.com
-----Original Message----- From: Oberon [mailto:oberon-bounces@lists.inf.ethz.ch] On Behalf Of Frans-Pieter Vonck Sent: Wednesday, 16 December 2015 7:09 AM To: oberon@lists.inf.ethz.ch Subject: Re: [Oberon] Use of resources.
Hello Paul, Peter and all other oberonneurs,
one of my former highschool students is writing a Python programmes that have very long listings. Despite the structured nature of Python his programmes become to complex to explain to me. Now I think I remember a quote from Niklaus Wirth where he states that every module that is longer than one page should be rewritten in separate modules. Did anyone remember this quote? And, do you think this adagium is only valid for the Main Module or is it also applicable for, say math library modules?
Greets, Frans-Pieter
-- Oberon@lists.inf.ethz.ch mailing list for ETH Oberon and related systems https://lists.inf.ethz.ch/mailman/listinfo/oberon --- This email has been checked for viruses by Avast antivirus software. https://www.avast.com/antivirus
Yes, one page per module seems ridiculous, and one page per procedure seems fair. What strikes me is that my students show me piles of listings of code that reminds me of the windings green lineprinter paper I walked around with in the eighties. Pascal on the VAX. The programming projects of my students are self chosen, extracurricular activities and the need for structured programming emerges naturally in their learning path. By the way, I'm happily surprised they still feel a need to actually print their code on paper. So the idea is the let them discover a sort of 'rule of thumbs' for the intellectually manageability of programs. (Wirth - On the composition of Well-structured programs). And then show them the wise steps to refine their code. Also, as I scrolled through the Project Oberon book I found that the definition listings of the modules were around one book page. Tomorrow I will make a hard copy of the Oberon book and to get a feeling of the intellectually manageability of Project Oberon. Greets, Frans-Pieter Chris Burrows schreef op 2015-12-15 22:40:
'One page per procedure' possibly but definitely not 'one page per module'. I don't recall seeing a quote but I have always used a *rule of thumb* that if you can't see all of a procedure at once then you should *consider* refactoring it. Hence what might have been 'a page' in the past might now be 'a screenful'. This is deliberately vague e.g. if I regularly use one of my widescreen monitors in portrait orientation with a relatively small font I can see a lot more than otherwise might be posible.
However, you should be very careful when communicating guidelines of this sort to inexperienced programmers to make sure they they don't interpret them as commandments set in stone. Otherwise they might arbitrarily break up large procedures into smaller illogical chunks just because they have been given a rule to follow. You should give some examples of horror cases that obviously need splitting up and other examples of procedures that are large for a good reason (e.g. a case statement with many cases),
Regards, Chris Burrows http://www.cfbsoftware.com
-----Original Message----- From: Oberon [mailto:oberon-bounces@lists.inf.ethz.ch] On Behalf Of Frans-Pieter Vonck Sent: Wednesday, 16 December 2015 7:09 AM To: oberon@lists.inf.ethz.ch Subject: Re: [Oberon] Use of resources.
Hello Paul, Peter and all other oberonneurs,
one of my former highschool students is writing a Python programmes that have very long listings. Despite the structured nature of Python his programmes become to complex to explain to me. Now I think I remember a quote from Niklaus Wirth where he states that every module that is longer than one page should be rewritten in separate modules. Did anyone remember this quote? And, do you think this adagium is only valid for the Main Module or is it also applicable for, say math library modules?
Greets, Frans-Pieter
-- Oberon@lists.inf.ethz.ch mailing list for ETH Oberon and related systems https://lists.inf.ethz.ch/mailman/listinfo/oberon
hallo Frans-P To me the issue is the thinking patterns needed for effective software design. After all that is why they come to school, to learn! One helpful way of thinking is "separation of concerns." see https://www.cs.utexas.edu/users/EWD/transcriptions/EWD04xx/EWD447.html When you search for "Dijkstra separation of concerns" you will find more links. The wikipedia article is unfortunately a bit advanced and so it obfuscates the essence. Another helpful thinking pattern is "progressive refinement". Wirth tried to teach that way. The green Oberon book has examples and there is a paper from him on the 8 queens problem where he tries to highlight the thinking pattern. so if I must speak for my muddy self: Often I dream up some seemingly useful structure to start from, but then as I progress I might find that "it just looks too complex" mostly because I did not think things through to the very esssence of it, or beause i try to do 2 things at once, and none gets done right. So back to the drawingboard and with the experience gained we start all over again, etc. cheers, j. On 12/16/15, Frans-Pieter Vonck <fp@vonck.nl> wrote:
Yes, one page per module seems ridiculous, and one page per procedure seems fair.
What strikes me is that my students show me piles of listings of code that reminds me of the windings green lineprinter paper I walked around with in the eighties. Pascal on the VAX. The programming projects of my students are self chosen, extracurricular activities and the need for structured programming emerges naturally in their learning path. By the way, I'm happily surprised they still feel a need to actually print their code on paper.
So the idea is the let them discover a sort of 'rule of thumbs' for the intellectually manageability of programs. (Wirth - On the composition of Well-structured programs). And then show them the wise steps to refine their code.
Also, as I scrolled through the Project Oberon book I found that the definition listings of the modules were around one book page. Tomorrow I will make a hard copy of the Oberon book and to get a feeling of the intellectually manageability of Project Oberon.
Greets, Frans-Pieter
Chris Burrows schreef op 2015-12-15 22:40:
'One page per procedure' possibly but definitely not 'one page per module'. I don't recall seeing a quote but I have always used a *rule of thumb* that if you can't see all of a procedure at once then you should *consider* refactoring it. Hence what might have been 'a page' in the past might now be 'a screenful'. This is deliberately vague e.g. if I regularly use one of my widescreen monitors in portrait orientation with a relatively small font I can see a lot more than otherwise might be posible.
However, you should be very careful when communicating guidelines of this sort to inexperienced programmers to make sure they they don't interpret them as commandments set in stone. Otherwise they might arbitrarily break up large procedures into smaller illogical chunks just because they have been given a rule to follow. You should give some examples of horror cases that obviously need splitting up and other examples of procedures that are large for a good reason (e.g. a case statement with many cases),
Regards, Chris Burrows http://www.cfbsoftware.com
-----Original Message----- From: Oberon [mailto:oberon-bounces@lists.inf.ethz.ch] On Behalf Of Frans-Pieter Vonck Sent: Wednesday, 16 December 2015 7:09 AM To: oberon@lists.inf.ethz.ch Subject: Re: [Oberon] Use of resources.
Hello Paul, Peter and all other oberonneurs,
one of my former highschool students is writing a Python programmes that have very long listings. Despite the structured nature of Python his programmes become to complex to explain to me. Now I think I remember a quote from Niklaus Wirth where he states that every module that is longer than one page should be rewritten in separate modules. Did anyone remember this quote? And, do you think this adagium is only valid for the Main Module or is it also applicable for, say math library modules?
Greets, Frans-Pieter
-- Oberon@lists.inf.ethz.ch mailing list for ETH Oberon and related systems https://lists.inf.ethz.ch/mailman/listinfo/oberon
-- Oberon@lists.inf.ethz.ch mailing list for ETH Oberon and related systems https://lists.inf.ethz.ch/mailman/listinfo/oberon
I really appreciate Dijkstra idea's about programming and some of the ewd's, especially the polemic ones, I understand. However, my students are not Mozarts, they are schoolkids, 12 13 years old. They make animated postcards in Scratch, program an NXT robot, blink a led on an Arduino, write some HTML, experiment with Javascript learn LUA for Minecraft and try to understand the difference between tabs and spaces in Python. All this they do because they enjoy it, not because an adult said so. The stepwise refinement is not how they (and myself) think. Stepwise refinement it is a way of discovering and communicating the logic of their creative product, a program. And I'm convinced that along with his beloved MontBlanc, Dijkstra was also carrying a pencil and an eraser with him. Besides my humble efforts to teach my students some programming, they have classes in Latin, Greek, French, English, Dutch, Math. If a student has a problem in learning one of these languages he or she gets elementary grammar lessons. A sort of Universal Grammar of European languages. Teaching Oberon could have the same function - it gives insight in the logic structure behind programming languages like Python, Javascript, Lua, C. Greets, Frans-Pieter Jan de Kruyf schreef op 2015-12-16 19:36:
hallo Frans-P
To me the issue is the thinking patterns needed for effective software design. After all that is why they come to school, to learn!
One helpful way of thinking is "separation of concerns." see
https://www.cs.utexas.edu/users/EWD/transcriptions/EWD04xx/EWD447.html
When you search for "Dijkstra separation of concerns" you will find more links. The wikipedia article is unfortunately a bit advanced and so it obfuscates the essence.
Another helpful thinking pattern is "progressive refinement". Wirth tried to teach that way. The green Oberon book has examples and there is a paper from him on the 8 queens problem where he tries to highlight the thinking pattern.
so if I must speak for my muddy self: Often I dream up some seemingly useful structure to start from, but then as I progress I might find that "it just looks too complex" mostly because I did not think things through to the very esssence of it, or beause i try to do 2 things at once, and none gets done right. So back to the drawingboard and with the experience gained we start all over again, etc.
cheers, j.
On 12/16/15, Frans-Pieter Vonck <fp@vonck.nl> wrote:
Yes, one page per module seems ridiculous, and one page per procedure seems fair.
What strikes me is that my students show me piles of listings of code that reminds me of the windings green lineprinter paper I walked around with in the eighties. Pascal on the VAX. The programming projects of my students are self chosen, extracurricular activities and the need for structured programming emerges naturally in their learning path. By the way, I'm happily surprised they still feel a need to actually print their code on paper.
So the idea is the let them discover a sort of 'rule of thumbs' for the intellectually manageability of programs. (Wirth - On the composition of Well-structured programs). And then show them the wise steps to refine their code.
Also, as I scrolled through the Project Oberon book I found that the definition listings of the modules were around one book page. Tomorrow I will make a hard copy of the Oberon book and to get a feeling of the intellectually manageability of Project Oberon.
Greets, Frans-Pieter
Chris Burrows schreef op 2015-12-15 22:40:
'One page per procedure' possibly but definitely not 'one page per module'. I don't recall seeing a quote but I have always used a *rule of thumb* that if you can't see all of a procedure at once then you should *consider* refactoring it. Hence what might have been 'a page' in the past might now be 'a screenful'. This is deliberately vague e.g. if I regularly use one of my widescreen monitors in portrait orientation with a relatively small font I can see a lot more than otherwise might be posible.
However, you should be very careful when communicating guidelines of this sort to inexperienced programmers to make sure they they don't interpret them as commandments set in stone. Otherwise they might arbitrarily break up large procedures into smaller illogical chunks just because they have been given a rule to follow. You should give some examples of horror cases that obviously need splitting up and other examples of procedures that are large for a good reason (e.g. a case statement with many cases),
Regards, Chris Burrows http://www.cfbsoftware.com
-----Original Message----- From: Oberon [mailto:oberon-bounces@lists.inf.ethz.ch] On Behalf Of Frans-Pieter Vonck Sent: Wednesday, 16 December 2015 7:09 AM To: oberon@lists.inf.ethz.ch Subject: Re: [Oberon] Use of resources.
Hello Paul, Peter and all other oberonneurs,
one of my former highschool students is writing a Python programmes that have very long listings. Despite the structured nature of Python his programmes become to complex to explain to me. Now I think I remember a quote from Niklaus Wirth where he states that every module that is longer than one page should be rewritten in separate modules. Did anyone remember this quote? And, do you think this adagium is only valid for the Main Module or is it also applicable for, say math library modules?
Greets, Frans-Pieter
-- Oberon@lists.inf.ethz.ch mailing list for ETH Oberon and related systems https://lists.inf.ethz.ch/mailman/listinfo/oberon
-- Oberon@lists.inf.ethz.ch mailing list for ETH Oberon and related systems https://lists.inf.ethz.ch/mailman/listinfo/oberon
...if you can't see all of a procedure at once then you should *consider* refactoring it. Hence what might have been 'a page' in the past might now be 'a screenful'.
That is the correct answer. Computing is not about computers. It's about HCI. Humans , cognition, eyes, seeing ...,screen-overflow.. On 12/17/15, Frans-Pieter Vonck <fp@vonck.nl> wrote:
I really appreciate Dijkstra idea's about programming and some of the ewd's, especially the polemic ones, I understand. However, my students are not Mozarts, they are schoolkids, 12 13 years old. They make animated postcards in Scratch, program an NXT robot, blink a led on an Arduino, write some HTML, experiment with Javascript learn LUA for Minecraft and try to understand the difference between tabs and spaces in Python. All this they do because they enjoy it, not because an adult said so.
The stepwise refinement is not how they (and myself) think. Stepwise refinement it is a way of discovering and communicating the logic of their creative product, a program. And I'm convinced that along with his beloved MontBlanc, Dijkstra was also carrying a pencil and an eraser with him.
Besides my humble efforts to teach my students some programming, they have classes in Latin, Greek, French, English, Dutch, Math. If a student has a problem in learning one of these languages he or she gets elementary grammar lessons. A sort of Universal Grammar of European languages.
Teaching Oberon could have the same function - it gives insight in the logic structure behind programming languages like Python, Javascript, Lua, C.
Greets, Frans-Pieter
Jan de Kruyf schreef op 2015-12-16 19:36:
hallo Frans-P
To me the issue is the thinking patterns needed for effective software design. After all that is why they come to school, to learn!
One helpful way of thinking is "separation of concerns." see
https://www.cs.utexas.edu/users/EWD/transcriptions/EWD04xx/EWD447.html
When you search for "Dijkstra separation of concerns" you will find more links. The wikipedia article is unfortunately a bit advanced and so it obfuscates the essence.
Another helpful thinking pattern is "progressive refinement". Wirth tried to teach that way. The green Oberon book has examples and there is a paper from him on the 8 queens problem where he tries to highlight the thinking pattern.
so if I must speak for my muddy self: Often I dream up some seemingly useful structure to start from, but then as I progress I might find that "it just looks too complex" mostly because I did not think things through to the very esssence of it, or beause i try to do 2 things at once, and none gets done right. So back to the drawingboard and with the experience gained we start all over again, etc.
cheers, j.
On 12/16/15, Frans-Pieter Vonck <fp@vonck.nl> wrote:
Yes, one page per module seems ridiculous, and one page per procedure seems fair.
What strikes me is that my students show me piles of listings of code that reminds me of the windings green lineprinter paper I walked around with in the eighties. Pascal on the VAX. The programming projects of my students are self chosen, extracurricular activities and the need for structured programming emerges naturally in their learning path. By the way, I'm happily surprised they still feel a need to actually print their code on paper.
So the idea is the let them discover a sort of 'rule of thumbs' for the intellectually manageability of programs. (Wirth - On the composition of Well-structured programs). And then show them the wise steps to refine their code.
Also, as I scrolled through the Project Oberon book I found that the definition listings of the modules were around one book page. Tomorrow I will make a hard copy of the Oberon book and to get a feeling of the intellectually manageability of Project Oberon.
Greets, Frans-Pieter
Chris Burrows schreef op 2015-12-15 22:40:
'One page per procedure' possibly but definitely not 'one page per module'. I don't recall seeing a quote but I have always used a *rule of thumb* that if you can't see all of a procedure at once then you should *consider* refactoring it. Hence what might have been 'a page' in the past might now be 'a screenful'. This is deliberately vague e.g. if I regularly use one of my widescreen monitors in portrait orientation with a relatively small font I can see a lot more than otherwise might be posible.
However, you should be very careful when communicating guidelines of this sort to inexperienced programmers to make sure they they don't interpret them as commandments set in stone. Otherwise they might arbitrarily break up large procedures into smaller illogical chunks just because they have been given a rule to follow. You should give some examples of horror cases that obviously need splitting up and other examples of procedures that are large for a good reason (e.g. a case statement with many cases),
Regards, Chris Burrows http://www.cfbsoftware.com
-----Original Message----- From: Oberon [mailto:oberon-bounces@lists.inf.ethz.ch] On Behalf Of Frans-Pieter Vonck Sent: Wednesday, 16 December 2015 7:09 AM To: oberon@lists.inf.ethz.ch Subject: Re: [Oberon] Use of resources.
Hello Paul, Peter and all other oberonneurs,
one of my former highschool students is writing a Python programmes that have very long listings. Despite the structured nature of Python his programmes become to complex to explain to me. Now I think I remember a quote from Niklaus Wirth where he states that every module that is longer than one page should be rewritten in separate modules. Did anyone remember this quote? And, do you think this adagium is only valid for the Main Module or is it also applicable for, say math library modules?
Greets, Frans-Pieter
-- Oberon@lists.inf.ethz.ch mailing list for ETH Oberon and related systems https://lists.inf.ethz.ch/mailman/listinfo/oberon
-- Oberon@lists.inf.ethz.ch mailing list for ETH Oberon and related systems https://lists.inf.ethz.ch/mailman/listinfo/oberon
-- Oberon@lists.inf.ethz.ch mailing list for ETH Oberon and related systems https://lists.inf.ethz.ch/mailman/listinfo/oberon
Frans-Pieter Vonck wrote:
I really appreciate Dijkstra idea's about programming and some of the ewd's, especially the polemic ones, I understand. However, my students are not Mozarts, they are schoolkids, 12 13 years old. They make animated postcards in Scratch, program an NXT robot, blink a led on an Arduino, write some HTML, experiment with Javascript learn LUA for Minecraft and try to understand the difference between tabs and spaces in Python. All this they do because they enjoy it, not because an adult said so.
The stepwise refinement is not how they (and myself) think. Stepwise refinement it is a way of discovering and communicating the logic of their creative product, a program. And I'm convinced that along with his beloved MontBlanc, Dijkstra was also carrying a pencil and an eraser with him.
All kids should learn that programming, is like mathematics where you do not need a physical calculator in order to do math. This was dijkstra's point when he compared telescopes to computer science, rather than computing science. I have further extended the analogy with calculators. A lot of people seem to think you need a computer in order to do programming, which is like saying that math is not possible without an electronic casio calculator, which is extremely absurd. A good programmer can compile is program inside his brain, just like a mathematician never needs any physical electronic calculator to write mathematics. As if Einstein whipped out his calculator to discover E=mc2. Couldn't be further from the truth. And this is the problem with kids today... they get their tablet pc's and immediately they are interacting with it visually. Then when they are introduced to programming they see programming as engineering and art instead of disciplined math. However, one needs to read the following excellent book: "The Science of Computing: Shaping a Discipline" Because Dijkstra and Wirth got some things wrong when it comes to testing.... The problem is that humans have a limited lifetime of about 70-90 years or less.. To prove a program correct, such as Microsoft Windows and all it's dll's, would require super amounts of time, which is not possible in this particular universe. If we develop the ability to live for 1000 years it may be possible to prove an entire operating system correct, but even then, you can NEVER prove that the OK or CANCEL button is "correct" when positioned on the screen, as there are multiple correct solutions.. there is no way to prove that you have artistically positioned your OK or CANCEL button or your bold text in html correctly... as it is left up to artistic talent to decide what is correct with some of the computer program. Correctness proving only works on trivial Toy programs that have an IN and OUT, like an old standard pascal program that just calculates things and finishes. Programs are MUCH more complicated these days, and include, unfortunately, engineering and art riddled all over the program. Example: you cannot prove component pascal to have correct button positions on the screen or correct menu items, there is just no way to prove it. You can only prove trivial things like 1+1=2 and 50 characters need to be printed to stdout. Read the book it's great: The Science of Computing: Shaping a Discipline I have NO commission on this sale! I didn't write the book. I don't know the guy. It's a great book. There's also an interesting Dijkstra blog that started regarding his history.
Since my last reply I have found an article that may have been the one you were thinking of. However, if this is the one, the meaning of the quote is not what you thought it was: "The reader should be aware that any example that is sufficiently short to fit onto a single page cannot be much more than a metaphor, probably unconvincing to habitual skeptics." Ref: "On the Composition of Well-Structured Programs", Niklaus Wirth, ACM Computing Surveys, Vol 6, No. 4, December 1974. http://www-oldurls.inf.ethz.ch/~wirth/Articles/StructuredPrograms.pdf However, if your student follows the advice in that article the end result might be what you were looking for. Regards, Chris Burrows CFB Software http://www.cfbsoftware.com
-----Original Message----- From: Oberon [mailto:oberon-bounces@lists.inf.ethz.ch] On Behalf Of Frans-Pieter Vonck Sent: Wednesday, 16 December 2015 7:09 AM To: oberon@lists.inf.ethz.ch Subject: Re: [Oberon] Use of resources.
Hello Paul, Peter and all other oberonneurs,
one of my former highschool students is writing a Python programmes that have very long listings. Despite the structured nature of Python his programmes become to complex to explain to me. Now I think I remember a quote from Niklaus Wirth where he states that every module that is longer than one page should be rewritten in separate modules. Did anyone remember this quote? And, do you think this adagium is only valid for the Main Module or is it also applicable for, say math library modules?
Greets, Frans-Pieter
Paul Reed wrote:
Did Wirth write something about refraining from use of a resource merely because it is available? I'm almost certain I read it in something he wrote or in something biographical. Haven't found it with Google.
Project Oberon, section 2.3: (https://www.inf.ethz.ch/personal/wirth/ProjectOberon/PO.System.pdf, p.19)
"The high priority given in the system's conception to modularity, to avoiding unnecessary frills, and to concentrate on the indispensable in the core, has resulted in a system of remarkable compactness. Although this property may be regarded as of little importance in this era of falling costs of large memories, we consider it to be highly essential. We merely should like to draw the reader's attention to the correlation between a systems' size and its reliability. Also, we do not consider it as good engineering practice to consume a resource lavishly just because it happens to be cheap."
This is the exact opposite advice of what Java founders give. Java says "consume as much memory as possible, as it's wasted memory if you aren't using it". Two completely different view points. Personally, I'm a minimalist and disagree strongly with Java founders. Bloatware is terrible.
participants (9)
-
Chris Burrows -
eas lab -
Frans-Pieter Vonck -
Jan de Kruyf -
John R. Strohm -
Lars O -
Paul Reed -
Peter Easthope -
peter@easthope.ca