De-Coder’s Ring

fauie.com: eclectic technology, gentleman farming and careers

Author: chris fauerbach

Python Callback Function Declaration / Definition

I’m working on a metrobus based project, and was curious how to define a flexible callback method that had a required parameter, and other keyword arguments.   I have used *args and **kwargs before, but wanted to really experiment on what I could do with them.   For metrobus, I’m only going to ‘require’ a ‘message’ parameter (single parameter callback function), but, I’ll have to use **kwargs on my declaration just so I can be a little more picky about what I receive each time.   Check out some experimentation:

 

The Inevitable Decline of Your Software… and how to prevent it, from inception to delivery

Thanks for putting up with my silence!    I have a few new projects in the works, and it’s hampered my blogging.   I think that will be OK in the end.

Throughout my software engineering career, I’ve seen a lot of bad and some good.  Some of the groups I work with now do amazing work and have inspired me to keep writing a book I started a long time ago.   I’ve updated it significantly and will continue to do so.     I judge I’ve knocked out about 50% of the first draft and wanted to see judge interest to see where I need to prioritize writing of it.

Leanpub allows me to write it and sell it at the same time.   I’m putting out a big discount code here, in an effort to get some feedback.     Check it out!

http://leanpub.com/inevitabledeclineofsoftware/c/Z6fFzHxT2IHb

I hope the coupon limit gets hit quickly.  If you miss it, shoot me a note and I’ll make another one!

 

Second plug..     we’ve started a really fun podcast:

https://goaskyourdadpodcast.com

Direct link for itunes/IOS podcast app!

https://pcr.apple.com/id1381366968

 

Thanks!  Would love to hear some feedback.

 

© 2018 De-Coder’s Ring

Theme by Anders NorenUp ↑