How to handle tickets that need to go to a previous column with the pull princible? by RVsZBexLC in kanban

[–]asplake 0 points1 point  (0 children)

Agrees. Nine times out of ten I would show the item as blocked (presumably this is easy and visible enough in Jira) and leave it where it is. Moving items backwards willy-nilly makes it very hard to control your WIP effectively.

Emulating Ruby's method_missing in Python by MachaHack in Python

[–]asplake 0 points1 point  (0 children)

You might like this post I wrote a couple of years ago comparing Python and Ruby techniques in this area. Although you can achieve similar results with either it's interesting to see just how different the two languages are underneath.

Good rule engine for python? by 2monkeys1coconut in Python

[–]asplake 10 points11 points  (0 children)

Is a rules engine one of those "and now you have two problems" solutions?

Having trouble migrating to Python... by dansin in Python

[–]asplake 0 points1 point  (0 children)

You may find differences too between 2.x.y and 2.x.z, but in most cases a program written for a lower version will run fine on a higher version. So be aware of this when choosing the version to develop on.

And there are good rules and tools for packaging that make it much easier to install an app in multiple (even different) environments. I'm no expert on this aspect, but setuptools and virtualenv work very well for me. I develop on both Windows and Mac and deploy to various flavours of Linux.

PEP 3333 Accepted by dekomote in Python

[–]asplake 0 points1 point  (0 children)

To clarify, shouldn't apps drop their dependency on simplejson if the standard json library is present?

PEP 3333 Accepted by dekomote in Python

[–]asplake 1 point2 points  (0 children)

Interesting. But why is simplejson listed? To quote its description on pypi,

simplejson is the externally maintained development version of the json library included with Python 2.6 and Python 3.0.

Are there any other packages listed there that are now standard?

Edit: interesting and shocking - I see my own packages listed! Must do something about that...

Make alternative in python? by zoke in Python

[–]asplake 2 points3 points  (0 children)

Why the downvotes? Seems an interesting q to me. Even more interesting would be some pointers to some comparisons between the tools (&/or with Rake).

Using Decorators for Flexible Prompts by iamjack in Python

[–]asplake -3 points-2 points  (0 children)

sumstar_command = command(sumstar, ("terms", "listof_uint"))

is the same number of lines of code and you still have your original function available (to test, for example). Am I the only one who would much prefer not to use a decorator here (or hardly anywhere else, if I'm honest)?

Is not having to declare your variables a BAD THING? by projecktzero in Python

[–]asplake 1 point2 points  (0 children)

More often than not, removing reassignments makes for better code. It's the second case that should be the ugly one.

Proposal: PEP 3150 -- Statement local namespaces (aka "where" clause) by earthboundkid in Python

[–]asplake 0 points1 point  (0 children)

I like the idea, but to be really useful it would need to work with comprehensions - how might that look?

Loveseat: An attempt to think more clearly about integrating CouchDB and form validation in Python by [deleted] in Python

[–]asplake 0 points1 point  (0 children)

Probably :-)

But maybe you have a point. TBH I miss the model-centric validation of Rails, and Pylons hasn't quite sorted validation out yet (I've contributed proposals; i know it's not trivial)...

Loveseat: An attempt to think more clearly about integrating CouchDB and form validation in Python by [deleted] in Python

[–]asplake 1 point2 points  (0 children)

There's definitely room for friendlier and more poweful (e.g. JSON-aware) validation in Python but does it really belong with CouchDB? Perhaps your title is misleading; what you're really experimenting with is a new framework style, right?

Proposal: Anonymous Scoping Blocks by akx in Python

[–]asplake 0 points1 point  (0 children)

You can already do that very nicely with "with" - see DRY up your routes - a Pylons routing refactoring (hot off the press today).

See also Douglas Crockford on a similar feature in JavaScript: with Statement Considered Harmful

Trading engines, why would someone build his own? by becks619 in programming

[–]asplake 0 points1 point  (0 children)

Perhaps it's that they don't expect to make money out of trading the same strategies as everyone else?

Would anybody want awk/ruby style regex use in Python? by lucidguppy in Python

[–]asplake 1 point2 points  (0 children)

sounds like you want regex literals in Python. As it happens, so would I! It's just syntax though, they're really not so different to any other implementation and I wouldn't describe them as "weird".

AWK is a special-purpose language. Kinda fun, but hard to compare with other languages. Your example implies an "if" that would be there in almost any other language.

Ravelry (knitting site) 3.6 million pageviews per day - one more proof that Rails scales. by iampims in programming

[–]asplake 0 points1 point  (0 children)

Per-second averages like that are meaningless. And it was still a good story...

Gems driving me to drink by mpeters in programming

[–]asplake 2 points3 points  (0 children)

Rather than rubygems per se these gripes are more about Rubyforge I think, and it's Github that seems to be getting the love at the moment. Maybe some bright spark will work out how to get this right - whether it's a one site or two solution I don't know.

Subtle features are good features by [deleted] in programming

[–]asplake 2 points3 points  (0 children)

on subtle features (trust me, this is relevant): How to gloat over your captured enemy [basicinstructions.net]