-
Notifications
You must be signed in to change notification settings - Fork 168
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Strings in Ruby #555
Strings in Ruby #555
Conversation
Hey! I wish I was more careful, I have one mistake. The questions misplaced should be one row above, and I should answer the black space that would be left I feel very noob r, wow, srry. Tbh I feel like, after all, it's good to have PR's instead of committing directly... |
Fixed misplaced section and answered the question about alpha strings. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks great! A couple of changes to match some best practices and I'll happily merge this in!
I will read this before going any further... |
Hello, I wanted to ask about this behavior...Whenever I replace "code" for "comment", then the application will display "Unknown" above the comment, this is because the application assumes that "code" exists, but I didn't declare it on the JSON scope, I only declared the "comment".There is one way to fix it, which would be to declare the "code" as an empty array on the JSON scope, but this will leave a blank space above the comment.Perhaps there should be a condition to check if "code" is empty, and if that's the case, only display the comment line, thus removing the blank space for the empty comment. |
I also found out why it says, "Unknown". I already solved it, if you agree with me I would be more than happy to make this change happen. |
My solution would be this:On the models, on this function:Line 134 in 229b527
I would change it to something like this:
On the views on this function :Line 376 in 229b527
I would change it to something like this:
|
This will actually make this line work:
And the div will not be created, because "code" it's returning None... |
Hello, I implemented the " comment", and used the "not-implemented": true where I thought it was necessary.I also fixed the ordered list.I will open an issue regarding what I described above, I think it's better, that way we can separate these issues. |
I think I've finished what was left for this String module, I finally deleted the "name" field from the JSON file, implemented the comments; etc as I described before. I would be more than happy to hear your feedback, and I was excited about creating a PR for the "Unkown" issue if you can have a look at it at some point. |
Don't feel too bad. I've definitely committed stuff that broke the project before, lol! Also a LOT of people have submitted stuff that's not exactly right. Probably at least half! So don't feel bad. It's why the review process and the GitHub Actions are there. To help validate things before they go in. |
I can change it back to code and save this JSON for when it's resolved. |
That works for me! |
d82f72c
to
591c175
Compare
I believe it's done :D |
This works for me! Thank you for this addition, and your first contribution to CT! 🎉 If you are participating in Hacktoberfest, don't forget to register so that this PR counts towards that. |
What GitHub issue does this PR apply to?
Resolves #426
What changed and why?
I implemented the Strings module for the Ruby 3.x lang 😄
I used the official Ruby documentation as well as The Well-Grounded Rubyist in case you want to add some references in the future
Checklist