How would you implement a feature in Ruby or Swift depending on whether the role is backend or mobile?