Skip to content

List of tiny tutorial fixes that should happen #245

Closed

Description

@jenweber

To help with one of these issues, please open a separate issue for it and put the changes in its own PR. This is a list of things I noticed while reading the tutorial from start to finish:

Volunteer needed

  • "Creating your app" should have a quick note about the kind of knowledge prerequisites that are helpful (not required)
  • backslash typo, for short/ is in routes-and-templates.md
  • "functions that are invoked automatically when a route is rendered"
  • "To keep things simple at first, we'll populate the model for our rental listing page to use a hard-coded array of JavaScript objects." is wordy
  • "client HTTP stubbing library" will be confusing to new devs. Could be improved by saying immediately that "What this means is Mirage will allow us to create fake data..."
  • "In order for this to work, we need our application to default to making requests to the namespace of /api" could be stated more plainly
  • "Let's call this action toggleImageSize" block breaks the app, since the action is not defined. Needs a note that for the next step to work, we need to make changes in both the js and hbs file
  • needs an explanation of when to make a helper instead of a component
  • needs a quick explanation of the difference between guides and API docs
  • "using ember data" should briefly explain how the ember data model and the model hook are different, or maybe link to that explanation in the guides
  • "An Ember Service is an object that can be made available for different parts of an application." does not differentiate from components. Should indicate that it's special because there is only one instance of it, and it can be used almost anywhere to store shared information or methods.
  • "3rd party map API" should prob be "third-party" and we should explain what is meant by that term

Done

  • linting - Unnecessary string concatenation. Use {{rental.image}} instead of "{{rental.image}}"
  • "Building a Simple Component" page needs a definition of what a component is, and its relationship to routes #simple
  • Needs plainer words - "Here we invoke the rental-listing component by name, and assign each rentalUnit as the rental attribute of the component."
  • "The value of isWide comes from our component's JavaScript file" should be followed with a statement like "any attributes in the component's JavaScript file can be used in its template"
  • "Be sure to restart your server after the addon has installed successfully." should tell them how to stop the server, control-c Explicitly states how to restart the server #282
  • Handlebars are not explained, in general Adds Handlebars explainer paragraph #291 (review)
  • "All we want to do when a user..." section provides too much info. Should just introduce the hook and replaceWith.
  • When the application.hbs is introduced, it should have a note about how whatever is there will show up on any page in the app
  • Tutorial could be improved with a short explanation that a route's template and js file can "talk" to each other Adds Handlebars explainer paragraph #291

Higher level observations, not ready to be PR'd:

  • Components should come before mirage/Ember Data
  • We aren't really teaching the mental model well of which files talk to each other, or the concept of passing data
  • "Building a Complex Component" really should just show a computed property and an input, IMO. Ideally it would come after services, but that refactor is a pain.

Activity

  1. changed the title [-]Fixes from a start-to-finish runthrough of super-rentals[/-] [+]List of tiny tutorial fixes that should happen[/+] on Nov 10, 2018
  2. added
    help wanted
    good first issue
    on Nov 10, 2018
  3. toddjordan commented on Nov 13, 2018

    @toddjordan
    Contributor

    linting fixes included with the maps pr

  4. zachgarwood commented on Nov 19, 2018

    @zachgarwood
    Contributor

    @jenweber Would you please specify where you encountered this item:

    backslash typo, for short/

  5. zachgarwood commented on Nov 28, 2018

    @zachgarwood
    Contributor

    @jenweber what is the context for this item:

    • needs a quick explanation of the difference between guides and API docs

    Where should this explanation live?

  6. added
    DecEmber
    on Nov 29, 2018
  7. jenweber commented on Dec 1, 2018

    @jenweber
    ContributorAuthor

    needs a quick explanation of the difference between guides and API docs

    @zachgarwood I am not sure. All I know is that when I started learning Ember, I thought the Guides were all that there was and didn't understand when to look at the API docs. For someone where it's their first framework, this is probably common.

    backslash typo, for short/

    This is in routes-and-templates.md

    Now run ember serve (or ember server, or even ember s for short/) on your command line to start
    the Ember development server and then go to http://localhost:4200/about to
    see our new page in action!

  8. removed
    DecEmber
    on Jun 10, 2019
  9. jenweber commented on Jul 12, 2019

    @jenweber
    ContributorAuthor

    Thanks everyone who helped with this issue back in the day! I think we hit all the major points. Closed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    good first issuehelp wantedtutorial

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions