Conversation
CalculatorMajor Learning Goals/Code Review
Functional Requirements
Overall Feedback
Code Style Bonus AwardsWas the code particularly impressive in code style for any of these reasons (or more...?)
SummaryWell done, you hit the learning goals here. Excellent work! |
| class Object | ||
| def is_number? | ||
| to_f.to_s == to_s || to_i.to_s == to_s | ||
| end | ||
| end |
There was a problem hiding this comment.
Clever. Did you find this on Stack Overflow or someplace. It's best to leave a comment with a link to where you find something like this.
There was a problem hiding this comment.
I had found it from stack overflow when I was writing code for the technical challenge. I will comment the source from now on when I find something. thank you for reminding me.
| num_2 = num_2_str.to_f | ||
|
|
||
| case command | ||
| when "add", "+" |
There was a problem hiding this comment.
Really the when lines should be indented under the case.
There was a problem hiding this comment.
Really the
whenlines should be indented under thecase.
Chris, it seems that I have installed an add on on VS code that is supposed to fix all the indentations when I save the file, but in this case it un-indents the "when" blocks. Is there a way I can fix this?
Co-Authored-By: Chris M <chris@adadevelopersacademy.org>
Assignment Submission: Calculator
Congratulations! You're submitting your assignment. Please reflect on the assignment with these questions:
Reflection