News for hackers. Stuff that matters.
Re:Programming languages, operating systems, despair and anger by arethuza on Wednesday April 14, 2010 @07:52AM (#1264707)
I was about to write about how horrible that is when I realized that I do that all the time in jQuery:

$("<div>Foo</div>").appendTo(bar)

Re:Programming languages, operating systems, despair and anger by madair on Wednesday April 14, 2010 @10:51AM (#1265053)
That's not the same, $(...) is a method which creates a list. ',' is a string. So actually you're doing exactly the opposite of the python idiom.
Re:Programming languages, operating systems, despair and anger by arethuza on Wednesday April 14, 2010 @11:42AM (#1265186)
Possibly, but that div is a literal chunk of HTML so that's arguably closer to a string than the normal jQuery selectors.