What I'm Thinking

I was wondering about the differences between val, var and def in Scala, and these are what I found : def Immutable Lazily evaluated (Evaluated by Name) scala> def x = 1+2 x: Int scala> x = 4 <console>:11: error: value x_= is not a member of object $iw x = 4 //can't reassign x because immutable ^ scala> x //Lazily evaluated res0: Int = 3 val Immutable Eagerly/immediately evaluated ... Read More
#Scala Job Interview Questions This file contains a number of Scala interview questions that can be used when vetting potential candidates. It is by no means recommended to use every single question here on the same candidate (that would take hours). Choosing a few items from this list should help you vet the intended skills you require. Note: Keep in mind that many of these questions are open-ended and could lead to interesting discussions that tell you more about the person’s capabilities than a straight answer would. ... Read More
Source 1. Hygienic Rules These are general purpose hygienic rules that transcend the language or platform rules. Programming language is a form of communication, targeting computer systems, but also your colleagues and your future self, so respecting these rules is just like washing your hands after going to the bathroom. 1.1. SHOULD enforce a reasonable line length There’s a whole science on typography which says that people lose their focus when the line of text is too wide, a long line makes it difficult to gauge where the line starts or ends and it makes it difficult to continue on the next line below it, as your eyes have to move a lot from the right to the left. ... Read More

Hugo cheat sheet
16 May 2016

Hugo is a fast and flexible static site generator built in GoLang - http://gohugo.io Hugo Commands $ hugo help A Fast and Flexible Static Site Generator built with love by spf13 and friends in Go. Complete documentation is available at http://gohugo.io Usage: hugo [flags] hugo [command] Available Commands: server Hugo runs its own webserver to render the files version Print the version number of Hugo check Check content in the source directory benchmark Benchmark hugo by building a site a number of times new [path] Create new content for your site help [command] Help about any command Available Flags: -b, --baseUrl="": hostname (and path) to the root eg. ... Read More