News for hackers. Stuff that matters.
Re:What I learned in 2017 writing Go by eikenberry on Wednesday January 03, 2018 @04:55PM (#16065613)
While dependency management is still an ongoing pain, it is miles ahead of Rails just for the fact that they are compile time dependencies. Last time I was responsible for deploying a Rails app the standard deployment method was to pull and build the gems on the production system as part of the deployment. Before Docker solved this I always thought of dependency management as one of Ruby/Rails weaker points.
Re:What I learned in 2017 writing Go by jdc0589 on Wednesday January 03, 2018 @05:07PM (#16065727)
mocking with interfaces is so straightforward, it just kind of happens without much thought if it something you are used to in other languages. The first thing I did in my very first go project was mock the repository/DB tier out so I could learn go without focusing on learning a new DB at the same time (I was using dynamo for something ultimately)