Skip to main content

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.

-4 votes
1 answer
51 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 ...
user avatar
-2 votes
0 answers
64 views

Object oriented programming deque implementation [closed]

Implementation of java.util.Deque interface according to object oriented programming principles - abstraction, encapsulation, inheritance , polymorphism - suitable ...
user avatar
2 votes
2 answers
105 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 ...
Андрей Александров's user avatar
-5 votes
0 answers
142 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 ...
user avatar
4 votes
1 answer
361 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 ...
Siva Sankaran's user avatar
-4 votes
1 answer
105 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 ...
user avatar
6 votes
5 answers
682 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. ...
toolic's user avatar
  • 15.8k
7 votes
1 answer
132 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 ...
Jereco Merash's user avatar
4 votes
5 answers
769 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 <...
viuser's user avatar
  • 629
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 ...
zziccardi's user avatar
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. ...
user30970420's user avatar
5 votes
1 answer
251 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 ...
sam's user avatar
  • 379
2 votes
1 answer
138 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 ...
dynamic.aerospace.inc's user avatar
-1 votes
1 answer
113 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 ...
user290523's user avatar
8 votes
2 answers
997 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. ...
Featherball's user avatar

15 30 50 per page
1
2 3 4 5
254