#elixir-lang

/

      • scrogson
        I have yet to do anything with dialyzer :(
      • jadams
        (why have I forgotten the name?)
      • scrogson
        jadams: it has been so solid that I have not had to touch it one bit
      • :)
      • ericmj
        jadams: Kernel.Typespec.beam_* functions
      • jadams
        that is how my sole elixir production thing has been
      • ericmj, thanks!
      • scrogson
        I made Hedwig in such a way that if its connection is interrupted, that it will just sit there trying to connect in a loop...
      • ericmj
        jadams: it may get you the erlang AST so might need to translate to elixir with spec_to_ast / type_to_ast
      • i dont remember
      • jadams
        thanks
      • scrogson, so worst case, if there's a problem on the other end it uses too much resources in its loop?
      • scrogson
        maybe
      • :)
      • jadams
        supervisor retry-maxes could be used to make that nicer to the other end, worst case
      • scrogson
        yeah, I think my current supervisor strategy is wrong anyway...
      • but I've started a new branch to make some improvements for this demo app I'm working on for my talks
      • talk
      • Phoenix websocket app with a Hedwig client for each connected user that connects to the xmpp server and provides translations from xml to json objects on the front-end
      • allows you to create business logic in-between the front-end and xmpp server
      • Guest6
        Using html.eex, is there a way to not have comments in final html display?
      • scrogson
        <% # comment %>
      • Guest6
        Thanks
      • vendethiel- has quit
      • jadams
        ericmj, the `s` helper is great
      • glad I know the beam_* functions too
      • tristan3
        meh, can't even get the company part working on elixir code :(
      • rylev joined the channel
      • jadams
        tristan3, what do you mean?
      • hassox has quit
      • alisdair
        when was `&&&` introduced?
      • jadams
        I have a really awesome startup idea, planning on going for this one (either funded by isotope11 or by some clients that have told us they're in whenever we find a product we want to build)
      • it has a pretty massive elixir-based component
      • also docker :)
      • and some rails bits for the api / frontends probably, just for ease of getting other people to build the APIs :)
      • would also definitely involve lots of Bert RPC
      • hassox joined the channel
      • liveforeverx has quit
      • tristan3
        jadams: it always says 'cannot complete at point'
      • jadams
        I didn't understand "get the company part working"
      • I might have too little context, tristan3
      • tristan3
        oh
      • alchemist mode for emacs, company is the completition part
      • vendethiel joined the channel
      • cableray has quit
      • rylev has quit
      • jadams
        aha
      • scrogson
        tristan3: jadams and I will know nothing about that stuff
      • vim 4 life!
      • :)
      • adamkittelson
        textmate 1 for life ;)
      • tealMage has quit
      • eka has quit
      • Matthias247 has quit
      • alisdair
        is there a way to get the erlang representation of an elixir module from the compiler?
      • rbishop has quit
      • ericmj
        alisdair: &&& has been there for a very long time
      • jholland has quit
      • rbishop joined the channel
      • usershell joined the channel
      • rylev joined the channel
      • alisdair: get erlang representation with :beam_lib.chunks(module, [:abstract_code])
      • alisdair
        ericmj: any idea why this would happen: https://gist.github.com/talentdeficit/849183f95...
      • liveforeverx joined the channel
      • tealMage joined the channel
      • ericmj
        alisdair: import Bitwise
      • alisdair
        ahh ok
      • usershell has quit
      • l4u- joined the channel
      • eka joined the channel
      • sferik has quit
      • jmrepetti has quit
      • cableray joined the channel
      • tealMage has quit
      • jmrepett_ joined the channel
      • Kxepal has quit
      • _martinS_ joined the channel
      • Kxepal joined the channel
      • rylev has quit
      • tealMage joined the channel
      • _martinS_ has quit
      • _martinS_ joined the channel
      • vendethiel has quit
      • cableray has quit
      • vendethiel joined the channel
      • liveforeverx has quit
      • cableray joined the channel
      • bcinman has quit
      • rbishop has quit
      • true_dro1 has quit
      • e_dub has quit
      • e_dub joined the channel
      • jmrepett_ has quit
      • meh` has quit
      • jadams
      • or I would have lied to people oops
      • e_dub
        tristan3: tonini is the one to talk to about alchemist
      • Guest6 has quit
      • wycats has quit
      • loungin joined the channel
      • mgamini has quit
      • _martinS_ has quit
      • GoGoGarrett has quit
      • bphogan
        Does anyone have a Phoenix app I can look at to see how to do testing? I just want to see what others are doing.
      • tealMage has quit
      • my app has no tests and I’d like to know how to make that not be the case :)
      • chrismccord
        bphogan: I don't have anything I can share publically, but the phoenix controller and integration tests would go along way if you check them out
      • drewolson has quit
      • bphogan
        chrismccord: hmmmm ok
      • Guest6 joined the channel
      • tealMage joined the channel
      • janispau_ joined the channel
      • hassox has quit
      • janispauls has quit
      • bcinman joined the channel
      • tealMage has quit
      • pdurbin joined the channel
      • emakris_ has quit
      • exadeci has quit
      • adamkittelson
        my public phoenix app doesn't have tests and my tested phoenix app isn't public :P, I did end up doing basically what chris said though and looked at the tests in phoenix for guidance
      • vendethiel has quit
      • I ended up copying the conn_helper.exs into my project and loading it from my test_helper and using the call function defined there quite a bit for my controller tests
      • chrismccord
        adamkittelson bphogan : we'd like to eventually make a conn_helper like module first-class and usuable like Plug.Test is
      • tealMage joined the channel
      • it will also include some other infrastructure to make it easier to test pipelines and such
      • hahuang61 joined the channel
      • hahuang61 has quit
      • tealMage has quit
      • bphogan
        adamkittelson: chrismccord ok I guess I’ll keep picking away. This is sort of the last thing I feel I’m missing - I feel really unsure about my app without some TDD :D
      • chrismccord
        bphogan: If you copy https://github.com/phoenixframework/phoenix/blo... like adamkittelson did, it would help you get going pretty well
      • That way you can easily call into your Router and test the conn after the controller pipeline spits it back out
      • If you want end-to-end testing, that's where our integration examples woudl come in where we start a router and make real http requests to it
      • bphogan
        chrismccord: yea was actually looking at the integration testing right now
      • _martinS_ joined the channel
      • tealMage joined the channel
      • adamkittelson
        my controller tests were the only thing that really felt phoenix specific though, everything else in my app was more along the lines of standard ex-unit stuff kinda like https://github.com/adamkittelson/dogstatsd-elix...
      • bphogan
        adamkittelson: yea, this app has very little app logic in it. It’s very much acting as a socket layer instead.
      • I have a named agent that tracks a list of usernames, but that’s about it. The rest are just channels talking back and forth
      • chrismccord
        bphogan: You also migiht want to look at https://github.com/hashnuke/hound
      • I've really wanted to give it a shot but haven't had the chance yet
      • that way you could really test your client stuff in a headless browser
      • bphogan
        chrismccord: yea, that looks cool. I looked at that a few weeks ago.
      • have not tried it yet
      • that might honestly be the best way to test this app
      • chrismccord
        sounds like it
      • tealMage has quit
      • gmcabrita has quit
      • Havvy
        Is there a Ecto.Repo.insert that returns either `:ok` or `{:err, reason}` instead of throwing the error?
      • hahuang61 joined the channel
      • rbishop joined the channel