{"id":1225,"date":"2022-08-30T15:14:28","date_gmt":"2022-08-30T15:14:28","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2013\/11\/10\/problem-about-dynamic-languages-collection-of-common-programming-errors\/"},"modified":"2022-08-30T15:14:28","modified_gmt":"2022-08-30T15:14:28","slug":"problem-about-dynamic-languages-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2022\/08\/30\/problem-about-dynamic-languages-collection-of-common-programming-errors\/","title":{"rendered":"problem about dynamic-languages-Collection of common programming errors"},"content":{"rendered":"<ul>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/18e42b0ddc143340cfb072987f45ca50?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nPeter Mortensen<br \/>\ncode-security dynamic-languages government<br \/>\nI know some people that are currently working on a project for the US military (low security level, non-combat human resources type data).An initial state of the project code was submitted to the military fo<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/771d6811baa1b117dd8a5ff0708fc66b?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nYar<br \/>\ndynamic-languages<br \/>\nWith Java on one side and Ruby\/Groovy on the other, I know that in the second camp I&#8217;m free to make typos which will not get caught until run-time.<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/8b4c4af1174b9df8fec8b52a9325ac2f?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\n7 revs, 3 users 87%Alexey<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/e1f7597153b6acca55f0b522481e137d?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\n2 revs, 2 users 100%Ramesh<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/f394b822c935303424f4c2ac1ad64831?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nFelix Kling<br \/>\njavascript dynamic-languages<br \/>\nHi I am very new to javascript. i have been given the task to create a javascript framework to load multiple e-learning module and make them interact with each other via xml.I am using a method of inheritance as shown below.Base class EventDispatcher:(function (window) {var EventDispatcher = function () {this._listeners = [];}var p = EventDispatcher.prototype;p._listeners = [];p.addListener = function (type, listener, scope) {scope = (typeof scope !== &#8220;undefined&#8221;) ? scope : this;if (typeof this._listeners[type] == &#8220;undefined&#8221;) {this._listeners[type] = [];}this._listeners[type].push({listener: listener,scope: scope});}p.removeListener = function (type, listener) {if (this._listeners[type] instanceof Array) {var listeners = this._listeners[type];for (var i = 0, len = listeners.length; i &lt; len; i++) {if (listeners[<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/61d2a0f034915fa9d2acd6f6b145bba8?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nJoel Coehoorn<br \/>\ndynamic-languages<br \/>\nHypothetic and academic question.pseudo-code:class Book{read(theReader) }<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/c9d82b39ddc300d45b6058d9308f9668?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nKyle C<br \/>\nlanguage-agnostic dynamic-languages<br \/>\nRuby has &#8220;method_missing&#8221;, Tcl has &#8220;unknown&#8221;, and most highly dynamic languages have an equivalent construct that is invoked when an undefined method is called. It makes perfect sense to add such functionality; something needs to happen, and there&#8217;s no reaso<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/5b15ac856b808e329185b1f653805d09?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nMatt Fenwick<br \/>\njavascript dynamic-languages prototype-oriented<br \/>\nI&#8217;m not that in to dynamic programming languages but I&#8217;ve written my fair share of JavaScript code. I never really got my head around this prototype-based programming, does any one know how this works? var obj = new Object(); obj.prototype.t<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/i.stack.imgur.com\/9d0Vk.jpg?s=32&amp;g=1\" \/><br \/>\nJames Black<br \/>\nspecifications dynamic-languages<br \/>\nWith the growth of dynamically typed languages, as they give us more flexibility, there is the very likely probability that people will write programs that go beyond what the specification allows.My thinking was influenced by this question, when I read the answer by bobince: http:\/\/stackoverflow.com\/questions\/1777705\/a-question-about-javascripts-slice-and-splice-methods\/1777773#1777773The basic thought is that splice, in Javascript, is specified to be used in only certain situations, but, it can be used in others, and there is nothing that the language can do to stop it, as the lang<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/f1fcf834ddad415f60d29c87cc10d4d4?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nkangax<br \/>\njavascript design oop interface dynamic-languages<br \/>\nI suppose this could apply to any dynamic language, but the one I&#8217;m using is JavaScript. We have a situation where we&#8217;re writing a couple of controls in JavaScript that need to expose a Send() function which is then called<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/i.stack.imgur.com\/kRYJT.jpg?s=32&amp;g=1\" \/><br \/>\nAlex Lockwood<\/li>\n<\/ul>\n<p id=\"rop\"><small>Originally posted 2013-11-10 00:10:45. <\/small><\/p>","protected":false},"excerpt":{"rendered":"<p>Peter Mortensen code-security dynamic-languages government I know some people that are currently working on a project for the US military (low security level, non-combat human resources type data).An initial state of the project code was submitted to the military fo Yar dynamic-languages With Java on one side and Ruby\/Groovy on the other, I know that [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-1225","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/1225","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=1225"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/1225\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=1225"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=1225"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=1225"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}