× {{alert.msg}} Never ask again
Get notified about new tutorials RECEIVE NEW TUTORIALS

Code Review, Followup Promises tutorial and MongoDB Architecture consulting

Naman Goel
Aug 01, 2014
<p><strong>Q: What was the request about? </strong><br>I was asked to review some code and provide guidance on ways to solve further problems<br><br><strong>Q: How did you help with the request?</strong><br>I helped spot major performance bottlenecks such Synchronous code in Node, and Ineffecient code with O(n3) time complexity and provided some code and some guidance on how to move past those problems.<br><br><strong>Q: Any best practices &amp; key learnings you can share?</strong><br>It is easy to forget basic things when working in Node for the first time. Always read every function as you write, and avoid anti-patterns such synchronour code at all costs.<br>Try to use Promises everywhere, but even if you are using callbacks, stay consistent with node style callbacks that get (err, result). NEVER be inconsistent.</p>