Skip to content

direction to "add this code to the method" is squishy #3

@brigj1

Description

@brigj1

Canvas Link

https://learning.flatironschool.com/courses/5187/pages/enumerables-debugging-with-pry?module_item_id=397762

Concern

with the phrase "add this code to the method", are you suggesting to add a second instance of #reverse_each_word ?

That's possible, and the second instance will clobber the first, so it works:

require 'pry'

def reverse_each_word(sentence)
  binding.pry
end

def reverse_each_word(sentence)
  words = sentence.split
end

reverse_each_word("Hello there, and how are you?")

But are you expecting students to update the method rather than add?

Additional Context

No response

Suggested Changes

As a student, I'm moving right along, so if the docs say I should add, that's what I'll do. But then I notice it's already there and I have to wonder whether the course author meant for me to update the method, which seems more likely.

So now I'm busy thinking about stuff which is not the main point of the lab. With so much going on in Phase 3 and Ruby, this is an unnecessary distraction.

I leave it to you regarding appropriate updates to make to "add this code to the method"

Metadata

Metadata

Assignees

No one assigned

    Labels

    se curriculumIssue for lessons in the Software Engineering program

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions