This is just a boilerplate, you can add auth on top of it like any other app. Anyway, soon we will add another example which uses auth and handles sessions.
This is a great and such a underrated topic. Thanks for bringing out.
There are 3 things that I practice and I feel has guaranteed wins.
1. Fitness-
Damn Right. Several people have given the reason. and its as simple as putting half and hour, 5 days a week in moving your body. Keeps you physically fit and mentally robust. At times I have realized that my mental activeness is directly proportion to the exercise and my fitness level.
2. Family and Friends-
Yes, they are the support mechanism. Talking to them and taking some time out to talk to one of your closest friends(friend/mom/wife) will help you shift your focus from your business into people that matter to you. Believe it or not at some point you will realize that relationships and people matter the most and investing in them is a worthwhile guaranteed win.
3. Fun-
The part would be just having fun, doing something that you love. The best part is you can easily fit it into your daily schedules. Just after your office hours, give 30 minutes unwinding yourself by doing a hobby that you love (e.g. reading a book, writing the journal, playing that guitar, singing songs, playing basketball). Life is short and ultimately everyone makes money so that they could have fun or do what they love, why not do it everyday. It helps you completely detach yourself from your day at office. Fun everyday, keeps stress away.
I am myself learning, struggling and learning right now.
Here's my conclusion on how to learn programming-
1. Pick a language(say Python or Ruby or JavaScript), no matter what, just stick to it for sometime (maybe 3 months).
2. Quickly go through a very light book/tutorial in the languge(learn python the hard way, or ruby hard way) (max 6 hours)
3. Build a small program for yourself. Solve your simple, stupid problem (e.g. a small interactive calculator). Keep pushing your limit with every small project. Try to learn a new concept of the language always. Hard part would be figuring out what "new concept" to learn? At this point, pick a advance book of the language(e.g. Programming Ruby), skim through table of content to see what you haven't implemented yet.
4. Keep learning basics. ie. keep digging deep into concepts (e.g. understand how lambda function really works)
5. After a good grasp of language, pick up a framework and start building apps(small apps to bigger apps).
6. Repeat from 1 to 5, until you feel confident.
7. Venture out, try out other languages/frameworks.
Tips-
1. Read blog posts regularly from people good in that language.
2. Don't get overwhelmed by how much you have to learn. Go easy but go full. Learn things properly.
3. Do Algorithms and data structures problems regularly.
4. Don't just copy and paste code. Understand it properly and then type it. (It helps)
5. Be consistent and Persistent. (Code daily, don't give up)
Please try it out, would love to get your feedback.