Skip to content

Conversation

@slavavikharev
Copy link

No description provided.

@honest-hrundel
Copy link

🍅 Пройдено тестов 14 из 18

@honest-hrundel
Copy link

🍏 Пройдено тестов 18 из 18

@honest-hrundel
Copy link

@chipolinka обрати внимание решено доп. задание


// Constants
//
var FUNC_ORDER = [

Choose a reason for hiding this comment

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

Название не совсем корректно отображает содержимое

];


// Functions-helpers

Choose a reason for hiding this comment

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

Если хочешь писать доки -- у тебя есть пример, как их оформлять)

Copy link
Author

Choose a reason for hiding this comment

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

Это не доки, это просто разделение на логические части, просто для того чтоб удобнее было ориентироваться

Choose a reason for hiding this comment

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

Кстати, почему удалил все доки?

Copy link
Author

Choose a reason for hiding this comment

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

Мешают ориентироваться в коде
Штуки полезные, понимаю


// Functions-helpers
//
var _functionSorter = function (one, another) {

Choose a reason for hiding this comment

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

Можешь объяснить, почему у тебя названия функций начинаются с земли?)

Copy link
Author

Choose a reason for hiding this comment

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

Это функции, которые не предполагается использовать где-то еще, кроме как в этом коде, тогда как функции из следующего блока можно использовать где-то еще

Choose a reason for hiding this comment

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

И по правилам название функции должно начинаться с глагола.

Copy link
Author

Choose a reason for hiding this comment

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

Ну не всегда
"Правила" эти довольно условны
Кажется логичнее применять "сортировщик" к коллекции, чем применять к ней "отсортировать"

Choose a reason for hiding this comment

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

Я бы всё равно избавилась на твоем месте от земли.

Copy link
Author

Choose a reason for hiding this comment

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

Хорошо, уберу

*/
exports.select = function () {
return;
var _functionApplyer = function (obj, f) {

Choose a reason for hiding this comment

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

Зачем эта функция?

Copy link
Author

Choose a reason for hiding this comment

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

Я ее передаю как аргумент в <список функций>.map с присвоенный объектом
Так для каждой функции она будет применена к объекту

var key = keyValuePair[0];
var value = keyValuePair[1];

var newObject = Object.assign({}, obj);

Choose a reason for hiding this comment

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

В ES5.1 еще нет Object.assign, так что нельзя использовать готовый вариант)

Copy link
Author

Choose a reason for hiding this comment

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

Упс :)

@chipolinka
Copy link

chipolinka commented Nov 4, 2016

В целом код 👍 , но вот есть немного замечаний)

@chipolinka
Copy link

🍅

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants