W3C home > Mailing lists > Public > public-webcrypto@w3.org > April 2014

[Bug 25388] New: Boolean arguments

From: <bugzilla@jessica.w3.org>
Date: Fri, 18 Apr 2014 08:10:04 +0000
To: public-webcrypto@w3.org
Message-ID: <bug-25388-7213@http.www.w3.org/Bugs/Public/>
https://www.w3.org/Bugs/Public/show_bug.cgi?id=25388

            Bug ID: 25388
           Summary: Boolean arguments
           Product: Web Cryptography
           Version: unspecified
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Web Cryptography API Document
          Assignee: sleevi@google.com
          Reporter: annevk@annevk.nl
                CC: domenic@domenicdenicola.com, public-webcrypto@w3.org

Boolean arguments for methods are bad news. E.g. nobody ever remembers how
addEventListener's third or XMLHttpRequest.prototype.open's third argument
functions.

See http://c2.com/cgi/wiki?CodeSmellMetrics

It seems most of these methods could be designed to take a dictionary of sorts
instead so the argument can be named and understood.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
Received on Friday, 18 April 2014 08:10:06 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:17:22 UTC