6,839 reputation
62743
bio website zopatista.com
location Cambridge, United Kingdom
age 41
visits member for 2 years, 2 months
seen 1 hour ago

Invisible framework coding ninja


10h
comment What UML diagram should be used for modelling permissions/users/files in Linux?
This isn't a poll; explain what else is needed, don't just posit an opinion.
2d
comment Good practice for returns in Python
Cross-posted from Stack Overflow: Good practise for returns in Python
Jul
20
comment Checking that a function is only run from __main__ in Python
The idiomatically correct thing is to not care. Really, why limit those functions like that? It is damn handy to be able to call those functions from a new script that wants to reuse those bits.
Jul
18
comment What to do with obsolete code?
Please summarise your article here; as it stands this answer feels like little more than a spamvertisement for your blog post. Also see the help center on self-promotion.
Jul
9
comment Why do operating systems do low level stuff in C and C++? Why not just C++?
This doesn't anything new to the other answers already posted here.
Jul
6
comment Can a version of Python's shelve module that knows when its entries have been modified be written in any programming language?
@MasonWheeler: mere curiosity makes this too broad, in my opinion. Questions asking for lists of examples do not fit the format of the Q&A model.
Jul
4
comment How can I close my Open Source project and what is required from me in order to make it closed source?
Have you accepted contributions from anyone else to the project? If so, did they give you ownership of their contributions? You can only decide on future licensing of code you yourself own.
Jun
24
comment Using class like an object in Python
Metaclasses are objects too. Did I mention the term everything yet?
Jun
24
comment Using class like an object in Python
What happens is that metaclasses and classes, like functions are callable objects. And when you call them they produce something; in Design Pattern language they are called factories.
Jun
24
comment Using class like an object in Python
No, instances are objects created from classes. Classes are objects too, but created from metaclasses. Functions are objects, methods are objects, files are objects, everything in Python is an object.
Jun
23
comment Object identification in Python
See Python "is" operator behaves unexpectedly with integers; you found a CPython implementation detail.
Jun
4
comment Single python file distribution: module or package?
@DanielSank: The rejection was automatic as I was still editing the post myself. I then reworded the sentence you wanted to add.
Jun
4
comment Single python file distribution: module or package?
No, there is no preferred method.
May
6
comment How to deal with a misnamed function in production code?
@AakashM: I love it how the Wikipedia article now uses both the incorrect and correct spelling throughout that page (even when referring to the object, not the term), with the misspelled version being more prevalent!
May
5
comment Python shelve class rename
@Mayavimmer: you can include the 'alias' in the code that does the shelve refresh; e.g. load everything, save everything again in a script, but include a import mymodule; mymodule.OldName = mymodule.NewName line to inject the alias just for the migration.
May
3
comment How to not let anyone inspect elements of a webpage?
@RanaFaizAhmed: I linked you to a Stack Overflow post.
Apr
19
comment Why is the usage of string keys generally considered to be a bad idea?
This answer doesn't add anything that hasn't already been said in the other answers, which say it better.
Apr
15
comment Is there a purely technical term for 'monkey patching'
All references I can find come from the Ruby community, that blog post being the oldest reference. If that is the source of the idea that monkey patching is derogatory, then he really misunderstood something. And in that context, it was the patching itself that was deemed derogatory; not the term.
Apr
15
comment Is there a purely technical term for 'monkey patching'
A monkey patch is a Guerrilla patch that takes care not to step on the toes of other patches, see plone.org/documentation/glossary/monkeypatch
Apr
15
comment Is there a purely technical term for 'monkey patching'
Only the last part actually applies to the term monkey patching. Which was a joke, based on someone mistakenly hearing Gorilla where Guerrilla was meant. I can assure you emphatically that the term was never meant in any other way than to convey gentleness over brute force. If you read the term as derogatory, that's you bringing in your own context.