On splitting strings

Splitting strings is cool, but most languages have their subtle differences in how it is done. The three contenders are JavaScript, Python and Ruby. As an example, suppose you're getting a string in the form "type_role_name" and you want to split it into type, role, name. The little twist here is that 'name' can also … Continue reading On splitting strings