#elixir-lang

/

      • tuelz
        heh, tell that to my dev team xD
      • I'm a huge proponent of files/directories making sense for project organization and then only having kye identifiers as module names, but it's all preference
      • iAmerikan has quit
      • jeffweiss joined the channel
      • Ryanar joined the channel
      • asonge
        tuelz: yeah, you can't "break the rules" all that much, imho.
      • dimitarvp has quit
      • dvim has quit
      • ssswitch joined the channel
      • DeadTrickster has quit
      • DeadTrickster joined the channel
      • squallstter joined the channel
      • runawayfive joined the channel
      • nomicflux joined the channel
      • tonispax_ joined the channel
      • lexmag has quit
      • alexband has quit
      • alexband joined the channel
      • tonispa has quit
      • alexband has quit
      • alexband joined the channel
      • danieli_ is now known as danieli
      • danieli has quit
      • danieli joined the channel
      • griffinmb has quit
      • karreiro is now known as karreiro_afk
      • cagomez has quit
      • cagomez joined the channel
      • cagomez has quit
      • starbelly joined the channel
      • Arkantos joined the channel
      • starbelly has quit
      • jerel joined the channel
      • starbelly joined the channel
      • starbelly has quit
      • starbelly joined the channel
      • griffinmb joined the channel
      • pera has quit
      • jerel has quit
      • starbelly
        :wave
      • iFire
        :sparkle
      • karreiro_afk has quit
      • tomterl has quit
      • refriedchicken joined the channel
      • tomterl joined the channel
      • griffinmb has quit
      • icecreamcohen has quit
      • pera joined the channel
      • nomicflux joined the channel
      • leolrrj joined the channel
      • greengriminal has quit
      • kapil___ joined the channel
      • Arkantos has quit
      • tuelz
        I mean, what does following dir structure really buy you anyways? Any modern editor will be able to fuzzy search for a file inside a root dire
      • scythe__ joined the channel
      • it's just there to break things into logical components - so beyond that the naming doesn't really buy you much imho
      • leolrrj joined the channel
      • leolrrj_ joined the channel
      • scythe__ has quit
      • starbelly
        @tuelz
      • grrr sorry, getting used to this client... dir structure is structure :) It serves more purpose than just to organize files, it can convey architecture IMHO and if done right when diving into a new and unfamiliar code base can save a ton of time.
      • brandonson joined the channel
      • If we throw structure out the window, we end up with source than spans hundreds of thousand of lines and is very hard to digest or you may end up with thousands of files in a single dir that will also be hard to digest. Also, dir structure usually reflects our namespace, so as stated if done right it will make your codebase intuitive IMHO.
      • Zarathu
        starbelly: exactly. ^
      • starbelly
        :)
      • Zarathu
        imo it makes the most sense for the module names and file names to match each other, and match the filesystem
      • you can get a clear look into the architecture and logical domains of the app by doing this
      • wasn't that part of the whole point of contexts in the first place?
      • just throwing a bunch of schemas and controllers into a "models" folder doesn't really tell you as much as it should about the app
      • scythe__ joined the channel
      • refriedchicken has quit
      • starbelly
        Yes. That and to help you define boundaries in your application. One problem contexts solve is coupling of your DAL to your web app. It should be noted you are not beholden to any particular directory structure, there's just defaults.
      • Arkantos joined the channel
      • sevenseacat joined the channel
      • Arkantos has quit
      • Arkantos joined the channel
      • tonispax_ has quit
      • nomicflux joined the channel
      • hauleth_ joined the channel
      • Saukk joined the channel
      • netrino has quit
      • jimmyrcom_ has quit
      • jerel joined the channel
      • jerel has quit
      • tgould has quit
      • nomicflux joined the channel
      • aither has quit
      • meh` has quit
      • aither joined the channel
      • leolrrj_ has quit
      • leolrrj joined the channel
      • jimmyrcom_ joined the channel
      • tgould joined the channel
      • tgould has quit
      • tgould joined the channel
      • tgould has quit
      • elixir-lang-repo joined the channel
      • NOTICE: [elixir] eksperimental opened pull request #7631: Add internal links to sections (master...internal_linking_docs) https://git.io/vp0ah
      • elixir-lang-repo has left the channel
      • elixir-lang-repo joined the channel
      • NOTICE: [elixir] josevalim closed pull request #7631: Add internal links to sections (master...internal_linking_docs) https://git.io/vp0ah
      • elixir-lang-repo has left the channel
      • 7JTAD6B9G joined the channel
      • NOTICE: [elixir] josevalim pushed 1 new commit to master: https://git.io/vp0Vq
      • NOTICE: elixir/master 2f9c721 Henning L: Deprecate Exception.normalize/2 and Exception.format/2 (#7628)
      • 7JTAD6B9G has left the channel
      • 7GHAAP43U joined the channel
      • NOTICE: [elixir] josevalim closed pull request #7628: Deprecate Exception.normalize/2 and Exception.format/2 (master...7626_deprecate_exception_functions) https://git.io/vpR9J
      • 7GHAAP43U has left the channel
      • brandonson joined the channel
      • refriedchicken joined the channel
      • elixir-lang-repo joined the channel
      • NOTICE: [elixir] eksperimental opened pull request #7632: Update page list in Kernel (master...update_page_list) https://git.io/vp0V5
      • elixir-lang-repo has left the channel
      • sevenseacat has quit
      • gvaughn has quit
      • wsieroci joined the channel
      • scythe__ has quit
      • scythe__ joined the channel
      • scythe__ has quit
      • refriedchicken has quit
      • tgould joined the channel
      • jer
        so right now i'm using a postgres sequence to represent an auto incrementing number which i tie to one resource type such that different instances of the same resource type owned by the same entity can have incrementing numbers, but for other entities, they reset
      • hgost joined the channel
      • unfortunately, sequences count as relations so this won't scale well as i add more and more of these resources ... so thinking of a single table which links entities and resources and keeps track of the resource number (note it's different than the id)
      • sound sane?
      • alexband_ joined the channel
      • tgould has quit
      • davidw has quit
      • wsieroci has quit
      • iamvery has quit
      • Arkantos has quit
      • sevenseacat joined the channel
      • BeerLover joined the channel
      • Cthalupa joined the channel
      • Zarathu
        jer: why not set the sequence number in the application layer?
      • tgould joined the channel
      • ssswitch has quit
      • pera has quit
      • tgould has quit
      • Arkantos joined the channel
      • Avinash joined the channel
      • jerel joined the channel
      • jerel has quit
      • Arkantos has quit
      • lexmag joined the channel
      • wonko77 joined the channel
      • Avinash has quit
      • tgould joined the channel