Git Product home page Git Product logo

handsonscala's People

Contributors

lihaoyi avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

handsonscala's Issues

printing the values of an array string

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.

PDF downloads as HTML file containing raw postscript

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!

Installing Mill issue

Hello - i am @ section 2.4 "Installing Mill". I have downloaded the example-3.zip package and unzipped it.

testing with utest

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

Failed to resolve ivy dependencies:Boxed Exception

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.