Code Monkey home page Code Monkey logo

Comments (7)

gregfitch avatar gregfitch commented on September 25, 2024

Any reason for 'go...' instead of 'goto...'?

from tutor-js.

philschatz avatar philschatz commented on September 25, 2024

Ah, I was wondering what goBack() would turn into. and what would the casing be? (ie gotoCourseHome() or goToCourseHome() )

from tutor-js.

gregfitch avatar gregfitch commented on September 25, 2024

Well, I spend most of my time in Python nowadays, so 'go_to_...' is the norm :)
The latter would be more likely ( http://c2.com/cgi/wiki?LowerCamelCase ).

from tutor-js.

philschatz avatar philschatz commented on September 25, 2024

Are you suggesting special-casing the naming of goBack() or suggesting it should be goToBack()? I updated the Issue body to use goTo*.

Also, any thoughts on the other names?

from tutor-js.

gregfitch avatar gregfitch commented on September 25, 2024

I try to keep a natural language flow in the naming so 'goBack' is fine, except what case does it serve? It seems to be ambiguous in many cases whereas 'goToDashboard' or 'goToHome' make it clear what is expected to happen.

If 'goBack' is there to test the back button and the history, you may want to expand the function text.

from tutor-js.

philschatz avatar philschatz commented on September 25, 2024

It's just to test the "Back to X" button (sometimes it's back to Scores, sometimes it's back to Calendar, depending on where you came from), not the browser back button. So, depending on how you got to the screen, the button goes back to a different place.

From Student Scores:
image

From Calendar Popup:

image

from tutor-js.

philschatz avatar philschatz commented on September 25, 2024

Marking this as complete because several of these method names were added as comments to the helper files

from tutor-js.

Related Issues (20)

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.