1. Computing
Send to a Friend via Email

Exploring EventMachine the Fun Way

The following is a number of articles written while exploring EventMachine. Along the way (or, rather, as a reason to look at EventMachine in the first place), an IRC bot with distributed plugins is created.

Exploring EventMachine the Fun Way
The following is a number of articles written exploring EventMachine by creating an IRC bot with distributed plugins. The topics cover a wide range of topics.

Parsing with Regular Expressions
Using a novel feature in the Ruby regular expression engine, we can create an almost-parser to easily parse IRC messages without the need for long strings of nested conditionals.

Parsing with Regular Expressions
A novel feature of the Ruby regular expression library can be used almost like a full parser.

Parsing IRC Messages using Regular Expressions
Now that we understand named capture groups and can see how IRC messages are structured, we can start parsing them.

A Look at the IRC Protocol
Before we can write a parser for the IRC protocol, we should explore the protocol itself a little bit.

Parsing using Named Capture Groups
Now that we know a thing or to about the IRC protocol as well as how to parse things with named capture groups, let's put the two together and parse some IRC messages.

©2014 About.com. All rights reserved.