React Native in Plain English
What’s a React Native? React Native is a library that allows you to build native iOS and Android apps with your favorite JavaScript faction, React. The project was introduced by Facebook in March of 2015. Less than a year later, there have been over 20 releases, so that should tell you something about its community’s fervor. Why React […]
Write Great Cucumber Tests
Using Cucumber with outlined best practices in your automated tests ensures that your automation experience will be successful and that you’ll get the maximum return on investment (ROI). Let’s review some important best practices needed before you start developing Cucumber tests. Writing Features Feature files help non-technical stakeholders engage and understand testing, resulting in collaboration […]
Rebuilding Git in Ruby
From zero to commit.
Creating new content types in Rails 4.2
While working on the application for React.js+Redux workshop I've decided to follow the JSON API specification of responses for my API endpoints. Apart from a fact that following the spec allowed me to avoid bikeshedding, there was also an interesting issue I needed to solve with Rails. In JSON API specification there is a requirement about the Content-Type being set to an appropriate value. It's great, because it allows generic clients to distinguish JSONAPI-compliant endpoints. Not to mention you can serve your old API while hitting the endpoint with an application/json Content-Type and have your new API responses crafted in an iterative way for the same endpoints.
How to Know When to Redesign Your Website
For most organizations, redesigning a website is a big deal. It costs money. It takes time. And, it can be a difficult process for first-timers.
Suppress save events in Rails 5
Instagram-style filters in HTML5 Canvas
Instagram made us fall in love with image filters. A well-chosen filter can enhance a photo greatly. It augments the best parts and softens undesirable qualities.
The Simple Yet Powerful Ruby Enumerable Module
Here is a simple requirement: Find the positive numbers in an array. There are most likely hundreds of solutions, but here is one of them: positives = [] for i in [-5, 10, 0, 15, -2] positives << i if i.positive? end p positives # => [10, 15] It works, it’s simple, but it feels […]