mirror of
https://github.com/mastermindzh/rickvanlieshout.com
synced 2025-07-27 12:42:28 +02:00
fix: several pages linked to redirected urls. This replaces those links with the destination instead
This commit is contained in:
@@ -13,7 +13,7 @@ disqusId: "20"
|
||||
|
||||

|
||||
|
||||
One of the final assignments for a school course called "APP" (Algorithms Programming language & Paradigms) was/is to learn a new programming language using the book "[Seven languages in Seven weeks](https://pragprog.com/book/btlang/seven-languages-in-seven-weeks)".
|
||||
One of the final assignments for a school course called "APP" (Algorithms Programming language & Paradigms) was/is to learn a new programming language using the book "[Seven languages in Seven weeks](https://pragprog.com/search/?q=seven-languages-in-seven-weeks)".
|
||||
|
||||
The idea of this book is that you can get comfortable with a programming language in just a week. As you can probably guess from the title the book covers 7 languages in total and I will be covering at least 1 (Scala).
|
||||
|
||||
|
@@ -21,7 +21,7 @@ While Pacman started collecting all the little dots, I took a quick look at the
|
||||
|
||||
The next message on this page tells me about a popular build tool called `sbt` so I went ahead and installed that as well.
|
||||
|
||||
The final step on this page recommends me to install "[The Scala IDE](http://scala-ide.org/?_ga=1.153666491.264179122.1490891096)" or use the IntelliJ plugin. Seeing as I adore the JetBrains product line I've opted to choose the latter.
|
||||
The final step on this page recommends me to install "[The Scala IDE](https://scala-ide.org/?_ga=1.153666491.264179122.1490891096)" or use the IntelliJ plugin. Seeing as I adore the JetBrains product line I've opted to choose the latter.
|
||||
|
||||
While browsing the downloads page I noticed Pacman had beat his level. (a.k.a collected all the dots. a.k.a the install has finished) Which means it's high time for me to continue on with the assignments.
|
||||
|
||||
@@ -130,9 +130,9 @@ Day 1's theoretical questions are:
|
||||
|
||||
My answers to these are:
|
||||
|
||||
1. [http://www.scala-lang.org/api/current/](http://www.scala-lang.org/api/current/)
|
||||
1. [https://www.scala-lang.org/api/current/](https://www.scala-lang.org/api/current/)
|
||||
2. [https://www.toptal.com/scala/why-should-i-learn-scala](https://www.toptal.com/scala/why-should-i-learn-scala)
|
||||
3. [http://www.scala-lang.org/old/node/5367](http://www.scala-lang.org/old/node/5367)
|
||||
3. [https://www.scala-lang.org/old/node/5367](https://www.scala-lang.org/old/node/5367)
|
||||
|
||||
Finally, we get to move on to the practical assignment for the week. For the assignment, I have to create a "Tic-tac-toe" game for 2 players.
|
||||
|
||||
|
@@ -194,8 +194,8 @@ The theoretical questions for day 2 are:
|
||||
|
||||
Once again these questions are trivial if you've actually paid attention while reading the book. Anyway, here are the answers:
|
||||
|
||||
1. [http://docs.scala-lang.org/tutorials/scala-for-java-programmers.html](http://docs.scala-lang.org/tutorials/scala-for-java-programmers.html)
|
||||
2. [http://stackoverflow.com/questions/1812401/exactly-what-is-the-difference-between-a-closure-and-a-block](http://stackoverflow.com/questions/1812401/exactly-what-is-the-difference-between-a-closure-and-a-block)
|
||||
1. [https://docs.scala-lang.org/tutorials/scala-for-java-programmers.html](https://docs.scala-lang.org/tutorials/scala-for-java-programmers.html)
|
||||
2. [https://stackoverflow.com/questions/1812401/exactly-what-is-the-difference-between-a-closure-and-a-block](https://stackoverflow.com/questions/1812401/exactly-what-is-the-difference-between-a-closure-and-a-block)
|
||||
|
||||
The results of the second day's practical assignments can found on [Github](https://github.com/Mastermindzh/Seven-Languages-in-Seven-Weeks/tree/master/Scala/Day%202/src/myApp) or below:
|
||||
|
||||
|
@@ -133,7 +133,7 @@ Finally! We get to do something with concurrency, now Scala can really show me w
|
||||
|
||||
The book starts off by telling me about Actors, which have pools of threads and queues, and message passing. When you send a message (using the ! operator) you place an object on its queue. The actor then reads the message and takes action. Usually, the actor uses a pattern matcher to detect what it has to do before it starts doing something.
|
||||
|
||||
The book provides a sample application but that plain doesn't work. Upon investigating the issue I discovered that Scala's built-in concurrency feature is deprecated in favour of [Akka](http://akka.io/). This saddens me beyond belief. I have already worked with Akka and had expected Scala to offer me something else. This also means that the rest of the book is not going to be useful anymore.
|
||||
The book provides a sample application but that plain doesn't work. Upon investigating the issue I discovered that Scala's built-in concurrency feature is deprecated in favour of [Akka](https://akka.io/). This saddens me beyond belief. I have already worked with Akka and had expected Scala to offer me something else. This also means that the rest of the book is not going to be useful anymore.
|
||||
|
||||
Stubborn as I am, even with a closing deadline, I decided I wasn't going to let a stupid book stop me and decided to update the code to work with Akka. All of which can be found at [Github](https://github.com/Mastermindzh/Seven-Languages-in-Seven-Weeks/tree/master/Scala/Day%203/src/Concurrency).
|
||||
|
||||
|
Reference in New Issue
Block a user