gotchas

Debugging Multiprocess Programs

What would be the best way to debug multi-process code (i.e. processes where parent process spawns multiple child daemon processes). So far I have been doing - Make sure the program runs fine in single process mode. After that turn on logging mechanism & try to figure out what might be going on in the logs etc... Are there any bette...

Side Effects of running the JVM in debug mode

I'd like to realease a Java application in debug mode to allow for easier debugging when random or hard to reproduce problems occur on the customer side. However, I want to get a heads up on potential side effects of doing this? From the Java HotSpot Documentation it seems that there should be no performance penalty. From the link ...

Javascript/jQuery "Gotchas"

What are some of the common Javascript and/or jQuery "gotchas" that you have seen or been tripped up by? As an example, it was pointed out to me this morning that you have to be careful with the radix when doing parseInt(), because if your string starts with a 0, the radix will default to 8. ...

What is the difference between None check and var or default syntax in Python?

I noted this syntax listed as a gotchya but with no explanation as to why: def func(x=None): #good if x == None: x = [] #bad x = x or [] In what ways can this be a gotchya? ...