Parallax
Parallax
Explore posts from servers
DDeno
Created by Parallax on 7/9/2024 in #help
Is there a way to use Javascript as easily as Php?
Sorry for the vague title. I don’t know how else to say it. In Php, you can make a simple file that looks like this
<?php echo "Hello"; ?>
<?php echo "Hello"; ?>
When a user requests that file, it automatically executes the Php code and sends them the result, using https. Easy But whether using Node or Deno, it seems like you need to add lines and lines of code to set up a server… on your already running server… which makes no sense to me, but sure. I guess I can do that You also have to figure out a way for it to find your ssl certificate and key, which change at unpredictable times and have unpredictable filenames each time (at least for me). And you have to figure out a way to make it detect when those files expire and automatically hotswap them And you also have to daemonise each and every script you write, and manage them all somehow, making sure one of them didn’t just fail silently 7 months after you started its process (happened to me, still not sure why) I have been trying to move away from Php to Javascript for many years, and I have tried to solve all these obstacles in many different ways. I must be doing something wrong, because it should not be this hard. Is Deno only meant for supergeniuses who already know how to code every aspect of their own server from scratch, or is there a way to use it that ordinary web developers can comprehend?
40 replies