T
T
tendkuh2019-05-29 00:24:18
ruby
tendkuh, 2019-05-29 00:24:18

Should everyone learn Ruby for proper MVC?

Should beginners learn ruby ​​to properly understand MVC?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
E
Evgeny Romashkan, 2019-05-29
@EvgeniiR

And is it worth the time spent?
It's easier to go through the materials here - https://heim.ifi.uio.no/~trygver/themes/mvc/mvc-in...
What is often called MVC on the web today is not the original MVC. In fact, another buzzword, like a thread of OOP or rest, which they call everything in a row to make it sound more solid
. Badoo also had an article on the blog how they did the original mvc.

A
Andrew, 2017-06-11
@lemonlimelike

function toggleFullScreen() {
      if (!document.fullscreenElement &&    // alternative standard method
          !document.mozFullScreenElement && !document.webkitFullscreenElement) {  // current working methods
        if (document.documentElement.requestFullscreen) {
          document.documentElement.requestFullscreen();
        } else if (document.documentElement.mozRequestFullScreen) {
          document.documentElement.mozRequestFullScreen();
        } else if (document.documentElement.webkitRequestFullscreen) {
          document.documentElement.webkitRequestFullscreen(Element.ALLOW_KEYBOARD_INPUT);
        }
        return true
      } else {
        if (document.cancelFullScreen) {
          document.cancelFullScreen();
        } else if (document.mozCancelFullScreen) {
          document.mozCancelFullScreen();
        } else if (document.webkitCancelFullScreen) {
          document.webkitCancelFullScreen();
        }
        return false
      }
    }

toggleFullScreen() && document.body.style.display = ('none');

or
function toggleFullScreen() {
      if (!document.fullscreenElement &&    // alternative standard method
          !document.mozFullScreenElement && !document.webkitFullscreenElement) {  // current working methods
        if (document.documentElement.requestFullscreen) {
          document.documentElement.requestFullscreen() && return true;
        } else if (document.documentElement.mozRequestFullScreen) {
          document.documentElement.mozRequestFullScreen() && return true;
        } else if (document.documentElement.webkitRequestFullscreen) {
          document.documentElement.webkitRequestFullscreen(Element.ALLOW_KEYBOARD_INPUT) && return true;
        }
      } else {
        if (document.cancelFullScreen) {
          document.cancelFullScreen() && return false;
        } else if (document.mozCancelFullScreen) {
          document.mozCancelFullScreen() && return false;
        } else if (document.webkitCancelFullScreen) {
          document.webkitCancelFullScreen() && return false
        }
      }
    }

toggleFullScreen() && document.body.style.display = ('none');

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question