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 trialMasum Hasan
638 PointsHaving difficulties to build up a logic when I try to solve a programming problem.
I had a little bit of previous experience with other language like C and Java. But I was never good at building up a logic whenever i try to solve a problem on my own.
When I follow a tutorial, I understand the concepts and I feel like i can solve a problem according to the concepts i just learned. But I can't. Right now I'm trying to learn JavaScript. And yet again I'm facing the same problem. I understand the concepts, but can't solve the practice problems properly. It's very frustrating for me.
How can i overcome this situation? What should i do?
2 Answers
Henrik Christensen
Python Web Development Techdegree Student 38,322 PointsThe 3 P's
- Practice
- Practice
- Practice
Try build small projects on your own using what you're learning. It will be difficult in the beginning, but the more you practice the easier it will get.
Sometimes it's also help to break a problem into small bites.
example
// this is an easy example
// I want the console to print the numbers from 1 - 100
// first I need to make the program count from 1 - 100
// I do this with a for-loop
for (let i = 1; i < 101; i++) {
// now I need to make the program print the numbers to the console
// I do this with console.log
console.log(i);
}
I know this was a very simple example, but I hope you understand what I mean by turning a big problem into smaller bites :-)
Masum Hasan
638 PointsI heard about freecodecamp but I haven't tried yet. I will sure give it a try. Thanks.
Masum Hasan
638 PointsMasum Hasan
638 PointsThank you. Can you suggest me some free online resources where i can get some practice programming problems with solutions?
Henrik Christensen
Python Web Development Techdegree Student 38,322 PointsHenrik Christensen
Python Web Development Techdegree Student 38,322 PointsHave you tried freecodecamp.com?