I started reading Scala for the Impatient, which was ideal for a Scala beginner like myself. Scala provides various ways to solve a problem, and that post outlines how to choose one from the range of possible solutions. I also recommend the blog post, Strategic Scala Style: Principle of Least Power, which aims to provide style guidelines at the “strategic” level. There’s a suggested video on Coursera called Working Hard to Keep It Simple (also from Martin Odersky), and it was a great introduction to understanding Scala in a nutshell. They demonstrated both why Scala supports both functional and object-oriented programming, and its uses in different applications. To understand why applications should use Scala, it was especially helpful to watch videos and read blogs. Scala, on the other hand, has a separate tool to do these things, sbt. Common tasks - like compiling code, running tests, and building an application - are built into Go. Each language has a different approach to tooling.Unlike Go, Scala is very concise and requires less boilerplate code.Meanwhile, Scala is a hybrid language that combines object-oriented and functional approaches. Go is a procedural and imperative compiled language, and its syntax is similar to that of the C family of languages.The slowness of the compiler is thoroughly described here by Odersky. The compile time for the code linked above was 3 seconds in Scala and. Scala takes more time to compile compared to Go.(Here are examples of my code for running a task concurrently in Go and Scala.) As a result, concurrent code written in Go and Scala looks quite different. Go has goroutines and channels, while Scala has Futures and Promises. Go and Scala have different approaches to concurrency and parallelism.More specifically, here are a few things I found different: It wasn’t as easy as I thought it would be, and a lot of that had to do with coming from Golang. I then began learning the concepts, and I worked on a few exercises. I followed the course to first set up my environment, and then I started with my first “Hello, World!” program. I began by enrolling in Functional Programming Principles in Scala, which is taught by Martin Odersky, one of the designers of Scala. It also provides certification for these courses. Without further ado, keep reading! CourseraĬoursera is an online learning platform for taking courses on a variety of topics via its partnership with universities and companies around the world. Set personal objectives and key results.Took advantage of learning and development.
0 Comments
Leave a Reply. |