Jacob Stoebel

Mocks with Sinon.js

My nightlife app app makes use of a few external services in production. This presents some tricky problems when we are trying to test the code. Do I really want my test suite to have to hit the Yelp api during tests? Common advice is that we want to create...

Using react leaflet

For my new nightlife app I am using leaflet.js to handle marking search results on a map. Leaflet was an immediate win for this project because so much comes, basically for free right out of the box: you get beautiful looking maps, markers, and pop ups with hardly anything to...

Honesty, Kindness and Inspiration: Pick Three

Folks, we need to talk about a tweet: Code review can be:• honest• nicePick one...— I Am Devloper (@iamdevloper) May 16, 2017 As far as I can tell, this seems to be the attitude among many developers: I can either 1) give you feedback that is touchy feely and makes...

Upgrading the EDS Dashobard to Rails 5

Rails has dropped active support for Rails 4.2 which means its time to bite the bullet and upgrade the EDS Dashboard from 4.2 to 5. Here's a summary of some of the sticky points in that process: Dependency tidying As expected, one top level dependency (sass-rails) was on old version...

A No Frills Jump Into Fakes, Mocks and Stubs

As a semi self taught programmer, I've always felt an imposter syndrome flare up when discussion of mocks, stubs, fakes, etc comes up. I knew generally that they were used for testing things that should not or can not be used in a testing environment, but I also knew that...

Getting React and D3 to Play Nice

I'll admit it: D3 is confusing. If you Google something like "make a pie chart in d3" you get plenty of results that will work just fine. But we aren't required dig too mush into what D3 is actually up to For the most part this is a testimony to...