My New Blog Post on Medium
This is a new blog post on Medium. I am explaining how one can use functions as arguments and return values in two very popular programming languages, JavaScript and Ruby. Click here to visit it
This is a new blog post on Medium. I am explaining how one can use functions as arguments and return values in two very popular programming languages, JavaScript and Ruby. Click here to visit it
This is a new blog post on Medium. It has to do with using ActiveRecord in a Ruby application. Click here to visit it.
Today, I had to find a way to make my production Rails application log into different log files per process. I have the application deployed using Phusion Passenger as an Apache 2 module. The reason I decided to do that was the fact that I wanted to analyze the logs with Request Log Analyzer tool. This tool requires the log files to be separate so that they do not interleave the log entries of different requests.
Having done the Apple developer tutorial Getting Started on iOS development, the next was to have a deeper dive in Objective-C. Looking around for online Objective-C tutorials, I came across a very good one, on Code School. The tutorial is called Try Objective-C.
This is my first encounter with iOS apps and Objective C. I followed the whole tutorial which is given here. I am a Ruby developer and I decided to take this trip to iOS development because it is necessary for my work. I am offering professional services to Book&Table, which is sponsoring me writing this blog post.
Following this tutorial, I had to keep some notes. Here are the most important ones. Maybe you will find them useful too. But most importantly, I am seeking feedback from experienced iOS developers.
When you have a Ruby on Rails end point, the client usually sends data in one of the following:
GET
requests, URL encoded in the URIPOST
requests, in the body of the request encoded with application/x-www-form-urlencoded
or application/json
or other popular format.Sometimes, there is a combination of the above methods. In other words, in a POST
request, some of the data may come both URL encoded in the URI and other data may come encoded with
another method in the body of the request.
This short post is going to demonstrate how we can sum an array of integers or an array of objects that have an integer attribute.
Let’s start:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 |
|
Read my new article on Site Point about Delayed Job Best Practices
Many software engineers do not write tests for their UI because they have a good reason not to. Firstly, they believe that UI changes frequently, so any test would have been vulnerable to frequent changes. Secondly, they do not know about the Page Object Pattern.