Understanding a fundamental Ruby abstraction for concurrency
This article was originally published by Ross Kaffenberger on his personal site, and with his permission, we’re sharing it here for Codeship readers. One of the fundamental concepts in key Ruby libraries that embrace concurrency is the thread pool. You can find examples of thread pool implementations in gems like puma, concurrent-ruby, celluloid, pmap, parallel, […]
Implementing & Testing SOAP API clients in Ruby
The bigger your application, the more likely you will need to integrate with less common APIs. This time, we are going to discuss testing communication with SOAP based services. It's no big deal. Still better than gzipped XMLs over SFTP (I will leave that story to another time). I am always a bit anxious when I hear SOAP API. It sounds so enterprisey and intimidating. But it doesn't need to be. Also, I usually prematurely worry that Ruby tooling won't be good enough to handle all those XMLs. Perhaps this is because of some of my memories of terrible SOAP APIs that I needed to integrate with when I was working as a .NET developer. But SOAP is not inherently evil. In fact, it has some good sides as well.
Automate Docker with the Remote API and Ruby
A Look at Content Management Systems in Rails
Capybara and Selenium for Testing and Scraping
Capybara, aside from being the largest rodent in the world, is also a fantastic tool to aid you in interacting with browser functionality in your code, either for testing or just to interact with or scrape data from a website. Capybara isn’t what actually interacts with the website — rather, it’s a layer that sits […]
Essentials Of Cache Expiration In Rails
Learn the essentials of cache expiration in Rails, and see how fundamental cache key composition is to a performant cache.
Minimal CSS frameworks for coding demos
On RubyTapas, I occasionally need to demonstrate web application code. I often use little Sinatra apps for this purpose, because it allows me to illustrate a web app programming concept with all the usual features like routing, sessions, and templates without switching between lots of different files. When I do this, I also like the […]
Skip mailers while generating Rails 5 app
Implementing Full-Text Search in Rails with Postgres
With very little effort, you can tap into Postgres' native full-text search functionality with PgSearch. PgSearch also exposes a number of options/configurations that allow you to tweak how full-text search happens inside Postgres. Alright, let's do it!