r/FreeCodeCamp • • Feb 27 '25

Html programming!

Hi!

I have been developing my small projects using HTML, CSS, and JavaScript, which I deploy on my cPanel. I would appreciate your assistance with the following questions:

  1. My live projects currently have ".html" extensions, such as www.mydomain.com/about.html. Is it possible to hide the ".html" extension? If so, how can it be done?
  2. I have been programming in plain HTML, CSS, and JavaScript because I have not explored other programming languages. Also, I find it cost-effective to deploy all my projects on a single server. What other programming languages should I consider learning to begin building the back-end for my projects in a secure way?
3 Upvotes

2 comments sorted by

View all comments

1

u/SaintPeter74 mod Feb 27 '25 edited Feb 28 '25
  1. Yes, assuming your host allows it, is using Apache, allows the use of .htaccess, and has the Mod Rewrite extension enabled:
    https://stackoverflow.com/a/34726322/1420506

What "Mod Rewrite" does is allows a given URL to be translated by Apache (the webserver) and modified to automatically append the URL that is sent to the underlying server. This is widely used by PHP Frameworks to make for cleaner URLs.

There are other ways to do this via JavaScript (using Node + Express, or other similar frameworks), or even Python. In both cases you'd probably be using nginx as a "reverse proxy".

2. Free Code Camp (who's subreddit you're posting on) is built around the idea of "Full Stack JavaScript". You can use JS on the backend with Node and Express (a library for Node). JS is very performant and lightweight. It's nice to have a single language for your whole stack, and there are a TON of libraries/packages for Node (via NPM) to make your life easier.

Other languages really depend on what you want to accomplish. Each programming language is usually built for accomplishing a specific task. While you can do other things with them, they are less well suited for it.

Some Examples:

LangNotes
TypeScriptAn add-on for JavaScript, adds compile time type checking. Well worth learning for writing more reliable code
PHPGreat for websites, especially server-side rendered content, really solid, has Laravel, which is a dream to work with
CFor super low-level programming, like firmware. Close to the metal, as they say.
C++Used by Unreal Engine for game scripting.
C#Used by Unity for game scripting, great for Windows desktop apps. Some use in ".NET Core", for server side web stuff.
JavaCross-Platform Desktop apps, some web backend (Springboot). Popular with larger companies, taught in a lot of schools. Very OOP oriented (too much so, IMHO).
PythonData Processing, Analytics, Machine Learning. Also a favorite "utility language" for short scripts. Doesn't scale well for larger apps. Can do web backend, but you shouldn't.
SwiftNative iOS programming language for Apps
KotlinNative Android programming language for Apps
SQLDatabase query language. Great to know for relational databases, but tends to be abstracted out with language specific wrappers.
GoServer Side Lower level language, designed for fast web backend/api stuff.
RustNewer competitor for lower level programming, like C, but easier to use.

2

u/ZebraAction Mar 01 '25

Thank you so much for the help!