title: Function name convention for "convert foo to bar"
body: <p>I have a very common pattern of "given a <code>Foo</code>, return a <code>Bar</code>," for example, given a <code>user_id</code>, return a <code>User</code>.</p>
  
  <p>Is there a conventional naming pattern for these sorts of functions?  Following <a href="http://www.joelonsoftware.com/articles/Wrong.html" rel="noreferrer">Joel on Software</a>, I've personally used a lot of <code>bar_from_foo()</code>, but I rarely see other people do this and it quickly becomes verbose, e.g.</p>
  
  <pre><code>widgets = user_widgets_from_user(user_from_param_map(params))
  </code></pre>
  
  <p>Is there a conventional way to name, or namespace (e.g. <code>User.from_map()</code>) in any of the popular languages out there?  I am particularly interested in Python but any language you can think of would br useful.</p>