Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!nntp.club.cc.cmu.edu!news.alt.net!news.dizum.com!sewer-output!mail2news Subject: Re: Please recommend a book Newsgroups: comp.lang.java.help References: From: bobwhite@mixnym.net Message-ID: Date: Sun, 04 Nov 2012 14:40:16 -0000 Mail-To-News-Contact: abuse@dizum.com Organization: mail2news@dizum.com Xref: csiph.com comp.lang.java.help:2223 Markspace said: > On 11/3/2012 4:22 PM, Lew wrote: > > >> markspace said: > >>> Console is recent and just > >>> contains some extensions to the basic I/O that people were asking for. > >>> System.in is the workhorse. Wrap that in a BufferedReader and read from > >>> that. > > > bobw...@mixnym.net wrote: > >> > >> Whaa?!? > > > > BufferReader reader = new BufferedReader(new InputStreamReader(System.in)); > > > > "To wrap" is one of the fundamental operations of computer programming. > > > I hadn't even considered that. I thought he was complaining about the > fact that I said the API was a bit spread out due to being extended for > the past 17 years. Yeah I understand what wrappering is and it has nothing to do with OO. I meant I was thinking about console stuff and then you come along and say to use BufferedReader and I have no idea what that is yet! > The Wrapper Pattern isn't exactly fundamental to computer programming, > but it is fundamental to object oriented programming, for certain. I have been wrappering before Java or C++ ever existed. I won't say before Simula since that was before my time. Wrappering is an interfacing concept, it's not an OO concept, but I can see how OO would use it, obviously. > I'd recommend that Bob pick up a copy of Head First Design Patterns if > he's unfamiliar with those concepts. > > Wrapper: That page has alot of stuff I haven't seen before with those names. The details probably don't matter but the structure is something I know about it. > Then pick up the Gang of Four book and read that. I will keep that on the list for later after I get the idea of the core language. > There's really no substitute for primary sources, even in computer > science. Too many follow-on books are just pretenders and half-assed; > always try to find the original article or source if at all possible. I agree with that in most cases. There have been some good things invented by people who weren't very good at explaining them, but mostly from the horses mouth is the way to go. Bob