A useful collection of Ruby style guides beginning with the officially unofficial RuboCop-driven community guides.
Content tagged “Ruby”
-
-
Create An Array With A Single Hash Without The Curly Braces In Ruby
This falls under the “at first it seems immoral to do this, but the more I do it, the more I feel this is how the world should be” category.
This is heinous.
-
How the Defense Digital Service uses the Design System for a Ruby app | U.S. Web Design System
The U.S. Web Design System (USWDS) is a library of design and code guidelines to help agencies create trustworthy, accessible, and consistent digital services. The Design System is being used on over one hundred government sites, with an audience of 120 million users. In this 12th post in our series, we sat down with Jason Garber, front-end web developer at the U.S. Digital Service (USDS)‘s Defense Digital Service, to talk about his work creating a Ruby gem for the new Move.mil that integrates the Design System into a Ruby on Rails application.
I was recently interviewed by the team behind the U.S. Web Design System about the uswds-rails Ruby gem I put together. Yay, open source!
-
Chunked transfer encoding in Rails (streaming)
Using the
Transfer-Encoding: chunked
header, the server will send chunks of the rendered page back to the browser so in the case of Rails, it starts with the layout and sends out the<head>
part including assets like js and css.Chunked transfer encoding is a great way to improve page performance for the parts of your application that require time-consuming database queries. The Rails-level changes are straightforward, but unfortunately not all Ruby web servers support the feature (looking at you, Puma).
-
Automating SVG Icon Sprite Generation with svgeez
Take some of the pain out of managing SVG icon sprites with this little Ruby gem.
-
Homesteading a Decade's Worth of Shared Links
-
Structuring Sinatra Applications
-
Rails Concerns II: Taggable
-
Put chubby models on a diet with concerns
-
Polymorphic many-to-many associations in Rails
-
Kickstarting your Craft project with Ruby and Rake
craft-master is a set of tools written in Ruby using Rake tasks for common Craft-related installation tasks.
-
Using browser-sync with Compass, Jekyll, and Foreman
In this post, I'll cover how I combined browser-sync with a couple of my favorite tools (Compass, Jekyll, and Foreman) to build out a static site and make browser and device testing easier.
-
Middleman: Hand-crafted frontend development
Middleman is a static site generator using all the shortcuts and tools in modern web development.
-
The Bastards Book of Ruby
The Bastards Book of Ruby is an introduction to programming and its practical uses for journalists, researchers, scientists, analysts, and anyone else whose job is to seek out, make sense from, and show the hard-to-find data.
This does not require being “good at computers”, having a background in programming, or the desire (yet) to be a full-fledged hacker/developer. It just takes an eagerness to be challenged.
-
_why's Estate
-
whymirror.github.com: A living archive of _why's Executable Poetry
In August 2009, coding superhero _why the lucky stiff deleted all his repos, took down his domains and completely removed his online presence. Nobody outside of _why’s personal circle knows why, but we’re glad for the wonderful code he shared.
-
Using Jekyll and GitHub Pages for Our Site | Development Seed
-
Maintaining wordpress post URLs in jekyll
-
Static blogging the Jekyll way - Recursive Design
-
Rake Tutorial | Jason Seifer
-
Hivelogic - Deploying ExpressionEngine from GitHub with Capistrano
-
irb readline support on Leopard – The Pug Automatic