Skip to content

Instantly share code, notes, and snippets.

@adamki
Created January 30, 2016 09:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save adamki/3f150f667f2e7808ee4c to your computer and use it in GitHub Desktop.
Save adamki/3f150f667f2e7808ee4c to your computer and use it in GitHub Desktop.
Documenting my attempts at JS Exercisms.

Leap

my code here

  • Responder #1 here - This version took the same approach and minified it! Pretty clever. I kind of like my explicit returns. But this version is def more sleek.
  • Responder #2 here - Really cool implementaion of OOP JS. I dont actually understand everything going on here, but it looks easier on my eyes since is it following OOP guidelines.
  • Responder #3 here - Its David Daniel! Woot! Cool, clean and simple. Very close to mine, but he leaves out the explicit returns.
  • Responder #4 here - Its Tess Griffen! Cool. It's a bit verbose and really uses the if/else conditional blocks. But I like it. It is simple to read.

Hamming

my code here

  • Responder #1 here - Hmm. I dont know if I like this one. Like, It is def not how I would approach it. He really made modular little functions that can be called and are SRP. In fact, It is really easy to see what is going on... But I just dont really like use of shortest. It seems overkill.
  • Responder #2 here - Hmm. I like this. It basically does what I am doing, but is more clever about how it uses the diff var.
  • Responder #3 here - Nice. Again, very similar to mine. I dont like how they checked for string.length differences in the else block. Seems better to stop the program and throw an error FIRST, rather than second.

RNA

my code here

  • Responder #1 here - Hard to read. But I feel guilty saying that. It is cleaner than mine, but I didn't really digest the code and what was happening that well.
  • Responder #2 here - Good. I like how he used map. I should have used map!!!
@rrgayhart
Copy link

👍

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