Skip to content

Add: Error Handling Section#43

Merged
ryanmcdermott merged 1 commit into
ryanmcdermott:masterfrom
jordalgo:jordalgo/errorHandling
Jan 7, 2017
Merged

Add: Error Handling Section#43
ryanmcdermott merged 1 commit into
ryanmcdermott:masterfrom
jordalgo:jordalgo/errorHandling

Conversation

@jordalgo
Copy link
Copy Markdown
Contributor

@jordalgo jordalgo commented Jan 6, 2017

No description provided.

@jordalgo
Copy link
Copy Markdown
Contributor Author

jordalgo commented Jan 6, 2017

@ryanmcdermott - There is much more than can be added to this section but thought I'd start simple and see what you thought of the language and examples.

Copy link
Copy Markdown
Owner

@ryanmcdermott ryanmcdermott left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey Jordan, this is great, thank you for taking the time to add that! I think simple is good to start with. I'm interested to see how this progresses with others contributing to it. The section in Clean Code was very much Java-oriented and hard to adapt.

I added some very small nitpicks, if you have time could you knock them out? If not, totally cool, we can merge anyway!

Comment thread README.md Outdated
process (in Node), and notifying you in console with a stack trace.

### Don't ignore caught errors
Doing nothing with an caught error doesn't give you the ability to ever fix
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

'a' caught error instead of 'an' right?

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

'fix it'. as opposed to 'fix' would be better.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Weird, I thought I had made the 'an' to 'a' grammar fix before pushing.

The 'fix' to 'fix it' isn't right though; what I have I believe is correct or else it would effectively read 'fix it said error'.

Comment thread README.md Outdated
Thrown errors are a good thing! They mean the runtime has successfully
identified when something in your program has gone wrong and it's letting
you know by stopping function execution on the current stack, killing the
process (in Node), and notifying you in console with a stack trace.
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

'in the console' not 'in console'?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

Comment thread README.md Outdated
}
```

The same goes for promises.
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we split this out into another subsection? I've been liking just one Good/Bad for each subsection!

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure.

@jordalgo jordalgo force-pushed the jordalgo/errorHandling branch from 39bc09f to 100628c Compare January 7, 2017 02:23
@jordalgo
Copy link
Copy Markdown
Contributor Author

jordalgo commented Jan 7, 2017

@ryanmcdermott Thanks for the review. Updates made.

@ryanmcdermott ryanmcdermott merged commit ddd0181 into ryanmcdermott:master Jan 7, 2017
@ryanmcdermott
Copy link
Copy Markdown
Owner

Woo hoo! Thanks 🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants