How NOT to change your API (looking at you, Twitter!)

Chris Downey

Founder, VaxCalc Labs and creator of Autovist and the Vaccine Ingredients Calculator.

Twitter added extended tweet mode to their API and screwed up Autovist. Autovist helps you build a massive knowledge base by importing your tweets every night.  When importing a tweet with a photo, Autovist has always been able to tweet it again and again looking exactly like the original tweet. It worked perfectly for years.

But then Twitter “enhanced” its API and returned different results by default.  What was originally tweeted like this:

Continue reading “How NOT to change your API (looking at you, Twitter!)”

Disable Spring when debugging gems

Chris Downey

Founder, VaxCalc Labs and creator of Autovist and the Vaccine Ingredients Calculator.

I spent a good 45 minutes puzzled as to why byebug wasn’t working from within a gem I’m debugging.  Even more confusing was that when I set byebug in the gem code along with some debugging code, and stepped into the gem, I saw my code edits along with the call to byebug… but the new code was never reached, it was as if it was being skipped right over.  Odd.

Went for a cup of coffee and to ponder this….

Finally, I figured out that spring was preloading the app and keeping the gems loaded – even after I changed the gem code.

For now, I’m going to keep spring disabled by setting DISABLE_SPRING=1 in my .env file.