GitHub avatar of Deankinyua

Dean Kinyua

Deankinyua

View on GitHub
  • 15 Drops
  • 6 Comments
Screenshot preview of Live Sessions in Phoenix LiveView: Reducing navigation time between LiveViews

Live Sessions in Phoenix LiveView: Reducing navigation time between LiveViews

The main idea behind live sessions is to reduce navigation time when navigating a group of routes. Normally what happens when navigating between LiveV...
Deankinyua

11 months ago

Comment count: 0
Screenshot preview of Phoenix application configuration

Phoenix application configuration

The config folder plays a pivotal role in any phoenix application. Its constituents are normally config.exs, dev.exs, prod.exs, runtime.exs and test.e...
Deankinyua

1 year ago

Comment count: 1
Screenshot preview of Impelementing Infinite Scroll in Phoenix

Impelementing Infinite Scroll in Phoenix

Infinite scroll is a listing-page design approach seen a lot on widely used apps such as TikTok and Instagram to keep the user engaged, loading additi...
Deankinyua

1 year ago

Comment count: 0
Screenshot preview of Executing OS processes using Elixir Ports

Executing OS processes using Elixir Ports

Ports in Elixir provide us an interface for communicating with external processes by sending and receiving messages. They make it easy to start and ma...
Deankinyua

1 year ago

Comment count: 0
Screenshot preview of Verifying Replicate Signatures

Verifying Replicate Signatures

Replicate is a platform for running AI models without having to worry about setting up infrastructure. A more simple definition would be "The Cloud bu...
Deankinyua

1 year ago

Comment count: 0
Screenshot preview of Sandbox modes in Ecto Testing

Sandbox modes in Ecto Testing

A sandbox is an isolated testing environment that enables users to run programs or open files without affecting the application, system or platform on...
Deankinyua

1 year ago

Comment count: 0
Screenshot preview of Asynchronous operations in Phoenix LiveView

Asynchronous operations in Phoenix LiveView

What do you understand by the term "Expensive Computations"? Theoretical computer science defines them as the ones taking the most memory and time to ...
Deankinyua

1 year ago

Comment count: 0
Screenshot preview of Pattern matching on Bitstrings

Pattern matching on Bitstrings

Assume that you have a long string of text that you want to display to the user. You want to display a maximum of 60 characters and add an ellipsis if...
Deankinyua

1 year ago

Comment count: 0
Screenshot preview of Using the "Use" Elixir Macro

Using the "Use" Elixir Macro

Suppose you have the following module directives in your current module:...
Deankinyua

1 year ago

Comment count: 0
Screenshot preview of Offset-based pagination in Elixir

Offset-based pagination in Elixir

Pagination is a technique used to break a large dataset into manageable “pages” (chunks) of results. It’s essential for: + UI rendering (e.g., showin...
Deankinyua

1 year ago

Comment count: 0
Screenshot preview of Testing Oban Workers

Testing Oban Workers

Background processing refers to the execution of tasks as separate, detached processes. Oban is a robust background job framework that is widely used ...
Deankinyua

1 year ago

Comment count: 0
Screenshot preview of Ecto fragments for complex queries

Ecto fragments for complex queries

Sometimes when writing Ecto queries, you might discover that the conventional approach doesn't quite cut it. This is where fragments come in, which ar...
Deankinyua

1 year ago

Comment count: 0
Screenshot preview of Capturing Logs in Tests

Capturing Logs in Tests

Sometimes when you writing functions that may produce errors, you might want to log the error in the terminal :...
Deankinyua

1 year ago

Comment count: 0
Screenshot preview of Multi-process collaboration in Mox

Multi-process collaboration in Mox

Mox enforces process-based verification, meaning only the process that defines expectations is allowed to call the mock by default. This can prove pro...
Deankinyua

1 year ago

Comment count: 0
Screenshot preview of Uploading files to the cloud (s3 compatible)

Uploading files to the cloud (s3 compatible)

As profile images have become a standard in web applications, implementing this feature has become increasingly important. After a user fills in their...
Deankinyua

1 year ago

Comment count: 0