Skip to main content
Code Review

All Questions

Tagged with or
Filter by
Sorted by
Tagged with
5 votes
4 answers
516 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. ...
6 votes
1 answer
109 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
731 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
84 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
999 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. ...
4 votes
1 answer
223 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
127 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
103 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 ...
8 votes
2 answers
979 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. ...
6 votes
3 answers
551 views

Menu user interface class in C++

I wrote a menu user interface in C++. What do you think about my code? What can I improve? Am I missing some better practices? main.cpp ...
0 votes
3 answers
198 views

Java exceptions that show the message when converted to String

I’m working with custom exceptions in Java for stack operations. However, I’m unsure if the exception handling is being handled properly, especially in terms of how exceptions are thrown and caught. ...
0 votes
1 answer
69 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 ...
user avatar
user289021
7 votes
1 answer
896 views

Yet another finite state machine in C++

I know there are several implementation of FSM in C++ containing different set of features and written in different styles. Nevertheless, I've decided to write my own. Here are some key points : c++...
10 votes
3 answers
1k views

Computing π(x): the combinatorial method

This is my C++ implementation of Computing π(x): the combinatorial method by Tomás Oliveira e Silva. The math involved is elementary number theory, but fiddly and not the focus here. I have ...
6 votes
2 answers
474 views

OOP Calculator Program

I am building a Calculator in C++ OOP style. I made 3 Classes: UserInterface, which is responsible for Input and Output of the User. Calculation, which is responsible for the logic of the Calculator. ...

15 30 50 per page
1
2 3 4 5
...
253

AltStyle によって変換されたページ (->オリジナル) /