Rubyist makes some Python code 5x Faster
schneems.com
schneems.com
Turns out it was a specific chunk of python snippet that
> determining all possible moves for a Queen piece on a chess-like board
On the plus side tho', I thought the principles mentioned go beyond the specifics of the code snippent which was being used more like an example.
The author being a rubyist has no influence to anything mentioned in the article AFAICT.
That's a turn off from an otherwise good article on guidelines one can use to easily identify opportunities to potentially optimize python code.
It's fairly easy to think from the title that the article is going to be something about how clever the rubyist is compared to Python programmers or how slow Python is or some such, as an intrinsic property of "rubyists" or Python.
For any row, you test the row value & the current col and have your answer.