Click here to Skip to main content
15,888,610 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralRe: Chris - Lounge Rules Update Required ! Pin
5teveH22-Dec-20 21:41
5teveH22-Dec-20 21:41 
GeneralRe: Chris - Lounge Rules Update Required ! Pin
Slacker00722-Dec-20 5:00
professionalSlacker00722-Dec-20 5:00 
GeneralRe: Chris - Lounge Rules Update Required ! Pin
jsc4222-Dec-20 6:36
professionaljsc4222-Dec-20 6:36 
GeneralRe: Chris - Lounge Rules Update Required ! Pin
Slacker00722-Dec-20 7:10
professionalSlacker00722-Dec-20 7:10 
GeneralCay Hortsmann's book on java is beyond horrible(!) Pin
User 1493685322-Dec-20 1:55
User 1493685322-Dec-20 1:55 
GeneralRe: Cay Hortsmann's book on java is beyond horrible(!) Pin
Richard MacCutchan22-Dec-20 2:13
mveRichard MacCutchan22-Dec-20 2:13 
GeneralRe: Cay Hortsmann's book on java is beyond horrible(!) Pin
W Balboos, GHB22-Dec-20 2:31
W Balboos, GHB22-Dec-20 2:31 
GeneralRe: Cay Hortsmann's book on java is beyond horrible(!) Pin
User 1493685322-Dec-20 2:56
User 1493685322-Dec-20 2:56 
Wow Laugh | :laugh: What a story. I was so angry at Hortsmann that I wanted to write to him email as well, but I didn't want to be mean... so I didn't Poke tongue | ;-P But sometimes when I read those books I have the same feeling like... Is he that bad at expalining or he simply can't do that himself? Because I understand that some books can be hard to learn from, because they are maybe too advanced or maybe too boring or maybe badly explained but still they have an explanation, they communicate something but some books, and especially this... well... the information is simply not there (!). Even if I find something hard to understand I read it all over again but in this book... I can't read it again because there is nothing to unerstand, because the information is absent. For example he writes a code like this:

public void paintComponent(Graphics g) {

var g2 = (Graphics2D) g;
...

}

Than he never uses this method and I have no clue what to put into g parameter if I guess I use it in main? Other classes don't never use this method either... and where this g2 come from? Where did he crate an object of this unkown class. "var" doesn't say anything to me so I have no clue, what this class is and he doesn't reveal that either in his book.... And than he writes something like:

Image image = new ImageIcon(filename).getImage();

My comment: And again this mysterious method with that mysterious g which is casted from g2, that I don't know where to put instead if I would to use it in main just to see how that works...


public void paintComponent(Graphics g) {

g.drawImage(mage, x,y,null);

My comment: And where do I get this g from ... I don't get anything Sigh | :sigh: How did that happen and where was that mysterious g created? Of course if I want to use it... again, I guess in main or anywhere... but where is this g-object created so I can put it in the parameter and use this method? Laugh | :laugh: what da... OMG | :OMG:
...

}

And I own plenty of books like this Smile | :) Do you understand my frustration now? Laugh | :laugh:

modified 3-Jun-21 21:01pm.

GeneralRe: Cay Hortsmann's book on java is beyond horrible(!) Pin
User 1493685322-Dec-20 2:36
User 1493685322-Dec-20 2:36 
GeneralRe: Cay Hortsmann's book on java is beyond horrible(!) Pin
Richard MacCutchan22-Dec-20 4:09
mveRichard MacCutchan22-Dec-20 4:09 
GeneralRe: Cay Hortsmann's book on java is beyond horrible(!) Pin
David Crow22-Dec-20 2:29
David Crow22-Dec-20 2:29 
GeneralRe: Cay Hortsmann's book on java is beyond horrible(!) Pin
BabyYoda22-Dec-20 2:55
BabyYoda22-Dec-20 2:55 
GeneralRe: Cay Hortsmann's book on java is beyond horrible(!) Pin
OriginalGriff22-Dec-20 3:05
mveOriginalGriff22-Dec-20 3:05 
GeneralRe: Cay Hortsmann's book on java is beyond horrible(!) Pin
User 1493685322-Dec-20 3:21
User 1493685322-Dec-20 3:21 
GeneralRe: Cay Hortsmann's book on java is beyond horrible(!) Pin
User 1493685322-Dec-20 3:10
User 1493685322-Dec-20 3:10 
GeneralRe: Cay Hortsmann's book on java is beyond horrible(!) Pin
RickZeeland22-Dec-20 3:41
mveRickZeeland22-Dec-20 3:41 
GeneralRe: Cay Hortsmann's book on java is beyond horrible(!) Pin
Gerry Schmitz22-Dec-20 4:37
mveGerry Schmitz22-Dec-20 4:37 
GeneralYay! Good Covid news! PinPopular
OriginalGriff22-Dec-20 0:56
mveOriginalGriff22-Dec-20 0:56 
GeneralRe: Yay! Good Covid news! Pin
RickZeeland22-Dec-20 1:04
mveRickZeeland22-Dec-20 1:04 
GeneralRe: Yay! Good Covid news! Pin
Greg Utas22-Dec-20 1:13
professionalGreg Utas22-Dec-20 1:13 
GeneralRe: Yay! Good Covid news! Pin
CPallini22-Dec-20 1:07
mveCPallini22-Dec-20 1:07 
GeneralRe: Yay! Good Covid news! Pin
W Balboos, GHB22-Dec-20 1:20
W Balboos, GHB22-Dec-20 1:20 
GeneralRe: Yay! Good Covid news! Pin
CPallini22-Dec-20 1:24
mveCPallini22-Dec-20 1:24 
GeneralRe: Yay! Good Covid news! Pin
Daniel Pfeffer22-Dec-20 1:12
professionalDaniel Pfeffer22-Dec-20 1:12 
GeneralRe: Yay! Good Covid news! Pin
W Balboos, GHB22-Dec-20 1:18
W Balboos, GHB22-Dec-20 1:18 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.