DenoDDeno
Powered by
ParallaxP
Deno•2y ago•
39 replies
Parallax

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?
Deno banner
DenoJoin
Chat about Deno, a modern runtime for JavaScript and TypeScript.
20,934Members
Resources
Recent Announcements

Similar Threads

Was this page helpful?

Similar Threads

Is there a way to use `tsconfig.json` `compilerOptions.types`?
Adam ScottAAdam Scott / help
10mo ago
Is there a way to use a custom wgpu build with Deno?
mootMmoot / help
2y ago
Is there a way to use the import alias @/ using deno and vite?
AnxiousAverageAAnxiousAverage / help
17mo ago