-
Notifications
You must be signed in to change notification settings - Fork 35
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
Create proposal.md (Coding for (Not Quite) Dummies: Object Oriented Programming) #255
base: master
Are you sure you want to change the base?
Create proposal.md (Coding for (Not Quite) Dummies: Object Oriented Programming) #255
Conversation
@mLoughnane Include the title of your blog in the PR title and link this PR and your issue together. It would really help! |
Assigned to @AlexDoytch |
Includes the simple Object Oriented sample code, and a test function to make sure the student's version works.
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.
Pretty good foundation, but I think this could use either a second set of classes to showcase other parts of OOP (e.g arrays or some function that takes values from one object to another) or just add these functions to your original program below. Think about something when you first learned OOP that made you expand your ability to program, and try to use that to help distinguish this blog from other intro OOP blogs.
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 is great! Mainly just fix the headers and possibly write the code directly in the blog instead of pictures (not sure how much this matters). Also take a look at the smaller grammatical changes I made in the commit.
|
||
# Coding for (Not Quite) Dummies: Object Oriented Programming | ||
|
||
### Part 1: Introduction - Coding is Scary |
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 can remove the 'Part 1: Introduction' and just use the title
|
||
|
||
|
||
### Part 2: What is an Object? |
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.
Again, for all the headers, please remove everything except the title!
|
||
To clarify, we’re making this object in its own file. To actually create a “person” object, we’ll need to put the “Person.java” file in the same directory as the program is actually using the object, then create an object in that main program. How do we actually create the object, though? That uses something we call a **constructor**. A constructor is a bit of code in the object class (the Person.java file) that lets you determine howhow exactly a Person object is created in your code. Here are two that I wrote: | ||
|
||
![img](https://lh3.googleusercontent.com/71i-A6XK3i2RPOIpGQULaGR04HD_NmjxD260ccFoHY6jr0NjSCduBuGz54hUQjWIYdBjOp05tk658qaW3nlAmFhWOlCql8qYv-EHJnTboSm35asJEfbrxV5YA1RRCiJD5AcxWpTY) |
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.
Instead of using an image of code, could you just write it in github?
Reference to issue
Description of the changes proposed in the pull request
Link to Code SandBox
Link to Loom video (if blog/workshop completed)
Reviewers requested: