In Star Trek (2009) there is a scene in which Kirk is accused of academic misconduct by Spock. After Spock's speech, Kirk remarks quietly to McCoy something about that "pointy eared bastard". Now, consider the context of the Star Trek Universe. The whole of Earth has come together in a peace under a single world Government. This presumes that our present day prejudices and racial tensions have been eradicated. Likewise, through the Federation, Humanity has united in peace with a whole range of other races [feel free to substitute 'species' for 'race' wherever applicable.]. It would seem to me that derogatory racial epithets would be strongly frowned upon, not just within Starfleet but within the general Earth population of the time.
Consider how Kirk's "pointy eared bastard" comment echoes an offensive slur used against people of Asian descent (in our present time). It seems to me that in the context of a unified Federation, Kirk's comment would be no less offensive than we would consider the slur against Asian people to be.
If this is true, should Kirk's comment be taken to show that he, at that time in the movie, is not just an impetuous, arrogant young man, but also a racist who hasn't yet grasped some fundamentally important concepts underpinning the Federation and hence Starfleet? Was this line in the movie supposed to convey this, or was it just a throwaway line put in there without the writers realizing the racial slur they were echoing?