Problem The word processor I’ve had in mind would be similar to Microsoft Word and OpenOffice. I am trying to […]
Category: Object Oriented
Structuring a JSON array with objects
Problem I have a JSON array or literal (passes through JSON.parse). Requirement: an array of tasks which contains operations which […]
Using readonly field instead of private setters in struct
Problem This is supposed to be an immutable structure representing a time-stamped value. Since it represents a physical measurement, it […]
CSV parsers and OrderedDictionary
Problem I wrote the following (static) class to read files easily in C#. However, it is a static class, so […]
PHP Validation Class
Problem I’m looking for advice and ways on making it better. Code <?php Class Validate { private $_errors = array(); […]
Verifying if two numbers are equal using ArrayLists
Problem I have some question about the code below. It works correctly, but: Is there a better/another way to solve […]
Simple school bank project in C++
Problem What is your opinion on this simple school project exercising OOP in C++? class Person { public: Person() = […]
Divide big class in subclasses
Problem Locked. This question and its answers are locked because the question is off-topic but has historical significance. It is […]
Enhanced C# Enumeration / `enum`
Problem I am developing my own kind of Enumeration like SmartEnum but trying to prevent the user to provide a […]
2D console robot wars
Problem I’m working on a mini project to force me to learn OOP in Python and expand my range of […]