scastie
Play WS
scastie | Play WS | |
---|---|---|
10 | 2 | |
432 | 223 | |
0.2% | 0.0% | |
7.7 | 8.5 | |
17 days ago | 6 days ago | |
Scala | Scala | |
Apache License 2.0 | 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.
scastie
- How to select union type branch in a for comprehension?
-
Free Monads from Scratch
From personal experience Scala also works. It's 100% possible to learn monads using https://scastie.scala-lang.org/ as a scratch pad.
- Scastie now blocks russian IPs
-
New to Scala
Instead I typically use https://scastie.scala-lang.org, or an ammonite script, or just create a new file that extends App in my test directory. The thing that worksheets do better is that you can import things from your project (like the little app in the test dir) but they also show runtime values (like repl or scastie). However I've just never gotten them to actually work.
- I've entered a state of helplessness while learning scala
-
Switching to a Scala position soon, where should I start?
I strongly recommend you play around with the local Scala REPL. I have Scala 2.13 on my main dev computer and Scala 3 on my other computer. The local REPL will let you know when things are deprecated and give you hints as to what you should use instead. Scastie https://scastie.scala-lang.org/ can also be a big help.
-
Scala or Go: Who Wore It Better?
Operationally, as you might expect from a language borne from academia, Scala tooling can be problematic and compilation can be slow--particularly if you are not yet using Scala 3, which only recently emerged and is very slowly percolating through the ecosystem (Remember the Python 2 to Python 3 transition?). But type inference, a vast standard library, and the time-tested reliability of the JVM make you very productive once you get the hang of them. Performance varies with the JVM you're running, but regardless you do have to contend with the size of compiled objects and the latency of garbage collection at runtime. When you want to experiment, you can skip the ceremony of writing a class or test and instead use a command-line REPL, an online REPL called Scastie you can share, or an outstanding third-party command-line REPL called Ammonite. Dependency management is achieved with SBT typically but also more general JVM build tools like Gradle and Maven.
-
I just rebuilt Tour of Scala from scratch - let me know what you think
I am using https://scastie.scala-lang.org/ which does compile server side in Scala. The UI is a bit hard to handle tho.
-
The future of Scaladoc
https://github.com/scalacenter/scastie#how-do-i-embed-scastie
Play WS
-
Code in jar dependency is packed as java code and can not be used as normal Scala dependency
Take a look at https://github.com/playframework/play-ws build.sbt. it is a scala lib built with sbt-assembly to shade dependencies and avoid binary incompatibility. That is the only reason to build a lib with sbt-assembly.
-
Scala or Go: Who Wore It Better?
In this example, the code uses Play WS Standalone as a REST client to fetch JSON containing a UUID. Play WS has an asynchronous, non-blocking API based on Future, so you need to provide an ExecutionContext via Akka. That's all the boilerplate at the beginning of this example. Sometimes it will be done for you as when you use Play WS in the context of Play Framework. Nonetheless, you should be aware it has to happen somewhere.
What are some alternatives?
tour-of-scala - Tour of Scala - Scala classes
unirest-java - Unirest in Java: Simplified, lightweight HTTP client library.
Scala.js - Scala.js, the Scala to JavaScript compiler
Armeria - Your go-to microservice framework for any situation, from the creator of Netty et al. You can build any type of microservice leveraging your favorite technologies, including gRPC, Thrift, Kotlin, Retrofit, Reactive Streams, Spring Boot and Dropwizard.
Hugo - The world’s fastest framework for building websites.
methanol - ⚗️ Lightweight HTTP extensions for Java
metabrowse - Static site generator for code search with IDE features for Scala
restQL-core-java - Microservice query language
Akka - Build highly concurrent, distributed, and resilient message-driven applications on the JVM
Google HTTP Client - Google HTTP Client Library for Java
terraform-aws-lambda - Terraform module, which takes care of a lot of AWS Lambda/serverless tasks (build dependencies, packages, updates, deployments) in countless combinations 🇺🇦