Tuesday, December 15, 2015

JavaScript Debugging

Today I looked at Node Inspector - Node.js Debugger at

https://www.youtube.com/watch?v=AOnK3NVnxL8

I found that it was similar to Debug | Web Tools

https://developers.google.com/web/tools/chrome-devtools/debug/?hl=en

edit: a more in-depth tutorial is at: https://www.youtube.com/watch?v=-q1z8BPFItw

In both sources inserting debug code was mentioned.  I suppose this is a lot like what I wrote on IRC on December 24th.

" JavaScript Debug allows for logging levels (https://github.com/pimterry/loglevel). Pim Terry built a Library that allows for various logging levels (https://github.com/pimterry/loglevel). Elijah Manor wrote a review post about ways to manage console.log statements from development to production code (http://elijahmanor.com/grunt-away-those-pesky-console-log-statements/). "


Google Search for Promises in JavaScript

JavaScript Promises and Callbacks: https://blog.jcoglan.com/2013/03/30/callbacks-are-imperative-promises-are-functional-nodes-biggest-missed-opportunity/

 Monads in JavaScript: https://curiosity-driven.org/monads-in-javascript

Promise Prototype: https://curiosity-driven.org/monads-in-javascript

Making a Promise with JavaScript: https://dzone.com/articles/making-promise-javascript

AngularJS Promises: http://www.metaltoad.com/blog/angularjs-promises-from-service-to-template

... but this was not exactly what I was looking for...

Maybe it was: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise/catch

http://javascriptplayground.com/blog/2015/02/promises/

Sunday, December 6, 2015