Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    Gregg Hernandez
    @gregghz
    where are you working?
    splode?
    pretty cool that you’re using scala. It seems like it’s gaining a bit of a following in Utah.
    Murphy Randle
    @mrmurphy
    Working at https://dayoneapp.com actually!
    I inherited a Scala codebase
    and I'm not used to the Java ecosystem at all
    but I am enjoying most of the language :D
    Gregg Hernandez
    @gregghz
    haha welcome. It’s a weird confusing and sometimes exciting world :smile:
    Paul Draper
    @pauldraper

    @pauldraper and @msiebert also did a ton. Incidentally they’re both no longer at Lucid either

    Don't forget @matthew-lucidchart .... who is also no longer at Lucid ;)

    Gregg Hernandez
    @gregghz
    Thayne merged a PR in march and Sriraam has some older commits. There’s still hope :D
    kabir idris
    @_binkabir_twitter
    Hi everyone
    just playing around with relate and I like it.
    I have one quick question. having define an implicit Connection object to my queries do I have to explicitly close the connection at the end of my queries ????
    thanks.
    Thayne McCombs
    @tmccombs
    I don't believe relate does any connection management. However, you can use another library, such as scala-arm or scala.util.Using in 2.13, to automatically close the connection when you are done with it. At lucid we also use hikari-cp for connection pooling.
    kabir idris
    @_binkabir_twitter
    ok
    thanks
    scala-arm actually look awesome.
    James Judd
    @jjudd
    scala-arm is most excellent. Highly recommended. Looking forward to 2.13 when we won't need it, but in the meantime it is nice.
    kabir idris
    @_binkabir_twitter
    interesting....what is new in 2.13 ???
    James Judd
    @jjudd
    scala.util.Using was added, so things like Scala ARM will no longer be necessary (as far as I understand) scala/scala#6907
    kabir idris
    @_binkabir_twitter
    thanks @jjudd for the insight
    Javier Garcia
    @javier-g-garcia
    I am performing an insert and getting unsuccessful, how can I get the SQL Exception that caused the issue?
    Gregg Hernandez
    @gregghz
    @javier-g-garcia I don't believe relate would swallow any exceptions
    Paul Draper
    @pauldraper

    scala.util.Using isn't a replacement for Scala ARM.
    The former is a stdlib form of C#'s using or Java's try-with-resources.
    The latter is a monad.

    The highest use of Scala ARM is to make all your resource APIs return ManagedResources.

    Instead of open(path) returning a file handle that (cross fingers) must be later closed with .close() or Using, it returns a ManagedResource.
    If an API returns a ManagedResource, a user can literally never use it and leak resources.

    scala.util.Using is equivalent to Scala ARM, if you only ever use .foreach in Scala ARM. But if you use map and flatMap, then you are in monad territory.
    Gregg Hernandez
    @gregghz
    Just use Id if you want a monad :D