I follow a book that is quite good but when it comes to do the exercises at the end of each chapter I cannot do them , I am lost, it seems to me to be a waste my time . Instead, I write the code of the book(lessons) and add some features(classes, methods, interfaces etc..) that allows me to familiarise myself with the IDE and the language. Right now I reached the level of Interfaces and about to learn Exceptions and advanced File/IO. I am a little pessimistic about my learning process , I am not sure I am learning the proper way. Also I am a little bit old to learn (56) . I would appreciate your suggestions. Thanks.
Practice lot of coding while you are reading a chapter. Search sample code in google related to the chapter/topic, write the code(preferably not using IDE but you can use IDE), compile and run. In this way you can enrich your learning.
You just gotta keep at it. One thing to keep in mind that the code in books is just for learning the syntax. You dont actually want to write code like that because usually it doesnt use follow oop theory well
Yes, some books do fail to cross the bridge between showing the syntax and teaching OO.
posted 1 month ago
I appreciate all your answers guys. Yes I agree that I need to type a lot of code in each lesson and seeking for more examples in google . The way I was doing is : study the lessons , type the code offered in the lesson and then add some more functionality to the code in the lesson thinking after that , that I understood the all process but it was not enough to remember . I was exposed to AS3 a few years ago and used to type the code in Flash IDE with audio lessons(Lynda.com) and I was not doing too bad at that time but that was like 10 years ago. Final questions before I bore you too much with my issue : Any really good book that you would recommend in Java? Thanks again for your patience guys.
This is coming from another newbie to Java trying to teach myself.
I actually have a very smart young Java Developer that works for me that pushes and prods me along.
He actually stresses the OOP way with Main being the ignition and the other classes containing the methods etc.
I have three books; Teach yourself Java in 24 hours (very good for non programmers or no experience) Sounds like you can skip this.
Robert Murachs book on Java and Herbert Schildts Beginning Java. These do cover OOP.
I think what you are doing by adding functionality is great. That is what I do. I also try to complete problems others are having and then receive feedback from the Saloon.
This is a GREAT site.
Best to you!
posted 4 weeks ago
@Jim : Currently I am using a book called Starting out with Java from Tony Gaddis which is pretty good at teaching the material. But then it is a Computer Science book so most of the exercises to do are sometimes a little complicated to follow and I don't want to spend endless time on a single exercise I feel that I am learning much more by following the examples and creating additional Classes or methods to the program etc.. I guess if I ever get good at Java then maybe I will do some exercises. Right now I am following some examples en OOP with Java from Google a site called TutorialPoints . It explains pretty well Java polymorphism but in one example an int is declared that is supposed to represent the apartment number but in the example it was totally unused so i went and go head and wrote the method to be able to use it. I guess the guy who wrote the tutorial forgot to use it . No Jim I did some ActionScript3 a few years ago using the Flash IDE but that was a long time ago though. @ Steven : I am thinking about buying the Murach Java book , it has some good code examples from what I heard. And @ SwapanB yes I am definitely going to buy Head First Java and Head First OOP. But the feedbacks I got from this forum is that I need to Google for examples and write a lot of code , change the code , adding classes and so on ... I think at my age (56) it is the only way that I can get some confidence in myself . I agree this forum is fantastic !
posted 4 weeks ago
Fred Masen wrote:. . . Starting out with Java . . . Tony Gaddis
When does that book introduce objects?
. . . Head First Java and Head First OOP. . . .
Don't buy new copies if you can get a decent copy second‑hand for half the price.
posted 4 weeks ago
He started talking object when we learn about Scanner keyboard = new Scanner(System); then gradually he mentions more about object that happens at page 123 after I learned about the fundamentals. Page 267 of the book started by introducing "methods" but I had to wait at page 357 to the chapter called " A first look at Classes" . Actually I went through the all book again to obtain your info and I found the chapters easy now after 4 month of study so I might know a little bit more than I think. Stuff that appeared hard a few months ago seems to me easier now. To be honest with you I am 56 and I tried to programmed since 1995 At that time the internet had Yahoo programming chat rooms they all advised me to learn VB6 which was popular at that time , I tried hard but I could not understand it. One advanced programmer at the time told me stopped with VB6 , it is procedural with some OOP programming and that confuses you , instead try C which I did. At that time there were not many C books available so I got myself C for dummies. And for some reasons I loved , it was static , structured and I use the Borland C compiler but then to go further in my knowledge I purchased a more advanced book from Ivor Horton and it frustrated me , his examples were not realistic and hard to followed so I gave up but I regret now. I was around 36. Then 10 years later at 46 I started AS3 with Flash. Got pretty good at it but for some personnel reasons I had to give up . at 56 I started again Java . I seems that re-started programming every 10 years . Because of my age I have sometimes memories issues so I decided to start playing chess again with my computern Stockfish 10 ( I learned the game at age 15 and I played regularity with my computers ) and got back to programming with Java to slow down my memory losses and it partially works so far.
PS: The AI AphaGoZero will lose if it was confronted against Stockfish 10 for a new match. This new versions has made extraordinary improvements and is so far the best chess engine in the world , (it is open source and free) while the commercial programs are way behind.
Learning about objects ASAP is a biggie. I started in the 70's with BASIC, went to Z-80 assembly from there, and got a job writing 8086 assembly. Learned C, and kind of stagnated. I write device drivers, OS internals (I ported Linux to the SH-4 in around 2000). Everyone around me was learning C++, I was learning the details of the newest chip I had to write a device driver for.
Things worked out well for me, but you either write OS code or device drivers, or you learn OO ASAP. I didn't start on OO until I'd retired and was programming for fun, not money. My brain broke last June/July, I haven't written a line of code since.
Be careful when following the masses, sometimes the m is silent.