amite / js-links Goto Github PK
View Code? Open in Web Editor NEWOpen Source React App for Curating content from Javascripters commmunity daily chat logs
License: MIT License
Open Source React App for Curating content from Javascripters commmunity daily chat logs
License: MIT License
We want to make sure that the best daily content shows up on top anytime someone checks in. The links with the best score will show up on top. This means we have to assign a computed score to each link item that is posted.
So how do we score the best links?
In effect we can say that links decay over time - they have a certain freshness to them. Adding votes adds to their score but only incrementally.
Worth adding this excerpt:
Effects of gravity (G) and time (T)
Gravity and time have a significant impact on the score of an item. Generally these things hold true:
For reference I am also adding the ranking algorithm at the heart of Hacker News:
In Python
def calculate_score(votes, item_hour_age, gravity=1.8):
return (votes - 1) / pow((item_hour_age+2), gravity)
In PHP
function calculate_score($votes, $item_hour_age, $gravity=1.8) {
return ($votes - 1) / pow(($item_hour_age+2), $gravity);
}
From the excerpt again:
Score = (P-1) / (T+2)^G
where,
P = points of an item (and -1 is to negate submitters vote)
T = time since submission (in hours)
G = Gravity, defaults to 1.8 in news.arc
more on the HN algo here: https://medium.com/hacking-and-gonzo/how-reddit-ranking-algorithms-work-ef111e33d0d9
I forked and cloned the repo and ran npm install
it gives me following error: npm WARN enoent ENOENT: no such file or directory
. package.json is missing.
Can we have home page with header and footer including some basic 2-3 navigation links in boilerplate? Say-Home, Contact and About page.
PostCss API seems very different from what beginners are used to. Will it be better if we used just css or scss? What do you think guys?
From my standpoint, I don't see much relational data happening in this app. When I see a link, I see unstructured data like title, description, date of creation, tags etc attached to the single input object.
So I was thinking of using a cloud based GraphQL service like https://www.graph.cool/ to host the data for our project. Yes. This is just like Parse or Firebase.
I will publish a small primer on GraphQL and what it does exactly. Rest assured it has fantastic integration with the React community.
What do you think about this choice? Would anyone else like to handle data in a different way?
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.