jtushman.github.io
Boston Python | Monarch and Bouncer Notes - tushman.io
http://jtushman.github.io/blog/2014/07/22/boston-python-|-monarch-and-bouncer-notes
The musings of an insecure technologist. Boston Python Monarch and Bouncer Notes. The Boston Python group was nice enough to have me speak about things I built at work. This was my presentation:. View this presentation on Blazon. Posted by Jonathan Tushman. Laquo; Module Properties The Proxy Pattern. Explaining bouncer and method decorators ». I am a pragmatic technologist ( bio. I work at ZEFR. I love to build things. And playing board games. I read the Economist. Follow me if you like @tushman.
jtushman.github.io
Python | Multiprocessing and Interrupts - tushman.io
http://jtushman.github.io/blog/2014/01/14/python-|-multiprocessing-and-interrupts
The musings of an insecure technologist. Python Multiprocessing and Interrupts. If handling interrupts is important, use a SyncManager (not multiprocessing.Manager) to handle shared state. I just hit the learning curve pretty hard with python’s multiprocessing. Mdash; but I came through it and wanted to share my learnings. The bulk of this post is going to be around using the multiprocess library, but a few preliminary thoughts:. Multiprocessing and Threading is hard (especially in python):. Axiom One: A...
jtushman.github.io
Shuffling Team Seating - tushman.io
http://jtushman.github.io/blog/2013/10/10/shuffling-team-seating
The musings of an insecure technologist. I think it is good to shuffle the team around. Helps with cross-pollination, and keeps the team area neat. Here is the function that we use to randomize our team making sure that you do not sit next to someone you are already sitting next to. Note: Only works with teams greater than four. Assign each space in your office an number, the run the following. The first person in the outputted array goes in space 1, and so on. Find position in inital list. I work at ZEFR.
jtushman.github.io
Explaining bouncer and method_decorators - tushman.io
http://jtushman.github.io/blog/2014/07/23/explaining-bouncer-and-method-decorators
The musings of an insecure technologist. Explaining Bouncer and Method decorators. Thank you Boston Python for the opportunity to present at “July Presentation Night: What I Built at Work”. I would like to elaborate on one of the questions asked during the Q&A after my presentation. It was a question about bouncer. When I shared the following code:. Someone asked: what is. It was a really good question and deserved a better explanation. The first thing to consider is. This is a method decorator. Want to ...
jtushman.github.io
Parallelize your lettuce tests to win friends and influence others - tushman.io
http://jtushman.github.io/blog/2014/01/24/parallelize-your-lettuce-tests-to-win-friends-and-influence-others
The musings of an insecure technologist. Parallelize Your Lettuce Tests to Win Friends and Influence Others. I forked the lettuce package to use multiprocessing, tests run more then 4x faster on my MBP. I am a fan of Gabriel Falcão’s lettuce. Behavior-Driven Development (BDD) tool. We have been using it on my team for 6 months now. Recently our test suite completion time has crossed the 10 minute line, which had a bunch of negative effects, as you can imagine:. People writing less tests. Is the same verb...
jtushman.github.io
Describing Descriptors Descriptively - tushman.io
http://jtushman.github.io/blog/2014/08/15/describing-descriptors-descriptively
The musings of an insecure technologist. Is it ironic that the documentation for descriptors is not very descriptive. Descriptors are one of my favorite Python features — but it took me too long to discover them. The documentation and tutorials that I found were too complex for me. So I would like to offer a different approach, a. A Problem that Descriptors Can Solve. Solution to the Problem. Reflection on the Code, and explanation on how we used Descriptors. A Problem that Descriptors Can Solve. And now...
jtushman.github.io
Dict Digger - tushman.io
http://jtushman.github.io/blog/2013/11/06/dict-digger
The musings of an insecure technologist. In the age or SaaS, and working with 3rd part APIs developers often have to navigate a complex object (arrays of hashes of arrays or hashes) (I am looking at you Adwords API). I wanted a nice way to avoid doing None checks and does this key exist over and over again. So I made a (very) simple utility to help with it. And works like this. Pip install dict digger. Does not through an error, just returns None. But if you like. Also support complex objects so .
jtushman.github.io
PyCon Proposal - Pragmatic Concurrency - tushman.io
http://jtushman.github.io/blog/2014/09/15/pycon-proposal-pragmatic-concurrency
The musings of an insecure technologist. PyCon Proposal - Pragmatic Concurrency. Hmmmm how can I make this faster? I have idea, I’ll just run it in parallel. Luckily I am working with Python, and we have PEP20:. There should be one— and preferably only one —obvious way to do it. So what is the obvious way to do it:. There are 5 different popular packages to do this:. Concurrency is hard. As a lay-developer there is a lot of ramping up to figure out how to solve what would seem like simple problems:.
jtushman.github.io
Blog Archive - tushman.io
http://jtushman.github.io/blog/archives
The musings of an insecure technologist. PyCon Proposal - Pragmatic Concurrency. PyCon Proposal - Pragmatic Behavior Driven Development. Explaining bouncer and method decorators. Boston Python Monarch and Bouncer Notes. Module Properties The Proxy Pattern. Parallelize your lettuce tests to win friends and influence others. Posted in lettuce,. Python Multiprocessing and Interrupts. How to Give Constructive Feedback To An Engineer. Sharing Code Across Applications with Python. Posted in flask, ebs.
SOCIAL ENGAGEMENT