Screen Too Small

This course material requires a larger screen to properly display the terminal and editor interfaces.

Please use a tablet, laptop, or desktop computer for the best learning experience.

You can continue browsing, but the experience will be significantly limited.

Fix the New Hire’s JavaScript‑y Methods

We just hired a new developer coming from JavaScript. Even though they see that method names are underscored in Ruby, they can’t shake their camelCase habit. Let’s clean up the file and make it idiomatic Ruby!

Starting Text

vim@sandbox: ~/start.txt
vim
class UserService def getUserData() # fetch user data end def sendEmailToClient() # email logic end def logErrorMessage() # logging end def handlePaymentUpdate() # payments end def fetchOrderHistory() # order history end def setUserRole(role) # set the user role end end

Expected Output

vim@sandbox: ~/expected.txt
vim
class UserService def get_user_data # fetch user data end def send_email_to_client # email logic end def log_error_message # logging end def handle_payment_update # payments end def fetch_order_history # order history end def set_user_role(role) # set the user role end end

Hold on, cowboy

You gotta sign up to view challenges

New challenges appear every week. They're fun, and insightful

Sign up or sign in now!