handsonscala / handsonscala Goto Github PK
View Code? Open in Web Editor NEWDiscussion and and code examples for the book Hands-on Scala Programming
Home Page: https://www.handsonscala.com/
License: Other
Discussion and and code examples for the book Hands-on Scala Programming
Home Page: https://www.handsonscala.com/
License: Other
Thread to discuss anything and everything about Chapter 2. Important topics will be folded into the issue description.
Thread to discuss anything and everything about Chapter 10. Important topics will be folded into the issue description.
how scala handles printing of the contents of an array is like doing assembly language. i found two ways to do it:
val X = new ArrayString
X(0)="Hello"
X(1)=", "
X(2)="world!"
X.foreach(println) will print:
Hello
,
world!
in that order or format.
another way is:
println(X.mkString("")) will print:
Hello, world!
but why so primitive!?
can't we just say:
println(&X) OR
println($X)
and be done with it? far easier to read too.
Thread to discuss anything and everything about Chapter 5. Important topics will be folded into the issue description.
Thread to discuss anything and everything about Chapter 6. Important topics will be folded into the issue description.
Thread to discuss anything and everything about Chapter 20. Important topics will be folded into the issue description.
Thread to discuss anything and everything about Chapter 4. Important topics will be folded into the issue description.
Thread to discuss anything and everything about Chapter 7. Important topics will be folded into the issue description.
I just bought your book as PDF, but unfortunately it downloads with an ".html" extension and/or mime type so it opens to a page of raw postscript code on my iPad, which is really not very useful. By downloading on a computer, and changing the extension manually, I could open the file and load it in to books. But really it would make life a lot easier if you could change this.
Thanks!
Thread to discuss anything and everything about Chapter 8. Important topics will be folded into the issue description.
Thread to discuss anything and everything about Chapter 19. Important topics will be folded into the issue description.
Thread to discuss anything and everything about Chapter 17. Important topics will be folded into the issue description.
Thread to discuss anything and everything about Chapter 3. Important topics will be folded into the issue description.
Thread to discuss anything and everything about Chapter 15. Important topics will be folded into the issue description.
Hello - i am @ section 2.4 "Installing Mill". I have downloaded the example-3.zip package and unzipped it.
Thread to discuss anything and everything about Chapter 11. Important topics will be folded into the issue description.
Thread to discuss anything and everything about Chapter 14. Important topics will be folded into the issue description.
Thread to discuss anything and everything about Chapter 12. Important topics will be folded into the issue description.
I copied build.sc (2.18.scala) on page 31 of the book into a VSCode /mill setup. I keep getting:
compiling 1 Scala source to /.../.../WorkSpaces/ScalaWS/HOS/chap2/out/mill-build/compile.dest/classes ...
[error] /.../.../WorkSpaces/ScalaWS/HOS/chap2/build.sc:8:23: not found: type Tests
[error] object test extends Tests
[error] ^
Know what is wrong, everything works as long as I leave out the testing parts
I am trying to import build with metals:
// build.sc
import mill._, scalalib._
object foo extends ScalaModule{
def scalaVersion = "2.13.2"
object test extends Tests{
def ivyDeps = Agg(ivi"com.lihaoyi::utest:0.7.4")
def testFrameworks = Seq("utest.runner.Framework")
}
}
And I get
Failed to resolve ivy dependencies:Boxed Exception
I tried with both 0.8.0
and 0.9.9
Mill versions
Thread to discuss anything and everything about Chapter 13. Important topics will be folded into the issue description.
Thread to discuss anything and everything about Chapter 18. Important topics will be folded into the issue description.
Thread to discuss anything and everything about Chapter 1. Important topics will be folded into the issue description.
Thread to discuss anything and everything about Chapter 9. Important topics will be folded into the issue description.
This line is redundant, may confuse readers:
handsonscala/snippets/2.20.scala
Line 8 in e39750b
Thread to discuss anything and everything about Chapter 16. Important topics will be folded into the issue description.
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.