Daily Shaarli

All links of one day in a single page.

Previous day

May 29, 2026

JWT with Dancer2 | May 2026 | The Weekly Challenge
thumbnail

Stateless (JWT)

How it works:

User logs in, server creates a JWT containing user data
Server signs the JWT with a secret key
Server sends JWT to client
Client sends JWT with every request
Server verifies the signature and trusts the data inside
Why it scales:

Any server can validate a JWT using the shared secret key
No database lookup needed per request
If you add 100 more servers, they all work immediately

Big O Notation | May 2026 | The Weekly Challenge
thumbnail

Today, I will focus mostly on Time Complexity from the Perl point of view.

  1. O(1) - Constant Time
  2. O(n) - Linear Time
  3. O(log n) - Logarithmic Time
  4. O(n ^ 2) - Quadratic Time
  5. O(n log n) - Linearithmic Time
  6. O(sqrt n) - Square Root Time
  7. O(n ^ 3) - Cube Time
  8. O(2 ^ n) - Exponential Time
  9. O(n!) - Factorial Time