Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

task tiny js world #172

Merged
merged 2 commits into from
Sep 5, 2022
Merged

task tiny js world #172

merged 2 commits into from
Sep 5, 2022

Conversation

DaniaB24
Copy link
Contributor

@DaniaB24 DaniaB24 commented Aug 16, 2022

tiny-js-world

Demo |
Code base

Please, review.

@OleksiyRudenko
Copy link
Member

OleksiyRudenko commented Aug 16, 2022

This is an agreed resubmission of kottans/frontend-2019-p2p#196 (one of three listed in #174 ).

@DaniaB24 please fix the code following the code as per DoD therein.

Also fix empty line addition in your code editor once for all.
image

You may find this helpful.

@github-actions
Copy link

github-actions bot commented Aug 16, 2022

Thank you for contributing to this repo! ❤️️

A Tiny JS World -- (pre-OOP) exercise check list

Let's do some self-checks to fix most common issues and to make some improvements to the code while reviewers find some time to dedicate it to your submission.

Go through the checklist below, fix code as appropriate and mark fulfilled requirements when you genuinely believe you are done.

Please, feel free to ask questions here or seek for help in the Students' chat.

Check-list - definition of done

  • Code is DRY, which means that whenever you see a pattern in your code those should be eliminated as much as possible. Examples:
    • print(dog); print(cat); etc ... should be refactored employing Array.forEach as the least
    • `${obj.legs}; ${obj.name}; etc...` (yes, strings are also code) must be refactored employing appropriate Array methods
  • Properties used to form an object presentation string must be explicitly listed/specified
  • Object methods like keys, values, entries shouldn't be used as these do not guarantee any particular order of keys/values

Sincerely yours,
Submissions Kottachecker 😺

Copy link
Member

@OleksiyRudenko OleksiyRudenko left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please carefully check the comments above

@DaniaB24
Copy link
Contributor Author

Please carefully check the comments above

thank you a lot for the review! My bad, sorry:(
the problem is in the code link

@DaniaB24
Copy link
Contributor Author

Please carefully check the comments above

thank you a lot for the review! My bad, sorry:( the problem is in the code link

this link led to pre-oop code

Copy link
Member

@OleksiyRudenko OleksiyRudenko left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please see the comment below.

Comment on lines 38 to 41
print(cat.species + ';' + cat.name + ';' + cat.hands + ';' + cat.gender + ';' + cat.legs + ';' + cat.saying);
print(dog.species + ';' + dog.name + ';' + dog.hands + ';' + dog.gender + ';' + dog.legs + ';' + dog.saying);
print(man.species + ';' + man.name + ';' + man.hands + ';' + man.gender + ';' + man.legs + ';' + man.saying);
print(women.species + ';' + women.name + ';' + women.hands + ';' + women.gender + ';' + women.legs + ';' + women.saying);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(1) Double-check the tem one of the checklist above (re DRY code).
Ask questions if anything is not clear - here or on Students' chat.

(2) Please tune your IDE to add an empty line at the end of files.
image

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

its also pre-oop code , sorry:( I will change the link to the code

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ping me when you double-check everything.
I'd expect to read something like "Listed requirements are met, questions I had are asked, code is updated accordingly, links are updated".

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think links are updated @OleksiyRudenko

Ping me when you double-check everything. I'd expect to read something like "Listed requirements are met, questions I had are asked, code is updated accordingly, links are updated".

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I still can see that there is no new line at the end of file:
image

Also there is a requirement which says:

  • Code is DRY, which means that whenever you see a pattern in your code those should be eliminated as much as possible. Examples:
    • print(dog); print(cat); etc ... should be refactored employing Array.forEach as the least
    • `${obj.legs}; ${obj.name}; etc...` (yes, strings are also code) must be refactored employing appropriate Array methods

Feel free asking questions.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I still can see that there is no new line at the end of file: image

Also there is a requirement which says:

  • Code is DRY, which means that whenever you see a pattern in your code those should be eliminated as much as possible. Examples:

    • print(dog); print(cat); etc ... should be refactored employing Array.forEach as the least
    • `${obj.legs}; ${obj.name}; etc...` (yes, strings are also code) must be refactored employing appropriate Array methods

Feel free asking questions.

I honestly do not know why this happens, I will try to fix it tomorrow

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I still can see that there is no new line at the end of file: image

Also there is a requirement which says:

  • Code is DRY, which means that whenever you see a pattern in your code those should be eliminated as much as possible. Examples:

    • print(dog); print(cat); etc ... should be refactored employing Array.forEach as the least
    • `${obj.legs}; ${obj.name}; etc...` (yes, strings are also code) must be refactored employing appropriate Array methods

Feel free asking questions.

I think I did it))) review pls @OleksiyRudenko

@DaniaB24
Copy link
Contributor Author

DaniaB24 commented Sep 4, 2022

@OleksiyRudenko

Copy link
Member

@OleksiyRudenko OleksiyRudenko left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@DaniaB24 great job done!

# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants