The relation between a programmer and JavaScript is based on a love-hate relationship.

Image for post
Image for post
Photo by Kelly Sikkema on Unsplash

On the internet you will always find comments why JavaScript is bad, why you shouldn’t use it and that it is overhyped. Probably all the authors of these comments are right. JavaScript has many flaws. There are many things you can criticize about JavaScript.

But exactly these flaws make JavaScript one of the best programming languages!

To understand this we first have to find out why JavaScript is being hated so much.

Why do people hate JavaScript?

Image for post
Image for post
Pixabay

When JavaScript was created, the purpose of the programming language was actually just to make web pages more interactive. Back then, HTML could do much less than it does nowadays, which is why JavaScript was completely responsible for the buttons on a website having a functionality. Writing HTML belongs more to the category of layouting than programming. That’s why it was important that webmasters don’t have to be good programmers (back then there were much fewer programmers, because the industry was quite futuristic). …


CodeSnap, GitHub Markdown Preview, Paste JSON as Code, and more

Image for post
Image for post
Photo by Shane Rounce on Unsplash.

This list of Visual Studio Code extensions will make your programming workflow a lot easier and more efficient. Simply put, they will improve the way you write and view code.

Better Comments

This extension will allow you to write different kinds of comments into your code, including:

  • Alerts
  • Queries
  • To-dos
  • Highlights

Here’s a little example of what your comments could look like in the future:

Image for post
Image for post

Bracket Pair Colorizer 2

This extension will color the start and the end of your bracket block in the same color, which will give you the ability to look through code faster than ever before!

Image for post
Image for post

CodeSnap

This extension allows you to make an elegant picture out of a piece of code. …


MongoDB doesn’t use any authentication by default. Make sure you change this before you use your database in production.

Image for post
Image for post
Photo by Croissant on Unsplash

MongoDB doesn’t use any authentication by default. This should be changed when opening the database to the internet.

In this article, I’ll describe how you can enable authentication for MongoDB inside Portainer — a web interface for Docker.

Add Authentication to MongoDB

  1. Open your Portainer interface.
  2. If you haven’t already, install MongoDB. (You can do this via the app templates on Portainer.)
  3. Go into the console of your MongoDB container.
Image for post
Image for post

About

Marvin Wendt

Computer Science Student | Developer | Writer | Open Source ❤

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store