GitHub avatar of amos-kibet

Amos Kibet

amos-kibet

View on GitHub
  • 5 Drops
  • 0 Comments
Screenshot preview of `Oban.insert_all/1` doesn't enforce unique job constraints unless you're on the pro license

`Oban.insert_all/1` doesn't enforce unique job constraints unless you're on the pro license

Oban.insert_all/1 doesn't enforce unique job constraints Configured unique constraints on your Oban worker but still seeing duplicate jobs when using...
amos-kibet

9 months ago

Comment count: 1
Screenshot preview of Gracefully handle 404s and other errors in Phoenix using Plug.ErrorHandler

Gracefully handle 404s and other errors in Phoenix using Plug.ErrorHandler

Instead of letting your Phoenix app crash with ugly errors, add this clean error handler:...
amos-kibet

1 year ago

Comment count: 0
Screenshot preview of Generating multiple test cases from a single test in Elixir using a for-comprehension!

Generating multiple test cases from a single test in Elixir using a for-comprehension!

🧪 TIL: You can generate multiple test cases from a single test in Elixir using a for-comprehension! Super clean way to test similar scenarios. ```...
amos-kibet

1 year ago

Comment count: 0
Screenshot preview of Testing DateTime Equality in Elixir Tests

Testing DateTime Equality in Elixir Tests

Ever run into flaky tests when comparing timestamps? Here's a common scenario:...
amos-kibet

2 years ago

Comment count: 0
Screenshot preview of Silently failing code

Silently failing code

Such kinds of function calls can fail, and when they do, they don't crash the server or raise an error:...
amos-kibet

2 years ago

Comment count: 0