Giter Club home page Giter Club logo

sinatra-routes-readme's People

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

sinatra-routes-readme's Issues

Make purpose of Routes more explicit

This currently doesn't really address the routing aspect of routes - of connecting a URL to a particular part of our application, that the URL is the interface. Plus it's getting into REST and complex AR examples.

Knowledge gaps for Learn Qualifying Track

screen shot 2015-10-01 at 1 39 10 pm

Flow wise, this could be stronger if it started with the text below the screenshots because this lets a student go from known to unknown easier. (below)

screen shot 2015-10-01 at 1 40 36 pm

Then, continue with "Routes are the part of an application that connect HTTP requests to a specific part of your application code built to handle responding to such a request (that part of code is called a Controller Action)." in the first paragraph. I think a lot of that information from there to the screenshots can be cut or combined with the second section of how do routes work. Put those screenshots and full explanation there instead of breaking it down. I think the "What are routes" section could be pretty basic with what I mentioned above.

The example of the doctor app isn't all that clear. Users may not know what and HREF attribute is, and for the sake of this readme, maybe it doesn't need to be mentioned (not sure). Instead of using two examples ("All Medicines" and "All Patients"), it could be better to just discuss one example. Also, question- is a route from the url (..../medicine) to the response that is a list of medicines?

screen shot 2015-10-01 at 1 46 28 pm

^^ The mapping localhost url is confusing without an explanation of its context.

screen shot 2015-10-01 at 2 11 08 pm

^^ Could this info on DSL be moved to the earlier Readme on What is Sinatra?

cc @matbalez

simplify

needs to be pared back a bit. students won't have learned about view rendering, erb, file structure. for now we should show routes just rendering static strings.

@aviflombaum @AnnJohn

Adapt and move this lab further up in the track

Could this be moved either before or after Sinatra Basics? I feel like students should have a pretty good understanding of routes even before something like Shotgun so that they really understand what Sinatra is doing.

The terminology in this lesson is somewhat inconsistent

Hi. Let me start off by saying that I got the gist of this lesson, and I was able to understand how routes work with regards to MVC and the request/response cycle.

That said, I had trouble understanding what a route specifically WAS. The lesson at different points seemed to indicate that it was the path ('/medicines', for example), or get '/medicines', or the entire get '/medicines' do {...} controller action/block.

I get that this stuff can overlap (like "controller action" referring to both the get...do {...} block and the action itself). And again, at the very least I understand the PURPOSE of a route and how it fits into everything, but I was hoping for a clearer understanding of what's what.

Thanks for looking into this!

Sdcrouse

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.