Skip to content

Instantly share code, notes, and snippets.

View ahmed1hsn's full-sized avatar
🎯
Focusing

Ahmed Hassan ahmed1hsn

🎯
Focusing
View GitHub Profile
@ahmed1hsn
ahmed1hsn / gist:13bbb17ccc615fe4bfb0913fb7f41ae1
Created February 1, 2026 18:03 — forked from SeanTAllen/gist:3191125
Quote from "What Is Software Design?" by Jack Reeves
If we learn nothing else from Japanese management techniques,
we should learn that it is counter-productive to blame the workers
for errors in the process. Instead of continuing to force software
development to conform to an incorrect process model, we need
to revise the process so that it helps rather than hinders efforts
to produce better software. This is the litmus test of
"software engineering." Engineering is about how you do the process,
not about whether the final design document needs a CAD system to produce it.
@ahmed1hsn
ahmed1hsn / 00-NOTES.md
Created January 22, 2026 05:37 — forked from krisleech/00-NOTES.md
Notes on Clojure ring handlers and middleware

Ring handler a function which accepts a request (map) and returns a response (map).

Ring middleware

function (handler, &args -> function(request -> response) because it is a closure handler and &args are in scope within the returned handler function.

a function which accepts a "next handler" (the next handler in the chain) + any extra arguments and returns a handler (function), which will accept a request and return a response.

const fruits = ["Apple", "Mango", "Orange", "Banana", "Kiwi"]
const characters = [ "b", "c"]
// Problem: find Longest fruit name which doens't contain any of thse characters.
// Fruit Element Length
// Character inclusion in Fruit Element.
let fruitWithHighestLength = "";
for (const fruitElement of fruits) {
@ahmed1hsn
ahmed1hsn / .dir-locals.el
Last active June 2, 2025 20:41
.dir-locals.el file for quickly starting emacs inf-clojure babashka socket repl => (C-c C-z or M-x inf-clojure)
((nil .
((inf-clojure-custom-startup . "bb socket-repl 1666")
(inf-clojure-custom-repl-type . babashka))))