JavaScript Testing

share ›
‹ links

Below are the top discussions from Reddit that mention this online Udacity course.

Learn how to iterate on your web applications with confidence using the red-green-refactor workflow cycle and automated testing frameworks.

Reddacity may receive an affiliate commission if you enroll in a paid course after using these buttons to visit Udacity. Thank you for using these buttons to support Reddacity.

Reddit Posts and Comments

0 posts • 4 mentions • top 2 shown below

r/learnprogramming • comment
1 points • denialerror

Jest is probably the most popular testing framework for JavaScript but they are all very similar. I can't vouch for it but this course is part of the Udacity Nanodegree that I've heard good things about and should give you a good start (using Jasmine instead of Jest, but that doesn't matter).

Testing is a big subject and it's difficult to condense into a single comment. The one thing that trips people up at the beginning is thinking that tests are just to prove the code you just wrote works, which leads them to think it is a waste of time as they can already see it working. Tests are there to give you the confidence to make future changes without breaking anything. Once written, tests run quickly and give near instant feedback. With some test frameworks, they will even run every time you change your code, so you know as you type of you've broken something.

> What's a good way of managing type safety?

Most JS developers just suck it up and accept the lack of strong typing. You can write tests to ensure your objects have the right attributes but the benefit of a mature type system is these tests are done automatically by the compiler. There are options though. Flow is a library that adds optional typing or you can use Typescript, which is a strongly typed superset of JavaScript. I wouldn't worry about that for now though.

r/webdev • comment
1 points • CodeCamping

Your plan is perfect. All webpages come down to html, css, and Js so learn those well. Php is in demand so worth learning if you want a job. Node is in demand. Python is great for learning to code.

https://www.freecodecamp.org/

https://github.com/P1xt/p1xt-guides/blob/master/job-ready.md

https://github.com/kamranahmedse/developer-roadmap

For learning to code (not web dev specifically), this course is a bit challenging: (It is free don't pay for the certificate.)

https://www.edx.org/course/introduction-to-computer-science-and-programming-using-python

https://www.edx.org/course/programming-web-javascript-pennx-sd4x

https://www.edx.org/course/cs50s-web-programming-with-python-and-javascript

Udacity has some good free classes:

https://www.udacity.com/course/es6-javascript-improved--ud356

https://www.udacity.com/course/javascript-design-patterns--ud989

https://www.udacity.com/course/javascript-testing--ud549

https://www.udacity.com/course/web-accessibility--ud891

https://www.udacity.com/course/version-control-with-git--ud123