Path: csiph.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: rbowman Newsgroups: comp.os.linux.misc,alt.usage.english,alt.english.usage Subject: Re: Floppies Date: 17 Sep 2025 02:51:21 GMT Lines: 32 Message-ID: References: <9fjemlxbio.ln2@Telcontar.valinor> <6jefmlxb6j.ln2@Telcontar.valinor> <10884l7$173em$1@dont-email.me> <1089ge2$1fvl9$8@dont-email.me> <10a68ql$16tjt$1@dont-email.me> <68c6bbc5$0$402$426a74cc@news.free.fr> <10a6rp4$1d082$5@dont-email.me> <2d9jplxvcn.ln2@Telcontar.valinor> <10a6t8d$1d082$8@dont-email.me> <4cnjplxbgm.ln2@Telcontar.valinor> <101fck52laaigefq5tubi6i7b0qpccmuic@4ax.com> <10a8g9n$1p4o3$1@dont-email.me> <3iednalP7eCU6VX1nZ2dnZfqnPudnZ2d@giganews.com> <10ad09v$2tto7$1@dont-email.me> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Trace: individual.net lkFzYrRZw28BVPSv6KFxSwpccmnYmfApA1wWaeTHR/Fuu016Wf Cancel-Lock: sha1:JQR1RkbQCi9duRBBTJ8A36mUqhE= sha256:w8mmleToX/+3QUCnutxY6ThJyM0pjLcUOTQOTFfc9KE= User-Agent: Pan/0.162 (Pokrosvk) Xref: csiph.com comp.os.linux.misc:74370 alt.usage.english:1128270 On Wed, 17 Sep 2025 10:44:44 +1000, Peter Moylan wrote: > That taught me a programming philosophy that lasted me for a lot of my > life. Instead of debugging, get it right the first time. You spend a lot > of time writing it down on paper and desk-checking before committing it > to paper tape. We had pads of coding forms and would use them to write the code. The next step was to transfer them to Hollerith cards with a keypunch. Miss that continuation punch? You'd get the deck back in a day or two. > These days, I must admit, I also spend a lot of time revising my > programs. My deteriorating eyesight means that I make a lot more typos > than I used to, so my first compilation of a program will give a couple > of dozen error messages. Then I fix those, compile again, and still get > a bunch of error messages. It's a time-wasting approach, compared with > getting it right the first time, but that's what I have been reduced to. I had some eye surgeries a couple of years ago but prior to that I had fun. Python has list comprehensions that use [] and generator expressions that use (). The generators save memory but they are a one-shot and you can't iterate over the same generator twice. A list comprehension is built in memory and can be reused. Of course, I used () by mistake and couldn't figure out why it worked one time and the difference between [ and ( on a laptop screen didn't exactly jump out at me.