4

I just got cancer. "full stack" wrote this:

var steams = [] ;
for (var key in images) {
streams[streams.length] = fs.createWriteStream(images.imageName);
streams[streams.length - 1].on('close', function (filename) {.....

why, Why Why and how did you come up with something this bad?
Dude creates an empty array to populate it with write streams just so he can pop each one two lines below and attach a listener.

It's the first thing I checked in this application and I'm afraid what else I'm gonna find.

Comments
  • 1
    dont look
  • 0
    Cuz he wants to look awesome like he know shit and the program is too complicated for noobs!!!!!!
Add Comment