All Questions
Tagged with oop or object-oriented
3,799 questions
-1
votes
2
answers
85
views
Object oriented programming deque implementation (another second thought)
Another second thought from the second thoughts series Object oriented programming deque implementation (after second thought) led to disposing if statements ...
-5
votes
1
answer
90
views
Object oriented programming deque implementation (after second thought)
The java.util.Deque implementation from Object oriented programming deque implementation that consists of three elements linked arrays, each array holding reference ...
-2
votes
0
answers
83
views
Object oriented programming deque implementation [closed]
Implementation of java.util.Deque interface according to object oriented programming principles - abstraction, encapsulation, inheritance , polymorphism - suitable ...
2
votes
2
answers
108
views
Calculation of liquid propellant nozzles
I'm calculating the injectors, and I've added the complete calculation code and tested it using pytest. Can you suggest a better way to structure the code so that I ...
-5
votes
0
answers
144
views
Deque implementation around strategy design pattern (second thought)
On a second thought, the Deque implementation around strategy design pattern changed with a new implementation of retainAll method according to the solution from ...
4
votes
1
answer
364
views
Tic Tac Toe Game app design - ways to design or segregate too much logic from UI
I wanted to check my system design and/or object oriented design skills. I started with this Tic Tac Toe WinForms Desktop program. The user couldn't input characters other than O , X . Both players of ...
-4
votes
1
answer
108
views
Deque implementation around strategy design pattern
Implementation of java.util.Deque interface based on string of POJOs, that is plain old java object, encapsulating a field for holding reference to each object ...
6
votes
5
answers
686
views
Basic word search puzzle generator
This is code for a basic word search puzzle generator (also "wordsearch"). The code:
Creates a 10 x 10 grid of letters.
Words are hidden somewhere in the grid, horizontally or vertically.
...
7
votes
1
answer
133
views
Player controlled dungeon creation system
I'm making a game with a system inspired by the PSP Game Dungeon Dungeon maker 2 the hidden war: Visual Reference. I have everything set up but I feel there are ways to make the code more simple and ...
4
votes
5
answers
770
views
Password storage with gatherer plugin in Python
First the PasswordStore, which is pretty straight-forward. It stores title-password association, but it is important that a title can have multiple passwords.
The <...
2
votes
1
answer
89
views
Encapsulating status codes and messages à la absl::Status
I'm new to Lua and thought a decent way of familiarizing myself with the language would be to implement some basic utility functionality around status codes. In particular I've reimplemented a subset ...
8
votes
2
answers
1k
views
Python OOP game of Hangman
I am currently learning object oriented programming in Python.
I attempted writing an OOP program for hangman, and while the program is functional, I just ended up writing a very long class method. ...
5
votes
1
answer
252
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 ...
2
votes
1
answer
141
views
ABC/XYZ business process analysis
I have written a code that deals with ABC/XYZ analysis. I want to use it in my application and would like to find out how the code can be improved, its readability and it will be better to implement ...
-1
votes
1
answer
115
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 ...