r/learnjava • u/[deleted] • Jan 02 '24
Is ChatGPT a good teacher in learning Java from scratch?
I'm a beginner and I have been using ChatGPT to try and make a bunch of random projects for fun, noticed how whenever I asked questions, it usually provided with an answer I was satisfied with though there are times where in I have no idea whats going on, I'm just copy-pasting the lines of code they'd sent, and when there are problems, I'd give it to them for them to debug, usually it doesn't end well since they struggle with remembering the past code they'd sent to me.
Despite that, I really like how ChatGPT explains every single bit of code in my language, in layman, and they'd give fun activities for me to try and make/debug. I wonder if it's worth investing my time in ChatGPT as my teacher or should I go and find an actual real teacher/course?
(The reason why I'm saying this is because most professors that taught us how to code weren't that "helpful", and since there was so many of us, they couldn't do 1-1 sessions)
Also my college course rn isn't exactly affiliated towards coding and I can't afford adding elective courses which is why I'm resorting to online.
If you guys got any thoughts regarding gpt, or great courses online, whether free or cheap from your experiences, I would be eternally grateful as I really want to understand java better as I have a few passion projects that I have been wanting to do for years.
20
u/moss_2703 Jan 02 '24
I would say no. It regurgitates online information and can often be wrong.
It is very good for debugging so I’d follow online tutorials and then debug with it.
2
Jan 02 '24
Interesting, in general how should I use GPT in my coding journey. I understand that I should learn to solve stuff on my own, but I like using every resource I have so at the bare minimum, how do you use it (besides debugging)
Thank you
3
u/moss_2703 Jan 02 '24
That’s hard to answer because chatgpt only became available near the end of my studies. Back then people often used it to cheat.
I would say use it to explain concepts and to bug fix code. Just make sure you are learning and not just copying the code it gives you, ask it to explain and try and understand it.
2
Jan 02 '24
Okay cool, thank you.
After reading the other comments and self analysis I think my best course is to learn stuff on my own and if I don't understand a concept, I can simply check the internet, and if I still dont understand it, maybe GPT will help bridge the gap.
8
u/DDDDarky Jan 02 '24
I'm a beginner and I have been using ChatGPT
Stop, this alone is a recipe for disaster.
I'm just copy-pasting the lines of code
I would never recommend using it for writing code, especially if you are a beginner. (Also you don't learn anything by doing this)
I wonder if it's worth investing my time in ChatGPT as my teacher
No, ChatGPT is not a reliable source of information, it is not a teacher.
most professors that taught us how to code weren't that "helpful", and since there was so many of us, they couldn't do 1-1 sessions)
That is very common, shall be noted teachers should only teach you the absolute necessary minimum so that you are able to learn on your own.
1
Jan 02 '24
Hello, happy cake day, yeah I honestly felt that while using gpt. The main reason why I used GPT in the first place was because I kept seeing so many videos and articles regarding these "ai code bot things" which could assist me in learning, and when I searched which one is the best, GPT popped up, ofc I decided to use it but then I felt like it was weird or lacking which was why I decided to post it in Reddit and I'm glad I got confirmation that it's basically shit. (Well most said so)
Despite that I'm still confused, is there actually an assistant bot or something which can assist me in learning?
A user commented about me going for an approach where in I'd go for a course I'd choose and use GPT or some assistant to help me understand it more, that was basically my plan from the get go and is what I'm planning on doing but I'm not even sure GPT is a viable assistant, in which case do you know of a tool or application that will help me understand things even further?
Like for example I started to learn booleans, don't understand it much, I can ask this tool about it and would explain it to me in layman's term, or even just give me activities for me to use if else statements, etc.
Thank you so much! Happy birthday 🎂
1
u/DDDDarky Jan 02 '24 edited Jan 02 '24
many videos and articles regarding these "ai code bot things"
Also lots of these people creating them don't know what they are talking about, often just spreading misinformation.
it's basically shit
I mean, depends on the point of view, in many aspects it is interesting - the scalability of language models, but it should not be used for coding or learning (with few exceptions).
Rule of a thumb, if you don't know whether you should use it for something, ask yourself: "Does it matter whether the answer is true?" If no, you can use it.
If yes, ask yourself: "Can I absolutely verify whether the answer is true?" If yes, you can use it. (which usually involves finding the actual information source, which could be done in the first place. In case I did not make it clear, running generated code is not such verification) If not, don't use it.
is there actually an assistant bot or something which can assist me in learning?
I cannot imagine what kind of assistant would that be, if you need to learn something that is truthful, it is best to use Google or relevant literature, in case you need help looking up information I think there were some services that helped forming search queries or what not, I cannot tell if it is any good, but at least you get the actual information source, not made up nonsence. Other than that, there are certainly some organizational/planning apps.
some assistant to help me understand it more
Since you are a beginner, I am fairly certain any question you could possibly have has already been asked and answered, it is just about using Google properly. By the way, looking up information is pretty essential and extremely useful skill.
give me activities for me to use if else statements
Making up exercises/project ideas is a legitimate use case, as long as you are able to implement and verify your solution.
Thank you so much! Happy birthday 🎂
Np, it's not my birthday, but thanks anyways
1
Jan 02 '24
Oh alright, it says cake day on your thing, thought that meant happy bday, wont retract the statement though cuz at this point, id jusst say happy bday again haha.
Also I like ur ideology regarding using information. And you know what, you're right regarding the part where in what I'll look for is probably already in the internet, I guess I just need to be even more willing to go out of my way to learn, (im not saying its a bad thing, its just the truth and I'm all for it)
Either way thanks for the help, I'm gonna try to understand what you said about gpt, I guess it is good only in niche cases and not on learning code.
20
u/desrtfx Jan 02 '24
It is absolutely not.
Do a proper course, like the MOOC that Automoderator suggested.
The problem with your approach is that you might eventually learn the commands, the syntax, but you actively avoid learning the most important aspect of programming: problem solving
You need to become able to analyse and dissect problems, then to devise algorithmic step-by-step instructions that then can be converted into code in any programming language.
You are shooting yourself in both feet with your approach.
Invest some real effort and work and learn the proper way.
0
Jan 02 '24
Thank you, good to know, will be doing MOOC soon after I finish another tutorial by kaupenjoe, im planning on creating a mod. Then hope that the resources I learn can be invested in other projects as well, my end goal for 2024 is to make something big, idk what it is yet
2
u/AutoModerator Jan 02 '24
It seems that you are looking for resources for learning Java.
In our sidebar ("About" on mobile), we have a section "Free Tutorials" where we list the most commonly recommended courses.
To make it easier for you, the recommendations are posted right here:
MOOC Java Programming from the University of Helsinki
accompanying site CaveOfProgramming
accompanying site NewThinkTank
Hyperskill is a fairly new resource from Jetbrains (the maker of IntelliJ)
Also, don't forget to look at:
If you are looking for learning resources for Data Structures and Algorithms, look into:
"Algorithms" by Robert Sedgewick and Kevin Wayne - Princeton University
Coursera course:
Coursebook
Your post remains visible. There is nothing you need to do.
I am a bot and this message was triggered by keywords like "learn", "learning", "course" in the title of your post.
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.
1
2
1
u/CodedCoder Jan 02 '24
No way, it is often wrong and can often make simple problems way less simple, it is okay for debugging but even then it can be iffy.
1
Jan 02 '24
I see, is there an online assistant that could assist me in learning stuff, giving me tips and such besides the already integrated ones at inteilij?
Thank you
1
u/JonIsPatented Jan 02 '24
For the love of god, when will people just stop trying to use Chat GPT as some kind of programming teacher. Just stop. No, it's not a good idea. No, Chat GPT will not be a helpful tool in learning for you. No, you should not use it to learn Java or any other language for that matter.
1
Jan 02 '24
Sorry it's hard to really see what's right and wrong thanks to the vastness of information. In my pov I see so many videos and websites, articles claiming that you can learn to code via AI chat bots, and other methods, so I'm really confused, glad I got to post in Reddit though, pretty much confirmed that it's best to go for traditional routes.
Might even consider just taking an actual paid course at my campus.
Thank you
1
u/Appropriate_Move_336 Jan 03 '24
You have to know that those people that are saying you can use gpt to learn how to code are already into programming in other terms they know how to code already so they only need to get familiar with the syntax of the new language they are learning which is different...
1
Jan 04 '24
Actually that is fair logic, ofc it's hard to know too without their context in mind. Either way I already got a plan in mind, thank you.
1
u/glablablabla Jan 02 '24
If you rely on chatGpt alone then I would say it's not good. In my opinion it is too risky because chatGpt can hallucinate sometimes. If you do a, for beginners structured, course and use chatGpt as a support for stuff where you are not so sure cross referenced with stackoverflow, then I would say that's a pretty neat combo.
1
Jan 02 '24
Oooh, that's interesting, actually my main goal of posting this is to find a tool or assistance thing that can help me understand things better, in layman's essentially. I really want to code, however I'm not the brightest person so having a reliable tool to assist me whether it's AI or not it's highly beneficial.
Besides GPT and bing which another user pointed out, do you have any other tools I could use?
Still confused if I should use GPT or not, lots of people claim it to be shit, some say it's good in terms of debugging. You got tips?
3
u/glablablabla Jan 02 '24
I think chatGpt is a good tool when used in the right way. If you are an absolute beginner I would recommend you to cross reference chatgpts claims because depending on the complexity of your questions towards it it can happen that it just invents stuff up. I would recommend it in combo with an online course or a book though.
1
Jan 02 '24
Hahahaha, thanks, will be doing that, also I can imagine gpt making shit up, just straight up make illegal moves. XD
3
u/JaleyHoelOsment Jan 02 '24
No probably not. Programming is about learning how to solve problems, chatgpt spoon feeding you answers is the opposite of useful. your less than “helpful” professors were doing you a favour
1
u/sweetno Jan 02 '24
What I observed is that AI is pretty good at providing summaries. It can basically compile many information sources in one and present it as a single piece.
I, however, would recommend not ChatGPT, but Bing AI since it shows links for the source info.
1
2
u/ArmoredGiraffe Jan 02 '24
No because it can be incorrect and depending on what you have asked it previously, explicitly not give you what you're asking for, with my answer coming from my experience as a very recent (Dec 23) computer science graduate.
I do endorse it for troubleshooting guidance and to help understand concepts you are not understanding while learning Java or parts of code you do not understand.
If you're looking for courses to learn Java, I recommend finding someone on YouTube that presents the information how you prefer and to follow along with their course. If you have kindle unlimited, there are also Java books in the Kindle unlimited section you could download for free to supplement your learning.
0
Jan 03 '24
[deleted]
1
u/ArmoredGiraffe Jan 03 '24
None so far, but where I am currently located is not a great market for any kinds of jobs much less ones that I am looking for ie software dev/engineer or even IT.
I did not get any internships, but was limited to select locations and remote positions while also not trying as much as I should have and looking back my application was probably lacking. The projects on my resume are mostly stuff from my 400 level courses with a few small personal ones sprinkled in. I plan on doing at least two personal projects, one being a personal website using a Spring Boot stack and the other will be some sort of Java only project that people recommend. Think a library management system or something to that scale.
Good luck on your last year!
2
u/Lilianne_Blaze Jan 02 '24
No, at least not as a primary source. It's useful, but it often pulls things out of its ass, and you need to have some prior knowledge to recognize what needs verifying. Think a smart guy who pretends to be helpful and very often is, but regularly throws in some false or misleading pieces of info just for shits and giggles.
2
1
u/buddhacatmonk Jan 06 '24
It's good for researching. For example if you're interested how strings work internally, you could ask ChatGPT to explain, but you should also do actual web searching as well.
ChatGPT is a great tool for assisting you in learning and work, but it's not something to be used in isolation.
0
•
u/AutoModerator Jan 02 '24
Please ensure that:
Your code is properly formatted as code block - see the sidebar (About on mobile) for instructions
You include any and all error messages in full - best also formatted as code block
You ask clear questions
You demonstrate effort in solving your question/problem - plain posting your assignments is forbidden (and such posts will be removed) as is asking for or giving solutions.
If any of the above points is not met, your post can and will be removed without further warning.
Code is to be formatted as code block (old reddit/markdown editor: empty line before the code, each code line indented by 4 spaces, new reddit: https://i.imgur.com/EJ7tqek.png) or linked via an external code hoster, like pastebin.com, github gist, github, bitbucket, gitlab, etc.
Please, do not use triple backticks (```) as they will only render properly on new reddit, not on old reddit.
Code blocks look like this:
You do not need to repost unless your post has been removed by a moderator. Just use the edit function of reddit to make sure your post complies with the above.
If your post has remained in violation of these rules for a prolonged period of time (at least an hour), a moderator may remove it at their discretion. In this case, they will comment with an explanation on why it has been removed, and you will be required to resubmit the entire post following the proper procedures.
To potential helpers
Please, do not help if any of the above points are not met, rather report the post. We are trying to improve the quality of posts here. In helping people who can't be bothered to comply with the above points, you are doing the community a disservice.
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.