-
Notifications
You must be signed in to change notification settings - Fork 168
Added 1.An Introduction for the lesson #134
base: master
Are you sure you want to change the base?
Conversation
Good introduction to OOP 👍. |
@@ -1,5 +1,7 @@ | |||
### Introduction | |||
A brief summary about what this lesson is about and why the topics or concepts it covers are important. | |||
So far you wrote programs executed line by line, in methods, as you learned them. It's called procedural programming. Now you think it's easier to understand how to make a program like that, not thinking about how your methods will be organized further, but later you will build real programs and applications. If your code will be organized that way, a single mistake, a typo, can make your build fall apart. Object-oriented approach propose you to organize your code into structures named for chosen object called CLASSES. |
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 we need to simplify this to better explain some OOP concepts. A person with no programming experience won't know what classes or objects are.
@@ -1,5 +1,7 @@ | |||
### Introduction | |||
A brief summary about what this lesson is about and why the topics or concepts it covers are important. | |||
So far you wrote programs executed line by line, in methods, as you learned them. It's called procedural programming. Now you think it's easier to understand how to make a program like that, not thinking about how your methods will be organized further, but later you will build real programs and applications. If your code will be organized that way, a single mistake, a typo, can make your build fall apart. Object-oriented approach propose you to organize your code into structures named for chosen object called CLASSES. | |||
Since the time you will know object-oriented model, you will find it easier to say that class "YourClass" implements these and that actions in methods , than to explain how that actions are run by raw methods. You will see that classes' structure and behaviour is alike to how real objects' behavior is described, inherited and working in real life. |
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.
A beginner might not be able to relate to the idea of OOP being modelled on real objects without a small example
A brief summary about what this lesson is about and why the topics or concepts it covers are important. | ||
So far you wrote programs executed line by line, in methods, as you learned them. It's called procedural programming. Now you think it's easier to understand how to make a program like that, not thinking about how your methods will be organized further, but later you will build real programs and applications. If your code will be organized that way, a single mistake, a typo, can make your build fall apart. Object-oriented approach propose you to organize your code into structures named for chosen object called CLASSES. | ||
Since the time you will know object-oriented model, you will find it easier to say that class "YourClass" implements these and that actions in methods , than to explain how that actions are run by raw methods. You will see that classes' structure and behaviour is alike to how real objects' behavior is described, inherited and working in real life. | ||
As we said, as you will have code organized in classes, classes' methods and instances, you will be able to fix and change your code easily up to your needs in future. In classes your code is serving and reused without repetitions. |
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.
We can possibly introduce the DRY acronym here.
Thanks for taking the time to put together something here. I've left some suggestions of where I think we can simplify and better explain some concepts. If you need any help give me a shout. |
Thank you
…On Wed, Jan 31, 2018 at 5:29 AM, L. P. Soai-Van ***@***.***> wrote:
Good introduction to OOP 👍.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#134 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AYr5PzEdu0aNUGxhcDpH1e4gVsB9b7w3ks5tP94CgaJpZM4RyGLB>
.
|
Hi @CouchofTomato ,
Good remarks, let Kevin @KevinMulhern and guys approve.
…On Wed, Jan 31, 2018 at 1:11 PM, Austin ***@***.***> wrote:
Hi @mariatikhonova <https://github.com/mariatikhonova>
Thanks for taking the time to put together something here. I've left some
suggestions of where I think we can simplify and better explain some
concepts. If you need any help give me a shout.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#134 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AYr5P15j-6CHnYEoAUCNtEE7VwK2ouLIks5tQEp2gaJpZM4RyGLB>
.
|
Hey @miarhost, sorry its taken me so long to get back to this. I'll go through this one with you next week if thats ok? my focus is on merging the rails course back into the curriculum repo this week 😄 |
That's cool, sure!
ср, 18 апр. 2018 г., 10:16 Kevin Mulhern <[email protected]>:
… Hey @miarhost <https://github.com/miarhost>, sorry its taken me so long
to get back to this. I'll go through this one with you next week if thats
ok? my focus is on merging the rails course back into the curriculum repo
this week 😄
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#134 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AYr5P_gyIoGhfOEUU-yLd0mFXhNgvc8_ks5tpuhFgaJpZM4RyGLB>
.
|
No description provided.