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 117,336 of 117,927   
   Waldek Hebisch to Hans Bezemer   
   Re: Parsing timestamps? (2/2)   
   26 Jun 25 05:20:13   
   
   [continued from previous message]   
      
   > view the works of others - especially when resorting to a C style - I   
   > feel like it could work for you as well.   
   >   
   > Nine times out of ten one doesn't need the amount of locals which are   
   > applied. One doesn't need a 16 line word - at least not when you   
   > actually want to maintain the darn thing. One could tackle the problem   
   > much more elegant.   
      
   My policy is that variable should be a single logical thing.   
   Which means that frequently I have more variables than   
   "strictly necessary".  That is I do not reuse variable for   
   different purpose even if that would be possible.  IMO   
   saving here are compiler job, and in case when compiler is   
   not doing this savings are not worth extra effort (and   
   IMO worse program structure).  Not that in reasonable program   
   we are talking here about something like say 100 words   
   or maybe 1000 words which may be significant on a small   
   embedded system (but compilers for such system are reasonably   
   good at reusing variables), but is irrelevant for bigger systems.   
      
      
   --   
                                 Waldek Hebisch   
      
   --- SoupGate-DOS v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

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


(c) 1994,  bbs@darkrealms.ca