Blog

  • Mikel Lindsaar

    To Microservice or Monolith, that is the question...

    By Mikel Lindsaar,

    To Microservice or Monolith, that is the question...

    Whether 'tis nobler in the mind to suffer
    The pains and troubles of hosting and maintaining,
    Or to take arms against a sea of troubles
    And by opposing the split of services, end them.

  • Victor Hazbun

    Using Ruby Closures to simulate classes

    By Victor Hazbun,

    A technique commonly used in JavaScript is to use closures in your objects instead of classes. This is done to ensure that variables do not leak out and inadvertently become overridden by some other function or operation.

    This technique can also be used in Ruby. The scoping rules of Ruby are such that when a lambda is defined, that lambda also has access to all the variables that are in scope.

  • Mikel Lindsaar

    PostgreSQL vs MySQL

    By Mikel Lindsaar,

    There are many databases out there but most web applications developed using an open-source web framework use either PostgreSQL or MySQL. I've been asked by many clients over the years why they should use PostgreSQL over MySQL for their Ruby on Rails application.

    Here at reinteractive we prefer PostgreSQL. While they both have merits, we use PostgreSQL for the following reasons:

  • Daniel Heath

    Using git rebase and git merge to optimise your pull requests

    By Daniel Heath,

    A popular and effective way of developing a complex application in a team setting is to make use of git feature branches and submitting a pull request to be merged into the develop branch. Sometimes, though, the pull request can become quite large. This may result in a lengthy wait to get your pull request reviewed, bugs being overlooked, and merge conflicts.

    These difficulties can be helped by shrinking your pull requests using the following two strategies:

  • Rhiana Heath

    DIY CSS Grids

    By Rhiana Heath,

    Grids are an effective way of getting all the components in your website into the right spot. It allows you to put things into columns and get them to line up nicely.

    If you don't have grids, your website is going to look something like this:

  • Mikel Lindsaar

    Managing a remote work team

    By Mikel Lindsaar,

    Our ability to communicate over many different channels and distances has changed the landscape of how we work and socialise. When I was a kid we were unreachable until we got home near a landline. Now we have a myriad of ways of staying in touch. While this has annoying, distracting downsides, it opens up a new world for companies to engage in remote work solutions.

    I started reinteractive as a 100% remote software development company. While not all businesses are suited to this model, I find that many software developers enjoy remote work.

  • Carl Neumann

    Is it time to re-design?

    By Carl Neumann,

    0

    'Don’t judge a book by its cover' is a well-known cliché. And, while I agree completely with the principle, I’m the first to admit I’m guilty of it just the same. Today, more than ever, users are inclined to purchase based on packaging or advertising where contents may be identical or similar.

  • Victor Hazbun

    Docker for Rails Development

    By Victor Hazbun,

    Developing Ruby on Rails applications in large teams can be frustrating when team members use different operative systems, languages, timezones, etc.

    Docker is a great tool in these situations because it synchronises your team with the same setup for everyone collaborating on your project. That's fantastic!

  • Daniel Heath

    Frankenstein's ActiveRecord: How to stitch together complex ActiveRecord queries from simple parts

    By Daniel Heath,

    Active record makes it easy to write simple queries anywhere in your application. The key phrase here is anywhere in your application: When database queries are scattered throughout your application, simple database changes may require modifications to your controllers, your views, helpers, mailers, etc.

    ActiveRecord provides you with scope which allows you to hide the details of your schema so that database changes don't affect the entire application.

  • Victor Hazbun

    Managing Stripe subscription payments in Rails

    By Victor Hazbun,

    Stripe has a great API to manage subscription payments. Here we take advantage of it to implement recurring subscriptions in Rails 5.

    Using the Stripe API means we do not have to store sensitive customer information like (credit card number or CVC), and the APIs are already set up to handle complex cases such as update plans, manage subscriptions, trigger refunds, and more.