Retired
Train classes (retired)
Loading description...
Fundamentals
Classes
Basic Language Features
Object-oriented Programming
Programming Paradigms
Objects
Data Types
Methods
Functions
Control Flow
View
This comment has been reported as {{ abuseKindText }}.
Show
This comment has been hidden. You can view it now .
This comment can not be viewed.
- |
- Reply
- Edit
- View Solution
- Expand 1 Reply Expand {{ comments?.length }} replies
- Collapse
- Spoiler
- Remove
- Remove comment & replies
- Report
{{ fetchSolutionsError }}
-
-
Your rendered github-flavored markdown will appear here.
-
Label this discussion...
-
No Label
Keep the comment unlabeled if none of the below applies.
-
Issue
Use the issue label when reporting problems with the kata.
Be sure to explain the problem clearly and include the steps to reproduce. -
Suggestion
Use the suggestion label if you have feedback on how this kata can be improved.
-
Question
Use the question label if you have questions and/or need help solving the kata.
Don't forget to mention the language you're using, and mark as having spoiler if you include your solution.
-
No Label
- Cancel
Commenting is not allowed on this discussion
You cannot view this solution
There is no solution to show
Please sign in or sign up to leave a comment.
Sei un figo!
Assigning variables and calculating the result of a math expression are neither new nor interesting ideas.
speed
,distance
, andwagons
types are not mentionedsetWagons
- wtf?fixed point 1,2 and 3, about the point 4 you're right, that's not a new idea, but there isn't a lot of katas for training classes and that's very simple
Mentioning the types somewhere in the middle of the description is a terrible idea. The initial solution should provide the complete interface of the class instead.
There're many katas which are specifically about working with classes in different languages. Even more katas which use classes only because
OOP is cool and imperative code is totally uncoolthe author decided to write a class with a single static method (or sometimes even worse than that) instead of a regular function for no reason whatsoever. Your statement about "training classes" is especially dumb when you're using Java - an OOP-only language, a language where OOP knowledge is a fundamental requirement for programming.