Things to do as a Javascript Beginner by akintunde

View this thread on steempeak.com
· @akintunde ·
$0.74
Things to do as a Javascript Beginner
#### Repository
https://github.com/nodejs/node

#### Introduction
Javascript runs almost anywhere. It is like a passport that can take you to any country. How else do you describe a language that puts 

your application on almost any platform. Python does something similar but doesn’t run on a browser. Javscript does .

This post will teach you some things you should do quickly before you get stuck in some really *bad Javascript mud*.

#### Post Body

- ### Learn What Async/Wait and  Call Back Hell is.

*Mr. Hackathon: What! Didn’t you read the documentation?
Mr. Appathon: No, sire
Mr. Hackathon: Then, how did you build the app?
MR. Appathon: I like to dive in first , then read the swimming manual while I drown.*

The truth is that many of us learn like that, we read the basic parts of the documentation and run away in excitement until we get un-

excited with new concepts we forget to read about. I am not about to judge that. Everyone has a right to learn anyhow they so wish.

Here is what I am here to do, if you like Mr. Appathon above , you didn’t read the whole documentation of JS before starting up and  the 

you still don’t know what Async/AWAIT and CALLBACK hells means, leave this article, close your browser , close your eyes , tell yourself  

you have done something wrong, then search google or buy  a book to learn that shit.

When you are done, come back and read the rest of this article.

> #### Getting stuck in Callback Hell is always because you didn’t know it existed before. 

- ###	learn the importance of ‘NPM  LINK’  , it will save you time and internet data. Why waste Data? 

You could easily read about this off the internet but let me give you a summary of what it does. 

Nodejs Modules can be installed globally to work on any directory on your pc or installed locally to work within your project. 

This can be done with a slight difference in the install commands as shown below:

*Local Installation for Steem goes thus:*
<code> Npm install steem</code>

*Global Installation for Steem*
<code> Npm Install Steem –g</code>

I think everybody knows that  but it is worth mentioning.
When you run “npm link” in your local environment, it gives the app in the local environment access to all modules you installed globally 

with ` Npm Install <module> –g`.

So, whenever you pull a new code and it has new dependencies, running `npm install ` on the code will not prompt the dependency to 

reinstall all over again. If you are a beginner and you are not been faced with some special needs , I suggest you always install your 

apps with `npm install –g` and consequently with `npm link`. This saves you a lot of time and makes development and local testing easier.

- ### `npm install nodemon –g`
Run this commands above and you will be so happy you did.
 I hope by now , you know that to run a script on your CMD or SHELL, you need to use `node test.js`, this command will run a javascript 

file relative to the path you are cd-ed into  with a name `test.js`. 

Remember that anytime you make any changes to this file, you need to go back and restart this file again with `node test,js` to see the 

new changes.

Here is the what nodemon does, it restarts the file for you on detection of new changes, by the time , you’re checking your shell/cmd or 

your front end , the changes are already running. 

The rule is that to put nodemon to action, install it globally and run your scripts like this `nodemon test.js` instead of like `node 

test.js`. This saves you a lot of stress.


#### NOTE: In case you need an extra npm linking feature , try and use this awesome tool : NPM LINK SHARED, you can find it [here on 

github]( “https://github.com/OrKoN/npm-link-shared”).

Good Bye Until For now.

#### Resources
- [The Magic Behind NPM LINK]("https://medium.com/@alexishevia/the-magic-behind-npm-link-d94dcb3a81af")
- [Learn Async Await By Example]("https://codeburst.io/javascript-es-2017-learn-async-await-by-example-48acc58bad65")

### My Github Account
https://github.com/akintunde102
![akin.PNG](https://ipfs.busy.org/ipfs/QmedbKF7L3aVW5TKBwQY2B51cFJAZExJRfpDmmCwq4YFvF)

👍  , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
👎  
properties (23)
post_id67,403,420
authorakintunde
permlinkthings-to-do-as-a-javascript-beginner
categoryutopian-io
json_metadata{"format":"markdown","users":["alexishevia"],"image":["https:\/\/ipfs.busy.org\/ipfs\/QmedbKF7L3aVW5TKBwQY2B51cFJAZExJRfpDmmCwq4YFvF"],"community":"busy","app":"busy\/2.5.6","tags":["utopian-io","blog","busy","steemstem","technology"],"links":["https:\/\/github.com\/nodejs\/node","https:\/\/github.com\/OrKoN\/npm-link-shared\u201d","https:\/\/\"https:\/\/medium.com\/@alexishevia\/the-magic-behind-npm-link-d94dcb3a81af\"","https:\/\/\"https:\/\/codeburst.io\/javascript-es-2017-learn-async-await-by-example-48acc58bad65\"","https:\/\/github.com\/akintunde102"]}
created2018-12-14 08:23:18
last_update2018-12-14 08:23:18
depth0
children1
net_rshares1,306,538,520,676
last_payout2018-12-21 08:23:18
cashout_time1969-12-31 23:59:59
total_payout_value0.586 SBD
curator_payout_value0.158 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length4,131
author_reputation16,553,464,008,506
root_title"Things to do as a Javascript Beginner"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
author_curate_reward""
vote details (39)
@didic ·
$0.03
Hey there!

This is an interesting contribution, but it isn't quite a blog post. With more detail and specificity, a similar post could fit our Tutorials category. We expect blog posts to be more editorial and personal, whereas this is almost entirely technical.

If you want to contribute content that is relevant to Utopian, please read our [guidelines](https://join.utopian.io/guidelines). I would also recommend reading our weekly [Top Of Utopian posts](https://steemit.com/trending/topofutopian) to get an idea of the kind of content we particularly like.

I look forward to seeing awesome relevant content from you in the future. 

Due to ineligibility, your contribution has not been evaluated.

---- 
Need help? Write a ticket on https://support.utopian.io/. 
Chat with us on [Discord](https://discord.gg/uTyJkNm). 
[[utopian-moderator]](https://join.utopian.io/)
👍  , , , ,
properties (23)
post_id67,438,681
authordidic
permlinkre-akintunde-things-to-do-as-a-javascript-beginner-20181215t045258306z
categoryutopian-io
json_metadata{"links":["https:\/\/join.utopian.io\/guidelines","https:\/\/steemit.com\/trending\/topofutopian","https:\/\/support.utopian.io\/","https:\/\/discord.gg\/uTyJkNm","https:\/\/join.utopian.io\/"],"app":"steemit\/0.1","tags":["utopian-io"]}
created2018-12-15 04:52:57
last_update2018-12-15 04:52:57
depth1
children0
net_rshares49,739,606,541
last_payout2018-12-22 04:52:57
cashout_time1969-12-31 23:59:59
total_payout_value0.022 SBD
curator_payout_value0.003 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length871
author_reputation76,442,227,425,259
root_title"Things to do as a Javascript Beginner"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
author_curate_reward""
vote details (5)