-
Notifications
You must be signed in to change notification settings - Fork 0
Implementation of concept, devConcept and philosophicalConcept #53
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
Seyed/TS_OOP/Concept.ts
Outdated
| this.name = n; | ||
| } | ||
|
|
||
| abstract get get_name(): string; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- You don't need a getter here, otherwise you have to access it like
concept.get_nameinstead ofconcept.get_name(), which is unexpected—this should be fixed for all occurrences - In JS, method names are camelCase by convention, not snake_case
- Is there a need to mark this method as abstract?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I fixed it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In some other places, you still have used getters/setters, which is unexpected.
Seyed/TS_OOP/DevConcept.ts
Outdated
| import { concept } from "./Concept"; | ||
|
|
||
| class devConcept extends concept { | ||
| constructor(n: string, b: "architecture" | "clean-code" | "languages") { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This class doesn't need a name param. It's name is always devConcept.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think that I didn't understand it.
But I fixed it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's discuss it in our meeting.
mkermani144
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please address the new comments.
related #51