Without further ado - some thoughts on how to use srand
in RSPEC testing. Example at the end.
Line | Input | Output |
---|---|---|
1 | srand(4) | 281462327676453734791076087004180619592 |
Caution: MINDBLOWING!
I would like to share with you a thing that I've learned today. Thank you Sofie and Matt for helping me understand that.
Let's get straight into the problem. I have a static html website with (among others) a form to increase a temperature.
This note is my attempt at explaining the idea of a promise object in JS.
Learning javascript as the second language, right after Ruby, is sometimes hard, as the path from zero to JS-hero is full of new - unknown to Ruby - concepts. One of them is a promise object that I happened uppon while creating my first end-to-end JS application.
For an MVP I was supposed to write an application which:
JS, unlike Ruby, doesn't have classes to separate concerns or the concept of private method. In order to limit the scope of of our code, we can use the module pattern that will make some code available while keeping other parts of code hidden.
Question.js
Without any libraries.
// This note is a summary of work of the Moisty team, week 7 of Makers Academy. Thank you Laura, Daniel, Josue, Josh and Terry.
// Check out the full repo here: https://github.com/lwkchan/moisty.