RubyFlow The Ruby and Rails community linklog

×

The Ruby and Rails community linklog

Made a library? Written a blog post? Found a useful tutorial? Share it with the Ruby community here or just enjoy what everyone else has found!

Submit a post

You can use basic HTML markup (e.g. <a>) or Markdown.
Note that your post may be edited to suit the format of the site.

As you are not logged in, you will be
directed via GitHub to signup or sign in

Post Preview

Note: Only the first pargraph is shown on the front page and overly long paragraphs may be broken up.

Ruby Quiz is Back (Fortnightly)! Challenge #1 - Read Comma-Separated Values (CSV)

Hello, The Ruby Quiz is now back fortnightly (once every two weeks). Challenge #1 - Read Comma-Separated Values (CSV) from the “Real World”. Let’s use the test.csv file from Apache Commons CSV Reader. The challenge: Code a parse method that passes the RubyQuizTest :-). Start from scratch or, yes, use any library / gem you can find. To qualify for solving the code challenge / puzzle you must pass the test. Post your code snippets on the “official” Ruby Quiz Channel, that is, the ruby-talk mailing list. Happy hacking and data wrangling with Ruby. PS: Thanks to RubyFlow and Peter Cooper for blocking my account. Last post (really only an edit others get blocked). See you in the free world. All the best. Cheers. Prost. PPS: If that’s how you treat your friends - how do you treat your enemies :-)..

Hey Gerald, which account you got blocked (I suspect it’s the RubyFlow one). An…

Why the CSV library is broken (Part VI) - Fast, Faster, Fasterer, Fastest

Hello, I’ve written a new (and sixth) episode on why the CSV standard library is broken (and how to fix it). Let’s have a look at fixes in alternative CSV libraries out there: Fixes in Alternative CSV Libraries or Evolve or Die or Fast, Faster, Fasterer, Fastest Questions and comments welcome. Cheers. Prost. PS: If you want to see other (more) CSV formats / dialects pre-configured and supported “out-of-the-box” in the new csv reader, please tell. PS: (Update) Added Part VII or What’s Your Type? Guess. Again. And Again. And Again. Guess What’s a Schema For?

Content Security Policy (Ruby on Rails)

Recently, we made changes to our codebase in regards to Content Security Policy (CSP). This article starts with a minuscule intro to CSP, then talks about why we decided to change our approach, what we changed, some unintended consequences and how we fixed things; it then ends with some observations and learnings. [more inside]

Configuration-driven state machines

Many projects need a state machine to control workflows, You can read all sorts of computer science articles on what a state machine is, but the essence is that a particular object can exist in a certain number of states only, and events will cause a transition from one state to another. [more inside]

Why the CSV library is broken (Part V) - Do You Want French Quotes with that Comma?

Hello, I’ve written a new (and fifth) episode on why the CSV standard library is broken (and how to fix it). Let’s have a look at quotes and leading and trailing spaces: Escaping the Stray Quote Error Hell - Do You Want Single, Double, or French Quotes With That Comma? Questions and comments welcome. Cheers. Prost. PS: If you want to see other (more) CSV formats / dialects pre-configured and supported “out-of-the-box” in the new csv reader, please tell.

Loading older posts