Skip to content
/ topix Public

A dull website for adding topics, with upvotes/downvotes, with in-memory data store.

Notifications You must be signed in to change notification settings

mjnovice/topix

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A dull website for adding topics, with upvotes/downvotes, with in-memory data store. Deployed at, https://powerful-refuge-23022.herokuapp.com/

TopicStore: To display top 20 topics, I am using a map to keep track. For storing all the topics I am using a slice analogous to an array. Upon each Upvote/Downvote/Newtopic I check if the map can be updated and do as applicable, thus saving me from sorting the entire slice each time.

Assumptions:

  1. The maximum number of topics that can be created is 2^64 i.e 18446744073709551616, given the machine on which this is hosted has the value of strconv.IntSize == 64.

About

A dull website for adding topics, with upvotes/downvotes, with in-memory data store.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published