Deutsch English Français Italiano |
<vqb267$lig$1@reader1.panix.com> View for Bookmarking (what is this?) Look up another Usenet article |
Path: ...!eternal-september.org!feeder3.eternal-september.org!panix!.POSTED.spitfire.i.gajendra.net!not-for-mail From: cross@spitfire.i.gajendra.net (Dan Cross) Newsgroups: alt.folklore.computers,comp.os.linux.misc Subject: Re: The joy of FORTRAN Date: Thu, 6 Mar 2025 02:44:23 -0000 (UTC) Organization: PANIX Public Access Internet and UNIX, NYC Message-ID: <vqb267$lig$1@reader1.panix.com> References: <59CJO.19674$MoU3.15170@fx36.iad> <vB5xP.126521$eNx6.22176@fx14.iad> <vq2scj$144$1@reader1.panix.com> <vqanht$2l4q6$1@dont-email.me> Injection-Date: Thu, 6 Mar 2025 02:44:23 -0000 (UTC) Injection-Info: reader1.panix.com; posting-host="spitfire.i.gajendra.net:166.84.136.80"; logging-data="22096"; mail-complaints-to="abuse@panix.com" X-Newsreader: trn 4.0-test77 (Sep 1, 2010) Originator: cross@spitfire.i.gajendra.net (Dan Cross) Bytes: 3278 Lines: 51 In article <vqanht$2l4q6$1@dont-email.me>, Pancho <Pancho.Jones@protonmail.com> wrote: >On 3/3/25 00:16, Dan Cross wrote: >> John Ousterhout recently published the contents of a written >> "debate" he had with Robert C Martin that went into this at some >> length. With the caveat that I think Martin is a charlatan, >> folks here might find it interesting and relevant. > >I'm not sure how old you are, but I get the feeling Robert C Martin is >writing for young people. I only became aware of him when my son was >given his book as part of his required reading for his first job. > >I was quite impressed. Martin seemed to me to be giving reasonable >practical advice. How to decompose problems into code is something new >programmers seem to find difficult. It is something not taught well at >university. I'm not nearly so cheritable about his book, I'm afraid. Martin is looking for dupes to take as for a mark. At best, he reminds me of Herb Schildt. Some of his advice is ok, but it's clear he himself doesn't have a great command of the domain. I suspect he targets people who are earlier in their careers because those who are more seasoned can see through his more egregious recommendations, and don't need those that are closer to trivial. When you can see past the dogma, it is much less compelling. >> https://github.com/johnousterhout/aposd-vs-clean-code/blob/main/README.md >> > >The problem with the prime generator examples is not the comments, >naming or decomposition into smaller functions, although I prefer the >single function version. No, the problem is they do not explain what the >algorithm is, relating it to the well-known Sieve of Eratosthenes and >the Fundamental theorem of Arithmetic. Once you understand it is very >similar to the Sieve of Eratosthenes, with a memory saving adaption, it >is easy to understand the code. It is not easy to understand the >algorithm from the code. If it was my code, I would preface it with a >block English language comment overview of the algorithm. That is one of the problems in his version. Beyond that, it is simply wrong in several ways. One wondered if he tried to run it, let alone test it. >So much of understanding complex code is conceptually mapping new code >to well understood patterns or algorithms. Agreed. - Dan C.