Questions tagged [object-oriented]
Object-oriented programming is a programming paradigm using "objects": data structures consisting of data fields and methods together with their interactions.
3,788 questions
-5
votes
0
answers
85
views
Object oriented programming deque implementation (after another second thought)
After another second thought from the second thoughts series Object oriented programming deque implementation (after second thought) it turns out using static methods alternatively to method ...
-1
votes
2
answers
186
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 ...
-7
votes
1
answer
128
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
2
answers
113
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 ...
6
votes
5
answers
715
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.
...
4
votes
1
answer
368
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 ...
0
votes
0
answers
61
views
Сreating a digital twin of the enterprise
I am creating a program to create digital twins of enterprises. I am using the Simpy framework for this purpose.
I'm creating a universal system that can model almost any enterprise, but I have a ...
4
votes
5
answers
773
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 <...
-4
votes
1
answer
113
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 ...
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. ...
7
votes
1
answer
134
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 ...
8
votes
4
answers
1k
views
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
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
998
views
A tree of polymorphic types (Crafting Interpreters Book)
I am following the book crafting interpreters by Robert Nystrom using C++. In the book we use an Expr base class to describe expressions in the language lox. ...