These are chat archives for FreeCodeCamp/DataScience
discussion on how we can use statistical methods to measure and improve the efficacy of http://freeCodeCamp.com
@evaristoc for tracking the usage of a particular function or functionality for working on issue based on the priority.
it's for a project.
@abhisekp interesting question...
If the function is called after user interaction with a front-end resource, I think GA can help as it has event-driven capabilities. Eg. we have a counter implemented in FCC implemented with GA to capture the number of times someone tries to finish a challenge. Google people are making GA available at client as well as at server but for them client interaction is the most important aspect. If your counting is related to user interfaces, GA could be an option. Let me know if you need help with this.
If the evaluation of the function call is not directly related to an event or user interaction, I suspect you may need another type of library. I don't know any as I haven't tried this before. I suspect making a customised implementation could be the way to go: what about implementing a class, eg. a decorator, to count when functions are called?
Anyway: if you find a solution, can you please let us know here?
countingmodule but it passes a count as 1st param. Btw, This is for a CLI project. So e.g. when someone tries to do something using the executable, internally, various functions are executed. So a module similar to
measuredwhich would track various aspects of the app (my primary target is just function calls and functionality usuage frequency like WebStorm or any of the Jetbrains IDEs does). Then upload the usage stats to GA or any other meters/measuring free services.
To store into GA better to use the GA tag. You can load files but that could be painstaking and not what you want. You will have to create a programmable logic to set the GA tag event tracker to capture information about function names and counting values. You can use FCC implementation as an example. However, the event tracker imposes several limits, like for example the number of events that can be collected per session during certain period of time, implying you will need to set your tool in terms of GA capabilities and make conclusions based on those limits. GA reports may disagree with your totals, only because the goals of the tools are not the same and therefore the reported values are based on different assumptions and areas of interest.
I suggest to read GA online documentation.
There are things about your project that make me feel GA is not what you are looking for... It seems to me that your project is more about better debugging, efficiency and code optimisation, not just focused on front-end optimisation and conversion analysis which is where GA is used most of the time. IMO log files, or even better a DB, could be more suitable, but you will have to face the issues of handling sessions and IPs (not recommended!!!!) if you want to make valuable aggregate stats per different types of users.
IN CASE you don't find a better option I would suggest you to understand the differences between both tools and make conclusions based on their capabilities.
abhisekp sends brownie points to @evaristoc :sparkles: :thumbsup: :sparkles:
DSR (DataScience Room) is an effort to gather campers of all levels and specializations willing to engage in discussion, collaboration and practice of data-related projects with focus on JS and FCC.
Tentative DSR site: http://evaristoc.github.io/FreeCodeCamp_DSR/
People recommended...: http://www.gapminder.org/world, Hans Rolling work
For those who have a certain feeling about maths, I think I would recommend to watch the Erdös documentary using the link provided by @samosale. I liked it...
That... and Deadpool: sort of Blockbuster a la Tarantino. Not fan of blockbusters myself but the direction of the film and the dialogs are outstanding. For this one better to go to the cinema!!
Ok, People: Stay in touch!
@evaristoc my laugh rung through the entire house when I read Data Science nirvana
I will ascend! ascend! ascend!
roelver sends brownie points to @zcassini and @singaporeclouds and @evaristoc :sparkles: :thumbsup: :sparkles: