Skip to content

lab-04 evan-erick-michael#25

Open
kcirekcom wants to merge 59 commits intocodefellows-seattle-javascript-401d12:masterfrom
jmpaik:master
Open

lab-04 evan-erick-michael#25
kcirekcom wants to merge 59 commits intocodefellows-seattle-javascript-401d12:masterfrom
jmpaik:master

Conversation

@kcirekcom
Copy link
Copy Markdown

No description provided.

jmpaik and others added 30 commits December 8, 2016 21:39
cleaned up the file-reader and pushed our information into the object
managed to get the data broken down into manageable chunks
changed to relative path and fixed typo, new image added
adding grayscale functionality and partial constructor changeover
jmpaik and others added 29 commits December 12, 2016 09:41
created inversion transformer
adding most recent constructor
created forEach functions for each array
more tests so fucking frustrated
rescaffolded the entire directory and deleted images
Copy link
Copy Markdown
Contributor

@bnates bnates left a comment

Choose a reason for hiding this comment

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

Nice job on this assignment - there's a few areas that could be cleaned up and condensed - outside of that, nice job!

*.tgz

# Yarn Integrity file
.yarn-integrity
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

@kcirekcom @jmpaik @EWPS07 no need for 2 .gitignore files ;)


### How do I use this app?

If you intend to use this app, you should clone this repository and run the command `npm i` in your terminal to install all of the dependencies for the development environment. Once everything has been installed, navigate to the lib/ folder located within the app. While in this folder, you must run the command `node bmp-reader.js`. The result of this command will create new bitmap image files, which are located inside of the img/ folder.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

@kcirekcom @jmpaik @EWPS07 README.md looks good!

gulp.watch(['**/*.js','!node_modules/**'], ['lint', 'test']);
});

gulp.task('default', ['dev']);
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

@kcirekcom @jmpaik @EWPS07 gulpfile.js looks good!

});
});
});
});
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

@kcirekcom @jmpaik @EWPS07 overall, the bitmapReader module functionality looks good - that said, there is a substantial amount of repeated code along with a series of antipatterns and related functions that could be refactored to be contained using the constructor pattern and a few prototype methods - let's set aside 15 minutes or so to chat after the holiday break and I'll give you some pointers on how to refactor this and clean it up

this.transformedRandomPalette = [];
this.transformedPaletteInverted = [];
this.transformedScaledPalette = [];
};
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

@kcirekcom @jmpaik @EWPS07 bitmap-contstructor looks good! It could be useful to also save the raw buffer as a property on the bitmap constructor as well (ex: this.bitmap = data)

"gulp-mocha": "^3.0.1",
"mocha": "^3.2.0"
}
}
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

@kcirekcom @jmpaik @EWPS07 package.json and associated devDependencies look good!

let transformedImage = fs.readFileSync('../img/colorScale-bmp.bmp');
expect(image).to.not.equal(transformedImage);
});
});
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

@kcirekcom @jmpaik @EWPS07 your tests look good but are a little light - we'll chat about this when we discuss the refactor pointed out above - that said, great job using let instead of var for proper block scoping in your tests

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.

4 participants