re: Write a simple but impactful script VIEW POST

TOP OF THREAD FULL DISCUSSION
re: i.e. the order is different. But wouldn't this fail at times? f.e. I have 3 elements in my array, [1, 2, 3]. Now the shuffle method only has six...

Aye, that's true. I was kind of thinking about it in terms of generating an array of 10000 items!

Writing testable code is a trade off, but probably worthwhile in the long run. Dependency injection itself makes for more and more flexible code without a great deal of extra cognitive overload, so I am a big fan of it at the moment.

This was a great talk from Sandy Metz that drove towards this point for a different reason too. I recommend a watch!

code of conduct - report abuse