Factor/FAQ/Learning

How can I start learning Factor?

The best way to go about it is to figure out something you want to program and start trying to do it. Once you have a goal in mind, you can look at Factor's included documentation (available online at Factor's website), and ask questions on the Mailing list or Concatenative IRC channel.

Are there any good books I can read about Factor?

Factor is a very young language, and so far, there aren't many books on it yet. Seven More Languages in Seven Weeks has a chapter on Factor. A good introduction to Forth, much of which applies in Factor, is Thinking Forth (PDF) by Leo Brodie. The best place to start to learn about the principles of modern concatenative languages is the Joy papers, by Manfred von Thun. Another good internet resource is Planet Factor, a blog aggregator for all things Factor-related. There won't be a Factor book written until after Factor 1.0 is released.

How can I keep track of the stack in my head?

At first, it may be useful to make diagrams on paper. But eventually stack shufflers should fade away in your mind and become part of the data flow. If your stack is hard to trace, it is likely that you are thinking about too many things on the stack at once. It is highly unusual for a Factor word to accept or return more than three arguments on the stack. If you ever need to keep track of the location of more than three or four items, you should probably reorganize the function by factoring it into smaller pieces.

How can I improve my Factor coding style?

See Coding Style.

This revision created on Thu, 17 Mar 2016 18:52:23 by pirj (Factor book added)