-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Js calculator post #2
Conversation
_posts/2019-02-04-js-calculator.html
Outdated
demolink: "-SITE_URL-/projects/vanilla-js-calculator/index.html" | ||
--- | ||
<p> | ||
It had been a while since I made anything using javascript. As an exercise I reproduced as much of the windows calculator functionality as possible. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It had been a while since I made anything using javascript. As an exercise, I reproduced as much of the windows calculator functionality as possible.
_posts/2019-02-04-js-calculator.html
Outdated
I decided against using a framework because I wanted to focus on javascript instead of some framework. Using a framework might have made this easier but the focus of the exercise would have been different. | ||
</p> | ||
<p> | ||
While I was at it I also decided to write tests and to generate reports about my tests. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
While I was at it, I also decided to write tests and to generate reports about my tests.
_posts/2019-02-04-js-calculator.html
Outdated
<h2>Jasmine</h2> | ||
|
||
<p> | ||
From previous experience i learned that, without realizing it, you will break your own application. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
From previous experience, I learned that, without realizing it, you will break your own application.
_posts/2019-02-04-js-calculator.html
Outdated
|
||
<p> | ||
From previous experience i learned that, without realizing it, you will break your own application. | ||
To make sure I could break pieces without knowing about it something was required to verify that every piece of code worked as expected. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To make sure I could break pieces without knowing about it, something was required to verify that every piece of code worked as expected.
--> not sure if you meant what you said? "To make sure I could break pieces without knowing about it,"?
_posts/2019-02-04-js-calculator.html
Outdated
"Jasmine is a behavior-driven development framework for testing JavaScript code." | ||
</p> | ||
<p> | ||
In practice, this means that anytime I modified my code Jasmine would tell me whether or not my code still worked. There's a catch though, I have to tell Jasmine what to test. This means that if I forget something or I make a mistake in one of my tests, this will be reflected in the report. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In practice, this means that anytime I modified my code Jasmine would tell me whether or not my code still worked. There's a catch though: I have to tell Jasmine what to test. This means that if I forget something or I make a mistake in one of my tests, this will be reflected in the report.
_posts/2019-02-04-js-calculator.html
Outdated
In practice, this means that anytime I modified my code Jasmine would tell me whether or not my code still worked. There's a catch though, I have to tell Jasmine what to test. This means that if I forget something or I make a mistake in one of my tests, this will be reflected in the report. | ||
</p> | ||
<p> | ||
A best practices when writing tests for your code is to write them before you write the code that will be tested. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A best practice when writing tests for your code is to write them before you write the code that will be tested.
No description provided.