The Artima Developer Community
Sponsored Link

Ruby Buzz Forum
Keeping Busy at the Border Crossing

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Obie Fernandez

Posts: 608
Nickname: obie
Registered: Aug, 2005

Obie Fernandez is a Technologist for ThoughtWorks
Keeping Busy at the Border Crossing Posted: Apr 13, 2006 2:25 AM
Reply to this message Reply

This post originated from an RSS feed registered with Ruby Buzz by Obie Fernandez.
Original Post: Keeping Busy at the Border Crossing
Feed Title: Obie On Rails (Has It Been 9 Years Already?)
Feed URL: http://jroller.com/obie/feed/entries/rss
Feed Description: Obie Fernandez talks about life as a technologist, mostly as ramblings about software development and consulting. Nowadays it's pretty much all about Ruby and Ruby on Rails.
Latest Ruby Buzz Posts
Latest Ruby Buzz Posts by Obie Fernandez
Latest Posts From Obie On Rails (Has It Been 9 Years Already?)

Advertisement

A word of advice to dumb Americans trying to go to Canada on Rails: Bring proof of citizenship and a letter saying that you're not working in Canada! I didn't bring either of those two items, so I got stuck at the border crossing for an hour while one of the ThoughtWorks offices fixed things up for me.

Here is a small snippet of code showing how I kept my mind occupied while waiting at the border. (I hope at least some of you will recognize the following syntax and be very curious what I'm up to... hehehe.)

CONSTANT=[A-Z] [:jletterdigit:]*
IDENTIFIER=[:jletter:] [:jletterdigit:]*
SYMBOL=[:] [:jletterdigit:]+

{CONSTANT}   { return RBTokenTypes.CONSTANT_LITERAL; }
{SYMBOL}   { return RBTokenTypes.SYMBOL_LITERAL; }

{WHITE_SPACE_CHAR}+   { return RBTokenTypes.WHITE_SPACE; }

{END_OF_LINE_COMMENT} { return RBTokenTypes.END_OF_LINE_COMMENT; }

{INTEGER_LITERAL}     { yybegin(DIV); return RBTokenTypes.NUMERIC_LITERAL; }
{FLOAT_LITERAL}       { yybegin(DIV); return RBTokenTypes.NUMERIC_LITERAL; }

More about this code later.

Read: Keeping Busy at the Border Crossing

Topic: FeedValidator :: validar feeds RSS y ATOM en Ruby Previous Topic   Next Topic Topic: Memory overhead for small objects: often underestimated

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use