I'll Be Backend
Track

Principles

DRY: one rule, one place in Java, step 2: Members ship free from 2511 languagesDRY: one rule, one placeChange a business rule once and have every feature pick it up.Hollywood Principle: stop polling, let the framework call you in Java, step 2: Customers can cancel5 languagesHollywood Principle: stop polling, let the framework call youLet Checkout tell each part about an order, so none is missed.Inversion of control: replace hand-wired flow with hooks in Java, step 2: An audit line per item4 languagesInversion of control: replace hand-wired flow with hooksWrite a rule for every job once, and let each job fill in its part.Dependency Inversion: let the policy own the interface in Java, step 2: Receipts go by text5 languagesDependency Inversion: let the policy own the interfaceKeep your business rules untouched when you swap how messages are sent.Interface Segregation: split a fat interface in Java, step 2: The page reads a cache5 languagesInterface Segregation: split a fat interfaceGive each caller an interface with only the methods it calls.Liskov Substitution: fix a subtype that breaks callers in Java, step 2: Finance adds gift cards5 languagesLiskov Substitution: fix a subtype that breaks callersMake every subclass work wherever its base type already works.Open/Closed: register new rules, edit nothing in Java, step 2: Finance adds a rule5 languagesOpen/Closed: register new rules, edit nothingAdd each new business rule as a new class, without editing working code.Single Responsibility: split calculation from formatting in Java, step 2: The same invoice as CSV5 languagesSingle Responsibility: split calculation from formattingKeep the money math in one class and the text in another.Tell, Don’t Ask: move the decision inward in Java, step 2: One free grace hour5 languagesTell, Don’t Ask: move the decision inwardTell an object what to do, so its rules live in one place.Law of Demeter: break the getter chain in Java, step 2: Memberships move into an account5 languagesLaw of Demeter: break the getter chainLet each class ask its neighbor, so inner changes stay inside.Coupling: wrap a third-party library in Java, step 2: Finance moves to PayLane5 languagesCoupling: wrap a third-party libraryKeep a vendor's library behind one class of yours, so a switch touches one class.Separation of concerns: untangle the request handler in Java, step 2: A nightly partner file5 languagesSeparation of concerns: untangle the request handlerKeep the booking rule apart from HTTP and storage so every caller reuses it.Immutability: value objects instead of setters in Java, step 2: Ana adds a child seat5 languagesImmutability: value objects instead of settersShare small objects like prices safely, so one change never leaks into another.Programming to an interface: widen concrete parameter types in TypeScript, step 2: Receipts by email1 languagesProgramming to an interface: widen concrete parameter typesLet one receipt method send through any channel that can deliver it.Composition over inheritance: end the subclass explosion in Java, step 2: Vans join the fleet9 languagesComposition over inheritance: end the subclass explosionBuild each rental from parts, so a new car is one small class.Polymorphism: subclasses instead of a type field in Java, step 2: Vans join the fleet10 languagesPolymorphism: subclasses instead of a type fieldLet each kind answer for itself, so a new kind adds no switch case.Inheritance: pull up duplicated behavior in Java, step 2: Fragile parcels9 languagesInheritance: pull up duplicated behaviorWrite shared behavior once in a superclass, so every subclass gets each change.Abstraction: hide the data structure in Java, step 2: Oldest delivery first11 languagesAbstraction: hide the data structureChange how a class stores its data without touching the code that uses it.Encapsulation: public fields to guarded state in Java, step 2: Finance wants a history5 languagesEncapsulation: public fields to guarded stateMake one class own its data, so every change follows the same rules.Object-oriented programming: turn a script into objects in Java, step 2: Add a reminder11 languagesObject-oriented programming: turn a script into objectsKeep each piece of data with the rules that use it, so features stop copying code.Design by contract: guard the invariants in Java, step 2: Write off damaged lamps5 languagesDesign by contract: guard the invariantsLet the object keep its own rules, so no caller can break them.Fail fast: validate at the boundary in Java, step 2: Reject bad emails5 languagesFail fast: validate at the boundaryReject bad input at the boundary, before any code changes state.Error handling: replace error codes with exceptions in Kotlin, step 2: Freeze accounts6 languagesError handling: replace error codes with exceptionsLet failures reach the code that can handle them, without every caller checking.Pure functions: push I/O to the edges in Java, step 2: Cap the fee at 50 euros11 languagesPure functions: push I/O to the edgesKeep your rules pure, so you can test them without a database.Imperative to declarative: loops into pipelines in Java, step 2: Leave out test orders11 languagesImperative to declarative: loops into pipelinesSay what you want from a list, and let the pipeline do the walking.YAGNI: delete speculative options in Java, step 2: One column, four edits11 languagesYAGNI: delete speculative optionsDelete the settings nobody uses, so each new column is a two-line change.KISS: replace a rule engine with plain code in Java, step 2: The new rule has to sit in the right slot11 languagesKISS: replace a rule engine with plain codeTurn a clever rule engine back into code you read top to bottom.Clean code: extract until it reads in Java, step 2: A discount in the wrong place5 languagesClean code: extract until it readsTurn a long method into named steps you can read from top to bottom.Clean code: rename for intent in Java, step 2: A grace period that never applies10 languagesClean code: rename for intentMake every name say what it means, so the next change lands right.