Talk About Network



Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Forth > Re: A Brief Loo...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 1 Topic 3954 of 4050
Post > Topic >>

Re: A Brief Look at History

by William James <w_a_x_man@[EMAIL PROTECTED] > Mar 22, 2008 at 11:13 AM

On Mar 22, 4:43 am, Doug Hoffman <no.spam> wrote:
> William James wrote:
> > On Mar 17, 3:54 pm, Doug Hoffman <no.spam> wrote:
>
> >> VARIABLE TOP ( y coordinates top of box)
> >> VARIABLE LEFT ( x " left side)
> >> VARIABLE BOTTOM ( y " bottom)
> >> VARIABLE RIGHT ( x " rightside)
> >> : [BOX] ( x1 y1 x2 y2)
> >>    BOTTOM ! RIGHT ! TOP ! LEFT !
> >>    LEFT @[EMAIL PROTECTED]
 TOP @[EMAIL PROTECTED]
 RIGHT @[EMAIL PROTECTED]
 TOP @[EMAIL PROTECTED]
 LINE
> >>    RIGHT @[EMAIL PROTECTED]
 TOP @[EMAIL PROTECTED]
 RIGHT @[EMAIL PROTECTED]
 BOTTOM @[EMAIL PROTECTED]
 LINE
> >>    RIGHT @[EMAIL PROTECTED]
 BOTTOM @[EMAIL PROTECTED]
 LEFT @[EMAIL PROTECTED]
 BOTTOM @[EMAIL PROTECTED]
 LINE
> >>    LEFT @[EMAIL PROTECTED]
 BOTTOM @[EMAIL PROTECTED]
 LEFT @[EMAIL PROTECTED]
 TOP @[EMAIL PROTECTED]
 LINE ;
>
> >> **END EXCERPT FROM TF
>
> > : from_corner { x y  xx yy -- }
> >   x y  xx y line
> >   x y  x yy line ;
>
> > : box { x y  xx yy -- }
> >   x y  xx yy  from_corner
> >   xx yy  x y  from_corner ;
>
> Yes.  Lots of ways to solve the problem.  (is that *factoring* with
> locals?)   ;-)
>
> -Doug

We hear that locals discourage factoring.  The proof?
Newbies use locals and don't factor.
Post hoc, ergo propter hoc.
It seems more likely that newbieness causes both
the lack of factoring and the use of locals.

Unfactored code tends to be harder to read,
comprehend, and maintain.
The same can be said of code that uses stack
manipulation instead of locals.
But embedded-controller programmers have a
mistrust for anything higher-level than
assembly language.  So they keep churning
out stack spaghetti.




 1 Posts in Topic:
Re: A Brief Look at History
William James <w_a_x_m  2008-03-22 11:13:27 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Mon May 12 1:06:18 CDT 2008.