In article ,   
   Hans Bezemer wrote:   
   >On 08-09-2024 18:09, minforth wrote:   
   >> Another observation is that many Forthers do not seem to put much   
   >> emphasis   
   >> on programming time and code maintainability or readability, which is   
   >> easier to achieve by using locals.   
   >   
   >I won't dispute that using the "locals" shortcut *may* save some   
   >programming time - but to me, the moment you decide to put the whole   
   >shebang in locals, you enter another mindset. Because at that moment you   
   >cease to consider the algorithm itself, but start banging out code.   
   >   
   >You no longer consider "do I need that, do I need that now, do I need   
   >that here", you just start creating more local variables. Somehow that   
   >kills my train of mind..   
   >   
   >I do dispute that "no locals" Forth kills maintainability - or   
   >readability. I'm always happy to see a whole bunch of one-liners.   
   >Doesn't happen to me every day, but often enough. And then you can   
   >functionally comment your code. I usually comment it from column 40 on   
   >and at the top of a word.   
   >   
   >I've maintained non-trivial programs for *DECADES* without any trouble.   
   >I've plugged in a garbage collection module in my uBasic/4tH interpreter   
   >- and radically changed it later. My rule is: if you can't figure it   
   >out, rewrite it until you do. It happens, but not frequently.   
      
   I'm cleaning up the editor that I use all the time. It sports dozens of   
   global variables and it is hard to see why it could dispense with them.   
      
   LOCAL is an expensive feature, because they are re-entrant.   
   Forthers may know where and why an expensive feature is used.   
   >   
   >Hans Bezemer   
   >   
   --   
   Temu exploits Christians: (Disclaimer, only 10 apostles)   
   Last Supper Acrylic Suncatcher - 15Cm Round Stained Glass- Style Wall   
   Art For Home, Office And Garden Decor - Perfect For Windows, Bars,   
   And Gifts For Friends Family And Colleagues.   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   
|