CARVIEW |
Select Language
HTTP/2 200
date: Sat, 26 Jul 2025 08:44:43 GMT
content-type: text/html; charset=utf-8
cf-ray: 96529ddfbb6f9dfa-BLR
cf-cache-status: DYNAMIC
cache-control: private
set-cookie: prov=2109cf7d-fc27-472f-b43c-602a20eacd1c; expires=Sun, 26 Jul 2026 08:44:43 GMT; domain=.stackexchange.com; path=/; secure; httponly
strict-transport-security: max-age=31536000; includeSubDomains
vary: Accept-Encoding
content-security-policy: upgrade-insecure-requests; frame-ancestors 'self' https://stackexchange.com
x-clacks-overhead: GNU Terry Pratchett
x-frame-options: SAMEORIGIN
x-request-guid: 01df0f79-5f20-43a3-acc3-7acf528fb91a
x-worker-origin-response-time: 1113000000
x-dns-prefetch-control: off
set-cookie: prov=2109cf7d-fc27-472f-b43c-602a20eacd1c; Path=/; HttpOnly; Domain=stackexchange.com
set-cookie: __cf_bm=vYWyrJw6_9NZwK9J5i9PNAe4Yj5bzhakOATC5ObR46Y-1753519483-1.0.1.1-tkhg00xeCU.W5h.bMzaNOrZ6ONskOPDr1kP3U7CKbSrcuDb_jcLehesgystecbsX4V4VkhOQEt0xB2vXdsNnvZ_hQ3sPPvICmEafi18HsTs; path=/; expires=Sat, 26-Jul-25 09:14:43 GMT; domain=.stackexchange.com; HttpOnly; Secure; SameSite=None
set-cookie: _cfuvid=4R_hpLeP2kzRy3DRI5qNnerGqddb3euTQiIK7WkXfdA-1753519483968-0.0.1.1-604800000; path=/; domain=.stackexchange.com; HttpOnly; Secure; SameSite=None
server: cloudflare
content-encoding: gzip
Newest 'design-patterns' Questions - Code Review Stack Exchange
Skip to main content
Stack Exchange Network
Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
Visit Stack ExchangeTeams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Learn more about TeamsQuestions tagged [design-patterns]
For questions requesting extra attention to be paid to the usage of design patterns in the code.
1,425 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
10
votes
4
answers
2k
views
Builder pattern in Rust
I tried to implement Builder pattern, a popular design pattern for constructing objects consisting of different components, in Rust.
Here is my attempt:
...
6
votes
3
answers
1k
views
Game Design Patterns Command implementation
I started reading the GameProgrammingPatterns book and wanted to implement the command pattern.
...
4
votes
1
answer
185
views
ReportManager design — ownership via move or unique_ptr, SRP concerns, and O(1) lookup strategy
I’m practicing the Single-Responsibility principle with a small project.
A Report is composed of ...
-1
votes
1
answer
96
views
Am I overusing classes and/or OOP features? [closed]
I have a very class heavy approach to writing C++ code, which I don't think is necessarily wrong. However, I often use classes without knowing if I actually need them, which I feel leads to making ...
4
votes
1
answer
112
views
Maze game from book Design Patterns with smart pointers and polymorphism
The Design Patterns book chapter 3 about Creational Patterns starts with a maze game. They use the maze as an example throughout the chapter and instead of rooms they have also things like enchanted ...
9
votes
2
answers
362
views
Simple LRU cache implementations in C++20
LRU cache is a classical design pattern frequently questioned in programming technical interviews. It is best illustrated with pictures. Here are two examples.
The following are two alternative ...
4
votes
3
answers
353
views
numpy array/item handling functions
Recently I have been using numpy arrays, which have great utility via their broadcasting methods.
I am attempting to write a useful public facing library, and this ...
4
votes
2
answers
530
views
Simple Java program to aggregate lines of a text file
I have just written a small application to aggregate the lines of a text file, for example to group the lines according to the frequency of IP addresses in a log file.
Would the code be sufficiently ...
0
votes
1
answer
65
views
Bulk conditions evaluation throwing a single RuntimeException exception
Bulk conditions evaluation throwing a single exception of a configurable type for all unfulfilled conditions.
It is developed around several design patterns:
(1) fluent interface to configure the ...
user289021
1
vote
1
answer
117
views
Database design using Closure Table for tagging system
I created these database tables with the inspiration in NjDevPro github repository. The design uses Closure Table for implementation of hierarchical tagging system in ...
4
votes
2
answers
121
views
Managing file paths in a python Data Science project
When doing Data Science projects, I often have to load data and metadata, and output results, plots, logs, etc.
Therefore I have to handle all the file paths from where to load the input and write the ...
3
votes
0
answers
55
views
Structure of nested Divs with a table
I'm a new frontend programmer.
I'm making a web site with flask, and to be honest, I don't know much about front-end so I don't know if what I'm doing is best practices. In one section, I have a div ...
5
votes
2
answers
131
views
Argument Order To Determine Order Of Output (Python; `attrs`)
Feedback Request
Is the manner in which I use attrs adequate (i.e. designed well)?
Should I not expect to be able to use argument ordering to order the joining of ...
0
votes
2
answers
136
views
[Spring Boot][REST] Design Pattern Best Practice (Single Entity, multiple business logic implementations)
I have some problems regarding best-practice design between data source layer(Entity), domain layer(Service) and presentation layer (controller):
I have one entity with a type field in the database to ...
1
vote
1
answer
117
views
Refactoring Agreement Status Logic: Applying SOLID Principles and Separating Logging/Auditing with Decorators
I have some production code that contains a lot of repetition and mixes business logic with auditing and logging. I've made two attempts at refactoring it, primarily using decorators. I'd like to get ...
- The Overflow Blog
-
-
- Featured on Meta
-
-
Related Tags
c# × 454
object-oriented × 380
java × 302
c++ × 182
python × 126
php × 118
javascript × 108
.net × 52
c++11 × 45
beginner × 45
repository × 41
mvc × 38
dependency-injection × 35
factory-method × 34
game × 34
entity-framework × 32
python-3.x × 31
performance × 26
unit-testing × 25
algorithm × 23
generics × 23
interface × 23
multithreading × 21
classes × 20
singleton × 20
more related tags
Hot Network Questions
- Is it okay to email researchers if I’m just a high school student?
- Quadratic Hecke characters with certain given local components
- I am looking for a French mathematician who contributed to complex analysis
- Anonymizing a submission for double-blind review
- In Jurassic Park, is the lysine dependency intentionally fake (in-universe)?
- Not being introduced to the team – should I ask for it?
- Is this a violation of open source?
- Sterilizing Medical Device with Electronic Components
- Why does my laptop's display turn off when I'm away from the keyboard?
- Do TeX engines support Shavian OpenType fonts?
- Blinded despite Blindsight?
- When was the last time all humans were on the ground not in the air?
- How do I set up a recursive algorithm to repeatedly square root a positive real number?
- Why does the node Bounding Box suddenly produce a different result in version 4.5?
- Source that Eliyahu Hanavi was an angel at the creation
- How can I allow a contact to update their organisation using FormBuilder?
- Lay explaination of 'lower evolutionary constraint genes'?
- Symbols for A.P. Morse's book in Set Theory
- Heretofore I think I have been using 'heretofore' incorrectly
- What does "enter the hold at arden" mean
- Is it decidable whether a CFL can be recognized by a linear CFG?
- The pea and the sun paradox
- Why is time reversal not a natural part of the Galilean group?
- Can you yaw an airplane by only using differential thrust?