Published News Ruby

A Machine State of Mind, Part 1: Understanding State Machines - Words and Code

Posted By tutorialStash on Ruby - My favorite thing about programming is the fact that you never run out of opportunities to be completely floored. There’s literally always …

DIY Ruby CPU profiling - Part I

Posted By tutorialStash on Ruby - At Codemancers, we’re building Rbkit, a fresh code profiler for the Ruby language with tonnes of cool features. I’m currently working on implementing a CPU profiler inside rbkit gem which would help rbkit UI to reconstruct the call graph of the profiled ruby process and draw useful visualizations on the screen. I learned a bunch of new things along the way and I’d love to share them with you in this series of blog posts.

Best practices releasing semantic versioned (Ruby) libraries

Posted By tutorialStash on Ruby - I craft maintainable software that delivers business value since 2001, with Ruby and Rails since 2005. Born and educated in Italy, became Australian now working in New York City.

Substitution with Regex Groupings | Daniel P. Clark

Posted By tutorialStash on Ruby - As I continue to grow in experience I was looking into how I might do some in-place substitution that I had been accustomed to performing with array matching (split-map-join).  What I’m referring to isn’t just a letter for letter substitution, but something that would find a match and modify it.  For example; if I wanted to quote words that had a pound prefixed I used to do this:

How do I know whether my Rails app is thread-safe or not? - by Jarkko of Bear Metal

Posted By tutorialStash on Ruby - How Do I Know Whether My Rails App Is Thread-safe or Not? Jarkko wrote this on Mar 13th, 2015 10:10 am Photo by Joseph Francis, used under a …

Regression Tests, Rspec and Rails | Coding is Art

Posted By tutorialStash on Ruby - This is a guest post by Erwin:
When i first started to work with Ruby on Rails the terms “Behaviour Driven Development” and “Test Driven Development” have been used in nearly every tutorial and screencast. Soon i realized that testing your code is mandatory to build reliable software. Until then, testing was just optional and as many of you know very tedious. Even the setup of your test suite can be hard to accomplish if your application has a complex structure (consider dataflow logic, modeling logic or even time-based logic). Luckily Rails has a bunch of easy-to-use libraries (gems) to tes