mart.rs
5.9K posts

mart.rs
@mart_cpp
Nothing but a ✏️ in the hands of the creator. Software engineer|| technical writer|| building @rust_africa|| pev Fellowship member @rust_foundation

Who's at fault? A. Frontend. B. Backend

as a dev, what was your first code editor?

only OGs remember notepad++


I was revamping a Go codebase yesterday; added some more fields to a struct, removed some and boom, the service still didn't panic where the struct is used or flag missing field 😪 These are the reasons I appreciate the expressiveness of Rust

Backend Developer interview: We can write 80% of our code with AI why should we still hire you. What will be your response?


The CAF Appeal Board decided that in application of Article 84 of the Regulations of the CAF Africa Cup of Nations (AFCON), the Senegal National Team is declared to have forfeited the Final Match of the TotalEnergies CAF Africa Cup of Nations (AFCON) Morocco 2025 (“the Match”), with the result of the Match being recorded as 3–0 in favour of the Fédération Royale Marocaine de Football (FRMF). cafonline.com/news/caf-appea…

If async is faster, why not make the whole codebase async?

If NULL means "unknown", why does NULL = NULL return false in SQL?

Two users try to book the last available seat on a flight at the exact same moment. How do you make sure only one of them succeeds?

I almost leaked customer data between two farms in production. A farmer in Lagos nearly saw egg production data from a 60,000-bird operation in Tanzania. One missed WHERE clause. That's all it would have taken. Here's the architecture that prevents it. SmartFarmAI manages poultry farms from 200 to 100,000 birds. All on one database. Same tables. Same code. The challenge: absolute data isolation between tenants. I solved it with Rust + Actix-web + PostgreSQL Row-Level Security. The trick: every request starts a DB transaction, sets a LOCAL tenant variable, and Postgres RLS policies automatically filter every query. No manual WHERE clauses. The database enforces it. The bug that almost burned me: PostgreSQL session variables persist on pooled connections. If you set tenant context with SESSION scope, the next request on that connection inherits the WRONG tenant. Silent. Intermittent. Only shows up under production load. Another production lesson: I enabled RLS on my outbox table. Background worker fetched zero events. Hundreds queued. No errors. No warnings. RLS was silently filtering everything because the worker had no tenant context. Took me hours to figure out. Full article with complete code examples: - Schema with composite foreign keys - RLS policies - Actix-web middleware - Connection pool safety - Testing patterns therustguy.com/building-produ… If you're building multi-tenant SaaS, this will save you weeks.


Tech bros in 🇳🇬: Entry Level: ₦150 Mid Level: ₦350K – ₦500K Senior Level: ₦600K – ₦800K Team Lead: ₦1M – ₦1.5M Techie in 🇬🇧 : Junior Level: £1,500 Honestly, this isn’t the life we should be living in this part of the world.




“Women Being Nake£d is Not Beauty, We Must Learn To Cover Up” - First Lady, Oluremi Tinubu




UPDATE Built a complete URL shortener API in three days. No tutorial. No template. Auth: signup with bcrypt hashing, login with JWT, middleware protecting routes. Core: shorten URLs with random codes or custom slugs like /danny-linkedin. Set expiration dates — expired links return 410 Gone. Smart duplicate detection: if the URL already exists and hasn't expired, return the existing link instead of creating a new one. Analytics: click tracking on every redirect, stats per link with creator verification, fetch all your links in one call. Security: 401 for unauthenticated requests. 403 if you try to view someone else's stats. Reserved usernames blocked. TypeScript. Express. MongoDB. Every decision was mine. Day 20.

The smartest people in world are Nigerians by far!!!!








