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.

Contact form gem: EOTS (Email Of The Species)

I’ve written a gem that lets you specify as many kinds of email contact forms as you like, including having them in one or more hierarchies so you can describe their shared fields just once. You use some method calls (see the README) to specify your forms and their fields, set up your SMTP credentials as normal, and EOTS takes care of creating the forms, accepting them, and submitting them to be delivered. See https://rubygems.org/gems/eots for the gem info, https://github.com/davearonson/EOTS for “teh c0dez”, or http://www.Codosaur.us/contact to see examples of the forms. (Please don’t send me emails just to test it!)

Is Ruby 2.3 Faster? Nested Iterator Performance

In Ruby <= 2.2 iterators like each_with_index, all?, any?, and others are creating extra Ruby objects each time you call them. When these are used inside the loop, they potentially allocate thousands of extra objects, adding more work for the garbage collector. That results in extra GC cycles that, in turn, slow down your application. Find out whether Ruby 2.3 improves this.

Ruby Private Class Methods

In the Ruby programming language, defined methods come in two variants: instance methods and class methods. Instance methods are available after an object has been initialized, creating an instance. Class methods, on the other hand, are available without creating an instance of the class they are defined upon. However, Ruby class methods have some odd visibility quirks that might not be evident immediately.

Wye Tech News #8

A new issue of our weekly compilation of interesting news and articles about Ruby, Rails, JavaScript and web development related stuff that we found during the week.

Loading older posts