Re: [go-nuts] Help me study resources or guides

2023-04-28 Thread Matt KØDVB
You can find my video class at https://www.youtube.com/playlist?list=PLoILbKo9rG3skRCj37Kn5Zj803hhiuRK6; people seem to like it Matt > On Apr 26, 2023, at 9:45 PM, Nyilynn Htwe wrote: > > I am starting to learn GO programming language with this course >

Re: [go-nuts] clarifying Go FAQ: Is Go an object-oriented language?

2022-11-22 Thread Matt KØDVB
does. In fact > the JVM supports dynamic dispatch to make this as efficient as possible. > Then the JIT optimizes it even more based on runtime behavior. > > On Nov 22, 2022, at 10:18 AM, Matt KØDVB wrote: > >  > But see https://en.wikipedia.org/wiki/Self_(programming_language) &g

Re: [go-nuts] clarifying Go FAQ: Is Go an object-oriented language?

2022-11-22 Thread Matt KØDVB
But see https://en.wikipedia.org/wiki/Self_(programming_language) Self was considered an OO language back when I was a grad student and is still listed that way today, even though it has neither classes nor inheritance. Anyway, my point would be that the term OO originates with Alan Kay and the t

Re: [go-nuts] clarifying Go FAQ: Is Go an object-oriented language?

2022-11-22 Thread Matt KØDVB
The correct answer is actually “yes” because neither classes nor inheritance are necessary or sufficient for “object-oriented” programming. https://www.youtube.com/watch?v=jexEpE7Yv2A Sent from my iPad > On Nov 22, 2022, at 9:02 AM, Ayan George wrote: > >  > > The Go FAQ begins the answer t

Re: [go-nuts] Right way to fan out work loads

2021-09-08 Thread Matt KØDVB
I’d like to point you to a video I made where I work through different ways to divide up work, both the “work pool” approach and just creating lots of goroutines: https://www.youtube.com/watch?v=SPD7TykYy5w&list=PLoILbKo9rG3skRCj37Kn5Zj803hhiuRK6&index=27

Re: [go-nuts] string matching

2021-04-01 Thread Matt KØDVB
Use a capture group regex := regexp.MustCompile(`.*\bCore Count: (\d+)`) result := regex.FindAllStringSubmatch(raw, -1) https://play.golang.org/p/r_TxhVZVfzE See also https://www.youtube.com/watch?v=XCE0psygwj8 > On Apr 1, 2021, at 12:32

Re: [go-nuts] Few questions regarding Generics

2021-02-22 Thread Matt KØDVB
Make Map a function not a method (not sure it can be made a method they way you’re trying): package main import ( "fmt" "strconv" ) type List[T any] []T func ToList[T any](v []T) List[T] { return List[T](v) } func Map[T, U any](l List[T], f func(v T) U) List[U] {

[go-nuts] [ANN] New Go video course on YouTube

2021-02-21 Thread Matt KØDVB
I've just completed my project to make a recording of my Go class and the videos are all now available (ad-free) on YouTube: https://www.youtube.com/playlist?list=PLoILbKo9rG3skRCj37Kn5Zj803hhiuRK6 This class is suitable for folks who already know how to program in another language.It covers th