Best Node.js Explanation For a Newbie

Why is this the best node.js explanation for a newbie

It is plain and right to the point, if you are a seasoned programmer this may seem silly but honestly, everything out there was too in-depth for me to understand. Knowing about Node.js is important for a full stack developer, but being confused and not wanting to learn it is another challenge. Above I spoke of how node.js uses your code and how you can expect it to work once you start learning more about it. There is nothing like documentation so I recommend rolling over to NODE.JS after this and checking out the documentation.

What is node.js:

It is an environment that allows you to run javascript also known as a runtime environment. At first, JS was solely used in the browser, but the creators realized that there was so much more power available such as running a stand-alone application. Now with Node.js, the language has similar capabilities of popular scripting languages such as python.

Both Javascript and Node.js use the V8 JavaScript runtime engine. This takes your code and turns it into code that your computer can read without having to interpret it first. In short, it speeds up the process of a computer reading your code allowing for magical things to happen. Node.js is event-driven and does not block the input or output. That alone can tell you the beauty of this as it keeps it simple and executes what’s needed based on the event instead of worrying about the bits and pieces.

How you normally execute javascript

In the past, you would create a local HTML file on your computer then add a call to a relative JS file. From there you can open it up in a browser and play with it in the console. But that was the environment and in my mind made it to where being limited to just that made me feel that other than some functionality on a website that was all to be had. Then Node.js comes along and as mentioned before that RunTime Environment takes what I described out of the equation and opens to the doors for so many possibilities.

Node.js example

  1. First you need to have node installed on your computer
  2. Open your terminal / command line and type node -v
  3. Now you will see the version you have on  your computer
  4. Create a folder and put a normal js file in there stuff.js
  5. Navigate to that folder in the terminal and type node stuff.js

BOOM you will see your code executed without having to be on a browser.

Conclusion

Once again this was not for someone who is looking for that technical aspect of node and what it does but instead just the best node.js explanation for a newbie. Nothing was talked about NPM which is really neat and stands for Node Package Manager. What was talked about is this awesome way that you can execute JavaScript without the limits of a browser and hopefully you will continue to explore more of this amazing portion of web development. I write about things I am doing or dealing with just like my SEMRush tool breakdown or SEO for images, if you really like my style then sign up for the email below.

Best SEO Strategy for Images

What Makes an Optimized Image?

Too many times when I get asked to check out a site and see the SEO health of a site there is never any good image optimization. To me personally, a well-optimized page is one that simply is in full sync across the page.

  • URL
  • Heading
  • Keywords in content
  • Title on the image
  • File size
  • And…….

These are all places that your focus of the page needs to represent so that in no way shape or form will a bot that is crawling will think it is nothing other than the main phrase, keyword, or focus you are going after.

Why Stop There!

I like to take it even a step further and include the keyword in my file name of the image as well. For example, if the first image on my page is going to be about Best SEO Strategy for Images then why not make that file name “best-seo-strategy-for-images.jpg” . With that said if there are multiple images on a page I may go through and name them all to have some relevance to the focus but really I just go after that first main image….Why you ask……I am lazy.

An argument for Usability and Alt tag

Yes, people that use the internet may be using a text reader, so you should name the alt tag on your image what it is representing. But what if your page that they are reading is representing that focus I keep talking about and not some person looking through a magnifying glass that you are using? I personally think that you should also use that key term/phrase in your alt tag as well personally because…..yea just do it.

Site Speed and Image Size

Site speed is huge and as many people build on top of WordPress, it is a factor to always consider when you are using images. For me, I think that if you do not have a huge header you are off to a good start, but from a developer, standpoint remember to always go in and resize the image in a photo editor before the upload. Phone pictures, stock photos, and other sources will normally give you giant images that will kill your bandwidth so just use realistic size images for your posts and pages.

Conclusion

Finding the best tools for SEO sometimes just comes down to knowing good tactics to implement when you are building your site or updating it. I like to think of a single page on a site as an opportunity to turn everything possible element into a billboard screaming what you are trying to get across. In this post, you will see that Best SEO Strategy for Images is the main focus. When you are developing a site and maybe a high order function is more important than worrying about the image aspects of a page but it is important and starts from the development start point.