EDDYMENS

What Is Spaghetti Code?

Spaghetti code is code that is difficult to understand and eventually maintain because its structure is all over the place hence the word spaghetti in its name. One reference used in most examples is the statement. Usually, code is meant to be executed from the top to bottom, but...

Remove .html From The End Of URLs | Netlify

Depending on how you generate your HTML assets to be hosted on Netlify , your URLs might end with for example: . You might want to change this to a path name without the extension i.e: ...

Capitalizing The First Letter In Each Word | PHP

PHP's function can be used to create readable blog post titles by capitalizing the first characters of each word. Additionally, you can capitalize the first character of names in your app. Below is an example of how to use the function. ...

Highlight.js: Add Line Numbers

HighlightJS does not provide line number feature out of the box. You will need a third-party library for that. Fortunately, there are a number of them to choose from. The one used in the ...

Get Human Readable Date In Javascript (Moment.js Format Time Ago)

You can present a human-friendly date to your readers using the moments.js library. This is an open-source Javascript library for working with dates. The code sample below shows how to comp...

The Difference Between A JWT And A Bearer Token

Online systems usually give different levels of access to different groups of people. To get access to the system, a user has to provide special information. E.g. Username/password combo. This is information that only they possess. Once a user gains access to a system, most systems return...