Front End, Back End

Out of context: Reply #19

  • Started
  • Last post
  • 22 Responses
  • orrinward20

    Frontend = Browser/DOM work and manipulating content delivered by API's and DB.

    Backend = Creating the API's, handling DB requests and creating helper methods for frontend to use.

    I'm a frontend dev working in Ruby on Rails. I handle all the views/partials and frontend assets (JS, HAML, SCSS). I also perform basic backend things like creating routes and very basic controllers.

    My backend team support be my doing the complex controllers, and creating helper methods to make my frontend neater and more DRY.
    ----
    Where I would write in the view:
    - if user.role == "administrator"
    = render "admin_menu"
    - else if user.role == "moderator"
    = render "moderator_menu"
    - else
    = render "default_menu"
    ----
    My backend guys would then convert this into a helper method, so my frontend is simply:

    = render_user_menu

View thread