Types in Ruby
Quick thoughts on Sorbet, that has been announced at RubyKaigi 2018 and once again in the 2019 edition, the type-checker for Ruby. ...
Quick thoughts on Sorbet, that has been announced at RubyKaigi 2018 and once again in the 2019 edition, the type-checker for Ruby. ...
Ruby became a more stable and mature language over the years. Some would say innovation slowed down (and I was probably one of them), but I still appreciate writing Ruby on a daily basis on the job. In this blog post I will succinctly explain why Ruby is still a valid choice for writing new (web and non-web) applications, the challenges of maintaining large code bases and what I look forward in the coming years. ...
After recently benchmarking PostgreSQL to find out if some of the techniques we used were efficient, I decided to look at the usage of a controversed Ruby feature: method_missing. ...
Rubygems has been made extensible by the usage of plugins. Any gem that provides a lib/rubygems_plugin.rb file will be discovered by the gem infrastructure, whether it is loaded by your application or not. Adding new commands is fairly easy, here’s how we could replace existing ones (like install), using only Rubygems’ public API. ...
Ruby 2.1.0 will be released at the end of the year and among other features, a change done in the parser caught my eyes… ...
ActiveValidators 1.9.0 is out! gem install activevalidators Read on for the full - yet concise - changelog. ...
ActiveValidators 1.3.0 has been released! gem install activevalidators Read on for the full changelog. ...
TL;DR Rake > 0.8.7 has a handy Rake::Task#locations method that makes it damn easy to know where a task is defined or enhanced. During the last LyonRb meetup we read a quite large portion of Rake’s source code. The idea was to find an easy way to determine what file was defining/enhancing what task. Richard and I just opened Rake 0.8.7’s source code (from our local machine’s RVM directory) and started hacking a bit to have that feature… ...
I made this plugin when we migrated to Rails 3. It basically prevents the development team from triggering any database query from the views. ...
Rails 3 brings a lot of useful features. The main one, in my humble opinion, is the introduction of the classes Rails::Railtie and Rails::Engine. They bring the modularity that made code more reusable and easily integrable in your current code base. They also prove that there no reason to say that Rails is not ready for the Enterprise. One quick tip for the party poopers (you know who you are ;)): JRuby makes things even easier for your development operations team members as it allows you to run your Ruby app (ie: Rails) within your favorite App Server (Websphere, Tomcat, you name them). ...