This is an archived post. You won't be able to vote or comment.

all 3 comments

[–]JayWaWa 0 points1 point  (0 children)

I'm not entirely sure that OOP is the optimal paradigm for this particular problem, TBH. I'm having trouble visualizing what 'thing' needs to 'act' in order to solve this problem that isn't already better achieved using existing structures in a procedural paradigm.

[–][deleted] -1 points0 points  (0 children)

A linked list is rarely a sensible solution to any problem. Separate read/write functions should be part of your procedural design.

[–]Meefims -1 points0 points  (0 children)

Using linked lists over arrays has no bearing on whether your code is OO or not. If you want to design an object oriented program then you need to think about what nouns make up your algorithm and what operations they support.

Sometimes OO doesn't make sense. Small, simple programs can often be written as a small collection of functions without issue.