Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Java The Thing About Strings

I have been doing coding for a while, I understand code well, but when it comes to writing it takes me time also

have been doing coding for a while, I understand the code well, but when it comes to writing it takes me time also I am unable to finish the code or write the code, I forget concepts, how much and how many hours of practice is required?

7 Answers

Christof Baumgartner
Christof Baumgartner
20,864 Points

Hi Aditya,

first of all: This is completely normal and everybody starting with coding has thoughts like "Oh man, I learned this 2 days ago, but already forgot how to do it", or "I am doing this for months, and still made a so silly mistake". So no worries here.

Regarding how much you need to practice: This depends a lot on how huge the area is that you want to cover and how deep the knowledge level is that you want to gain. Getting a real full stack developer, who creates large applications from databases, over logic, to the frontend and presentation can take some years, but this doesn't mean that you will need this long to create some useful applications. Many companies have their experts for single topics. So one QA engineer is nearly only writing tests, or Frontend Designer is mainly designing frontends and mockups without writing a lot of code and finally a Backend Developer is maybe only working with some specific libraries to create the logic, but doesn't has to care how to this gets presented. It really helps you to focus on an area, that you work with every day.

In the end it is good to practice the stuff that you have learned with some small projects and continue to master the tasks that you like, because you will learn a lot faster when you work on tasks that you like. Some people like to work with Data structures, other like more the functional and logic part. However all of this specializations are searched by companies, so don't worry that you learn something 'wrong'

You find good combination of skills in the Tracks. When you complete one of these tracks and practice the learned skills a little bit, you are usually ready to tackle some real-world-problems :)

Christof Baumgartner
Christof Baumgartner
20,864 Points

Practice really helps here ;-) When you write the same line for the 30th time, you will usually remember it.

But another thing that really helps, are Cheat Sheets. That means that you write a lot of small code fragments in one document. When you have the feeling that you now know how something works, you can remove this from the cheat sheet. This way your sheet don't gets too long and there are only difficult and annoying statements on your cheat sheet. There are also already finished cheat sheets on google, that help you to get started. You can write this in a text-editor, or on real live post-its. Finally a good practice is, to not copy-paste the code from your cheat sheets, but write it by hand. This will help you a lot to learn it.

Christof Baumgartner
Christof Baumgartner
20,864 Points

For getting involved in new open source projects, check out Github: https://github.com/ A lot of users are working on their ideas here. Think of a project that you would like to work on and search for it and the language that you want to use. When you have found something, clone the code to your system and start to work on your features. When you are happy with your work, then push it on a new branch and show the other guys what you have made. When it is good stuff and matches to the project, they are usually happy to include it.

Mohammad Laif
PLUS
Mohammad Laif
Courses Plus Student 22,297 Points

For me it takes me a few Android Apps, using this way:

Start with pseudocode (or just a simple sentences that explains what you will do, like treehouse teachers do) always write them as //comments. Then convert it to codes (its very normal to google, read docs, review your notes in this stage).

After awhile your mind gonna think in pseudocode, and then your mind gonna think in Java (in that moment its hard for your mind to forget concepts ? ).

Also do you happen to know about any open source projects where I can hone my skills more, like practice. I have been learning a lot here tho . a Lot.

Mohammad Laif
Mohammad Laif
Courses Plus Student 22,297 Points

Open source projects on GitHub that need your help! Try this site, it will send you issues and you gonna fix them. https://www.codetriage.com/?language=Java

Or start your own :).

I really appreciate, thanks for replying quickly.

Yes, you are right, my main area of concern is backend, as I am Hadoop developer. Hadoop has their own sets of language. But java will make me a more power Hadoop developer.

So my main focus is Back-end. Also sometimes I miss the logic like I knew the logic a week back and totally understood it, but now here I am unable to write the same line of code. can I get some suggestions there?

any open source projects you would like to recommend?

Christof Baumgartner
Christof Baumgartner
20,864 Points

What do you mean with open source projects?

Open source projects where I can build java programs.

Ryan Wittrup
Ryan Wittrup
9,156 Points

trending java repos

most forked

most starred

honestly, if you want to get better, you just need to build things. i don't know what exactly you mean by "Open source projects where I can build java programs" so hopefully those repos can help.

but you really just need to start with an idea or concept and build. you will run in to problems and challenges but you will learn the most by creating something of your own. it doesn't have to be some new idea either - find a site or API you like and just try to copy it.