frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

The Six Patterns That Cover Everything

https://github.com/siy/coding-technology/blob/main/articles/six-patterns-that-cover-everything.md
2•siy•1h ago

Comments

siy•1h ago

  Every data transformation you'll ever write falls into one of six patterns:

  - Leaf - One thing. No substeps. Atomic.
  - Sequencer - This, then that. Output becomes input.
  - Fork-Join - These together, then combine. Independent operations merging.
  - Condition - Which path? Route based on value.
  - Iteration - Same thing, many times. Transform a collection.
  - Aspects - Wrap it. Add retry, timeout, logging around an operation.

  That's it. Not "covers most cases." Everything.

  Why Only Six?

  These aren't design patterns someone invented. They're the fundamental ways data can flow:

  1. Transform a value (Leaf)
  2. Chain dependent transforms (Sequencer)
  3. Combine independent transforms (Fork-Join)
  4. Choose between transforms (Condition)
  5. Apply transform to many values (Iteration)
  6. Enhance a transform (Aspects)

  There's no seventh option. Data either transforms, chains, combines, branches, iterates, or gets wrapped.

  The Strange Coincidence

  These same six patterns describe every business process:

  - Leaf: "Validate the email format"
  - Sequencer: "First verify identity, then check permissions, then grant access"
  - Fork-Join: "Get profile, balance, and transactions, then build dashboard"
  - Condition: "If premium user, apply discount"
  - Iteration: "For each cart item, calculate tax"
  - Aspects: "Log every payment attempt"

  This isn't coincidence. Business logic IS data transformation - we just use different words.

  The Translation

  - "First... then..." -> Sequencer -> .flatMap() chain
  - "Get X and Y and Z, then..." -> Fork-Join -> Promise.all()
  - "If... otherwise..." -> Condition -> Ternary/switch
  - "For each..." -> Iteration -> .map()
  - "Always log/retry..." -> Aspects -> Wrapper

  No impedance mismatch. Same six concepts, different vocabulary.

  Gap Detection

  When you model business processes using these patterns, gaps become visible.

  Missing validation: Building a Sequencer but nothing validates input before step one? Gap found.

  Unclear dependencies: Business describes five things. Sequencer or Fork-Join? If they can't tell you which outputs feed which inputs, the process isn't defined.

  Inefficient flows: Business describes sequential A, B, C, then combine. But if A, B, C don't depend on each other, this should be Fork-Join. Pattern reveals inefficiency.

  The Result

  Six patterns. Complete coverage. Shared language between developers and business.

  The irony? You'll spend an hour asking the right questions. The coding takes 30 seconds.

  From Java Backend Coding Technology: https://github.com/siy/coding-technology

The biggest obstacle for engineer productivity in 2026

https://strategizeyourcareer.com/p/this-ai-problem-is-the-biggest-risk-for-software-engineers-in-...
1•emreb•21s ago•0 comments

Sakana AI Agent Wins AtCoder Heuristic Contest (First AI to Place First)

https://sakana.ai/ahc058/
1•simonpure•40s ago•0 comments

The Power Law, the Grind and the Ugly

https://silvestreperret.com/posts/power-laws/
1•silverret•45s ago•0 comments

The Risk of Too Much Air Safety Regulation (2020) [pdf]

https://www.cato.org/sites/cato.org/files/2020-03/regv43n1-1.pdf
1•JumpinJack_Cash•52s ago•0 comments

Confidence in Tech > Talent in Tech

https://www.thetrueengineer.com/p/confidence-in-tech-talent-in-tech
1•andrewstetsenko•1m ago•0 comments

Amateur sleuth earns £2M reward for exposing research fraud

https://www.thetimes.com/uk/science/article/amateur-sleuth-2m-exposing-research-fraud-jhhb8wfnn
1•bookofjoe•2m ago•1 comments

Moving Beyond Agent-Centric Design: World-Centric Orchestration for AI

https://dev.to/eggp/the-mind-protocol-why-your-ai-agent-needs-a-world-before-it-can-think-2m8p
1•eggplantiny•3m ago•0 comments

