
- #The noun project reddit how to#
- #The noun project reddit install#
- #The noun project reddit full#
- #The noun project reddit code#
While you could call this "person" or "human" or something similar, "user" has become a pretty standard term in web applications. We'll start out with the "user" model: User Model Since we're going to go in small steps, we'll only work on one model at a time, fleshing out MVCr as we go along. Now that we've got our top level nouns, we can turn them into proper models. I know this because i've used reddit a fair bit, but we could have come to this conclusion by writing a user story around voting on links. You might be questioning why "votes" isn't an attribute of "link", while you could store a vote_count with each link, we need some way to associate a user with a vote, so each user can only vote once. An example of a user story for this Reddit clone might be something like:Īnd then I've got sum nested nouns, for example we mentioned "url" and "title", but these should likely be attributes of a link. If we take those user stories and break out the nouns (people, places, things) this will give us a good idea of what our models need to be.
#The noun project reddit code#
Top links should show up on the front page.īefore I begin writing any code for a project I will craft user stories around the interactions. If they dislike the link, they vote it down. The basic idea is simple, a user submits a link with a title that they find interesting. Reddit is a very popular social-ish network for sharing links. If you're not familiar with, go there right now.
#The noun project reddit how to#
Let's get Startedįirst we will take a look at what we want to build, make a game plan on how to make it, and then iterate very slowly until our product becomes what we desire. This is not a beginner exercise, but rather an intermediate trial by fire, new developers are not expected to be able to finish.
#The noun project reddit install#
You can find install directions and materials in previous exercises. This should not be a passive exercise.Īs a side note, I usually have 3 or more console tabs open to the current directory I'm working in so I can run my server and console and any rake commands I want at the same time. It is your job to verify the output of commands you type into the console. This is not laziness on my part, but rather a chance for you to exercise what you've learned as a programmer.

Other times I will give high level instruction. Sometimes I will be missing steps between instructions, such as "stop your server".

While yours might differ in time I find seeing someone else's work flow always strengthens mine. This exercise is not about the final product but about the journey.Īs we go along you'll get a glimpse into my thought process for making websites. Type in code as it appears, and fix any mistakes that you make.
#The noun project reddit full#
If you want to get the full bennefit of this exercise, try to not copy any code. While you can get through the exercise by blindly following instructions, you will be more lost when attempting to implement things by yourself. If you have any doubts over why we are doing something, you should ask someone immediately, or write them down to investigate later. We will be doing things that you've already done, it is your job as a student to try to anticipate what we should be doing next before we do it, and then to execute the implementation with full understanding. Instead of focusing on specific concepts and introducing ideas, in this exercise we will be looking at Rails from a high level. We will use that knowledge to build a website from scratch similar in functionality to.

By now you have the knowledge to accomplish much with Rails. In past exercises for UT on Rails I've given you a starter project to work on, and I've given very step by step instructions with the intent of teaching specific concepts and skills.
