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.

Why the ruby CSV standard library is broken, broken, broken (and how to fix it)

Hello, I’ve written up an article titled “Why the CSV standard library is broken, broken, broken (and how to fix it)”. Let’s make ruby the best it can be for data wrangling - starting with the humble comma-separated values (CSV) format - the world’s most popular data interchange format in text :-). Questions and comments welcome. Cheers. Prost.

Rubyflow

Hi, developers from could you please add a functionality to ignore “Author” of posts. I see a lot of spam here and articles about nothing (many companies just publishing articles to get better SEO). It could be a great feature. Thank you

@IGOR: They will publish articles from different accounts so that won’t help mu…
I think personal filtering based on author, keyword, domain, etc. would be usef…

csvreader - read tabular data in comma-separated values (csv) format the right way

Hello, I’ve started to put together a new library / gem, that is, csvreader - that lets you read tabular data in the comma-separated values (csv) format the right way :-), that is, uses best practices such as striping / trimming leading and trailing spaces, skipping comments and blank lines, “fixes” quote errors and more - all out-of-the-box with zero-configuration. and, thus, fixes some major bugs in the (old) standard csv library with a purpose-built parser (instead of a suppossed “faster” split(",") kludge). Happy data wrangling with ruby. Cheers. Prost.

Indexes on Rails: How to Make the Most of Your Postgres Database

Optimizing database queries is arguably one of the fastest ways to improve the performance of the Rails applications. There are multiple ways how you can approach it, depending on the kind of a problem. N+1 queries seem to be a pretty common issue, which is, fortunately, easy to address. However, sometimes you have some relatively simple-looking queries that seem to take way longer than they should be, indicating that they might require some optimization. The best way to improve such queries is adding a proper index. [more inside]

[Podcast] Ruby Rogues - How to Contribute to Ruby with Sihui Huang

In this episode of Ruby Rogues, the panel talks to Sihui Huang about his article “How to Contribute to Ruby”. Sihui is currently a back-end engineer at Gusto, which is a startup that works with payroll, benefits, and HR for companies. They talk about her experience in the programming world, why she chose to work with Ruby, and they touch on her article and why she decided to write it. They also touch on the three focuses for Ruby 3, if she thinks Ruby has a long time future, and more! [more inside]

tabreader - read in tabular datafiles in text in the tab format; incl. why Tab != CSV

Hello, I’ve put together a new library / gem, that is, tabreader - that lets you read in tabular datafiles in text in the tab format; yes, uses values = line.split("/t") or use the packaged up TabReader.parse_line( ... ) or any of the convenience helpers incl. TabHashReader.parse for returning hashes (with named value pairs) instead of arrays (with a list of values by position/index). The readme includes why CSV.read( col_sep: "\t", quote_char: "∅" ) is NOT recommended and why tab is its own (simpler) format than the classic comma-separated values (csv) format. Happy data wrangling with ruby. Cheers. Prost.

Loading older posts