Reputation
8,924
Top tag
Next privilege 10,000 Rep.
Access moderator tools
Badges
7 33 45
Newest
 Guru
Impact
~247k people reached

Nov
20
comment Naming self or this something else, a good idea?
@vivek: you are taking my comment out of context here.
Jun
9
comment Python replace function for classes? Like namedtuple _replace?
@clay: but that assumes that any class is like any other. That's hardly ever true.
Apr
21
comment Is this a race condition?
A race condition is a situation where parallel processes can produce different outcomes depending on how they are interleaved. Who's last to the post is only part of that process.
Mar
29
comment How come javascript, being a prototype based language, doesn't have an easy way to access the prototype?
You are not answering the question however; which is why JS didn't have that right from the start. Eric's answer addresses that, including when <object>.constructor.prototype is available. And unless your post adds significantly to answering the why question, I don't think we need more answers here.
Mar
25
comment How do regular expressions actually work?
Those that say that regular expressions are not fast are qualifying their answer. Like Regular expressions are not always faster than a simple search. It all depends on context. Then go on to actually answer the question posted. If you have seem to have a specific situation; you could talk about that specific situation (provided it is novel and adds something new to the context here), but take into account that this question has already been thoroughly answered. 7 answers is quite enough.
Mar
20
comment Python, namespace vs module with underscores
So you identified several very specific issues that limit how you can use namespaces. I never ran into the pip issue (I never install packages as editable with pip as I use buildout for that usecase). Don't use a shared namespace in that case, you are not forced to. That has little to do with performance however.
Mar
20
comment Python, namespace vs module with underscores
So? That doesn't make a difference to how you import them.
Mar
20
comment Python, namespace vs module with underscores
Not sure what you mean by but on pypi, independent packages are saved in different location.. Can you please elaborate on that?
Mar
18
comment Ordering of methods in class
There are no short-cuts. Use what you feel aids reading comprehension.
Mar
15
comment Most MVC-strict php framework
I understand this post is year old, which is ironically the reason I am posting this response. The question is actually now considered off-topic and I have voted to close it as such. One of the reasons that we now consider such posts as off-topic is precisely because the information is outdated so easily.
Mar
14
comment Is modifying an object's __dict__ to set its properties considered Pythonic?
@skyler: note that that only mentions the module namespace. The globals() function returns the same namespace, and there are usually better ways to solve problems than setting globals dynamically, hence the warning.
Feb
22
comment Why don't terminals support standard keyboard shortcuts?
The OS X terminal conforms to the readline standard used in just about all POSIX shells, which is based on Emacs line editing commands. Windows is just being Windows in that it marches to its own beat and doesn't think a console is worth having proper keyboard shortcuts.
Feb
21
comment How does the Zope Component Architecture (ZCA) relate to Service Component Architecture (SCA)?
Plone is a huge project that's built on top of Zope and heavily relies on the ZCA. Pyramid hides their use of the ZCA somewhat; configurations mostly happen transparently.
Feb
21
comment How does the Zope Component Architecture (ZCA) relate to Service Component Architecture (SCA)?
I'm trying to work out a clear way of addressing your question; I think it is mostly a case of giving you a more concrete example. Have you looked at how Plone and Pyramid use the ZCA?
Feb
21
comment How does the Zope Component Architecture (ZCA) relate to Service Component Architecture (SCA)?
I've never used the term SCA in context of the ZCA; a quick glance at the WP description tells me SCA is far higher level (and includes support for the components to be implemented in different languages).
Feb
21
comment Do I have to learn html and javascript to create web applications?
This question already has 10 answers, it didn't need an eleventh one stating the same things in different words. Please don't add answers to questions already thoroughly answered unless you have something completely new to say.
Feb
7
comment When do you use float and when do you use double
This answer doesn't add anything new to the question, and fails to say anything of actual use.
Jan
14
comment In ASP.NET MVC, should the view models have an ID?
This directly contradicts the other answer though, without addressing why you should have an id anyway.
Jan
12
comment When writing object-oriented code, should I always be following a design pattern?
That article was written just yesterday; are you affiliated with the blog at all? If so, please do disclose that affiliation.
Jan
8
comment 'import module' vs. 'from module import function'
Note that I directly address that difference in my answer; there will be a difference between using import sys then using sys.argv thousands of time in a loop vs. from sys import argv then using just argv. But you don't. For things you do just once at the global level of your module, you really should optimise for readability, not microscopic differences in timings.