Hi,
This question concerns best practices.
If I want to set a field of a node in code I could write something like:
$node->field_somefield['und'][0]['value'] = "value";
But 1) it seems unnecessarily long, and 2) If the locales module is enabled, this code will break.
Also, if I want to access the field, I could do
$value = $node->field_somefield['und'][0]['value']
..which has the same drawbacks as above. I've started to do this instead: