DEV Community

Discussion on: Programming Tip #2: Avoid globals for dependencies; instead inject them as function arguments.

 
laurentpayot profile image
Laurent Payot

I try to write as close to FP as possible.

Sure, that’s why I’m using Elm for all my front end dev.
Still I’m embracing the standard JS way when writing JS (actually TS) functions.

Nice little set of posts by the way.

Thread Thread
 
jesterxl profile image
Jesse Warden

Thanks! I can't wait till Roc Lang is near beta. Switching my mind from Elm on the front-end to ReScript on the back-end is ROUUUUGH. No types, data last, deprecated |> use -> instead, and discouraged type annotations. I like it, but I like how Roc Lang is "basically Elm on the server" more.

Thread Thread
 
laurentpayot profile image
Laurent Payot

I’m all serverless now, but yes in a perfect word I could write my serverless functions in ROC 🙏