Path: csiph.com!eternal-september.org!feeder.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Ben Bacarisse Newsgroups: comp.lang.javascript Subject: Re: Overriding function and adding a bit Date: Sat, 13 May 2017 16:25:56 +0100 Organization: A noiseless patient Spider Lines: 31 Message-ID: <877f1kg4mz.fsf@bsb.me.uk> References: <5178377.MhkbZ0Pkbq@PointedEars.de> <20479369.6Emhk5qWAg@PointedEars.de> <10849548.O9o76ZdvQC@PointedEars.de> <05f57f29-8dd8-4829-9952-7ffd20411fb5@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: mx02.eternal-september.org; posting-host="bf872e1a0ce0b20e2fe0b3253c5903fc"; logging-data="2131"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/z81Kq2GogfONUrbWxmPfUcwLIS2A2hSE=" Cancel-Lock: sha1:Rvh2fpEQ5ojT9UyYLtqxEy9poNg= sha1:hDmoHuWMe46eI8LCVMS9M3RwRL4= X-BSB-Auth: 1.666f316f564c2d44e04d.20170513162556BST.877f1kg4mz.fsf@bsb.me.uk Xref: csiph.com comp.lang.javascript:33301 Julio Di Egidio writes: > On Saturday, May 13, 2017 at 3:39:44 PM UTC+2, John G Harris wrote: >> On Fri, 12 May 2017 17:28:02 -0700 (PDT), Julio Di Egidio >> wrote: >> >> >to suggest OO patterns to architect JS code is simple >> >an utter mistake, that you propose so or that some vendors now are >> >proposing so... >> >> Are you saying ECMAScript programs can't or shouldn't implement an OO >> design? If so, how do you justify your belief? > > You may have beliefs, I am a software professional and that (what I said, > not how you rephrase it) is just the A in the ABC of JavaScript. ECMAScript uses prototype-based inheritance rather than class-based inheritance but that does not mean it is not and object-oriented language not that one should not write object-oriented programs using it. From page 1 of ECMA 262 (6th edition): "ECMAScript is an object-oriented programming language..." Obviously you can't use the same design techniques as you would do with class-based object languages, but that's not quite the same point. -- Ben.