Several times I get people that send me a DM and they say, "I am trying to learn JavaScript but I've hit a wall. I'm tired of doing tutorials but I don't think I'm confident enough to work on my own project."
I usually tell them to just take a little piece of something and build it out. Don't worry about creating the most Slick UI and UX and Responsiveness, etc.

If you're trying to learn JS you should be focusing on JS.
I usually tell them to create a Calculator. But maybe just start with one math function. So make a calculator that only ADDS two numbers together. Then you can work on subtraction, etc.
A few times I have told people to take their favorite sport or tv show, or game and just recreate the smallest piece you can think of.
A couple of times I've used the game of Baseball. Mostly because it is a "slow" paced game. You have a batter and a pitcher and there is essentially no time limit between pitches.
I've given tasks like this to people and:

A) I've offered to help them if they get stuck
B) I've offered encouragement
C) I've offered to get them started by going through the basic "business logic"

But so far no one has completed the task.
I started thinking that maybe it was too complicated so I decided to put my money where my mouth is and try it for myself.

This is JAVASCRIPT so fuck the UI. It's literally only there to allow you to see the output. Technically, you could even do this all in the console.
I'm doing "Baseball". Its seems pretty simple at the outset.

I needed State for Balls, Strikes, Outs, Innings, and Score.

Personally I like a challenge like this because there are hundreds of ways to pull it off.
Here is my start at a solution. It's not finished yet, there are some bugs to work out but most of it is there.

This is about an hour of work including running create-react-app and then pushing it up to GitHub and writing this "Blog Tweet".

https://github.com/denvercoder/easy-baseball
1) I'm not looking for help. If you want to offer your suggestions then please fork the repo and finish it yourself or try your own solution.

2) This is NOT the best way to do it, it was the FASTEST. I'm sure that if I took the time I could come up with a better way. Refactor!
3) The purpose of this project is to practice JAVASCRIPT. I'm not interested in CSS, HTML, etc. Forget the UI even has to exist at all.

But for you if you want to try this it doesn't HAVE to be JavaScript, it can be C#, Python, Cobol, etc. Whatever you're trying to learn.
The point of a project like this is to take what you've learned or THINK you've learned and apply it to something.

In a job situation you are usually given a piece of functionality to complete. Your boss isn't going to tell you to code out an entire project before lunch.
When I started as a developer it was like 3 years until I got to actually START a new project. Before that I was fixing bugs and adding/enhancing features.

Anyway, that's all for now.
You can follow @denvercoder.
Tip: mention @twtextapp on a Twitter thread with the keyword “unroll” to get a link to it.

Latest Threads Unrolled:

By continuing to use the site, you are consenting to the use of cookies as explained in our Cookie Policy to improve your experience.