Bummer! This is just a preview. You need to be signed in with a Basic account to view the entire video.
Conclusion1:33 with Alena Holligan
Besides recipes, almost anything can be an object. Look at the world around you and think about how you would classify things in terms of objects.
Extending the project
- Add Collection Specific Tags - This would allow us to group recipes by day and know if we need to make any adjustments. Something that could help for this: date('N', strtotime('Monday'));
- Add Ingredient substitutions
- Show recipe collection on a webpage
- Create and JSON API endpoint
Make sure you check out the entire Object-Oriented PHP Track, where you'll learn:
You've done an awesome job creating your first object oriented application. 0:00 Now you're ready to get cooking. 0:05 If you do try a recipe, send me a message and let me know what you think. 0:07 Besides recipes, almost anything can be an object. 0:11 Look at the world around you and 0:15 think about how you would classify things in terms of objects. 0:17 Take these blocks. 0:22 What are their properties? 0:23 These would be the attributes that define what the objects are. 0:25 They have a height, length, and width, and a color. 0:30 They may also have an extra feature. 0:33 Such as a wheel or a window. 0:36 Now, what are the methods? 0:39 What actions do these blocks need to perform? 0:41 At the most basic level, we assemble and disassemble them. 0:45 Your turn. 0:51 Look around you. 0:52 What do you see? 0:53 How can you define that as an object. 0:54 The best way to make sure you understand the concepts you've learned 0:58 is to start experimenting on your own. 1:01 Besides classifying everything as an object, the teacher's notes 1:04 include some suggestions for improving this cookbook application. 1:08 Or come up with your own features and try implementing them. 1:12 There's a lot more to object oriented programming. 1:16 And this course was designed to whet your appetite. 1:19 Although some of the terminology can be overwhelming, trust me, 1:22 with enough practice I know you can handle it. 1:26 I'm not going to leave you hanging, so check the teacher's notes for 1:29 more resources. 1:32
You need to sign up for Treehouse in order to download course files.Sign up