home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   comp.lang.forth      Forth programmers eat a lot of Bratwurst      117,927 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 116,720 of 117,927   
   albert@spenarnc.xs4all.nl to the.beez.speaks@gmail.com   
   Re: Avoid treating the stack as an array   
   10 Sep 24 12:10:06   
   
   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)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca