Some questions about how DEV.to works

twitter logo github logo ・1 min read

There are a couple of things I've been wondering about how the site works. I've been digging through the source code, but I've never learned to work with rails, and so it's not always clear how different parts of the codebase work together.

  • How are featured articles chosen
  • When does the featured article change? Sometimes, it seems to stay the same for a while, and sometimes it seems to change very quickly.
  • How is the main feed generated that a user sees on the home page? Some articles seem to linger on the top of my feet for quite long.
  • How often is new code deployed to production?
twitter logo DISCUSS (2)
markdown guide
 
  • Featured post is chosen based on overall hotness_score among post with cover images which is positive reactions and time and some other signals.
  • The top post shows up around 40% of the time, but others in the top eight are rotated in.
  • Home feed shows recent posts from users you follow, and otherwise "hot" posts from tags you follow. It's possible that some things linger too long relating to the tuning of hotness score. The featured post is shared amongst everyone, the rest are tailored based on follows. It's possible that the featured post could also be done that way in the future too.
  • New code is deployed a few times a day, but not necessarily to the home feed. We're a small team, it can sometimes be weeks between deployments that would affect the feed.
 

Thanks for taking the time to answer these :). I've taken a look at the code in black_box.rb, and this makes it a lot clearer. Is the code for the lambda functions available as well somewhere?

Classic DEV Post from Dec 28 '18

10 lessons from a software engineer & freelancer

10 lessons from a software developer & freelancer

Frederik 👨‍💻➡️🌐 Creemers profile image
I'm never sure what to put in a bio. If there's anything you want to know, don't be afraid to ask!

😓 Sore eyes?

dev.to now has a dark version (in public beta).

Go to the "misc" section of your settings and select night theme ❤️