Skip to content

Lab7 - #8

Open
aadereiko wants to merge 22 commits into
masterfrom
lab7
Open

Lab7#8
aadereiko wants to merge 22 commits into
masterfrom
lab7

Conversation

@aadereiko

Copy link
Copy Markdown
Owner

No description provided.

@ala-n ala-n left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Я конечно могу много еще к чему придраться, но в основном это может быть out of practice ну или текущих заданий)
Вообще нравится как пишешь код уже.
В основном все читается и структурировано.
Я еще до конца не досмотрел, но в любом случае ощущения крайне положительные ;) спасибо!
PS: мержни плиз текущий PullRequest ибо много изменениий уже.

Comment thread app.js
break;
}

fs.readFile(filePath, function(error, content) {

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Ой малайца!
Первый кто на 10 претендует за 7 лабу )

Comment thread app.js

var extname = path.extname(filePath);
var contentType = 'text/html';
switch (extname) {

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

В отдельную функцию ( бал не снижаю )

Comment thread public/scrypt.js
},

editPost: function (id, post) {
if (post.description && post.description.length > 200) {

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

А обязан ли по апи для 4 задания здесь быть заполненый пост. Вообще говоря нет. Но да ладно.

Comment thread public/scrypt.js
}

let getTemp = ApplicationModel.getPhotoPost(id);
if (post.description) {

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

А вот тут потенциальная can't read 'description' of null :)

Comment thread public/scrypt.js
},

fillMapHash: function () {
for (let i = 0; i < ApplicationModel.photoPosts.length; i++) {

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Array.prototype.forEach

Comment thread public/scrypt.js
}
},

fillInformation: function(){

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

readFromLocalStorage или просто load (все равно временно)
Сейчас название не отражает действительное действие.

Comment thread public/scrypt.js
}();

let EventsModule = function () {
//по частям

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

??
Ешки, как много кэшнутых значений. Есть подозрение что черезчур много...

Comment thread public/scrypt.js
}
if(selectAdd.selectedIndex !== 1){
if(arrayHashtags.indexOf(selectAdd.options[selectAdd.selectedIndex].value) === -1) {
/*саша я тебя люблю :3 */

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Пасхалка для Саши )))

@ala-n

ala-n commented May 14, 2018

Copy link
Copy Markdown

Так код конечно хороший но в на клиенте мало что работает, надо оживить хотябы основные функции.

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.

2 participants