nodejs / nodejs-collection

A place for the Node.js Collective to organize the editing process
https://medium.com/the-node-js-collection/
MIT License
30 stars 16 forks source link

Blog Posts for Week of August 27 #29

Closed ZibbyKeaton closed 4 years ago

ZibbyKeaton commented 6 years ago

All -

I received a few posts for the Node.js Collection this August. It's been fairly quiet for August and July. Both of these look good to me, but I wanted to confirm if the group had any red flags or suggestions. Please send them to me by next Monday, August 27. I'll aim to post one on Tuesday and one on Thursday of next week:

Trott commented 6 years ago

The code formatting in the image manipulation article makes the code nearly unreadable. (I'm not talking about the first two screenshots, but the many subsequent segments where there's actual code you can copy/paste.) Honestly, I'm not sure it's worth reviewing the article until that's fixed. It will be error-prone to review the code without any indentation like that, etc.

Example of the problematic code formatting:

screen shot 2018-08-21 at 10 56 15 am
WaleedAshraf commented 6 years ago

Agree with @Trott All code snippets in the first article should be created using gist.

Thumbs up 👍 for the second article: Continuous Deployment for Node.js on the Google Cloud Platform.

ZibbyKeaton commented 6 years ago

Thanks for the feedback. I made the request with the author and will share the updated version when I have it. I've received a few more articles from Matheus Marchini who is a member of the Diagnostics Working Group. Below is a full article that he's written and another is an abstract. I like both topics; let me know what y'all think with a 👍 or 👎:

Taming the dragon: using llnode to debug your Node.js application: https://medium.com/sthima-insights/taming-the-dragon-using-llnode-to-debug-your-node-js-application-fc54c6efd0f1

Title: Finding performance bottlenecks in your Node.js application

Node.js has excellent performance, thanks to V8 and its single-threaded event loop, but sometimes our application can run slow. Finding these performance bottlenecks can be tricky, that's why there are tools created exclusively to help developers find and fix these bottlenecks. V8 offers two tools out of the box: a --prof flag and the CpuProfiler (through the Inspector Protocol), but there are other tools supported, such as Linux perf and dtrace. I want to write a summary of these tools so that developers know they exist and can choose the fittest one when necessary.

WaleedAshraf commented 6 years ago

Taming the dragon: using llnode to debug your Node.js application: The article is well written, but I think It doesn't solve the problem it looks it is intended for. As I read the whole article and the last line is:

Unfortunately, llnode can't tell where this array is located yet, but there's an open issue to add this feature in the future.

It should be mentioned explicitly in the start.

Finding performance bottlenecks in your Node.js application: 👍 for abstract.

ZibbyKeaton commented 6 years ago

The article from Packt has been updated (this is the one where we had issues with the code block). Let me know if this works or if want the gist links directly into each section that shows code: https://medium.com/@Packt_Pub/image-manipulations-using-express-7398a6fa1491

We also have a new submission, "8 Keys to Successful Third Party API Integration." It reads well to me and although not directly related to the Node.js topic, I think Node.js developers will find it helpful. Let me know what folks think by next Tuesday (September 4): https://medium.com/@prajacta.khopkar/d9704909baf

Trott commented 6 years ago

Code formatting is still 👎 on that Packt article. No indentation, etc.

WaleedAshraf commented 6 years ago

👎 for Packt article code formatting.

ZibbyKeaton commented 6 years ago

How about now with the formatting: https://medium.com/@Packt_Pub/image-manipulations-using-express-7398a6fa1491

Trott commented 6 years ago

Formatting is still missing indentation which is a total deal-breaker IMO. Makes the code very difficult to read.

let image = sharp({
create : {
width : width,
height : height,
channels : 4,
background : { r: 0, g: 0, b: 0 },
}
});
WaleedAshraf commented 6 years ago

Should be like this.

let image = sharp({
  create: {
    width: width,
    height: height,
    channels: 4,
    background: { r: 0, g: 0, b: 0 },
  }
});

And all the gist are .txt files. It should be .js

ZibbyKeaton commented 6 years ago

@WaleedAshraf can I connect you directly to the author to help them solve this issue. I think that will likely be easier here.

WaleedAshraf commented 6 years ago

@ZibbyKeaton yes. Sure.

WaleedAshraf commented 6 years ago

@Trott can you take a final look at: https://medium.com/@Packt_Pub/image-manipulations-using-express-7398a6fa1491

Author has fixed the formatting. 👍 from my side.

Trott commented 6 years ago

Formatting looks fine. I haven't read it yet so I have no comment on the content (yet?).

WaleedAshraf commented 6 years ago

@Trott any update on this?

Trott commented 6 years ago

@Trott any update on this?

Was hoping others would take a look, to be honest. Image manipulation is not my area of expertise and I'm not using Express much these days either. I mean, it seems OK to me I guess, but I'd hope someone else more interested and/or experienced would take a look.

WaleedAshraf commented 6 years ago

@ZibbyKeaton can we tag someone else for review? @nodejs/nodejs-collection

WaleedAshraf commented 4 years ago

Closing this issue as the date has passed for the blog post. Thanks everyone.