Return-Path: X-Original-To: apmail-devicemap-dev-archive@www.apache.org Delivered-To: apmail-devicemap-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id A81F718D5B for ; Thu, 6 Aug 2015 11:50:09 +0000 (UTC) Received: (qmail 32606 invoked by uid 500); 6 Aug 2015 11:50:09 -0000 Delivered-To: apmail-devicemap-dev-archive@devicemap.apache.org Received: (qmail 32569 invoked by uid 500); 6 Aug 2015 11:50:09 -0000 Mailing-List: contact dev-help@devicemap.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@devicemap.apache.org Delivered-To: mailing list dev@devicemap.apache.org Received: (qmail 32557 invoked by uid 99); 6 Aug 2015 11:50:09 -0000 Received: from Unknown (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 06 Aug 2015 11:50:09 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id D6C9E1A987D for ; Thu, 6 Aug 2015 11:50:08 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.901 X-Spam-Level: ** X-Spam-Status: No, score=2.901 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=3, URIBL_BLOCKED=0.001] autolearn=disabled Authentication-Results: spamd2-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-eu-west.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id Qz4lCKJ_4KhP for ; Thu, 6 Aug 2015 11:49:55 +0000 (UTC) Received: from mail-oi0-f45.google.com (mail-oi0-f45.google.com [209.85.218.45]) by mx1-eu-west.apache.org (ASF Mail Server at mx1-eu-west.apache.org) with ESMTPS id 6802E2136C for ; Thu, 6 Aug 2015 11:49:54 +0000 (UTC) Received: by oio137 with SMTP id 137so34659481oio.0 for ; Thu, 06 Aug 2015 04:49:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=bnIpVcw7cLXs5WlIXGbibZeZuteuE5ZQoo6XIHqM4mQ=; b=cjndElRaDQkgk1Fl/v6wJCLSFqdTDGmbswBz+JmReddl22pcN0gZbnbB/AP5BnpB3b Eeccb2cKAUtuokMswYBniZzNCLGiTd9QgU4ZLLQo8CgVToQnlGlCy+dSDvzQgUoV0wZB d0VFDHsC3OMDoiWZc6uJODIWAxYKA/PkepJRSPc4FUMFjo2EDIy2nCmv6wXWbUr6lPb0 O3fluVRmMns5boWKLhFoZ7gwDb8xcWQWAv4kCIwXnbDhKbMxEkN82I2k0MRwOnKL/Vqt 1+SopnFNdyPYb30Jas3b7dbLEX7JQrvcsN05GzLdQpqZshGkQVwhHZcWBe/iXHgfjOyB Y20A== MIME-Version: 1.0 X-Received: by 10.202.179.87 with SMTP id c84mr1058046oif.110.1438861793295; Thu, 06 Aug 2015 04:49:53 -0700 (PDT) Received: by 10.202.239.11 with HTTP; Thu, 6 Aug 2015 04:49:53 -0700 (PDT) In-Reply-To: References: Date: Thu, 6 Aug 2015 13:49:53 +0200 Message-ID: Subject: Re: 2.0 reference client From: Werner Keil To: dev@devicemap.apache.org Content-Type: multipart/alternative; boundary=001a113cd1f4120569051ca31e24 --001a113cd1f4120569051ca31e24 Content-Type: text/plain; charset=UTF-8 As mentioned, the "2.0 reference client" (unlike new data definitions) should probably not be under /trunk/clients/2.0 but /whiteboard/rezan, because https://svn.apache.org/repos/asf/devicemap/trunk/clients/2.0/reference/src/DeviceMapClient.java clearly shows, it not only relies on some proprietary build scripts and environment specific to just a single person's computer. Leaving the nested if spaghetti-code aside (the parent Apache POM does not recommend plugins like FindBugs, CheckStyle, etc. but projects may still use them if they care) all classes are in an anomymous package;-O Apache doesn't seem to have an official package naming convention like Eclipse (https://wiki.eclipse.org/index.php/Naming_Conventions) there are only (now retired) projects like Harmony that did it on its own https://harmony.apache.org/subcomponents/classlibrary/pkgnaming.html (also based on Eclipse) but when it comes to Java packages, every proper Apache project, even those still incubating should follow I won't bother touching it (as agreed;-) but in this state, I won't bother looking at it further or even mention it at ApacheCon or similar occasions either. It is no more than a "private POC" thrown into the SVN by mistake, at least in this location. This is in no way ready to be released or even proposed to the PMC! Nor called "Reference Client" or "Reference Implementation". For JavaScript, there is little code, but while there are coding conventions (e.g. by "JSON Father" Douglas Crockford who was a fellow speaker at Dutch Mobile Conference 3 years ago) no strong notion of package at least for individual files exist. If anything was to be seen by the Node.js and related communities, it has to be published on NPM (once there was an official release) There is no "devicemap" module as of now https://www.npmjs.com/search?q=devicemap but at least one that seems compatible with DeviceMap 1.0 and its precursor OpenDDR as well as other solutions like 51degreeMobi or WURFL: https://www.npmjs.com/package/responder The GitHub repositories or Travis CI seem gone, but like MavenCentral, once a module is deployed there it remains in it pretty much forever. Regards, Werner On Mon, Aug 3, 2015 at 5:10 PM, Werner Keil wrote: > Good to hear. > > As offered earlier, everyone, whether they can make it to my session in > Budapest or not is welcome to propose new/changed pages based on the most > recent slides from Rome: > http://de.slideshare.net/keilw/apache-devicemap-codemotion-roma-2015 > > I'd be more than happy to crop some of the WURFL images since in essence > page 16 says all about them and their license situation;-) > Similar with benchmarks, if we got more recent ones, then please provide > them if you're able to share them publicly. Ideally with a codebase > allowing the audience to run it and confirm they're not faked. > > While it would be a bit of a stretch, if the Core Vocabulary properties as > found in http://www.w3.org/TR/ddr-core-vocabulary/#sec-properties remain > in the JSON format (similar to how other vendors who offer JSON files, too > seem to respect those) then a 2.0 data repository regardless of its format > could still be called "W3C compliant" at least regarding the Core > Vocabulary. Implementing the W3C DDR Simple API on Java is just one aspect, > unrelated to other standards or definitions by W3C or others. > > The Portlet Standard and EG has its own requirements, e.g. it must only > refer to other JSRs (like CC/PP) or at most the underlying W3C standards. > On an API level it cannot expose something on "org.apache" since other > implementations may chose to implement the standard in their own different > way, if they want to use DeviceAtlas, WURFL or whatever under the hood in > their commercial product, so be it. Whether the RI (Apache Pluto) uses > DeviceMap libraries or just the data files, we'll see. As of now there's a > Pluto3 early prototype, we'll see what it may use. > > Should ApacheCon attendees be interested to provide new language binding, > I suggest we offer something like Tamaya Sandbox: > https://git1-us-west.apache.org/repos/asf?p=incubator-tamaya.git;a=tree;f=sandbox;h=0cfc8b5cc116fff1096ae7d1d4f6b7199191f8f8;hb=HEAD > for people to play with or adopt. Which version/format of the data they > want to use, I don't think restricting it there makes sense. > > As mentioned, DeviceMap is far from being my only talk, so "I have a lot > to say" there based on accepted talks;-) We're going to present Groovy > support for JSR 354 based on work done in a similar "sandbox" at JavaMoney: > https://github.com/JavaMoney/javamoney-shelter/tree/master/groovylang-support > > While I also volunteered to help with Groovy support (still do) if people > who work more with Groovy/Grails than I do want to help, we should not > discourage them either but offer them a place. They may not be able to > commit directly, but e.g. (since we still use SVN) attach patches to a JIRA > story just like Volkan or others did before e.g. he became a committer. > > The "sandbox" (could also be under /clients) or /trunk, whatever you > prefer) makes it easier to add new languages without having to worry about > the whole "1.0 vs. 2.0" confusion. After all it's XML or JSON and if a > client or language binding wants to support both, it could be confusion and > disruption to those having to decide. > > Werner > > On Mon, Aug 3, 2015 at 4:29 PM, Bertrand Delacretaz < > bdelacretaz@apache.org> wrote: > >> On Mon, Aug 3, 2015 at 4:25 PM, Werner Keil >> wrote: >> > ...So examples/x.y is clearly for all who care... >> >> No problem with that as far as I'm concerned. >> >> -Bertrand >> > > --001a113cd1f4120569051ca31e24--