Skip to content

Chitter Challenge#222

Open
jkgiwa wants to merge 2 commits into
makersacademy:mainfrom
jkgiwa:main
Open

Chitter Challenge#222
jkgiwa wants to merge 2 commits into
makersacademy:mainfrom
jkgiwa:main

Conversation

@jkgiwa
Copy link
Copy Markdown

@jkgiwa jkgiwa commented Apr 4, 2022

Your name

Please write your full name here to make it easier to find your pull request.

User stories

Please list which user stories you've implemented (delete the ones that don't apply).

  • User story 1: "I want to see all the messages (peeps) in a browser"
  • User story 2: "I want to post a message (peep) to chitter"
  • User story 3: "I want to see the date the message was posted"
  • User story 4: "I want to see a list of peeps in reverse chronological order"
  • User story 5: "I want to filter on a specific keyword"

README checklist

Does your README contains instructions for

  • how to install,
  • how to run,
  • and how to test your code?

Here is a pill that can help you write a great README!

Comment thread peep.rb
@@ -0,0 +1,29 @@
require 'pg'

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

detail: class names should always start with a capital letter

Comment thread app.rb
end

get '/peeps' do
Chitter.add
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This route should return a template that shows the user all of the peeps in the database. That means you'll need to use Peep.all at some point.

@EdwardAndress
Copy link
Copy Markdown

Hi there! You've made a decent start to this challenge but there are a few lines that will, I think, throw errors. For example there is no Chitter.add method as far as I can see, so line 14 of app.rb will throw an error.

Speculating a little...

I think that you might be trying to build the whole application at once, which is always going to be hard, even for experienced developers. Everything will become much easier if you can get into the habit of building applications in very small steps, validating each one as you go. The process workshops which get run from time to time are an excellent place to practice this.

I hope this makes sense and is helpful. If you have any questions, please reach out to me on Slack.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants