From 66b1e24ac80467f49da2511fde603927cca3ce61 Mon Sep 17 00:00:00 2001 From: Hamish Willee Date: Fri, 19 Nov 2021 11:06:49 +1100 Subject: [PATCH 1/5] Dynamic programming language glossary improvements --- .../glossary/dynamic_programming_language/index.md | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/files/en-us/glossary/dynamic_programming_language/index.md b/files/en-us/glossary/dynamic_programming_language/index.md index 9f25c900151b955..a925cf3074042bf 100644 --- a/files/en-us/glossary/dynamic_programming_language/index.md +++ b/files/en-us/glossary/dynamic_programming_language/index.md @@ -5,11 +5,15 @@ tags: - CodingScripting - Glossary --- -A **dynamic programming language** is a programming language in which operations otherwise done at compile-time can be done at run-time. For example, in JavaScript it is possible to change the type of a variable or add new properties or methods to an object while the program is running. +A **dynamic programming language** is a programming language in which some operations are performed during execution that would be performed during compilation in a static programming language. -This is opposed to so-called static programming languages, in which such changes are normally not possible. +For example, a static programming language would only allow plugins to be added during compilation, while a dynamic programming language _might_ allow plugins to be loaded at runtime. -> **Note:** Note that while there is indeed a connection between this dynamic/static property of programming languages and [dynamic](/en-US/docs/Glossary/Dynamic_typing)/[static-typing](/en-US/docs/Glossary/Static_typing), the two are far from synonymous. +Generally you can tell them apart because a static language is fully defined at compile time: all variables are known and its behavior can be fully understood using static analysis. +By contrast the variables and behaviour of a dynamic language depends on the environment at runtime. + +> **Note:** [Dynamic typing](/en-US/docs/Glossary/Dynamic_typing)/[static-typing](/en-US/docs/Glossary/Static_typing) are not synonymous with dynamic/static programming languages. +> C++ and JavaScript, for example, dynamic programming language that uses static and dynamic typing, respectively. ## See also From c2175c8896830aa3fe0b9fe4f5e026a1be3d8558 Mon Sep 17 00:00:00 2001 From: Hamish Willee Date: Mon, 22 Nov 2021 16:20:37 +1100 Subject: [PATCH 2/5] Revert to minimal changes --- .../en-us/glossary/dynamic_programming_language/index.md | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/files/en-us/glossary/dynamic_programming_language/index.md b/files/en-us/glossary/dynamic_programming_language/index.md index a925cf3074042bf..92cb03b99f34b4e 100644 --- a/files/en-us/glossary/dynamic_programming_language/index.md +++ b/files/en-us/glossary/dynamic_programming_language/index.md @@ -5,15 +5,12 @@ tags: - CodingScripting - Glossary --- -A **dynamic programming language** is a programming language in which some operations are performed during execution that would be performed during compilation in a static programming language. +A **dynamic programming language** is a programming language in which operations otherwise done at compile-time can be done at run-time. For example, in JavaScript it is possible to change the type of a variable or add new properties or methods to an object while the program is running. -For example, a static programming language would only allow plugins to be added during compilation, while a dynamic programming language _might_ allow plugins to be loaded at runtime. - -Generally you can tell them apart because a static language is fully defined at compile time: all variables are known and its behavior can be fully understood using static analysis. -By contrast the variables and behaviour of a dynamic language depends on the environment at runtime. +This is opposed to so-called static programming languages, in which such changes are normally not possible. > **Note:** [Dynamic typing](/en-US/docs/Glossary/Dynamic_typing)/[static-typing](/en-US/docs/Glossary/Static_typing) are not synonymous with dynamic/static programming languages. -> C++ and JavaScript, for example, dynamic programming language that uses static and dynamic typing, respectively. +> For example, C++ and JavaScript are both dynamic programming languages, but C++ is statically typed, while Javascript is dynamically typed. ## See also From a8505b8c30dbbb244045708dcf8658070c534555 Mon Sep 17 00:00:00 2001 From: Hamish Willee Date: Mon, 22 Nov 2021 16:20:58 +1100 Subject: [PATCH 3/5] Update index.md --- files/en-us/glossary/dynamic_programming_language/index.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/files/en-us/glossary/dynamic_programming_language/index.md b/files/en-us/glossary/dynamic_programming_language/index.md index 92cb03b99f34b4e..2795e4140d45bb4 100644 --- a/files/en-us/glossary/dynamic_programming_language/index.md +++ b/files/en-us/glossary/dynamic_programming_language/index.md @@ -5,7 +5,8 @@ tags: - CodingScripting - Glossary --- -A **dynamic programming language** is a programming language in which operations otherwise done at compile-time can be done at run-time. For example, in JavaScript it is possible to change the type of a variable or add new properties or methods to an object while the program is running. +A **dynamic programming language** is a programming language in which operations otherwise done at compile-time can be done at run-time. +For example, in JavaScript it is possible to change the type of a variable or add new properties or methods to an object while the program is running. This is opposed to so-called static programming languages, in which such changes are normally not possible. From 8793207f0b274bee4dffe3b39a4a1b2e2834aac4 Mon Sep 17 00:00:00 2001 From: Hamish Willee Date: Mon, 29 Nov 2021 10:54:55 +1100 Subject: [PATCH 4/5] contrasted rather than opposed --- files/en-us/glossary/dynamic_programming_language/index.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/en-us/glossary/dynamic_programming_language/index.md b/files/en-us/glossary/dynamic_programming_language/index.md index 2795e4140d45bb4..9fd6b205c1837ca 100644 --- a/files/en-us/glossary/dynamic_programming_language/index.md +++ b/files/en-us/glossary/dynamic_programming_language/index.md @@ -8,7 +8,7 @@ tags: A **dynamic programming language** is a programming language in which operations otherwise done at compile-time can be done at run-time. For example, in JavaScript it is possible to change the type of a variable or add new properties or methods to an object while the program is running. -This is opposed to so-called static programming languages, in which such changes are normally not possible. +This may be contrasted with _static programming languages_, in which such changes are normally not possible. > **Note:** [Dynamic typing](/en-US/docs/Glossary/Dynamic_typing)/[static-typing](/en-US/docs/Glossary/Static_typing) are not synonymous with dynamic/static programming languages. > For example, C++ and JavaScript are both dynamic programming languages, but C++ is statically typed, while Javascript is dynamically typed. From d9cec293596672bc08e2f347f93efdb574561609 Mon Sep 17 00:00:00 2001 From: Hamish Willee Date: Fri, 3 Dec 2021 09:20:42 +1100 Subject: [PATCH 5/5] Delete glossary entry and usages --- files/en-us/_wikihistory.json | 9 --------- .../dynamic_programming_language/index.md | 18 ------------------ .../javascript_basics/index.md | 9 ++++++--- 3 files changed, 6 insertions(+), 30 deletions(-) delete mode 100644 files/en-us/glossary/dynamic_programming_language/index.md diff --git a/files/en-us/_wikihistory.json b/files/en-us/_wikihistory.json index 68ad0f2acbb1e00..ac2ba99eb3417cd 100644 --- a/files/en-us/_wikihistory.json +++ b/files/en-us/_wikihistory.json @@ -2351,15 +2351,6 @@ "teoli" ] }, - "Glossary/Dynamic_programming_language": { - "modified": "2019-03-23T22:08:08.674Z", - "contributors": [ - "doubleOrt", - "chrisdavidmills", - "bernarddavis", - "klez" - ] - }, "Glossary/Dynamic_typing": { "modified": "2019-03-23T22:57:43.135Z", "contributors": [ diff --git a/files/en-us/glossary/dynamic_programming_language/index.md b/files/en-us/glossary/dynamic_programming_language/index.md deleted file mode 100644 index 9fd6b205c1837ca..000000000000000 --- a/files/en-us/glossary/dynamic_programming_language/index.md +++ /dev/null @@ -1,18 +0,0 @@ ---- -title: Dynamic programming language -slug: Glossary/Dynamic_programming_language -tags: - - CodingScripting - - Glossary ---- -A **dynamic programming language** is a programming language in which operations otherwise done at compile-time can be done at run-time. -For example, in JavaScript it is possible to change the type of a variable or add new properties or methods to an object while the program is running. - -This may be contrasted with _static programming languages_, in which such changes are normally not possible. - -> **Note:** [Dynamic typing](/en-US/docs/Glossary/Dynamic_typing)/[static-typing](/en-US/docs/Glossary/Static_typing) are not synonymous with dynamic/static programming languages. -> For example, C++ and JavaScript are both dynamic programming languages, but C++ is statically typed, while Javascript is dynamically typed. - -## See also - -- {{Interwiki("wikipedia", "Dynamic programming language")}} on Wikipedia diff --git a/files/en-us/learn/getting_started_with_the_web/javascript_basics/index.md b/files/en-us/learn/getting_started_with_the_web/javascript_basics/index.md index 057356f588a8c02..14bf3a85656ae5c 100644 --- a/files/en-us/learn/getting_started_with_the_web/javascript_basics/index.md +++ b/files/en-us/learn/getting_started_with_the_web/javascript_basics/index.md @@ -11,13 +11,16 @@ tags: --- {{LearnSidebar}}{{PreviousMenuNext("Learn/Getting_started_with_the_web/CSS_basics", "Learn/Getting_started_with_the_web/Publishing_your_website", "Learn/Getting_started_with_the_web")}} -JavaScript is a programming language that adds interactivity to your website. This happens in games, in the behavior of responses when buttons are pressed or with data entry on forms; with dynamic styling; with animation, etc. This article helps you get started with JavaScript and furthers your understanding of what is possible. +JavaScript is a programming language that adds interactivity to your website. This happens in games, in the behavior of responses when buttons are pressed or with data entry on forms; with dynamic styling; with animation, etc. +This article helps you get started with JavaScript and furthers your understanding of what is possible. ## What is JavaScript? -{{Glossary("JavaScript")}} ("JS" for short) is a full-fledged {{Glossary("Dynamic programming language", "dynamic programming language")}} that can add interactivity to a website. It was invented by Brendan Eich (co-founder of the Mozilla project, the Mozilla Foundation, and the Mozilla Corporation). +{{Glossary("JavaScript")}} is a powerful programming language that can add interactivity to a website. +It was invented by Brendan Eich (co-founder of the Mozilla project, the Mozilla Foundation, and the Mozilla Corporation). -JavaScript is versatile and beginner-friendly. With more experience, you'll be able to create games, animated 2D and 3D graphics, comprehensive database-driven apps, and much more! +JavaScript is versatile and beginner-friendly. +With more experience, you'll be able to create games, animated 2D and 3D graphics, comprehensive database-driven apps, and much more! JavaScript itself is relatively compact, yet very flexible. Developers have written a variety of tools on top of the core JavaScript language, unlocking a vast amount of functionality with minimum effort. These include: