Re: [go-nuts] Reading stdlib for education about go?
Dnia 2017-05-12, o godz. 11:39:40 Steve Mynott napisał(a): > What parts of the go stdlib are particularly useful for self education > in general go? Ones that you got deep understanding in other languages you use. If you thought about general understanding of go just from stdlib reading you IMO err. While usually clear and concise stdlib code tends to be dense and sometimes 'hacky'. I personally would start with a big complete product, or popular 3rd party library. Eg. Hugo, Caddy, and gorilla if you're into web backend. Hope this helps, -- Wojciech S. Czarnecki ^oo^ OHIR-RIPE -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: [go-nuts] Reading stdlib for education about go?
The file IO routines are good examples of go factoring/structuring. In particular, the blend of real and direct actions and the abstracted/indirect use of readers/writers makes for a good IO feature set with high reuse, efficiency, natural extensibility, and testability. On the downside, it grew with Go and might be done slightly differently now, so as always look for broad themes not minutiae. The fmt package has the same set of virtues and layers above the former. For example, thinking of C as version 0, it is clear that printf and sprintf have almost everything in common, yet, one builds a string and one writes to a file. How this is implemented is important for code simplicity, understandability, efficiency, and extensibility. I find it pretty in just these ways. Also educational, if you know the C/C++ meaning of all the fmt functions, is to look at how the API and meanings (formatting directives, argument structure) have been changed. For example, fmt.Printf complains if you have mismatches in type or count between verbs ("%") and arguments. This is a nice defensive posture and bears consideration vs lint-like analysis. On Fri, May 12, 2017 at 5:50 AM Steve Mynott wrote: > Perhaps not the most informative reply ever and implying go is like > the Curate's egg? :-) > > I'd imagine that perhaps "unsafe" isn't what I want and there other > more suitable packages to start studying? > > Which do people think the "good parts" (for this task) are? > > > > On 12 May 2017 at 11:48, Aram Hăvărneanu wrote: > > The good parts. > > > > -- > > Aram Hăvărneanu > > > > -- > 4096R/EA75174B Steve Mynott > > -- > You received this message because you are subscribed to the Google Groups > "golang-nuts" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to golang-nuts+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/d/optout. > -- Michael T. Jones michael.jo...@gmail.com -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: [go-nuts] Reading stdlib for education about go?
Perhaps not the most informative reply ever and implying go is like the Curate's egg? :-) I'd imagine that perhaps "unsafe" isn't what I want and there other more suitable packages to start studying? Which do people think the "good parts" (for this task) are? On 12 May 2017 at 11:48, Aram Hăvărneanu wrote: > The good parts. > > -- > Aram Hăvărneanu -- 4096R/EA75174B Steve Mynott -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: [go-nuts] Reading stdlib for education about go?
The good parts. -- Aram Hăvărneanu -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[go-nuts] Reading stdlib for education about go?
I've often seen advice that a good way of increasing language understanding is to read parts of the stdlib written in that language. What parts of the go stdlib are particularly useful for self education in general go? -- 4096R/EA75174B Steve Mynott -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.