David Kimura PRO
Joined 7/18/2015
Drifting Ruby Owner
Ruby Rogues Panelist
David Kimura PRO said almost 7 years ago on Continuous Integration with Travis CI :

Definitely. I use Gitlab CI/CD for my personal projects. 


David Kimura PRO said almost 7 years ago on Page Specific Javascript in Ruby on Rails :

I believe that it does. Not everything needs to be a Stimulus component. Sometimes it just makes sense to have some JS sprinkles where needed. I have personally never been a huge fan of page specific javascript as it seems like there is some disconnect in the architectural planning of the application. I typically tend to write JS functions so that they can be called on later in Server Rendered Javascript responses, when launching a bootstrap modal or wherever else appropriate.


David Kimura PRO said almost 7 years ago on Reports with charts :

Have a look at this episode to see if it covers your questions.

https://www.driftingruby.com/episodes/charts-and-graphs


David Kimura PRO said almost 7 years ago on UUID in Rails with ActiveUUID :

You could use a UUID for this, but I think that it would probably be a bit overkill.

I would personally just do something like this with SecureRandom.hex (which is part of the ruby core)

        before_create :populate_subscriber_id
        private
        def populate_subscriber_id
          begin
            self.subscriber_id = SecureRandom.hex
          end while self.class.exists?(subscriber_id: subscriber_id)
        end

David Kimura PRO said almost 7 years ago on Benchmarking and Refactoring the content_for View Helper :

Since the difference was so minimal, it was probably something to do with the host environment. If it were X times slower, it would be a bit strange and cause for alarm, but I could have had a number of things running on the mac which created the slight differences.