Issue #1
Welcome to the first issue of Ruby Tuesday! You can read more about the idea here. But you’re not here for that. So here’s the real content:
- Karafka hits 1.0! – if you haven’t heard about Karafka before, it is a framework for building complex workflows using Apache Kafka as a message bus. Most notable changes for 1.0 release are added support batch processing and making Sidekiq an optional dependency (which reduces initial complexity of the setup a lot).
- Ruby is full of weird little things. A recent discussion on Twitter pointed me to another one of them, described in detail here at StackOverflow. It’s about array slicing and this code shows the effects:
array = [1] #=> [1] array[0,1] #=> [1] array[1] #=> nil array[1,1] #=> [] array[2] #=> nil array[2,1] #=> nil
- Gemfile’s new clothes - say goodbye to your
Gemfile
andGemfile.lock
. Give a warm welcome togems.rb
andgems.locked
. When? You can do it even today, but it won’t be enforced in near future.
Beyond webdev
Ruby is mostly used for web development but it’s not its only application. This section highlights usage of Ruby in other fields.
- Teaching a Neural Network to play a game using Q-learning – yes, it’s about AI in Ruby, using ruby-fann gem. It contains a simple example, but the post is quite informative.