Giter VIP home page Giter VIP logo

percival's People

Contributors

itsmebriand avatar jaller94 avatar

Watchers

 avatar  avatar

percival's Issues

Discussion: MVC in Views/Launch/ files

As far as I can tell the files in ´Views/Launch/´ don’t follow a strict Model View Controller (MVC) pattern.

It’s loading data (task of a controller), storing it in a global variable ajaxRequests (the model) and writing it into the DOM (task of a view). This all happens in one file and the MVC components are not split into different files or marked by inline comments.

While this is a valid practice, the view code is not clearly separated in M, V, and C.
Furthermore, MVC wants data binding. This requires that the view observes the model for changes and updates itself when new data becomes available.

I see that you mainly regard the backend code to follow the MVC pattern. Is your front end code deliberately exempt from this?

Question: Why prevent the header from reloading the Home page?

https://github.com/0c370t/Percival/blob/d71d260e780f7b7396a2a93ea7f8c7518a57db55/Views/Shared/_Layout.cshtml#L30-L32

You chose to prevent users from reloading the Home page by clicking on the header.
While you documented what this code does, it would be valuable to know why the decision was made.
I don’t understand why the functionality of the header should differ on the Home page, if users are not losing any input data because of this.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.