大约 1 个星期
大约 1 个星期
Learn how to organize the code for your web apps, and why it's important. You’ll be using the MVC Design Pattern in the web application micro-framework, Sinatra.
The ability to organize code is a critical skill for today’s successful programmer, who needs to manage larger and more complex projects than ever before. Thankfully, patterns for organizing code in web applications (like the MVC design pattern) are available. This course will teach you to use these patterns effectively, so when faced with the challenge of hooking up your app to a new API, or the need to display data to users in multiple ways, you’ll be ready.
This course is ideal for intermediate Ruby programmers who have experience rendering static pages using the Sinatra web development micro-framework.
Students should be proficient in HTML and CSS.
You will learn why the MVC design pattern exists, how to use it successfully, and how to refactor code for an existing website created with Sinatra.
Lesson 1: The MVC Design Pattern with Ruby
First, you’ll learn about the challenges of developing a website with disorganized code by meeting the creator of the sample Sinatra code for this course. Then you’ll learn about how design patterns like MVC can help with some of these challenges. You’ll use your knowledge to organize the code using the MVC design pattern, and then add new features to the site with the newly refactored code.