- Simplify by using methods, interfaces and composition.
- Luke created a
Decoder
type (which sounds more like an interface) which was a wrapper around anio.Reader
. That enabled him to create a composition such aserr = NewDecoder(file).Decode(p)
. I find that to be very elegant. - Jeremy implemented a
read
method for both thePattern
type and theTrack
types. I like Jeremy's method better because it adds extenisbility if theread
method had to be exported.
- Luke created a
- If I implemented this again, I would implement both
read
anddecode
methods onPattern
andTrack
types.Reader
andDecoder
are common interfaces in Go and it wouldn't take much to makePattern
andTrack
conform to those interfaces. - An
os.File
is anio.Reader
. This should have been obvious. binary.Read
requires fields to be exported, but you can define structs with exportable fields within a function, in which the structs themselves are still essentially private to the package (see Luke's solution in thereadHeader
andreadTrack
methods).
Monday, March 30, 2015
Lessons learned from the First Go Challenge. The winning entries were Luke Champine and Jeremy Jay. Runner up was Doug Cichon.
Wednesday, March 21, 2007
Response to "Room 219 Revisted"
From a previous post here, I found that Melanie Plesh has responded to me. I am moved.
I posted a comment to this six-month-old blog post:
"I'm sorry it took me so long to get back to you... thanks for responding.
I started my own blog and then quit, going back to web forums instead. I'm glad to hear the school has reopened, even if for limited times per day.
Being at that school and reading your blog have really opened my eyes to a lot of things. Thank very much for being there and being an inspiration for kids. I'm 37 now, with my own kids in school, but I still remember most of my teachers and how big an influence on my life they were."
If you could read her blog and not be moved, then nothing can move you. If you could have seen the condition of that neighborhood when I was there, where the damage before the storm was still very apparent, and still not be moved, then you are inhuman indeed.
I posted a comment to this six-month-old blog post:
"I'm sorry it took me so long to get back to you... thanks for responding.
I started my own blog and then quit, going back to web forums instead. I'm glad to hear the school has reopened, even if for limited times per day.
Being at that school and reading your blog have really opened my eyes to a lot of things. Thank very much for being there and being an inspiration for kids. I'm 37 now, with my own kids in school, but I still remember most of my teachers and how big an influence on my life they were."
If you could read her blog and not be moved, then nothing can move you. If you could have seen the condition of that neighborhood when I was there, where the damage before the storm was still very apparent, and still not be moved, then you are inhuman indeed.
Tuesday, August 22, 2006
They Have Their Own Thoughts: room 219 revisited
I was searching through my Katrina pictures on my laptop, and I decided to Google "frederick douglass high school new orleans oregon national guard" and I found this blog post apparently by a teacher at the school where we stayed when I was there:
They Have Their Own Thoughts: room 219 revisited
I plan on posting some pictures later...
They Have Their Own Thoughts: room 219 revisited
I plan on posting some pictures later...
Subscribe to:
Posts (Atom)