<feed xmlns='http://www.w3.org/2005/Atom'>
<title>exercism/javascript/raindrops, branch master</title>
<subtitle>My solutions for Exercism exercises
</subtitle>
<id>https://git.tilde.institute/andinus/exercism/atom?h=master</id>
<link rel='self' href='https://git.tilde.institute/andinus/exercism/atom?h=master'/>
<link rel='alternate' type='text/html' href='https://git.tilde.institute/andinus/exercism/'/>
<updated>2021-09-05T16:50:04Z</updated>
<entry>
<title>JS: Raindrops: Switch to using a map</title>
<updated>2021-09-05T16:50:04Z</updated>
<author>
<name>Andinus</name>
<email>andinus@nand.sh</email>
</author>
<published>2021-09-05T16:50:04Z</published>
<link rel='alternate' type='text/html' href='https://git.tilde.institute/andinus/exercism/commit/?id=ada2c83548c0c08f39e8ffee1bdd6eedc100cdc8'/>
<id>urn:sha1:ada2c83548c0c08f39e8ffee1bdd6eedc100cdc8</id>
<content type='text'>
I switched to single object literals initially:

    const factorToSound = {
        3: "Pling",
        5: "Plang",
        7: "Plong"
    };

and used `for .. if` to iterate over them, that may cause some issues:
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/for...of#difference_between_for...of_and_for...in

I decided to switch to using Maps and iterate over them with `for ..
of` instead.
</content>
</entry>
<entry>
<title>JS: Raindrops: Move rules to a const</title>
<updated>2021-09-05T11:08:00Z</updated>
<author>
<name>Andinus</name>
<email>andinus@nand.sh</email>
</author>
<published>2021-09-05T11:08:00Z</published>
<link rel='alternate' type='text/html' href='https://git.tilde.institute/andinus/exercism/commit/?id=46d81156b7bad4bef2f4443df6e9df4f03303c56'/>
<id>urn:sha1:46d81156b7bad4bef2f4443df6e9df4f03303c56</id>
<content type='text'>
</content>
</entry>
<entry>
<title>JS: Raindrops: Remove repeated math logic</title>
<updated>2021-09-04T17:36:26Z</updated>
<author>
<name>Andinus</name>
<email>andinus@nand.sh</email>
</author>
<published>2021-09-04T17:36:26Z</published>
<link rel='alternate' type='text/html' href='https://git.tilde.institute/andinus/exercism/commit/?id=90e12a35bc1814e4d20ce14c84ef7405e15b1e04'/>
<id>urn:sha1:90e12a35bc1814e4d20ce14c84ef7405e15b1e04</id>
<content type='text'>
- Removes repeated math logic.
- Compares against "" instead of using .length.
- Uses "number" instead of "num".
</content>
</entry>
<entry>
<title>JS: Raindrops: Add solution</title>
<updated>2021-09-03T12:48:33Z</updated>
<author>
<name>Andinus</name>
<email>andinus@nand.sh</email>
</author>
<published>2021-09-03T12:48:33Z</published>
<link rel='alternate' type='text/html' href='https://git.tilde.institute/andinus/exercism/commit/?id=9cec9e1815f3da2da02173b5302b372a761df00f'/>
<id>urn:sha1:9cec9e1815f3da2da02173b5302b372a761df00f</id>
<content type='text'>
</content>
</entry>
</feed>
