On 1/14/2020 5:07 PM, Pierre Jelenc wrote:
> In article <qvgmro$k1e$
1...@jstuckle.eternal-september.org>,
> Jerry Stuckle <
jstu...@attglobal.net> wrote:
>>
>> Javascript has a lot of advantages - among them not being able to
>> corrupt the server and offloading code onto the client. Many other
>> things you can't do with PHP.
>
> From the client's POV, offloading code onto it is a major inconvenience,
> and is the source of just about 100% of the malware and spyware currently
> making the rounds (not enough to trigger Flash nostalgia, perhaps, but
> still...) while the ability to corrupt is inherent to any badly written
> code that runs on the server, regardless of the language.
>
>> I use both - each where it is appropriate.
>
> So do I, but I always get grumpy when it is JS.
>
> Pierre
>
From the client's POV the ability for javascript to create an
interactive experience without having to constantly communicate with the
server is a definite plus. And the amount of code executed on the
client is very minor - and virtually undetectable with today's computers
unless it is really poor code.
Plus javascript has had holes in the code before, but those have been
pretty well identified and closed. The possibility of corrupting
anything on the client's machine is minor.
Additionally, some sites allow users to upload their own pages. But
these are restricted - only static pages allowed with no executable
code. .html pages are allowed but .php, .pl and similar are not.
Any security expert will tell you that you don't want to parse static
pages for php or any other executable code. It is a huge security exposure.
But if you don't care about the security of your site or other sites
running on the server, have at it!