jessevdp / magister-tools Goto Github PK
View Code? Open in Web Editor NEW:wrench: Makes getting grades and other data from magister easier.
Home Page: https://git.io/vX4KY
License: MIT License
:wrench: Makes getting grades and other data from magister easier.
Home Page: https://git.io/vX4KY
License: MIT License
Promises are cool! and allow for even cleaner code.
You can simply wrap your existing code in promises if you specifically need promises for certain reasons. There's even cool modules that help you "promisify" all your code. Like promisify-node.
(Just googling "node promise" all or "promisify" will get you the desired results.)
I think it's a more correct name to describe what the function actually does... Since it takes a list of grades as parameter and filters the end/average grades from it, then returns an Object filled with these grades.
Add a settings parameter to the getEndGrades function. This settings object should determine the behavior of the function and/or what the returnObject
looks like.
For instance:
{
full_class_name: true || false // Default false
}
Using the module right now results in quite a lot of code still. The Goal of this module is to write less and do more! That's why I think there should be shortcut functions.
Since the module basically does one thing right now, getting the end/average grades for a specified user I think that's the only shortcut function there needs to be.
All the other functions should still be available because:
Shortcuts are the way to go and will provide extra usability for this module, however, they should be an enhancement to the existing functions and not become the whole module.
fetchEndGrades(magisterlogin, callback[, doFirst])
or
fetchEndGrades(magisterlogin, callback[, settings])
Where settings is the settings object that's currently being passed into the getEndGrades()
function.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.