Here's a project for anyone who likes editing tag wikis.
PHP and JavaScript have a lot of the same standard methods for dealing with arrays such as map
, filter
, reduce
, splice
, etc. In PHP they are functions which take the array as an argument and in JavaScript they are instance methods on the array object prototype. Those sorts of function probably appear in other languages too.
The tags that exist for these array functions are handled very inconsistently. Some mention JavaScript, some mention PHP, and some mention that the tag is intended to be language agnostic. Ideally all of the tags would be language agnostic and include examples for multiple languages. The foreach
wiki is a good example.
There is a tag array.prototype.map for the JavaScript function which is the only tag following the array.prototype
naming convention. It should be merged with array-map.
There are a lot of tags that could use wiki improvements, including, but not limited to, array-difference array-filter array-merge array-push array-reduce array-reverse array-splice
Some of the PHP functions don't have a direct JavaScript equivalent, but they still describe the general idea that you could execute in any language: array-intersect array-sum array-unique
On the other hand, some of the PHP terminology is unique: array-column array-combine array-flip array-key-exists array-walk
reduce
function, yet its tag wiki mentions apache hadoop. But, there is an even bigger tag for that: mapreduce. What a mess.