Tejas' BlogThoughts and learnings on writing better softwareZola2022-11-08T00:00:00+00:00https://tejasbubane.github.io/atom.xmlSpotting flaky tests2022-11-08T00:00:00+00:002022-11-08T00:00:00+00:00Unknownhttps://tejasbubane.github.io/posts/2022-11-08-spotting-flaky-tests/<p>Sharing some examples of flaky tests from my experience.</p>
Exception handling with Sidekiq2022-05-29T00:00:00+00:002022-05-29T00:00:00+00:00Unknownhttps://tejasbubane.github.io/posts/2022-05-29-sidekiq-exception-handling/<p>Make <a rel="noopener" target="_blank" href="https://sidekiq.org">Sidekiq</a> play nicely with errors and error-tracking tools.</p>
PostgreSQL generated columns in Rails2021-12-18T00:00:00+00:002021-12-18T00:00:00+00:00Unknownhttps://tejasbubane.github.io/posts/2021-12-18-rails-7-postgres-generated-columns/<p>Rails 7 added support for PostgreSQL generated columns.</p>
Complete testing of sidekiq jobs2021-10-23T00:00:00+00:002021-10-23T00:00:00+00:00Unknownhttps://tejasbubane.github.io/posts/2021-10-23-complete-testing-sidekiq/<p>In this post we will see how to test async <a rel="noopener" target="_blank" href="https://sidekiq.org">sidekiq</a> jobs end-to-end.</p>
Currying Reducers2021-02-22T00:00:00+00:002021-02-22T00:00:00+00:00Unknownhttps://tejasbubane.github.io/posts/2021-02-22-currying-reducers/<p>Yesterday I was reading <a rel="noopener" target="_blank" href="https://www.coursera.org/lecture/progfun1/lecture-2-2-currying-fOuQ9">curried (partial) functions in Scala</a> and I remembered the first time I used them in an actual production application.</p>
Refactoring Filters2021-01-17T00:00:00+00:002021-01-17T00:00:00+00:00Unknownhttps://tejasbubane.github.io/posts/2021-01-17-refactoring-filters/<p>Recently I was working on refactoring some unwieldy code for filtering data. Here's a short story of how it went 🙂.</p>
Redis connection pool in Rails2020-04-22T00:00:00+00:002020-04-22T00:00:00+00:00Unknownhttps://tejasbubane.github.io/posts/2020-04-22-redis-connection-pool-in-rails/<p>Rails is multi-threaded, but can your redis connection handle it?</p>
Unit testing rack middleware2019-11-12T00:00:00+00:002019-11-12T00:00:00+00:00Unknownhttps://tejasbubane.github.io/posts/2019-11-12-unit-testing-rack-middleware/<p>Underneath (almost) all Ruby web application lies the <a rel="noopener" target="_blank" href="http://rack.github.io/">Rack</a> architecture.
With minimal interface, it is simple to write a middleware. Let's see how to test it.</p>
Functor Composition2019-10-02T00:00:00+00:002019-10-02T00:00:00+00:00Unknownhttps://tejasbubane.github.io/posts/2019-10-02-functor-composition/<p>Composition is the beauty of functional programming & haskell with it's typeclasses excels at this.
Let's see what <code>Functors</code> are and how they compose.</p>
Serializers Everywhere2019-01-21T00:00:00+00:002019-01-21T00:00:00+00:00Unknownhttps://tejasbubane.github.io/posts/2019-01-21-serializers-everywhere/<p>Manage multiple versions of <a rel="noopener" target="_blank" href="https://github.com/rails-api/active_model_serializers">JSON serializers</a> in a <a rel="noopener" target="_blank" href="https://rubyonrails.org/">Rails</a> application with ease.</p>