Let's revisit the postfix expressions calculator of the previous entry and improve the code we wrote so far...
Read the full entry at http://www.alef1.org/articles/2012/postfix_expressions_revisited.html.
Note: The article was first published on October 14, 2012
Saturday, October 13, 2018
Ruby: postfix expressions
Following a previous entry about the Ruby Fiber class that implemented a Tokenizer, here we implement a postfix expressions calculator.
Read the full entry at http://www.alef1.org/articles/2012/ruby_postfix_expressions.html.
Note: The article was first published on October 14, 2012
Read the full entry at http://www.alef1.org/articles/2012/ruby_postfix_expressions.html.
Note: The article was first published on October 14, 2012
Ruby and Fiber
Writing a method that returns at some point and can resume later to return a new value is possible when using the Fiber class.
This entry presents the Fiber class by implementing a tokenizer (a tokenizer analyzes an input stream, searches for sequences that matches some patterns and produces tokens).
Read the full entry at http://www.alef1.org/articles/2012/ruby_and_fiber.html.
Note: The article was first published on October 14, 2012
Read the full entry at http://www.alef1.org/articles/2012/ruby_and_fiber.html.
Note: The article was first published on October 14, 2012
Sunday, September 23, 2018
Mastermind (part 2)
The second part presents an implementation of a simple text user interface (text UI).
.
Read the full entry at http://www.alef1.org/articles/2012/mastermind_p2.html.
Note: The article was first published on December 22, 2012
Read the full entry at http://www.alef1.org/articles/2012/mastermind_p2.html.
Note: The article was first published on December 22, 2012
Mastermind (part 1)
This article is the first part of a TDD (test driven development) example in Ruby. It implements a game named Mastermind.
Read the full entry at http://www.alef1.org/articles/2012/mastermind_p1.html.
Note: The article was first published on December 10, 2012.
Subscribe to:
Posts (Atom)