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
Post Preview
Note: Only the first pargraph is shown on the front page and overly long paragraphs may be broken up.
Are comments a code smell? Yes! No? It Depends.
Thoughts on an old question - are comments a code smell, yes or no? - many people seem to be either firmly on the yes or the no side when it comes to this. However, I think the question is much more nuanced than it is often made out to be. The post digs deeper.
Twitter mention feature for Rails Application
https://anotherengineeringblog.com/twitter-mention-feature-for-rails In this blog post I detail how you can implement Twitter’s mention feature so users of your Rails app can mention other users just by typing @username. I also include a link to a sample application on Github which shows how the feature works you can play around with. Happy deving!
Implementing a worker pool from scratch
In order to improve performance of an application without using tonnes of resources the Worker Pool is a simple and efficient solution that powers many concurrency patterns. Here we are going to build one from scratch and explore some scheduling algorithms. https://hspazio.github.io/2017/worker-pool/
AppPerf Updates (Opensource App Performance Monitoring)
Just wanted to reach out and share some updates around my open source application performance application AppPerf. Here is a list of some of the updates I have made recently. [more inside]
How we trick Bundler and cause interesting bugs
Debugging a memory usage problem in our system lead to some interesting insights and some bugfixes for Bundler. A story of debugging including a short excursion into MRI’s memory handling, specifically for arrays.
Tracking Rails errors with Errbit
Errbit is an open source, API compatible clone of Airbrake. You can deploy it to your own server and cheaply track errors from many Rails apps. Watch the screencast
Sniffer – Log and debug HTTP requests in your Ruby app.
Sniffer is a gem to log and debug all your HTTP requests. It is compatible with the most popular Ruby HTTP libraries.
New Jekyll Remote Theme in Action - Turn Your Text Notes into Live Slides w/ Jekyll
Hello, the latest and greatest plugin to GitHub Pages (and Jekyll) is Jekyll Remote Themes. Using a simple config entry you can “automagically” pull in remote themes (layouts, includes, javascripts, etc). To show off / test the new functionallity I’ve put together a minimal ready-to-use (fork/clone) setup called Talk Starter (S6 Blank) that turns your notes in plain text w/ markdown formatting conventions in live web slides (using the S6 blank machinery). See Blockchains!, Blockchains!, Blockhains! (Source) as example. Happy publishing w/ GitHub Pages (and Jekyll). Cheers.
Enough with leaked logic already
Sometimes Service Objects, while extremely useful, actually hurt your OOP design. Read more
Active Record DB Schema documentation
Using Active Record, the How and why to embed docs into your DB schema.
S6 Blank - Slideshow (S9) (Jekyll-Compatible) Template Pack Rebooted / Updated
Hello, I’ve rebooted the (default) S6 Blank (Jekyll-Compatible) Template Pack for the Slideshow (S9) command line tool (and library). What’s news? The S6 machinery has now an easy-to-extend microkernel (Bespoke.js-Compatible). Why not build / generate your next talks / slideshows from your notes written in plain text with markdown formatting conventions? Happy publishing with S6 & S9. Cheers.
Some sugar for your ActiveRecord models
Schema introspection & generator style methods/rake tasks for your models. Also, be sure to check out the annotate gem. https://github.com/hopsoft/model_probe
Implementation of Proxy pattern in Ruby
In this article, I cover Proxy pattern and its types. We will implement each of them using Ruby: http://rubyblog.pro/2017/11/proxy-pattern
Using paper_trail gem for data snapshots
I’ve never used paper_trail gem for data snapshots but decided to give it a try.
Flippin' Features at Runtime
From keeping track of a default instance to preloading all your features to the awesome sauce that is Flipper::Cloud, a new version of flipper is hot off the press and ready for use.
Build Your Own Link Shortener App with Ruby & Sinatra
Looking for a project to practice your Ruby skills? Let’s build one together! http://www.rubyguides.com/2017/11/sinatra-link-shortener/
Why Aren't We Using More Service Objects Already
Avdi Grimm recently wrote a post in which he lambastes the rise of service objects. As an advocate for service objects I was interested in reading about their shortcomings. I want to know the strengths and weaknesses of the tools I use. That’s not what I found. Instead, I found a post that simply contradicted my own experience. Read More
Computer Science for Everyone: the Basecs Podcast
Looking for accessible computer science resources to learn more about CS? Want to brush up on your CS concepts but don’t know where to start? Check out the basecs podcast, a fun, byte-sized, and beginner-friendly podcast based on a blog series.