|15 days ago||1 day ago|
|MIT License||Apache License 2.0|
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Help me break the fourth wall
1 project | reddit.com/r/scala | 25 Apr 2022
Perhaps refined would help you? It lets you set constraints (i.e. "rules") for values / types. You get compile-time enforcement for constants and fallible methods for runtime values (i.e. Either[Error, RefinedValue]).
Simple, Naïve, and Wrong: More than you wanted to know about Scala Case Classes
3 projects | reddit.com/r/scala | 26 Feb 2022
This is more or less how derivation works when you want to use something like Refined types (it exposes Validate[Type, Refinement] typeclass if I remember correctly). Enumeratum exposes Enum[A], and newtypes expose Coercible[From, To].
Opinions on implementing traits for validation with the help of a companion object
2 projects | reddit.com/r/scala | 26 Feb 2022
You will probably be interested into Iron or Refined.
Help with Single Value Validated Types
2 projects | reddit.com/r/scala | 27 Aug 2021
You want either a refined type, a newtype, or if you are in Scala 3 an opaque type.
Alan Kay's answer to What was the last breakthrough in computer programming?
3 projects | news.ycombinator.com | 17 Aug 2021
Types versus sets in math and programming languages
1 project | reddit.com/r/ProgrammingLanguages | 24 Jul 2021
Option as type of field in case class
1 project | reddit.com/r/scala | 28 Apr 2021
Additionally, I also like to use Refined, so that my names are actually NonEmptyStrings, and I'll usually go even farther and make a LastName type alias to NonEmptyString and a FirstName type alias to NonEmptyString so that I can legitimately return just Char as an initial, for example. That way parsing guarantees you're not just sending me empty stuff that is just as useless as an empty person, and also so that I don't accidentally put a FirstName where a LastName should go somewhere in my code.
Using refined to improve type safety and error reporting in Scala
1 project | reddit.com/r/scala | 12 Apr 2021
I wrote a short piece on my company's blog explaining how we used refined to validate incoming data and parse it into more… well, refined types: https://engineering.contentsquare.com/2021/scala-refined-types/
Why there is still no ExpressJS-like alternative in Scala?
5 projects | reddit.com/r/scala | 7 Jan 2021
This example uses probably the most popular JSON library for Scala, Circe. There is another Scala library that lets us "be more specific with," or "refine," our types, called Refined. http4s doesn't provide any particular support for Refined, but Circe has a module integrating Refined, meaning that all of Circe's parsing, encoding, and decoding support is integrated with Refined. Putting together http4s' Circe support, Circe's generic codec derivation, and Circe's Refined integration, here's what I came up with:
Scala became Typelevel/Zio only ecosystem?
4 projects | reddit.com/r/scala | 6 Aug 2022
This is a long list of misunderstandings I don’t have the patience to unpack. Instead, let me refer you to the links in my top comment in the thread, then suggest you learn at least http4s, a purely-functional web service library that’s been used in production for a decade or so now.
Pleasant to use Scala libraries
5 projects | reddit.com/r/scala | 6 Jul 2022
I would say http4s and Doobie. Both are pure FP libraries in the Typelevel ecosystem. Both are exceptionally clear, extremely reliable, extremely pleasant to use… I like to point out http4s, in particular, is primarily a collection of types modeling the relevant RFCs. What behavior it has comes overwhelmingly from the underlying Cats, cats-effect, and fs2 libraries. This reflects the generality of those underlying libraries and the intense focus of the http4s team. The same applies to Rob Norris and Doobie, which tames JDBC as well as it can be tamed, IMO.5 projects | reddit.com/r/scala | 6 Jul 2022
The most popular nowadays are - I guess - akka-http and http4s. You can also use Play if you don't want to start from scratch but prefer a framework-based approach.
Why do all frameworks use OOP? (php)
1 project | reddit.com/r/learnprogramming | 11 Apr 2022
There are functional frameworks: https://http4s.org/
Can we all please star our top 15 used Scala libraries ?
1 project | reddit.com/r/scala | 18 Feb 2022
If you look at the example it is listed as an import but there is no explicit reference to it. And if you were just doing basic synchronous responses then that would be the only time you would see it.
Scala Http Framework
2 projects | reddit.com/r/scala | 29 Nov 2021
If you want something more powerful, pure-functional and you need to do complex, concurrency-heavy operations, have a look at http4s: https://http4s.org/
Typelevel: On Recent Events
9 projects | reddit.com/r/scala | 15 Nov 2021
I don't think this is toxic but still, it doesn't sit well with me: https://github.com/http4s/http4s/issues/47189 projects | reddit.com/r/scala | 15 Nov 2021
Akka became the de-facto solution for Scala web development?
6 projects | reddit.com/r/scala | 18 Sep 2021
Any HTTPS web proxy library in Scala?
4 projects | reddit.com/r/scala | 6 Aug 2021
Here is a possible sketch with the functional http4s library. In http4s, both Http clients and servers are modelled as functions from Http requests to an Http response generated from an IO action. This would be like a function Request => IO[Response], which in http4s is called an HttpApp.
What are some alternatives?
Akka HTTP - The Streaming-first HTTP server/module of Akka
sttp - The Scala HTTP client you always wanted!
Finch.io - Scala combinator library for building Finagle HTTP services
ZIO - ZIO — A type-safe, composable library for async and concurrent programming in Scala
Spray - A suite of scala libraries for building and consuming RESTful web services on top of Akka: lightweight, asynchronous, non-blocking, actor-based, testable
scalaj-http - Simple scala wrapper for HttpURLConnection. OAuth included.
Vert.x - Vert.x is a tool-kit for building reactive applications on the JVM
Play - Play Framework
FS2 - Compositional, streaming I/O library for Scala
fs2-kafka - Functional Kafka Streams for Scala
cask - Cask: a Scala HTTP micro-framework
Scalaz - Principled Functional Programming in Scala