Better HN
topnewbestaskshowjobs
Log inSign up

bryancinman

5 karma · joined Dec 11, 2012 (13y ago) · 3 submissions

Submissions

comment 12y ago · link · parent

Not sure if that would work since most "duplicate" questions are similar but not identical. Therefore an answer responding to the duplicates' specific use-case would be confusing in the context of the original question. Perhaps include the duplicate question in the answer when it's merged. Hidden behind a link e.g "This answer was posted in response to a duplicate question" and a link to view the content of the duplicate question.

comment 13y ago · link · parent

It could be considered bad practice in some cases. But having the template also act as a controller gives theme developers more freedom to make something outside the golden path.

I doubt Wordpress would be used for anything other than simple blogs if it weren't for querying from templates.

Obviously there is the risk of theme developers loading tons of queries from a template but I think trying to prevent that would be premature optimization. The benefit of greater customizability outweighs the potential performance hit IMO.