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.
Implementing Simple Classification using a Neural Network in Ruby
In this blog post I will show how to use a neural network in Ruby to solve a simple classification problem. We will be using the RubyGem ruby-fann to help us setup a network, train and make predictions in a matter of minutes. http://www.practicalai.io/implementing-simple-classification-using-neural-network-in-ruby/.
Preventing security issues in Ruby on Rails (based on OWASP cheatsheet)
Most important security issues (according to OWASP cheatsheet) in applications build with Ruby on Rails and the tips how to prevent them. https://medium.com/kkempin/preventing-security-issues-in-ruby-on-rails-based-on-owasp-cheatsheet-2fbca18b6a85
[Screencast] Virtual Columns in MySQL
In Ruby on Rails 5.1.0, generated virtual column support was added for MySQL and MariaDB. Using generated and stored columns can leverage heavy calculations to the SQL side. https://www.driftingruby.com/episodes/virtual-columns-in-mysql
How to test Rails app using Mocha JS and Chai JS ?
Test your all javascript in your rails app using mocha and chai js. Write tests run in a browser or on the console. [more inside]
Real World Sinatra
Real world Sinatra apps and their open source codebases for developers to learn from (inspired by the Real World Rails project).
Meet Rails 5: Tour The New Rails Generator
Generate a new Rails 5 app, tour the various directories and compare them to Rails 4 in this RubySnack: Tour The New Rails Generator
Random Ruby Newsletter, Issue #25
This newsletter started as Russian-language-only about Ruby, Elixir, and web but now I think it is ready to move forward. That’s why 25 and next issues are in English. [more inside]
Ruby Alternatives in 2017
A recent overview of Ruby (our favorite programming language) and other modern programming languages with data from Google Trends, StackOverflow Trends and other sources. Plus a Ruby community meetup style in Minsk.
You're Good Enough To Build Practical Rails 5 and Ruby Apps
If you’re really serious about “modeling” professional Ruby and Rails developers, so that you can accelerate your progress, get measurable results with your work and achieve your professional goals, you should check out Your Virtual Rails Client Training ». [more inside]
iniparser gem - read /parse INI configuration, settings and data files into a hash
Hello,
What’s your favorite datafile format? Awesome YAML or Awesome JSON (What’s Next)? I prefer good ol’ INI ;-) that’s why I published a new iniparser gem to read / parse INI configuration, settings and data files into a hash. Use $ h = INI.load_file( 'planet.ini' ); pp h. Cheers. PS: What’s INI? See the planet.ini as a “real-world” example.
READ Data Using Ruby API Clients
Here’s a quick video walkthrough (and step-by-step instructions) of how to READ data from a third-party SaaS app inside your Rails 5 application, using a Ruby API client.
Value Objects in Ruby on Rails
This blog post is about value objects and how they can be used and identified in your Rails application. I will explore some situations and give you some value object examples that should make your application simpler and easier to work with.
Awesome YAML - A Collection of Awesome YAML Goodies for Rich (Meta) Data in Text
Hello, YAML is (almost) everywhere in Ruby land (Rails fixtures, db config, etc; Jekyll front matter, datafiles, etc.). To collect the best (most awesome) goodies (links, articles, tips & gotchas, tools & services) about YAML (Ain’t Markup Language) I’ve started a new Awesome YAML collection page. Anything missing? Pull request welcome. Cheers.
Rails 5.1 Deployment Checklist for Heroku
Having just put THE CONF event site up with Rails 5.1 on Heroku, I decided to list the final touches everyone should do to production-ready content sites in Rails 5.1. It’s not an extensive and definitive checklist, so please add your suggestions too!
Small Is Big- Creating microservices with Sinatra and RabbitMq
https://medium.com/@gauravbasti2006/microservices-in-ruby-4888d757b35b - Over the years complexity of applications has increased exponentially, managing all the complexity in same code base created problems like scaling and code management . In recent past there has been lot of attention towards micro-services architecture, in which we break the monolithic application into multiple independent components which are also known as micro-services.
Ruby & The Strategy Pattern
Learn about the Strategy pattern and how to implement it in Ruby.
Calculating readability of an article/webpage in Ruby
https://blog.redpanthers.co/odyssey-in-rails/ - When you are writing something like article, text, document etc you are focusing on readability. If you are not then you should. As readability influence how a reader can read and understand the content, how you are presenting the content etc. It would also influence how much likely one is to share your article as well. To find the readability there are a lot of statistical tests. Few are listed below.
Replacing a Complex Regular Expression with a Simple Parser
When we have to work with text, we often reach for regular expressions. But they’re not the easiest solution to every problem. Recently I was struggling with a large regexp, when I realized it’d be less work to write a parser. This article explains the process. - http://blog.honeybadger.io/replacing-regular-expressions-with-parsers/
The Hidden Cost of Metaprogramming
How can metaprogramming make your code harder to read? Is there a performance impact to using metaprogramming methods? Find out the answers in this article: http://www.blackbytes.info/2017/06/costs-of-metaprogramming/
Refactoring From Inheritance To Composition To Data
“Prefer composition over inheritance” is a popular saying amongst programmers. In this article, I want to demonstrate what that looks like.
Roadmap for APIQ CMS v1
What to expect and what’s not in upcoming APIQ CMS v1 release - https://www.apiq.io/2017/06/26/apiq-v1-release-plan/
Single file Rails applications
I’ll show you how to create Rails applications that are contained within a single file and walk you through an example: https://christoph.luppri.ch/articles/2017/06/26/single-file-rails-applications-for-fun-and-bug-reporting/
Who's Who - The Biggest (Static) Website Design Stars in Jekyll - New Authors Page
Hello, to highlight all the great open source contributors sharing ready-to-use (ready-to-fork) static website themes & templates for Jekyll ‘n’ friends I’ve put together an authors page ranked by GitHub stars @ Dr Jekyll’s Themes. Congrats to the winners: #1 Mark Otto (3) ★5998 (Poole, Hyde, Lanyon), #2 Michael Rose (5) ★4254 (Minimal Mistakes, Basically Basic, HiPSTeR, …) #3 Barry Clark (1) ★3653 (Now). Happy publishing with Jekyll & friends. PS: Dr Jekyll’s is (of course) built w/ Jekyll ;-) and open source ‘n’ public domain.