question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Kindergarten Garden] Making instructions clearer

See original GitHub issue

I would like to be able to complete this exercise by reading the instructions without examining the tests. This is not currently possible because the instructions do not define the interface that the Garden class is expected to implement.

From completing the exercise, I believe that the interface is:

  • A constructor that takes one positional argument and one optional argument. The positional argument is the two rows of plant initials; the optional argument is a list of student names.
    • When no argument is passed, the student names should be the 12 names from these instructions.
  • A plants method that takes a positional argument : a student’s name. This should return a list of strings, where each string is the full name of a plant the student planted. The plant names should be left-to-right with the plants in the row closest to the window listed first.

I realize that most of the details of plants return value appear in the instructions already, but the instructions never mention that there’s a function plants that is returning these values, nor does it mention that some tests will construct a garden by passing in a new list of students.

I was confused that the stub code in the editor when you start this exercise has students as a positional argument to the constructor, when the first 17/19 tests do not pass in a list of students.

This information could instead be added in docstrings in the initial code provided, but I don’t know how much stub code is allowed when this is a practice exercise rather than a new concept.

I’m happy to make the edits required to improve this exercise, if there are changes that would be welcome.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
BethanyGcommented, Feb 10, 2022

Now that #2915 has been merged, I am going to close this issue. Nice work, @astrieanna!

1reaction
astrieannacommented, Jan 20, 2022

Yes, I’m interested. Thank you for the thorough and quick response. Sorry, I had a busy week and didn’t get back to this.

I’ll submit a PR for the instructions.append in the next few days.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to Make a Vegetable Garden for Kids - Montessori Nature
#1. Find an area that is accessible and suitable for your kid. · #2. Allow your child to choose the layout for his...
Read more >
Listens and Follows Directions | Conquering Kindergarten
Each child must follow your directions to draw the picture correctly and make sure that the class can create a larger picture, like...
Read more >
My Little Sprout House | Science for kids, Plants life cycle ...
Once they have planted their seed have them water their seeds with a squirt bottle. Once the soil is damp, place another cup...
Read more >
Garden in a Glove: Plant Life Cycle in Kindergarten
Materials: Clear plastic food preparation gloves (we got these at Smart and Final); A variety of vegetable seeds. We picked ours up ...
Read more >
Primary Lessons For Classroom & Garden
Allow children to choose a tool to use and then make sure they return it to the proper location. Page 4. Growing Gardeners:...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found