GithubHelp home page GithubHelp logo

know's People

Contributors

briancavalier avatar scothis avatar unscriptable avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

know's Issues

Tutorial: Mastering Async Error Handling with Promises

There are some wrong semicolon in part of the code (at least twice like in the following code) :

return thisMightFail()
        .otherwise(recoverFromFailure); // HERE 
        .then(alwaysCleanupOnSuccess, alwaysCleanupOnFailure);

Typo on Tutorial: Authoring CommonJS modules

Second to last line says:

It's called UMD, Universal Module Format, but that's a topic for our next lesson.

It should be:

It's called UMD, Universal Module Definition, but that's a topic for our next lesson.

Create domain specific glossaries of jargon

JavaScript and Cujo.js in particular have a lot of jargon that is difficult for beginners to grok.

I propose we create a glossaries directory with domain specific files that contain terms with precise but approachable definitions. Links to a spec can provide the gory details where appropriate.

Off the top of my head, we could have a glossary for each of:

  • promisses
  • modules
  • dependency injection
  • rest
  • javascript
  • ...

Tutorial: Authoring UMD modules

Typo:

var deps = ids.map(function (id) { return require(id); };

should read:

var deps = ids.map(function (id) { return require(id); });

instead. (Closing ')' around function.)

Tutorial: Consuming modules: Module ids

In the documentation at http://know.cujojs.com/tutorials/modules/consuming-modules-module-ids mentions the following:

// module app/billing/billTo/Customer
define(function (require) {

    // questionable: normalizes to "common/payee/Payee"
    var Payee = require("../../common/payee/Payee");
    ...

Shouldn't it be this instead (note the "app/" prefix in the normalization)?:

...
    // questionable: normalizes to app/common/payee/Payee
    var Payee = require("../../common/payee/Payee");

Really great tutorials by the way!

We need a contributor doc

Something simple that helps people know how/where to submit issues and suggest new tutorials. Should we also put links at the bottom of each tutorial?

Tutorial: Consuming modules: Module ids

I think that one ../ is missing below:

// module app/billing/billTo/Customer
define(function (require) {
    [...]
    // BAD: normalizes to "../util/date" -- a URL, not an ID!
    var Date = require("../../../util/Date");

Should probably read:

// BAD: normalizes to "../util/date" -- a URL, not an ID!
var Date = require("../../../../util/Date");

Also congrats on a really awesome tutorial!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.