OpenAI to acquire the team behind executive coaching AI tool Convogo

https://techcrunch.com/2026/01/08/openai-to-acquire-the-team-behind-executive-coaching-ai-tool-co...
1•gmays•3m ago•0 comments

Repairing a Bose SoundDock iPod Speaker

https://thomashunter.name/posts/2026-01-12-repairing-bose-sounddock-ipod-speaker
1•speckx•4m ago•0 comments

US withdrawing troops from key Middle East bases as precaution

https://www.reuters.com/world/middle-east/us-withdrawing-troops-key-middle-east-bases-precaution-...
1•zerosizedweasle•5m ago•1 comments

Show HN: Convert Go to Rust

1•KingOfCoders•7m ago•0 comments

Open Source AI May Reduce Energy Demands

https://www.cmu.edu/work-that-matters/energy-innovation/open-source-ai-may-reduce-energy-demands
1•atlasunshrugged•8m ago•0 comments

How Machines Shape the Way We Write

https://worldhistory.substack.com/p/how-machines-shape-the-way-we-write
1•crescit_eundo•12m ago•0 comments

Show HN: Beam – A desktop-style browser for iPad built by a solo developer

https://apps.apple.com/us/app/beam-browser/id6756218494
3•henrikdev•12m ago•1 comments

Alan Rickman remembered, 10 years after his death

https://www.theguardian.com/film/2026/jan/14/i-fell-in-love-with-him-on-the-spot-alan-rickman-rem...
2•sohkamyung•12m ago•0 comments

FBI Searches Home of Washington Post Journalist for Classified Documents

https://www.nytimes.com/2026/01/14/us/politics/fbi-washington-post-journalist.html
4•perihelions•12m ago•0 comments

Umami: You never say its name, yet you taste it every day

https://bigthink.com/strange-maps/umami-fifth-taste/
1•Brajeshwar•12m ago•0 comments

How to Become a Tree

https://aeon.co/essays/dying-to-be-green-are-new-eco-funerals-a-false-promise
1•Brajeshwar•12m ago•0 comments

[REVIEW] Very Important People – Ashley Mears

https://www.thepsmiths.com/p/guest-joint-review-very-important
1•barry-cotter•13m ago•0 comments

Show HN: A Serverless Neuro-Symbolic Logic Engine (Interactive Whitepaper)

https://petzi2311.github.io/
1•CausaNova•13m ago•1 comments

Just Get a Better Job

https://idiallo.com/blog/just-get-another-job
1•Brajeshwar•14m ago•0 comments

May your tokens be blessed

https://mfelix.org/stories/may-your-tokens-be-blessed/
1•threekindwords•14m ago•0 comments

The fake bomb detectors (2014)

https://www.bbc.com/news/uk-29459896
1•retSava•14m ago•0 comments

Apple Struggling with Key Material Shortage as AI Chips Drain Supply

https://asia.nikkei.com/business/technology/tech-asia/apple-and-qualcomm-fret-over-strained-suppl...
4•7777777phil•18m ago•0 comments

(Brain) Topological turning points across the human lifespan

https://www.nature.com/articles/s41467-025-65974-8
1•smartmic•19m ago•0 comments

The long-term health impacts from the LA wildfires are just becoming clear

https://www.npr.org/2026/01/14/nx-s1-5630989/la-fires-health-impact-smoke
1•andsoitis•19m ago•0 comments

The grab list: how museums decide what to save in a disaster

https://www.economist.com/1843/2025/11/21/the-grab-list-how-museums-decide-what-to-save-in-a-disa...
2•surprisetalk•20m ago•0 comments

The Slop Was Never the Failure

https://substack.com/home/post/p-183630680
1•gpi•20m ago•0 comments

King County Public Health advises you to flush your toilet rats

https://old.reddit.com/r/Seattle/comments/1pq6830/king_county_public_health_advises_you_to_flush/
2•surprisetalk•21m ago•0 comments

What Is Claude Code's Plan Mode?

https://lucumr.pocoo.org/2025/12/17/what-is-plan-mode/
3•surprisetalk•21m ago•0 comments