Answer the question
In order to leave comments, you need to log in
How to deal with depression or how to master java?
Hello. I am a 2nd year student, I have been interested in the java language for 1 year already, I know swing, SQL, a little android, html, css, OOP, MVC, my English is rather weak. But I just can’t write even a simple program, I constantly look for answers on the forums and start licking off the code and then changing it to my needs. I am tormented by the fact that I cannot write my own code - just by opening the documentation, I do not know how to make a get request, because I have already forgotten that example from the forum that I once read, I forgot how to work with socket. What should I do, how do people learn a language, how can I remember all this? I'm sorry, but depression is starting to overtake me. Java is my first language, I really like it and don't want to start learning something else yet.
Answer the question
In order to leave comments, you need to log in
More practice.
Spend 500 hours and get the result.
It didn't work out in 500 hours - try, learn 1000.
PS If it didn't work out in 2000 hours, then you should quit.
It's okay if you use someone else's code, it's always when you start to learn technology ... over time, when you gain enough experience, there will no longer be a need to google basic things. And to get that experience, just start writing. For example, try on your own (according to the description on Wikipedia) to write basic algorithms (sorting arrays), then move on to more complex ones (the problem of dining philosophers). You can try to write a simple game (tic-tac-toe, etc.).
I will say in advance - most likely, it will seem to you that nothing is working out and your head is torn from the confusion of thoughts. But very quickly, your thoughts will begin to order and systematize (often immediately the next day). When you are interested in something, any technology, just do not suppress this curiosity, but on the contrary - look for more information on this topic.
Read other people's code more, read literature on programming practices and patterns - this will help you write better code. Watch videos from conferences, read articles.
More practice, more useful information - you will see how you will grow.
This is fine. Nowadays, to write even a banal Hello world, but using the framework, it’s better to get into the documentation or into the ide generator somewhere and copy or generate, because the subtleties of syntax are usually not memorized.
It is only remembered that there are such and such opportunities for such and such frameworks and this is done in such and such a way, but the syntax itself is not remembered.
If you can dig into the examples and roll out a decent result, then everything is fine.
It is advisable, of course, to read at least one book on the topic you want to deal with, because. in this way, the learning process will go much faster - the framework tutorials give frequently used examples and a little explanation - this is enough to use such knowledge to write programs with the functionality that you learned from the examples.
Do not worry now everyone writes like that, because. the volume of possibilities of modern programs is very large and it is unrealistic to remember the syntax of each library, it is really impossible to remember why it is needed and what tasks can be solved with its help.
Java is a rather verbose language. Plus, they often write on it in such a way that you won’t understand the first time. I also tried to master it. Learned the basics. But things didn't go any further. Threw. Try other languages. What is this language that you like and cause so much torment? This is not "like", and inertia does not allow him to quit.
I don’t see a problem, in Google you didn’t seem to be banned. I don’t remember the syntax of the simplest substr in puff or JS at all, but I calmly open a resource on the Internet and look there. Learn a language != memorize function names. There is nothing in going to the stackoverflow and copy-pasting an example of an Ajax request, paste it for yourself. Any programmer must have the Internet at hand. IMHO.
Antidepressants + phenosipan or phenibut. They helped me at the time. As for programming, some people teach just like you, the main thing is to realize that it's time to change something in this life, to go over your head to write your code. Make a lesson plan and step by step go to your goal. Everything you read should be immediately consolidated by practice and more than once. Yes, for a long time, but if you continue in the same spirit, then in the end you will not reach the goal and become a mediocre developer, if at all. As for incomprehensibility, you most likely need to find the right book, try video courses.
I don't remember many things myself. However, this does not greatly interfere with the work of a Java EE developer (although sometimes annoying). The Java world is huge - it's impossible to remember everything. The only thing is that over time, first of all, you will start to turn more often to the official documentation of libraries and frameworks, and only then to stackowerflow.
I don't want to advertise, but I got hooked on JavaRush and stuck there. Try it, you'll like it!
As Anthony Melchiorri says, "That's why we have a job. People like you think it's so easy!"
It is hard work. You have to constantly fight with yourself. A huge number of hours are spent on a nervous search for information and solutions. You don't have to figure out if you're ready to read a lot of literature or practice a lot. First of all, understand whether you are ready to spend your nerves. Because your experience and knowledge will not reduce the hassle, but only make the tasks more difficult.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question