{"slug":"builder","group":"creational","title":"Builder","short":"Assembles a complex object step by step, keeping construction separate from the final result.","icon":"hammer","aliases":[],"order":103,"status":"available","articleCount":1,"groupTitle":"Creational patterns","intro":"","servedLang":"en","primaryArticle":{"id":"6b08bd2f80884893657cc8f2","slug":"builder","title":"Builder – complex objects step by step","summary":"Builder collects an object's parameters in readable steps and hands over a finished, valid product only in build(). A catering order example in C#, TypeScript, Java, Go and Python.","servedLang":"en","availableLangs":["pl","en"],"topics":["builder","abstract-factory","composite"],"techs":["dotnet","typescript","java","go","python"],"tags":["gof","creational","builder","fluent-interface","immutability"],"level":"beginner","kind":"article","access":"members","status":"published","cover":null,"author":{"id":"6b08bd2e80884893657cc8cf","name":"Redakcja Art of Devs","avatar":null,"handle":"redakcja","community":false},"readingMinutes":12,"stats":{"views":2,"likes":0,"bookmarks":0,"comments":0},"publishedAt":"2026-11-26T23:13:51.940Z","updatedAt":"2026-11-27T13:04:58.174Z","challengeCount":1,"quizCount":1},"articles":[],"challenges":[{"id":"6b0857af5a2625e44ecaad13","slug":"design-patterns-basics-quiz","title":"Design patterns – basics","summary":"Six questions about classic GoF patterns: groups, intent and differences.","servedLang":"en","availableLangs":["pl","en"],"kind":"quiz","category":null,"status":"published","difficulty":"easy","topics":["builder","adapter","strategy","decorator","composite","facade","observer"],"techs":["general"],"tags":["quiz","gof","basics"],"languages":[],"questionCount":6,"xp":10,"stats":{"attempts":1,"solves":1,"solutions":0,"comments":0},"solveRate":100,"publishedAt":"2026-11-26T16:00:47.960Z"},{"id":"6b093dc191bd8fbaf2a0c8cc","slug":"http-request-builder","title":"HTTP request builder","summary":"A fluent builder for an immutable HTTP request – defaults, header normalisation, validation in build() and a reusable builder.","servedLang":"en","availableLangs":["pl","en"],"kind":"code","category":"pattern","status":"published","difficulty":"easy","topics":["builder"],"techs":["typescript","javascript","python","dotnet","java","go"],"tags":["builder","fluent-interface","immutability","validation","creational"],"languages":["typescript","javascript","python","csharp","java","go"],"questionCount":null,"xp":10,"stats":{"attempts":0,"solves":0,"solutions":0,"comments":0},"solveRate":null,"publishedAt":"2026-11-27T08:22:25.386Z"}],"resources":[{"id":"6b0857be3c96f2d34d0b4201","type":"article","provider":"web","url":"https://refactoring.guru/design-patterns/builder","embedUrl":null,"title":"Builder","description":"Builder is a creational design pattern that lets you construct complex objects step by step. The pattern allows you to produce different types and representations of an object using the same construction code.","author":"Refactoring.Guru","thumbnailUrl":"https://refactoring.guru/images/refactoring/social/facebook-share-preview.png?id=dbf9e98269595be86eb668f365be6868","durationSec":null,"lang":"en","topics":["builder"],"techs":["general"],"tags":["design-patterns"],"price":"free","featured":false,"featuredOrder":0,"packageName":null,"source":"manual","publishedAt":null,"popularity":75,"verifiedAt":"2026-11-26T11:26:00.000Z","curated":false,"addedBy":"6b0857a15a2625e44ecaabe6","createdAt":"2026-11-26T16:00:59.965Z","updatedAt":"2026-11-26T16:00:59.965Z"},{"id":"6b0857c33c96f2d34d0b4658","type":"book","provider":"openlibrary","url":"https://openlibrary.org/works/OL6030812W","embedUrl":null,"title":"Design Patterns: Elements of Reusable Object-Oriented Software","description":"","author":"Erich Gamma, John Vlissides, Richard Helm, Ralph Johnson","thumbnailUrl":"https://covers.openlibrary.org/b/id/6601119-L.jpg","durationSec":null,"lang":"en","topics":["factory-method","abstract-factory","builder","prototype","singleton","adapter","bridge","composite","decorator","facade","flyweight","proxy","chain-of-responsibility","command","iterator","mediator","memento","observer","state","strategy","template-method","visitor"],"techs":["general"],"tags":["book","design-patterns"],"price":"paid","featured":false,"featuredOrder":0,"packageName":null,"source":"openlibrary","publishedAt":"1995-01-01T00:00:00.000Z","popularity":71,"verifiedAt":"2026-11-26T11:00:08.000Z","curated":false,"addedBy":"6b0857a15a2625e44ecaabe6","createdAt":"2026-11-26T16:01:04.995Z","updatedAt":"2026-11-26T16:01:04.995Z"},{"id":"6b0857a43c96f2d34d0b320c","type":"video","provider":"youtube","url":"https://www.youtube.com/watch?v=tv-_1er1mWI","embedUrl":"https://www.youtube-nocookie.com/embed/tv-_1er1mWI","title":"10 Design Patterns Explained in 10 Minutes","description":"","author":"Fireship","thumbnailUrl":"https://i.ytimg.com/vi/tv-_1er1mWI/hqdefault.jpg","durationSec":null,"lang":"en","topics":["singleton","prototype","builder","factory-method","facade","proxy","iterator","observer","mediator","state"],"techs":["typescript"],"tags":[],"price":"free","featured":true,"featuredOrder":5,"packageName":null,"source":"seed","publishedAt":null,"popularity":0,"verifiedAt":"2026-11-26T00:00:00.000Z","curated":true,"addedBy":"6b0857a15a2625e44ecaabe6","createdAt":"2026-11-26T16:00:36.249Z","updatedAt":"2026-11-26T16:00:36.249Z"},{"id":"6b0857c33c96f2d34d0b4665","type":"book","provider":"openlibrary","url":"https://openlibrary.org/works/OL6223299W","embedUrl":null,"title":"Effective Java","description":"","author":"Joshua Bloch","thumbnailUrl":"https://covers.openlibrary.org/b/id/1176573-L.jpg","durationSec":null,"lang":"en","topics":[],"techs":["java"],"tags":["book"],"price":"paid","featured":false,"featuredOrder":0,"packageName":null,"source":"openlibrary","publishedAt":"2001-01-01T00:00:00.000Z","popularity":62,"verifiedAt":"2026-11-26T11:00:08.000Z","curated":false,"addedBy":"6b0857a15a2625e44ecaabe6","createdAt":"2026-11-26T16:01:04.995Z","updatedAt":"2026-11-26T16:01:04.995Z"},{"id":"6b0857be3c96f2d34d0b422a","type":"article","provider":"web","url":"https://refactoring.guru/pl/design-patterns/builder","embedUrl":null,"title":"Budowniczy / Builder","description":"Budowniczy jest kreacyjnym wzorcem projektowym, który daje możliwość tworzenia złożonych obiektów etapami, krok po kroku. Wzorzec ten pozwala produkować różne typy oraz reprezentacje obiektu używając tego samego kodu konstrukcyjnego.","author":"Refactoring.Guru","thumbnailUrl":"https://refactoring.guru/pl/images/refactoring/social/facebook-share-preview.png?id=dbf9e98269595be86eb668f365be6868","durationSec":null,"lang":"pl","topics":["builder"],"techs":["general"],"tags":["design-patterns"],"price":"free","featured":false,"featuredOrder":0,"packageName":null,"source":"manual","publishedAt":null,"popularity":70,"verifiedAt":"2026-11-26T11:26:08.000Z","curated":false,"addedBy":"6b0857a15a2625e44ecaabe6","createdAt":"2026-11-26T16:00:59.965Z","updatedAt":"2026-11-26T16:00:59.965Z"},{"id":"6b0857b93c96f2d34d0b3da9","type":"podcast","provider":"apple-podcasts","url":"https://podcasts.apple.com/us/podcast/the-builder-pattern-for-your-career/id1209616598?i=1000491713118","embedUrl":"https://embed.podcasts.apple.com/us/podcast/id1209616598?i=1000491713118","title":"The Builder Pattern (for your career)","description":"The panelists discuss their thoughts on career progression while sharing some of their own history. They also talk about important considerations to think about when deciding where to go next, and share useful resources.","author":"JS Party: JavaScript, CSS, Web Development","thumbnailUrl":"https://is1-ssl.mzstatic.com/image/thumb/Podcasts113/v4/8e/31/88/8e318808-56a6-b897-6f98-71cf214b54a3/mza_7508458937281322007.png/600x600bb.jpg","durationSec":3775,"lang":"en","topics":["builder"],"techs":["javascript"],"tags":["podcast","design-patterns"],"price":"free","featured":false,"featuredOrder":0,"packageName":null,"source":"itunes","publishedAt":"2020-09-18T16:30:00.000Z","popularity":56,"verifiedAt":"2026-11-26T10:57:32.000Z","curated":false,"addedBy":"6b0857a15a2625e44ecaabe6","createdAt":"2026-11-26T16:00:55.661Z","updatedAt":"2026-11-26T16:00:55.661Z"}],"resourceGroups":[{"type":"video","items":[{"id":"6b0857a43c96f2d34d0b320c","type":"video","provider":"youtube","url":"https://www.youtube.com/watch?v=tv-_1er1mWI","embedUrl":"https://www.youtube-nocookie.com/embed/tv-_1er1mWI","title":"10 Design Patterns Explained in 10 Minutes","description":"","author":"Fireship","thumbnailUrl":"https://i.ytimg.com/vi/tv-_1er1mWI/hqdefault.jpg","durationSec":null,"lang":"en","topics":["singleton","prototype","builder","factory-method","facade","proxy","iterator","observer","mediator","state"],"techs":["typescript"],"tags":[],"price":"free","featured":true,"featuredOrder":5,"packageName":null,"source":"seed","publishedAt":null,"popularity":0,"verifiedAt":"2026-11-26T00:00:00.000Z","curated":true,"addedBy":"6b0857a15a2625e44ecaabe6","createdAt":"2026-11-26T16:00:36.249Z","updatedAt":"2026-11-26T16:00:36.249Z"}]},{"type":"podcast","items":[{"id":"6b0857b93c96f2d34d0b3da9","type":"podcast","provider":"apple-podcasts","url":"https://podcasts.apple.com/us/podcast/the-builder-pattern-for-your-career/id1209616598?i=1000491713118","embedUrl":"https://embed.podcasts.apple.com/us/podcast/id1209616598?i=1000491713118","title":"The Builder Pattern (for your career)","description":"The panelists discuss their thoughts on career progression while sharing some of their own history. They also talk about important considerations to think about when deciding where to go next, and share useful resources.","author":"JS Party: JavaScript, CSS, Web Development","thumbnailUrl":"https://is1-ssl.mzstatic.com/image/thumb/Podcasts113/v4/8e/31/88/8e318808-56a6-b897-6f98-71cf214b54a3/mza_7508458937281322007.png/600x600bb.jpg","durationSec":3775,"lang":"en","topics":["builder"],"techs":["javascript"],"tags":["podcast","design-patterns"],"price":"free","featured":false,"featuredOrder":0,"packageName":null,"source":"itunes","publishedAt":"2020-09-18T16:30:00.000Z","popularity":56,"verifiedAt":"2026-11-26T10:57:32.000Z","curated":false,"addedBy":"6b0857a15a2625e44ecaabe6","createdAt":"2026-11-26T16:00:55.661Z","updatedAt":"2026-11-26T16:00:55.661Z"}]},{"type":"article","items":[{"id":"6b0857be3c96f2d34d0b4201","type":"article","provider":"web","url":"https://refactoring.guru/design-patterns/builder","embedUrl":null,"title":"Builder","description":"Builder is a creational design pattern that lets you construct complex objects step by step. The pattern allows you to produce different types and representations of an object using the same construction code.","author":"Refactoring.Guru","thumbnailUrl":"https://refactoring.guru/images/refactoring/social/facebook-share-preview.png?id=dbf9e98269595be86eb668f365be6868","durationSec":null,"lang":"en","topics":["builder"],"techs":["general"],"tags":["design-patterns"],"price":"free","featured":false,"featuredOrder":0,"packageName":null,"source":"manual","publishedAt":null,"popularity":75,"verifiedAt":"2026-11-26T11:26:00.000Z","curated":false,"addedBy":"6b0857a15a2625e44ecaabe6","createdAt":"2026-11-26T16:00:59.965Z","updatedAt":"2026-11-26T16:00:59.965Z"},{"id":"6b0857be3c96f2d34d0b422a","type":"article","provider":"web","url":"https://refactoring.guru/pl/design-patterns/builder","embedUrl":null,"title":"Budowniczy / Builder","description":"Budowniczy jest kreacyjnym wzorcem projektowym, który daje możliwość tworzenia złożonych obiektów etapami, krok po kroku. Wzorzec ten pozwala produkować różne typy oraz reprezentacje obiektu używając tego samego kodu konstrukcyjnego.","author":"Refactoring.Guru","thumbnailUrl":"https://refactoring.guru/pl/images/refactoring/social/facebook-share-preview.png?id=dbf9e98269595be86eb668f365be6868","durationSec":null,"lang":"pl","topics":["builder"],"techs":["general"],"tags":["design-patterns"],"price":"free","featured":false,"featuredOrder":0,"packageName":null,"source":"manual","publishedAt":null,"popularity":70,"verifiedAt":"2026-11-26T11:26:08.000Z","curated":false,"addedBy":"6b0857a15a2625e44ecaabe6","createdAt":"2026-11-26T16:00:59.965Z","updatedAt":"2026-11-26T16:00:59.965Z"}]},{"type":"book","items":[{"id":"6b0857c33c96f2d34d0b4658","type":"book","provider":"openlibrary","url":"https://openlibrary.org/works/OL6030812W","embedUrl":null,"title":"Design Patterns: Elements of Reusable Object-Oriented Software","description":"","author":"Erich Gamma, John Vlissides, Richard Helm, Ralph Johnson","thumbnailUrl":"https://covers.openlibrary.org/b/id/6601119-L.jpg","durationSec":null,"lang":"en","topics":["factory-method","abstract-factory","builder","prototype","singleton","adapter","bridge","composite","decorator","facade","flyweight","proxy","chain-of-responsibility","command","iterator","mediator","memento","observer","state","strategy","template-method","visitor"],"techs":["general"],"tags":["book","design-patterns"],"price":"paid","featured":false,"featuredOrder":0,"packageName":null,"source":"openlibrary","publishedAt":"1995-01-01T00:00:00.000Z","popularity":71,"verifiedAt":"2026-11-26T11:00:08.000Z","curated":false,"addedBy":"6b0857a15a2625e44ecaabe6","createdAt":"2026-11-26T16:01:04.995Z","updatedAt":"2026-11-26T16:01:04.995Z"},{"id":"6b0857c33c96f2d34d0b4665","type":"book","provider":"openlibrary","url":"https://openlibrary.org/works/OL6223299W","embedUrl":null,"title":"Effective Java","description":"","author":"Joshua Bloch","thumbnailUrl":"https://covers.openlibrary.org/b/id/1176573-L.jpg","durationSec":null,"lang":"en","topics":[],"techs":["java"],"tags":["book"],"price":"paid","featured":false,"featuredOrder":0,"packageName":null,"source":"openlibrary","publishedAt":"2001-01-01T00:00:00.000Z","popularity":62,"verifiedAt":"2026-11-26T11:00:08.000Z","curated":false,"addedBy":"6b0857a15a2625e44ecaabe6","createdAt":"2026-11-26T16:01:04.995Z","updatedAt":"2026-11-26T16:01:04.995Z"}]}],"siblings":[{"slug":"factory-method","title":"Factory Method","icon":"factory","status":"available","current":false},{"slug":"abstract-factory","title":"Abstract Factory","icon":"boxes","status":"available","current":false},{"slug":"builder","title":"Builder","icon":"hammer","status":"available","current":true},{"slug":"prototype","title":"Prototype","icon":"copy","status":"available","current":false},{"slug":"singleton","title":"Singleton","icon":"circle-dot","status":"available","current":false}]}