Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Ruby

Unsure about how I should go about completing projects

I recently finished my first track and would now like to finish 3 projects for the treehouse career program. However, it does not seem that there are clear guidelines about how we should go about doing this. Are we expected to figure out how to develop some programs on our own now or are we supposed to follow along with some of the classes in the library. I don't feel prepared to create much on my own yet and at a quick glance it also does not appear that there are many project guides for me after having completed the ruby track.

2 Answers

Brandon Barrette
Brandon Barrette
20,485 Points

Here's something to challenge yourself with.

https://mackenziechild.me/12-in-12/

However, I would recommend you push yourself to expand on what he does, that way you're not just doing tutorials, but taking something you've learned and expanding it.

Make sure to write tests and upload your work to Github to begin your portfolio.

I'm also doing these two:

They are both fun challenges to push yourself and also see how other people write code. I think Codewars is much easier to jump into (do the ruby challenges).

Hope that helps! Happy Coding =)

Brandon, Do you know if there is a solutions guide for Codewars? I am getting an 'expect' error in a challenge (this is just to sign up!) though the code works in my Workspace test -? Here's the error:

expect': Expected: "Hi Kate, my name is Joe", instead got: nil (Test::Error) fromassert_equals' from ` '

Thanks for any help.

Brandon Barrette
Brandon Barrette
20,485 Points

No I don't, can you remind me what the question is asking you to do?

Here's the code to fix:

class Person
  def initialize(name)
    @name = name
  end

  def greet(other_name)
    "Hi #{other_name}, my name is #{name}"
  end
end

Here's my code

class Person

  attr_reader :name, :other_name


  def initialize(name)
    @name = name
    @other_name  = other_name
  end

  def greet(other_name)

     puts "Hi #{other_name}, my name is #{name}"
  end

 end

name = Person.new("Joe")
name.greet("Kate")

error:

```expect': Expected: "Hi Kate, my name is Joe", instead got: nil (Test::Error) fromassert_equals' from ` '

I changed my names to Kate & Joe as "expected" but i don't understand the error its returning... Thanks for any help!