Software Development

Kotlin – val versus var

What is the difference between the keywords val and var in Kotlin? If you’re coming from Java, val refers to variable that cannot be updated after it has been assigned a value; while var is the usual writable variable whose value can always be changed by other codes.

Software Development

JavaScript scope in functions vs Java scope in methods

For years, JavaScript to me was a mere validation tool or script for web applications. I hated it. I avoided using it. This time JavaScript gets the same respect from me as Java does. If you plan to “own” (or master if you can) JavaScript and you are coming from blocked-scoped languages like Java, C#, C and C++, this is one of key things you need to keep in mind…