DEV Community

Discussion on: #1470 Crazy mathematics. Shuffle the Array in place O(1);

Collapse
 
damian_cyrus profile image
Damian Cyrus

Little off topic suggestion:

  • split the code into multiple functions
  • put some values into variables, to make it easier to understand
  • write an explanation for each function in jsdoc
  • add a unit test to test each function separated, to be very sure js is doing what it is expected
  • set up a gist or even a repo to test the code

On topic: thank you for the deep dive details 👍 it's nice to see that we still need it 😁

Collapse
 
rajeshroyal profile image
Rajesh Royal

Off topic - I don't like a post, I ignore it.

On topic - I like the humour 😄