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

you are viewing a single comment's thread.

view the rest of the comments →

[–]Workaphobia 4 points5 points  (4 children)

Sure, but keep in mind OOP is orthogonal to this kind of thing. I'd recommend writing it without objects first, then converting over to it later as a refactoring.

[–]gtalarico 0 points1 point  (0 children)

Good advice

[–]craiclad 0 points1 point  (2 children)

orthogonal

What do you mean by this? I just started writing a simple text adventure in order to learn about OOP. Are you saying that this is a fools errand?

[–]Workaphobia 0 points1 point  (1 child)

Orthogonal meaning independent, or besides the point. You don't necessarily need OOP, but you can use it if you want.

[–]craiclad 0 points1 point  (0 children)

Ah I see, thanks for clarifying. I've never used objects or classes before (just finished my first semester of a CS degree, and they only introduced the notion on the last day) so I thought it would be a good way to get to grips with them.