Comments on: Top 4 Javascript Concepts a Node.js Beginner Must Know https://simpleprogrammer.com/top-4-javascript-concepts-a-node-js-beginner-must-know/ Mon, 19 Sep 2016 22:52:40 +0000 hourly 1 https://wordpress.org/?v=7.0 By: Pavel https://simpleprogrammer.com/top-4-javascript-concepts-a-node-js-beginner-must-know/#comment-4451 Mon, 27 Jun 2016 10:52:00 +0000 https://simpleprogrammer.com/?p=15041#comment-4451 Pushing Javascript to the server side is insane

]]>
By: Ankit Singh https://simpleprogrammer.com/top-4-javascript-concepts-a-node-js-beginner-must-know/#comment-4450 Wed, 16 Dec 2015 14:08:00 +0000 https://simpleprogrammer.com/?p=15041#comment-4450 In reply to Tracy Gilmore.

Thanks @Tracy Gilmore:disqus . Naming callback functions comes under “good practices”. It has been covered in Kyle Simpson’s book You Don’t Know JS. I thought not to include “good” or “bad” practices in this beginner article. Maybe I was wrong. 🙂
And about Modules, I’ll surely include what you’ve pointed out and ask the editors to update the article.

]]>
By: Tracy Gilmore https://simpleprogrammer.com/top-4-javascript-concepts-a-node-js-beginner-must-know/#comment-4449 Wed, 16 Dec 2015 08:01:00 +0000 https://simpleprogrammer.com/?p=15041#comment-4449 Good article. Two comments: 1) In section 3 on Modules, it would have been worth showing how User Defined modules are ‘defined’. The internal structure is very simple and for the sake of an extra 2 or 3 sentences and a code fragment would have given beginners a jump-start.
2) Section 4, states that callbacks are anonymous but this is not mandated. In fact naming a callback function can help considerably when debugging code. Anonymous (aka lambda) functions are useful but can easily be over used.

]]>
By: Ankit Singh https://simpleprogrammer.com/top-4-javascript-concepts-a-node-js-beginner-must-know/#comment-4448 Mon, 14 Dec 2015 16:40:00 +0000 https://simpleprogrammer.com/?p=15041#comment-4448 In reply to kasib kismath.

Thanks @kasibkismath:disqus. 🙂

]]>
By: kasib kismath https://simpleprogrammer.com/top-4-javascript-concepts-a-node-js-beginner-must-know/#comment-4447 Sun, 13 Dec 2015 16:17:00 +0000 https://simpleprogrammer.com/?p=15041#comment-4447 Thumbs up!

]]>
By: Ankit Singh https://simpleprogrammer.com/top-4-javascript-concepts-a-node-js-beginner-must-know/#comment-4446 Sun, 06 Dec 2015 15:34:00 +0000 https://simpleprogrammer.com/?p=15041#comment-4446 In reply to rbrtsmith84.

That’s right. I’ll try to elaborate on classes. 🙂

]]>
By: Ankit Singh https://simpleprogrammer.com/top-4-javascript-concepts-a-node-js-beginner-must-know/#comment-4445 Sun, 06 Dec 2015 15:31:00 +0000 https://simpleprogrammer.com/?p=15041#comment-4445 In reply to rbrtsmith84.

Thanks for the agreement. 🙂

]]>
By: rbrtsmith84 https://simpleprogrammer.com/top-4-javascript-concepts-a-node-js-beginner-must-know/#comment-4444 Sun, 06 Dec 2015 15:13:00 +0000 https://simpleprogrammer.com/?p=15041#comment-4444 In reply to Ankit Singh.

I strongly agree that it’s important to learn the underlying principles of the language. So many JS devs relying heavily on things like Angular yet are not even aware of the concept of Closure. React and Node kind of require knowledge in these key areas. I think that is a good thing 🙂

]]>
By: rbrtsmith84 https://simpleprogrammer.com/top-4-javascript-concepts-a-node-js-beginner-must-know/#comment-4443 Sun, 06 Dec 2015 15:11:00 +0000 https://simpleprogrammer.com/?p=15041#comment-4443 In reply to Ankit Singh.

I think the class keyword is a bad mistake, I hope when you cover ES2015 stuff you point out the disadvantages of using ES2015 class.

I have no problem with delegation when used appropriately – when there’s a tonne of instances, if the number is a sane one I prefer factories 🙂

]]>
By: Ankit Singh https://simpleprogrammer.com/top-4-javascript-concepts-a-node-js-beginner-must-know/#comment-4442 Sun, 06 Dec 2015 14:57:00 +0000 https://simpleprogrammer.com/?p=15041#comment-4442 In reply to rbrtsmith84.

True. JS follows the Delagation Pattern, not Inheritence. It’s doesn’t mean Inheritance is a bad pattern but I think that Delegation works well for JS.

]]>