{"comment":{"url":"https://api.github.com/repos/wikimedia/wikipedia-ios/comments/13724140","html_url":"https://github.com/wikimedia/wikipedia-ios/commit/19fec474d467c5dc97a14380724b3ff5f498399c#commitcomment-13724140","id":13724140,"user":{"login":"bgerstle","id":444217,"avatar_url":"https://avatars.githubusercontent.com/u/444217?v=3","gravatar_id":"","url":"https://api.github.com/users/bgerstle","html_url":"https://github.com/bgerstle","followers_url":"https://api.github.com/users/bgerstle/followers","following_url":"https://api.github.com/users/bgerstle/following{/other_user}","gists_url":"https://api.github.com/users/bgerstle/gists{/gist_id}","starred_url":"https://api.github.com/users/bgerstle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bgerstle/subscriptions","organizations_url":"https://api.github.com/users/bgerstle/orgs","repos_url":"https://api.github.com/users/bgerstle/repos","events_url":"https://api.github.com/users/bgerstle/events{/privacy}","received_events_url":"https://api.github.com/users/bgerstle/received_events","type":"User","site_admin":false},"position":15,"line":252,"path":"MediaWikiKit/MediaWikiKit/MWKSection.m","commit_id":"19fec474d467c5dc97a14380724b3ff5f498399c","created_at":"2015-10-12T19:10:46Z","updated_at":"2015-10-12T19:10:46Z","body":"for loops have a place, but simple operations like this are usually better suited to a `map` (or `bk_map:` in ObjC)`. you could also use key value coding: `[textNodes valueForKey:WMF_SAFE_KEYPATH([TFHppleElement new], raw)]`. these styles are preferred since they:\r\n\r\n- doesn't rely on a mutable variable\r\n- can be easily chained/composed\r\n- allows you to return the result directly"}}