Very cool. Maybe Go will win some people back to the strongly typed language realm. Having the compiler acts as a safety net is pretty awesome. Much better than having your code blow up at run time with dynamic languages.
This is great. I'm still fairly new to programming and all my experience until now has been confined to dynamically-typed, interpreted languages (other than a little dabbling into C for learning's sake), so I'm really appreciative of any efforts to clearly illustrate new languages to newbies like me. I would love to see something like this for Haskell or Clojure if anyone knows of any good links.
Introducing Go by Example
11–20 of 37 posts
Re: Introducing Go by Example
#12Mark, I'm curious to know if you find yourself using Go or Clojure more these days. They're quite different languages, so I was surprised to see a bunch of Go libraries in your Github after using a bunch of Clojure gear you'd written over the years.
Re: Introducing Go by Example
#13Very cool. Maybe Go will win some people back to the strongly typed language realm. Having the compiler acts as a safety net is pretty awesome. Much better than having your code blow up at run time with dynamic languages.
Re: Introducing Go by Example
#14Very cool. Maybe Go will win some people back to the strongly typed language realm. Having the compiler acts as a safety net is pretty awesome. Much better than having your code blow up at run time with dynamic languages.
I think many (if not the majority of) programmers are still using strongly typed programming languages.
Re: Introducing Go by Example
#15Re: Introducing Go by Example
#16Earlier quoted context omitted.
I think many (if not the majority of) programmers are still using strongly typed programming languages.
Perhaps this is just a selection bias wherein you're not considering web developers as "programmers"?
Beneath the bleeding edge of "what is cool" and "what cool companies use" there is a very large iceberg of people and companies doing/using things that stopped being cool a decade ago.
Re: Introducing Go by Example
#17Earlier quoted context omitted.
I think many (if not the majority of) programmers are still using strongly typed programming languages.
Perhaps this is just a selection bias wherein you're not considering web developers as "programmers"?
Although I'd be amazed if Go won over a significant portion of the PHP/ASP crowd, given that they have already self-selected out of using Ruby, Python, etc. for web development instead.
I suppose you could argue that Go is a good fit for PHP/ASP programmers who have really tuned their applications for performance, but I strongly suspect they're a small minority.
Re: Introducing Go by Example
#18https://gobyexample.com/slices gives the impression that arrays and slices are independent things, which is not true. A slice cannot exist without an underlying array. A slice is a window view on an array, a reference to a part of an array. Multiple slices can provide different views on the same array. When you create a completely new slice you also create a new underlying array and the window size is initially the s…
Re: Introducing Go by Example
#19I have a few suggestions.
Make the code easily copyable. Under Chrome, at any rate, if you select the code you can't help but select your comments to the left of the code. I think that people running through the examples should type everything in line by line, but some people will prefer to copy and paste.
Also, it would be great to have some "where to go from here" links. I've run the examples, now I want to write some useful code. Where should I go next?
Re: Introducing Go by Example
#20t := []int{1, 2, 3, 4, 5}
What makes that a slice and not an array?
EDIT: Ok, found that answer on google go's blog. Apparently leaving out the length makes it one.