baeldung / scala-tutorials Goto Github PK
View Code? Open in Web Editor NEWSupporting code for the tutorials on https://www.baeldung.com/scala
Home Page: https://www.baeldung.com/scala
License: MIT License
Supporting code for the tutorials on https://www.baeldung.com/scala
Home Page: https://www.baeldung.com/scala
License: MIT License
many of the files in the project fail scalafmt check.
Here is the list of the offenders:
/home/kayvan/dev/workspaces/workspace-blog/scala-tutorials/scala-strings/src/test/scala/com/baeldung/scala/strings/interpolation/strings/interpolation/CustomInterpolatorObjTest.scala isn't formatted properly! [warn] /home/kayvan/dev/workspaces/workspace-blog/scala-tutorials/scala-core/src/test/scala/com/baeldung/scala/ControlStructuresDemoUnitTest.scala isn't formatted properly! [info] Checking 7 Scala sources... [info] Checking 1 Scala sources... [warn] /home/kayvan/dev/workspaces/workspace-blog/scala-tutorials/scala-core-oop/src/test/scala/com/baeldung/scala/variance/VarianceUnitTest.scala isn't formatted properly! [warn] /home/kayvan/dev/workspaces/workspace-blog/scala-tutorials/scala-core-2/src/main/scala/com/baeldung/scala/underscore/UnderscoreUsages.scala isn't formatted properly! [warn] /home/kayvan/dev/workspaces/workspace-blog/scala-tutorials/scala-test/src/test/scala/com/baeldung/scala/scalatest/TaggedFlatSpec.scala isn't formatted properly! [warn] /home/kayvan/dev/workspaces/workspace-blog/scala-tutorials/scala-core/src/main/scala/com/baeldung/scala/traits/Score.scala isn't formatted properly! [warn] /home/kayvan/dev/workspaces/workspace-blog/scala-tutorials/scala-core/src/main/scala/com/baeldung/scala/Employee.scala isn't formatted properly! [info] Checking 1 Scala sources... [warn] /home/kayvan/dev/workspaces/workspace-blog/scala-tutorials/scala-lang/src/main/scala/com/baeldung/scala/packageimport/vehicle/Bicycle.scala isn't formatted properly! [warn] /home/kayvan/dev/workspaces/workspace-blog/scala-tutorials/scala-lang/src/test/scala/com/baeldung/scala/equality/EqualityTest.scala isn't formatted properly! [warn] /home/kayvan/dev/workspaces/workspace-blog/scala-tutorials/scala-test/src/test/scala/com/baeldung/scala/scalatest/ScalaMockFlatSpec.scala isn't formatted properly! [warn] /home/kayvan/dev/workspaces/workspace-blog/scala-tutorials/scala-core-oop/src/test/scala/com/baeldung/scala/classcompositionwithtraits/CarTraitsTest.scala isn't formatted properly! [warn] /home/kayvan/dev/workspaces/workspace-blog/scala-tutorials/scala-core-2/src/test/scala/com/baeldung/scala/underscore/UnderscoreUsagesUnitTest.scala isn't formatted properly! [warn] /home/kayvan/dev/workspaces/workspace-blog/scala-tutorials/scala-akka/src/test/scala/com/baeldung/scala/akka/typed/PortfolioApplicationUnitTest.scala isn't formatted properly! [warn] /home/kayvan/dev/workspaces/workspace-blog/scala-tutorials/scala-core-oop/src/main/scala/com/baeldung/scala/variance/Variance.scala isn't formatted properly! [warn] /home/kayvan/dev/workspaces/workspace-blog/scala-tutorials/scala-akka/src/main/scala/com/baeldung/scala/akka/typed/PortfolioApplication.scala isn't formatted properly! [warn] /home/kayvan/dev/workspaces/workspace-blog/scala-tutorials/scala-core-2/src/test/scala/com/baeldung/scala/durationsugar/DurationSugarUnitTests.scala isn't formatted properly! [warn] /home/kayvan/dev/workspaces/workspace-blog/scala-tutorials/scala-lang/src/test/scala/com/baeldung/scala/mutability/MutableCollectionsUnitTest.scala isn't formatted properly! [warn] /home/kayvan/dev/workspaces/workspace-blog/scala-tutorials/scala-libraries/src/main/scala/com/baeldung/scala/monocle/OpticsExamples.scala isn't formatted properly! [warn] /home/kayvan/dev/workspaces/workspace-blog/scala-tutorials/scala-lang/src/main/scala/com/baeldung/scala/functionsandmethods/FunctionsAndMethods.scala isn't formatted properly! [warn] /home/kayvan/dev/workspaces/workspace-blog/scala-tutorials/scala-test/src/test/scala/com/baeldung/scala/scalatest/ExampleFlatSpecWithMatchers.scala isn't formatted properly! [warn] /home/kayvan/dev/workspaces/workspace-blog/scala-tutorials/scala-core/src/main/scala/com/baeldung/scala/PatternMatching.scala isn't formatted properly! [warn] /home/kayvan/dev/workspaces/workspace-blog/scala-tutorials/scala-core-oop/src/test/scala/com/baeldung/scala/classvsobject/ObjectExamplesUnitTest.scala isn't formatted properly! [warn] /home/kayvan/dev/workspaces/workspace-blog/scala-tutorials/scala-core-2/src/test/scala/com/baeldung/scala/namedanddefaultargs/NamedAndDefaultArgsTest.scala isn't formatted properly! [warn] /home/kayvan/dev/workspaces/workspace-blog/scala-tutorials/scala-lang/src/test/scala/com/baeldung/scala/conditional/ScalaConditionalExpressionsUnitTest.scala isn't formatted properly! [warn] /home/kayvan/dev/workspaces/workspace-blog/scala-tutorials/scala-core/src/test/scala/com/baeldung/scala/forcomprehension/ForLoopUnitTest.scala isn't formatted properly! [warn] /home/kayvan/dev/workspaces/workspace-blog/scala-tutorials/scala-lang/src/test/scala/com/baeldung/scala/mutability/ImmutableCollectionsUnitTest.scala isn't formatted properly! [warn] /home/kayvan/dev/workspaces/workspace-blog/scala-tutorials/scala-core/src/main/scala/com/baeldung/scala/HigherOrderFunctions.scala isn't formatted properly! [warn] /home/kayvan/dev/workspaces/workspace-blog/scala-tutorials/scala-core-2/src/test/scala/com/baeldung/scala/currency/FutureAndPromiseTest.scala isn't formatted properly! [warn] /home/kayvan/dev/workspaces/workspace-blog/scala-tutorials/scala-core/src/test/scala/com/baeldung/scala/EmployeeUnitTest.scala isn't formatted properly! [warn] /home/kayvan/dev/workspaces/workspace-blog/scala-tutorials/scala-core-oop/src/main/scala/com/baeldung/scala/classcompositionwithtraits/CarTraits.scala isn't formatted properly! [warn] /home/kayvan/dev/workspaces/workspace-blog/scala-tutorials/scala-lang/src/main/scala/com/baeldung/scala/equality/package.scala isn't formatted properly! [warn] /home/kayvan/dev/workspaces/workspace-blog/scala-tutorials/scala-core/src/main/scala/com/baeldung/scala/ControlStructuresDemo.scala isn't formatted properly! [warn] /home/kayvan/dev/workspaces/workspace-blog/scala-tutorials/scala-lang/src/main/scala/com/baeldung/scala/packageimport/vehicle/Car.scala isn't formatted properly! [warn] /home/kayvan/dev/workspaces/workspace-blog/scala-tutorials/scala-core/src/main/scala/com/baeldung/scala/IntSet.scala isn't formatted properly! [warn] /home/kayvan/dev/workspaces/workspace-blog/scala-tutorials/scala-lang/src/main/scala/com/baeldung/scala/conditional/ScalaConditionalExpressions.scala isn't formatted properly! [warn] /home/kayvan/dev/workspaces/workspace-blog/scala-tutorials/scala-core-oop/src/test/scala/com/baeldung/scala/classvsobject/ClassExamplesUnitTest.scala isn't formatted properly! [warn] /home/kayvan/dev/workspaces/workspace-blog/scala-tutorials/scala-lang/src/main/scala/com/baeldung/scala/mutability/ImmutabilityCar.scala isn't formatted properly! [warn] /home/kayvan/dev/workspaces/workspace-blog/scala-tutorials/scala-lang/src/test/scala/com/baeldung/scala/functionsandmethods/FunctionsAndMethodsUnitTest.scala isn't formatted properly! [warn] /home/kayvan/dev/workspaces/workspace-blog/scala-tutorials/scala-lang/src/main/scala/com/baeldung/scala/packageimport/Importing.scala isn't formatted properly! [warn] /home/kayvan/dev/workspaces/workspace-blog/scala-tutorials/scala-core-oop/src/main/scala/com/baeldung/scala/generics/GenericsIntro.scala isn't formatted properly! [warn] /home/kayvan/dev/workspaces/workspace-blog/scala-tutorials/scala-core-oop/src/test/scala/com/baeldung/scala/enumerations/FingersOperationUnitTest.scala isn't formatted properly! [warn] /home/kayvan/dev/workspaces/workspace-blog/scala-tutorials/scala-lang/src/test/scala/com/baeldung/scala/caseclasses/CaseClasses.scala isn't formatted properly! [warn] /home/kayvan/dev/workspaces/workspace-blog/scala-tutorials/scala-core-oop/src/main/scala/com/baeldung/scala/caseobject/ObjectExample.scala isn't formatted properly! [warn] /home/kayvan/dev/workspaces/workspace-blog/scala-tutorials/scala-core/src/main/scala/com/baeldung/scala/lazyval/LazyVal.scala isn't formatted properly! [warn] /home/kayvan/dev/workspaces/workspace-blog/scala-tutorials/scala-core/src/main/scala/com/baeldung/scala/tailrec/StringLength.scala isn't formatted properly! [warn] /home/kayvan/dev/workspaces/workspace-blog/scala-tutorials/scala-core-oop/src/main/scala/com/baeldung/scala/enumerations/Fingers.scala isn't formatted properly! [warn] /home/kayvan/dev/workspaces/workspace-blog/scala-tutorials/scala-lang/src/main/scala/com/baeldung/scala/operators/ScalaOperators.scala isn't formatted properly! [warn] /home/kayvan/dev/workspaces/workspace-blog/scala-tutorials/scala-core-2/src/main/scala/com/baeldung/scala/forcomprehension/ForComprehension.scala isn't formatted properly! [warn] /home/kayvan/dev/workspaces/workspace-blog/scala-tutorials/scala-core/src/test/scala/com/baeldung/scala/traits/ScoreUnitTest.scala isn't formatted properly! [warn] /home/kayvan/dev/workspaces/workspace-blog/scala-tutorials/scala-core/src/test/scala/com/baeldung/scala/UtilsUnitTest.scala isn't formatted properly! [warn] /home/kayvan/dev/workspaces/workspace-blog/scala-tutorials/scala-core-2/src/main/scala/com/baeldung/scala/durationsugar/package.scala isn't formatted properly! [warn] /home/kayvan/dev/workspaces/workspace-blog/scala-tutorials/scala-core/src/main/scala/com/baeldung/scala/forcomprehension/ForLoop.scala isn't formatted properly! [warn] /home/kayvan/dev/workspaces/workspace-blog/scala-tutorials/scala-core/src/main/scala/com/baeldung/scala/Utils.scala isn't formatted properly! [warn] /home/kayvan/dev/workspaces/workspace-blog/scala-tutorials/scala-core-2/src/main/java/com/baedung/scala/concurrency/FutureAndPromise.scala isn't formatted properly! [warn] /home/kayvan/dev/workspaces/workspace-blog/scala-tutorials/scala-core-2/src/main/scala/com/baeldung/scala/namedanddefaultargs/NamedAndDefaultArgs.scala isn't formatted properly! [warn] /home/kayvan/dev/workspaces/workspace-blog/scala-tutorials/scala-core/src/test/scala/com/baeldung/scala/PatternMatchingUnitTest.scala isn't formatted properly! [warn] /home/kayvan/dev/workspaces/workspace-blog/scala-tutorials/scala-core/src/test/scala/com/baeldung/scala/HigherOrderFunctionsUnitTest.scala isn't formatted properly! [warn] /home/kayvan/dev/workspaces/workspace-blog/scala-tutorials/scala-core/src/test/scala/com/baeldung/scala/IntSetUnitTest.scala isn't formatted properly! [warn] /home/kayvan/dev/workspaces/workspace-blog/scala-tutorials/scala-core/src/test/scala/com/baeldung/scala/HigherOrderFunctionsExamplesUnitTest.scala isn't formatted properly! [warn] /home/kayvan/dev/workspaces/workspace-blog/scala-tutorials/scala-core/src/test/scala/com/baeldung/scala/lazyval/LazyValUnitTest.scala isn't formatted properly! [warn] /home/kayvan/dev/workspaces/workspace-blog/scala-tutorials/scala-core/src/test/scala/com/baeldung/scala/sorting/SortingUnitTest.scala isn't formatted properly! [warn] /home/kayvan/dev/workspaces/workspace-blog/scala-tutorials/scala-core/src/test/scala/com/baeldung/scala/regex/RegexUnitTest.scala isn't formatted properly!
upgrade to 2.13.x
Dear bealdung team,
Could you fully refund all the bundles I purchased in Spring core & Spring Data JPA?
At first, I want to follow the Java back-end path. However, there was a change in my career when I got an offer from Goject as a Python developer in a Computer Vision position. Sorry about that, I hope will get a response from you soon and I really need this refund when I'm still a Uni student.
I sent you an email, but never got the answer!
My Gmail: [email protected]
Thank you! Kind regards
The build script is not DRY
Since the project is a tutorial
, I feel it is very important to make sure the project and all project code are in good standing and meet a high standard of coding practice.
the newer versions support a number of specs, including funspec, that we could use in the functional tutorial of scala
This tutorial really help me to understand how to construct ZLayer code. However, seems that the Console.printLine in the Logging layer did not really output. Could I know whether I need further configuration?
// build.sbt
val scala3Version = "3.3.1"
lazy val root = project
.in(file("."))
.settings(
name := "foo",
version := "0.1.0-SNAPSHOT",
scalaVersion := scala3Version,
libraryDependencies += "dev.zio" %% "zio" % "2.0.20",
libraryDependencies += "org.scalameta" %% "munit" % "0.7.29" % Test
)
Website contains the following snippet:
val i10 = 127 // Integer 127
val i11 = 128 // Integer 128
i11.isValidByte should be (true)
i10.isValidByte should be (false)
It seems that assertions for i10
and i11
are swapped around.
The sources however contain the correct version:
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.