My favorite coding language is Go. Here's why!
Statically typed
Go is a statically typed language. This means that once a variable has been declared, its type cannot change. For example, x := 4
means that x
is now 4
. If I were to change this to a string, it would fail.
Concise
Hello world in Java is extremely complex:
public class HelloWorld {
public static void main(String[] args) {
System.out.println("Hello, World!");
}
}
Although Python is simpler, Go is still not nearly as verbose as Java:
package main
func main() {
println("Hello, World!")
}
camelCase
I get that some people prefer snake_case to camelCase, but I like camelCase. And seeing as most of the other languages I use are supposed to use snake_case, it's nice to use camelCase every so often.
Easy to learn
Alright, sure, I tried like ten languages before settling on Go, so I did have experience. However, it's still extremely easy to learn. It took me about two days to figure out how to do most things, which was fairly quick, and I loved it.
Other
- Go is a compiled language, making it extremely rapid.
- It comes with a built-in formatter (
go fmt <filename>
) - It's new-ish, so the developers learnt from other languages' mistakes
- It has a wide variety of applications, from webdev to CLI apps.
Have you tried Go? Did you like it?