Blog

  • Rhiana Heath

    Simple CSSGrids for IE

    By Rhiana Heath,

    Yes you can use CSS Grid in IE 10 and 11, it’s just a different version so the syntax is a bit different. On the plus side though, it doesn’t interfere with your current CSS Grid setup. :-)

    Did you know that a Grid system was originally developed for Internet Explorer 10 (IE10) back in 2011? It was submitted to the W3C and, while a great start, it was not complete. They worked on it some more to develop the CSS Grid system we use today. So there are some similarities between the two, but the IE one is set up in a different way in parallel. Read more about the whole story here.

  • Stephen Huang

    How to structure JavaScript code when using AJAX in Rails

    By Stephen Huang,

    AJAX is a great solution that allows you to send and retrieve data from the server and update the page without having to reload the entire page.

    In this article I will show you two strategies in Rails to use the data from server by executing JavaScript code: AJAX Callback Function and Server-generated JavaScript Responses. Then I'll explain how they work, and describe their benefits.

  • 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.

  • 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:

  • 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.

  • Gabriel Gizotti

    Why should you learn multiple programming languages?*

    By Gabriel Gizotti,

    Have you ever noticed how many discussions there are online about what programming language or framework is the best? People in forums are always praising one particular language and making fun of those who use a different language. I was guilty of doing that at an earlier point in my career. Ruby was everything, and anything other than Ruby was simply not as good.

    Time passed and I came to the realisation that the programming language is nothing but a tool, and the real value of the software engineer is in their problem solving, thereby rendering the programming language used by the engineer simply a tool for solving problems. Different tools solve different problems, and some tools solve the same problems in different ways.   With this in mind, I would like to draw a parallel between programming and music.

  • Sameera Gayan

    What constitutes good testing in Rails?

    By Sameera Gayan,

    Recently, our founder and CEO, Mikel Lindsaar spoke at the Ruby Developer Summit on Standard Development. He discussed the role of testing in project work, and talked about when you should follow the textbook approach and when it might be better to relax those rules. You can watch his talk on our youtube channel.

    This blog post details my thoughts on how to approach writing tests. To illustrate, I'll be using a Ruby/Rails example as Rails is a framework that embraces the culture of testing. However, I believe these concepts can be adapted to any language.

  • Rachelle LeQuesne

    What do I do now? How to kickstart your new career as a Developer.

    By Rachelle LeQuesne,

    One of the questions I often get asked after an Installfest or a Rails Girls event is “What do I do now?”

    It’s a difficult question to answer comprehensively and succinctly in that moment. The answer may also vary with the relative skill of the person asking.

  • Rhiana Heath

    Front-End Naming Conventions

    By Rhiana Heath,

    As most developers know, there are many problems that can come up with CSS in a project. I will discuss a few common examples, and then share with you our solution to managing these issues.

    Many projects will have at least one old CSS file that no-one knows what it does. People are scared to touch it, or delete things from it, just in case everything breaks. And so this mystery file remains.

  • Gabriel Gizotti

    How to Write a Quality Pull Request

    By Gabriel Gizotti,

    Recently my colleague Daniel wrote an article about Our Code Review Guidelines. But there is another component to this equation: the quality of the Pull Request (PR) that originated it.

    Several years ago, when I was a newbie Rails developer, I submitted my very first pull request to an open source project. It had only a very basic description about what it was doing, with no further details about why or how. This was my PR in its entirety: