1,751 karma · joined Mar 26, 2008 (18y ago) · 893 submissions
shaunxcode@gmail.com
comment 16y ago · link · parent
comment 16y ago · link · parent
(map-dict
[k v | tag :li (tag :strong k) (join "," (map [get :name _] v))]
(group-by :color (sql-query "select * from favcolor order by color, name")))comment 16y ago · link · parent
Also http://commonphp.blogspot.com is where I write about it.
comment 16y ago · link · parent
comment 16y ago · link · parent
It would be interesting to see a smalltalk w/o inheritance that utilized composition instead (does this already exist?) which accomplishes everything the current object hierarchy does.
comment 16y ago · link · parent
I am not sure how mag cloud works (print on demand or do they actually create the "plates" for offset printing and thus unique issues are not doable?) - but if it is print on demand could you not have a button which says "Add comments to this issue" which would collate and generate the pdf then and there by the users own interaction thus side-stepping the legal issues?
comment 16y ago · link · parent
comment 16y ago · link · parent
function tag(name) {
return $('<' + name +'></' + name + '>');
}
tag('div').append(
tag('ul').append(
tag('li').html('a'),
tag('li').html('b')))
which would become: ['div',
['ul',
['li', 'a'],
['li', 'b']]]
That seems substantially nicer to look at - but lacks the ability to easily add event handlers etc. that I get w/ the jquery approach. There is no reason it could not be inter-operable though: ['div', tag('span').html('click me').click(function(){alert('clicked')})];comment 16y ago · link · parent
comment 16y ago · link · parent
comment 16y ago · link · parent
comment 16y ago · link · parent
comment 16y ago · link · parent
comment 16y ago · link · parent
comment 16y ago · link · parent