Subj : Javascript for dummies like me
To : Sys64738
From : Digital Man
Date : Fri Dec 10 2021 10:11 pm
Re: Javascript for dummies like me
By: Sys64738 to Digital Man on Fri Dec 10 2021 10:44 pm
> Re: Javascript for dummies like me
> By: Digital Man to Sys64738 on Fri Dec 10 2021 10:08:53
>
> > And btw, this attribute is not unique to JavaScript. You've heard of the
> > C and C++ programming languages, I'm sure. C and C++, the languages
> > themselves, don't define a standard/universal "print" type function
> > either.
>
> > There *are* "Standard Runtime Libraries" for the C and C++ which add that
> > functionality (e.g. puts, printf), but they're not part of the core
> > language definition. I've worked professionally on C projects where there
> > was no "print" type functionality at all (we did not use a "standard
> > runtime library", nor was there a console to print to in the execution
> > environment).
>
> That is odd to me. Even the Eniac and Edvac had the ability to display a
> readout even if it was on punchcards or some other medieval median.
Sure, but the inventors of the language (C) believed in maximum modularity and tried to make the language itself (the built-in "keywords" and symbols) as small as possible. This design has served the world well as C and its derivitives have been to put to great use in environments unlike the one it was first created for (a PDP-7).
The software embedded in your webcam, for example, likely was written in C or C++. It doesn't have "a console" or anywhere to "print", so any logic to support that function would have been a waste of resources on such a device. It's great that such functions are not requirements of the language itself.
--
digital man (rob)
Sling Blade quote #20:
Doyle: Hey is this the kind of retard that drools and rubs shit in his hair?
Norco, CA WX: 49.4�F, 60.0% humidity, 1 mph S wind, 0.00 inches rain/24hrs
---
� Synchronet � Vertrauen � Home of Synchronet � [vert/cvs/bbs].synchro.net