AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |
Back to Blog
![]() ![]() ![]() (I have an affinity for strongly typed languages – I have spent way too much time tracking down obscure issues in my own code in dynamic typed languages, where the same issue would have been a compile error in a strongly typed language.) Even better, in Go I often don’t need to declare the type – the compiler figures it out. I was impressed with the standard Go library – it included many of the capabilities required by modern applications – things like HTTP support, JSON handling and encryption. Many other languages required you to use a third-party library for these features, and often there were multiple competing libraries to choose from, adding another decision point for the developer. With Go, I could go to the standard library GoDoc and get started right away. There were a few other language decisions that I found helpful. One is that the compiler figures out if you are returning a pointer to a local, and behind the scenes allocates the memory rather than using the stack. ![]() This prevents bugs, and I find the code more readable. I also like that you don’t declare that you support an interface. I wasn’t sure I would like this at first because it isn’t obvious if a type implements a particular interface, but I found greater value in the fact that I wasn’t dependent on the code author (even if it was me!) to declare that the interface is implemented. #Free shipping container home design software for mac code #Free shipping container home design software for mac code.#Free shipping container home design software for mac software. ![]()
0 Comments
Read More
Leave a Reply. |