私はこのコードブロックを持っていますが、特に長くて理解するのが難しいと思います.コールスタックは、暗黙的に追加された暗黙的な関数とパラメーターでいっぱいです. つまり、each で呼び出される関数を each 自体から分離して、コードを明確にしたいと考えています。
その例を見てください:
$(xml).find('group').each(function () {
var groupName = $(this).attr('name');
// There is here around 100 lines of codes I would like to split in
// at least five functions, And I'm sure it is possible to use named functions
// instead of implicit ones, no ?