Results 1 to 18 of 18
Like Tree2Likes
  • 2 Post By Tolls

Thread: Starting Java OOP

  1. #1
    dee-u is offline Member
    Join Date
    Jun 2011
    Posts
    19
    Rep Power
    0

    Lightbulb Starting Java OOP

    I am a C# programmer and I am tasked to teached OOP in Java. Upon scanning, JAVA and C# has very similar syntax so I maybe able to learn it quickly. My students has some basic knowledge with C and C++ so they are somewhat familiar with the syntax also.

    Now, what could be the best way to teach them OOP in JAVA? I would prefer cases based on real-world applications.

    TIA

  2. #2
    sunde887's Avatar
    sunde887 is offline Moderator
    Join Date
    Jan 2011
    Location
    Richmond, Virginia
    Posts
    3,069
    Blog Entries
    3
    Rep Power
    8

    Default

    I believe oop concepts are pretty similar between languages, the main difference is the syntax. How would you teach c# oop? For java it's similar, just learn the different syntax. The tutorials are an easy place to go to quickly identify what you want to learn and read about it a bit. Google "java really big index".

  3. #3
    Tolls is offline Moderator
    Join Date
    Apr 2009
    Posts
    12,006
    Rep Power
    20

    Default

    I despair.
    Someone has given you the task of teaching a subject in a language you don't actually know.

    Yes, C# is similar, but they are not the same language, since they are targeted at different platforms (C# being single platform, so can do lots of interesting things tied to Windows).

    "I speak Italian. I've been given the task of teaching Spanish. They look the similar..."

  4. #4
    dee-u is offline Member
    Join Date
    Jun 2011
    Posts
    19
    Rep Power
    0

    Default

    Yes I know, I preferred teaching C# but our program head insists on using Java instead, he told me it is easy, I thought it is the only language he is familiar with.

  5. #5
    Tolls is offline Moderator
    Join Date
    Apr 2009
    Posts
    12,006
    Rep Power
    20

    Default

    Joy.
    More people being taught by someone who doesn't knwo the language...
    DarrylBurke and Joel like this.

  6. #6
    Dark's Avatar
    Dark is offline Senior Member
    Join Date
    Apr 2011
    Location
    Camp Lejuene, North Carolina
    Posts
    643
    Rep Power
    4

    Default

    • Use [code][/code] tags when posting code. That way people don't want to stab their eyes out when trying to help you.
    • +Rep people for helpful posts.

  7. #7
    Tolls is offline Moderator
    Join Date
    Apr 2009
    Posts
    12,006
    Rep Power
    20

    Default

    No subsitute for actual being trained so that you can teach with confidence in your topic.

  8. #8
    Dark's Avatar
    Dark is offline Senior Member
    Join Date
    Apr 2011
    Location
    Camp Lejuene, North Carolina
    Posts
    643
    Rep Power
    4

    Default

    Agreed, but some times you gotta do what you gotta do. My Python teacher had no clue what the hell he was doing, he was trying to keep a chapter ahead of the class during the entire time he was teaching it. While he had the same understanding that the students had, we still managed to learn Python just fine and managed to produce some pretty good end of the year projects.
    • Use [code][/code] tags when posting code. That way people don't want to stab their eyes out when trying to help you.
    • +Rep people for helpful posts.

  9. #9
    Skiller is offline Member
    Join Date
    Jan 2011
    Posts
    67
    Rep Power
    0

    Default

    Quote Originally Posted by Dark View Post
    Agreed, but some times you gotta do what you gotta do. My Python teacher had no clue what the hell he was doing, he was trying to keep a chapter ahead of the class during the entire time he was teaching it. While he had the same understanding that the students had, we still managed to learn Python just fine and managed to produce some pretty good end of the year projects.
    The problem is that there is a HUGE difference between being able to program something, and being able to program something well, and unless a teacher is very experienced with a language they are unlikely to be able to teach you how to program something well.
    Currently developing Cave Dwellers, a Dwarf Fortress/Minecraft style game for Android.

  10. #10
    Dark's Avatar
    Dark is offline Senior Member
    Join Date
    Apr 2011
    Location
    Camp Lejuene, North Carolina
    Posts
    643
    Rep Power
    4

    Default

    I have no argument there sir, but some times in life we aren't able to have the most ideal conditions. He already stated that he doesn't want to, but is being told he has too.
    • Use [code][/code] tags when posting code. That way people don't want to stab their eyes out when trying to help you.
    • +Rep people for helpful posts.

  11. #11
    bigsonny is offline Senior Member
    Join Date
    Nov 2010
    Posts
    164
    Rep Power
    4

    Default

    Gotta pay the bills!

  12. #12
    JosAH's Avatar
    JosAH is online now Moderator
    Join Date
    Sep 2008
    Location
    Voorschoten, the Netherlands
    Posts
    13,519
    Blog Entries
    7
    Rep Power
    20

    Default

    Quote Originally Posted by bigsonny View Post
    Gotta pay the bills!
    True, but would you pay the bill for a plumber who can't tell the difference between a light switch and a faucet?

    kind regards,

    Jos
    cenosillicaphobia: the fear for an empty beer glass

  13. #13
    bigsonny is offline Senior Member
    Join Date
    Nov 2010
    Posts
    164
    Rep Power
    4

    Default

    Quote Originally Posted by JosAH View Post
    True, but would you pay the bill for a plumber who can't tell the difference between a light switch and a faucet?

    kind regards,

    Jos
    You're right that I would not hire such a person. But part of working as a teacher is instructing and politics. He has to satisfy the demands of his boss. This may not be the best java course, but the purpose of most academic courses is really to expose to to the basics of a course. Over time, they they learn to become better by practicing on their own and joining sites like this to ask for help and become better developers. My point is that the person asking the question is really just doing his job, so I can't fault him. He could be rebel for the cause but not everyone has what it takes to remain truly free. He'll find the way.

  14. #14
    JosAH's Avatar
    JosAH is online now Moderator
    Join Date
    Sep 2008
    Location
    Voorschoten, the Netherlands
    Posts
    13,519
    Blog Entries
    7
    Rep Power
    20

    Default

    Quote Originally Posted by bigsonny View Post
    You're right that I would not hire such a person. But part of working as a teacher is instructing and politics. He has to satisfy the demands of his boss. This may not be the best java course, but the purpose of most academic courses is really to expose to to the basics of a course. Over time, they they learn to become better by practicing on their own and joining sites like this to ask for help and become better developers. My point is that the person asking the question is really just doing his job, so I can't fault him. He could be rebel for the cause but not everyone has what it takes to remain truly free. He'll find the way.
    Also all true; I'm not blaming the OP (or anyone else for that matter) except for the 'boss'. Suppose you are in charge of school with a pool of teachers; none of them know anything about subject X; my (simple? naive?) conclusion is that the school can't teach subject X. Too bad for the school, but if money is more important than knowledge the head of that school should try to find a job at a sausage factory or something alike ... or, try to train some of the teachers in subject X, but training takes time and costs money which I call an investment.

    kind regards,

    Jos
    cenosillicaphobia: the fear for an empty beer glass

  15. #15
    bigsonny is offline Senior Member
    Join Date
    Nov 2010
    Posts
    164
    Rep Power
    4

    Default

    Quote Originally Posted by JosAH View Post
    Also all true; I'm not blaming the OP (or anyone else for that matter) except for the 'boss'. Suppose you are in charge of school with a pool of teachers; none of them know anything about subject X; my (simple? naive?) conclusion is that the school can't teach subject X. Too bad for the school, but if money is more important than knowledge the head of that school should try to find a job at a sausage factory or something alike ... or, try to train some of the teachers in subject X, but training takes time and costs money which I call an investment.

    kind regards,

    Jos
    I agree. That is part of the problem finding good programmers. I've heard of stories where a sub is dropped it sometimes who was a math professor and they ask them to continue teaching a CS class.

    Perhaps another way to look at it is the old adage that those who can't do teach. Many good programmers do just that, they program because that's how they became good in the first place and they feel that to become good programmers people should just code. I suppose that is the dilemma of a formal education. People attempt to convince others that everything can be taught in 3 months at a level that would be appealing enough to an employer...

  16. #16
    JosAH's Avatar
    JosAH is online now Moderator
    Join Date
    Sep 2008
    Location
    Voorschoten, the Netherlands
    Posts
    13,519
    Blog Entries
    7
    Rep Power
    20

    Default

    Quote Originally Posted by bigsonny View Post
    Perhaps another way to look at it is the old adage that those who can't do teach. Many good programmers do just that, they program because that's how they became good in the first place and they feel that to become good programmers people should just code. I suppose that is the dilemma of a formal education. People attempt to convince others that everything can be taught in 3 months at a level that would be appealing enough to an employer...
    When I was a young whippersnapper I attended a couple of lectures given by Edsger W. Dijkstra; I think noone can say that "he couldn't" but he was also a great teacher although he was completely mad. Maybe he was an exception to the rule; he had absolutely no mercy for the students and it sure took more than three months to completely understand what that man was talking about but imho, that is the way to do it: no mercy for the students but teach them well. If you can't teach them well, don't try to do any teaching at all.

    kind regards,

    Jos
    cenosillicaphobia: the fear for an empty beer glass

  17. #17
    bigsonny is offline Senior Member
    Join Date
    Nov 2010
    Posts
    164
    Rep Power
    4

    Default

    Quote Originally Posted by JosAH View Post
    When I was a young whippersnapper I attended a couple of lectures given by Edsger W. Dijkstra; I think noone can say that "he couldn't" but he was also a great teacher although he was completely mad. Maybe he was an exception to the rule; he had absolutely no mercy for the students and it sure took more than three months to completely understand what that man was talking about but imho, that is the way to do it: no mercy for the students but teach them well. If you can't teach them well, don't try to do any teaching at all.

    kind regards,

    Jos
    I agree with that. I believe in the tough teacher approach (works well in programming because) it forces students to be less dependent on spoon feeding but the mere fact that you are here suggests that you were internally motivated. Also, there are only so many great programmers in the world who are "able to teach" and able to do. The reality of it is that the vast majority of people encounter mediocre teachers of the subject. What matters most is teaching a method. Teaching student to think and the process by which they should acquire more knowledge.

    A CS course should be about learning the principles of programming, good habits and how to use resources (API, other coders, books, elbow grease) to develop useful applications. It is not about teaching them everything about a language. I think the OP will be more successful if he focuses on principles rather and syntax and big picture stuff and encourages his students to spend time in the lab coding. Using a real world application as he stated is a great way to motivate students because we all know how much crowds dilute competencies, interests and engagement...

    Anyway, we could discuss this all day. Good chatting with you. See you in the next thread where I'll ask a simple question that will only be evident after the answer is posted...haha!

  18. #18
    JosAH's Avatar
    JosAH is online now Moderator
    Join Date
    Sep 2008
    Location
    Voorschoten, the Netherlands
    Posts
    13,519
    Blog Entries
    7
    Rep Power
    20

    Default

    Quote Originally Posted by bigsonny View Post
    I agree with that. I believe in the tough teacher approach
    True, I also happen to be the inventor of The Rotating Knives (tm) for the spam-o-matic for this forum and I was the (re)inventor of the head-first-defenestration for those same spammers, so beware ;-)

    Anyway, we could discuss this all day. Good chatting with you. See you in the next thread where I'll ask a simple question that will only be evident after the answer is posted...haha!
    Don't put your money on it; I'm a mathematician and those math folks are weird: they're like the Greek, i.e. you give them a problem and they translate it to their own language and before you know it you won't recognize your own problem anymore ;-)

    kind regards,

    Jos
    cenosillicaphobia: the fear for an empty beer glass

Similar Threads

  1. starting java
    By ashwin kumar in forum New To Java
    Replies: 11
    Last Post: 06-08-2011, 09:47 AM
  2. Just starting to learn java~
    By bakalove in forum New To Java
    Replies: 3
    Last Post: 05-26-2011, 02:10 AM
  3. Starting Java prog from a different folder
    By entropy in forum New To Java
    Replies: 2
    Last Post: 04-02-2010, 09:39 AM
  4. IE7 crashes on starting java web application.
    By gosia.gabriel in forum Advanced Java
    Replies: 1
    Last Post: 01-19-2009, 02:29 PM
  5. Help, starting with java
    By mathias in forum New To Java
    Replies: 2
    Last Post: 08-15-2007, 07:15 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •