Today's Question:  What does your personal desk look like?        GIVE A SHOUT

 ALL


  A Programming Idiom You've Never Heard Of

Here are some sequences of events:Take the rake out of the shed, use it to pile up the leaves in the backyard, then put the rake back in the shed.Fly to Seattle, see the sights, then fly home.Put the key in the door, open it, then take the key out of the door.Wake-up your phone, check the time, then put it back to sleep.See the pattern? You do something, then do something else, then you undo the first thing. Or more accurately, the last step is the inverse of the first. Once you're aware of this pattern, you'll see it everywhere. Pick up the cup, take a sip of coffee, put the cup down. And it'...

2,926 0       PROGRAMMING IDIOM STRANGE


  Strangest line of python you have ever seen

The other day @HairyFotr and @zidarsk8 were doing some codegolfing with implementations of nondeterministic finite state machineand asked me to blog their results.For those of us who often forget what all of this computer science mumbo jumbo means, here’s a quick explanation from wikipedia:In the theory of computation, a nondeterministic finite state machine or nondeterministic finite automaton (NFA) is a finite state machine where for each pair of state and input symbol there may be several possible next states.Essen...

2,042 0       PYTHON RESEARCH STRANGE WORK RATIONALE