Mike Dominice
Member since Jan 28, 2011
- Profile: /members/7687-mike-dominice.htm
- URL: http://www.mikedominice.com
- Comments: 6
Recent Blog Comments By Mike Dominice
-
Object Calisthenics In JavaScript - My First Attempt
Posted on May 7, 2012 at 3:02 PM
One thing I'm finding very interesting through these posts are the differences between JavaScript and other, more object-oriented languages is that these rules seem to apply in different ways. For instance, a Java/C/C++ array has a lot less "brains" than a JavaScript array; in fact, the J... read more »
-
Appending An Array Of jQuery Objects To The DOM
Posted on Oct 7, 2011 at 1:35 PM
And wow, I guess I went a little overboard with the markup in the above comment. My apologies :-)... read more »
-
Appending An Array Of jQuery Objects To The DOM
Posted on Oct 7, 2011 at 1:34 PM
I've always found that jQuery's appendTo() serves me better than a plugin would: $(buffer).appendTo('ul.friends'); Usually, I'm creating the array and appending it to another element, so the appendTo() seems to match the general cases. Of course, since I've learned how to us... read more »
-
Seven Languages In Seven Weeks By Bruce Tate - What An Adventure
Posted on Jan 28, 2011 at 4:05 PM
To be elegant, that is.... read more »
-
Seven Languages In Seven Weeks By Bruce Tate - What An Adventure
Posted on Jan 28, 2011 at 4:05 PM
@Ben The whitespace in Python trips a lot of people up, and rubs others in a really bad way. However, one thing it's turned me to do is really evaluate my coding style and realize that if I end up with a ton of nested looping / control structures, there's probably a more elegant solution. In Pytho... read more »
-
Seven Languages In Seven Weeks By Bruce Tate - What An Adventure
Posted on Jan 28, 2011 at 11:27 AM
Python: names = ["alice", "bob", "charlie"] def nameAdj(nameList, adj): return ["%s is so %s" % (name, adj) for name in nameList] newNames = nameAdj(names, "weird") print newNames... read more »