Someth VictoryRSpec (Rails) Best PracticesIf you google RSpec best practices, you will see so many links by many other good developers already. In this post, I just include a few…Jul 20, 2018Jul 20, 2018
Someth VictoryHow to use Eager Loading properly in RailsEager loading is the mechanism for loading the associated records of the objects using as few queries as possible.Jun 24, 2018Jun 24, 2018
Someth VictoryConverting JSON to an Object (with OpenStruct) in RubyI used to write an article about the Data Transfer Object in Ruby, which creating a class that parses the JSON response and managing the…Jun 18, 2018Jun 18, 2018
Someth VictorySingleton Pattern in RubySingleton is a design pattern that allow a class to be instantiated only once. The benefit of Singleton is to be ensure that there is only…Jun 17, 2018Jun 17, 2018
Someth VictoryData Transfer Object in RubyA Data Transfer Object(DTO) is an object which is used to encapsulate data. It is commonly used in the Services layer which request the…Jun 12, 2018Jun 12, 2018