Analyzing a Dice Mechanic

A "Dice Mechanic"? Yes. The thing you do with the dice to determine an outcome. We'll use Python to see how the dice shake out.

A little backstory

For a casino game of craps, the roll of the dice can be 7 or 11 for an immediate win, 2, 3 …

more ...


More Python Quirks Debunking

Stuff I found on the internet that I have to disagree with.

(And no, I didn't ask for clarification. If the author posts things without supporting details it suggests they might lack the supporting details. I can be charitable and assume they don't really care about providing useful information, but …

more ...





Behave Tests and Fixtures

BLUF

Behave fixtures totally rock for testing complex applications.

I had been doing them wrong. Doing them right is simpler.

History

I'm a fan of the Gherkin language for specifying the behavior of software.

Scenario: Works for Me

Given a configuration
When a request is made
Then the response can …
more ...