From: J L. T. <jlt...@ma...> - 2022-06-19 07:27:41
|
On 2022-06-18 08:02:19 hp...@we... wrote: > Hi Leslie! > > Am 18.06.2022 um 07:50 schrieb J Leslie Turriff: > >> [...] > > > > Courier and Courier New, IMO, should be deprecated; there are plenty of > > other monospace fonts available that make the distinction clear, so > > clinging to an outmoded typeface designed for use on a mechanical device > > with limited number of keys seems like bad practice to me, and ought not > > outweigh the advantages of using abbreviations. > > You are right in respect of my own PC, but I can't impede others > which font to use reading my programs. Even prefixing every file > with something like > /* To view this REXX restrain from using Courier or Courier New, > it could cause serious confusions */ > it might still be bad habit to code Do l = 1 to i ... This is just a philosophical observation, not 'I do this, so everyone else must also' mandate. :-) For readability, with single-letter loop variables I use uppercase (except for 'o') to help with this issue. > > > I generally only use the abbreviations when writing pipelines 'on the > > fly' to be executed directly from the command line; when writing them in > > source code I use the fully expanded word because it better documents > > what the pipeline is doing. > > What makes 'SFSDIRectory' document better what's going on than > using 'SFSDIR'? -- I'm not convinced. I use shortcuts only, i) > less typo-prone, ii) faster to catch, simpler to grasp. An example > neither pipe nor REXX related: mnemonics for firmware programs. > There is an emulator for HP's classic calculators which lists > firmware unabbreviated -- awful tiresome for the eyes. For some > reverse-engineering I had to convert it to mnemonics first. Well, I wouldn't say that 'SFSDIRectory' is a good example; something like | specs fs # f 2 f5 w 8... is not very understandable to newcomers, and sometimes if the spec is complicated enough I find it worthwhile to use | specs fieldseparator # field 2 field 5 word 8... which helps my old brain, as well as any third parties who are trying to understand my code. Leslie > > Best, > M. > > > _______________________________________________ > netrexx-pipelines mailing list > net...@li... > https://lists.sourceforge.net/lists/listinfo/netrexx-pipelines -- |