This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-08-27
Channels
- # announcements (10)
- # bangalore-clj (1)
- # beginners (130)
- # calva (8)
- # cider (66)
- # circleci (2)
- # clojure (197)
- # clojure-europe (2)
- # clojure-italy (8)
- # clojure-nl (5)
- # clojure-spec (14)
- # clojure-uk (35)
- # clojurescript (46)
- # code-reviews (5)
- # cursive (4)
- # datomic (88)
- # duct (1)
- # emacs (2)
- # figwheel-main (15)
- # fulcro (20)
- # graalvm (1)
- # graphql (3)
- # jackdaw (2)
- # leiningen (2)
- # off-topic (64)
- # pathom (53)
- # re-frame (52)
- # reagent (12)
- # reitit (43)
- # rewrite-clj (1)
- # shadow-cljs (38)
- # spacemacs (3)
- # sql (17)
- # tools-deps (6)
- # vim (30)
How do you guys visualise your databases? I'm attempting to do some more-complex backend stuff now and I feel like I'm struggling to plan out my databases. Do you guys have like, an algorithm in your had for how you go about designing and connecting your tables?
I like to draw them out on a big piece of paper
and think about each relationship, is it one->one or one->many
I think I tend move from identifying entities to dependent entities
I guess that is the best way, I was just looking up for a nice open source diagram helper but maybe pen and paper is the way forward
ah there’s lots of tools, but I haven’t found anything as good as pen and paper,
I make a lot of revisions in the early stages
I like that notepaper with dots
it is indeed cute
I'm going to try and implement a tag-experience system (imagine reddit upvotes, but there being multiple things you could be upvoted for). Trying to plan it all out 🙂
sounds great 🙂 like a nice thing to plan
drawing the database schema is my favourite bit of any project 😄
because it allows you to truly think about what your project is going to do and it feels good getting it all planned out?
yeah - exactly that
@danieleneal could I ask you to check if these tables (and comments) seem sane and readable from an outsiders perspective? I want to open source this one day so I want to make sure that my train of thought can be followed in my comments. Thinking of reordering the file? https://gist.github.com/Ashe/88157ca7561834042c59c9115f287844
Hey, yep the tables definitely make sense. I’m not 100% sure how some of it works regarding the points/base_value but I think that might be more clear and obvious in context of the running application. I wouldn’t worry about getting the order of the file right - databases tend to get built up over time and many migrations, so I think most devs are used to examining the schema in the database
Thank you for your answer! And okay, the whole thing with the base_value is that if the user's points are dynamically calculated from their posts, the posts need to store the user's point values at the point of posting, thats all 🙂 Otherwise, the post would be getting the user's points constantly, which requires finding the post, which requires finding the users points etc.. Stops the cycle. But the post's true points comes from the points it starts with (base_points) AND any more generated over time etc. Its just a foothold, but thank you for your feedback 🙂