Well I asked especially because the enum-driven approach you had at least for DeviceType feels quite similar to Volkan's project he wrote for that hackathon.
Essentially many of the types and ideas in https://github.com/vy/what-is-my-user-agent/tree/master/src/main/java/com/vlkan/whatismyuseragent/devicemap feel like a modernized but fairly similar approach to what the DeviceMap DDR Builders do (and I trust neither of you 2 guys would get mad or turn into "Hulk" just because I mentioned that;-D) I'll follow up on the other thread especially with regards to Volkan's suggestion for a user id, but what I can see there looks fairly promising. Only runs in Java SE 8 btw. another thing e.g. Tamaya discusses. And for future clients that may break with the existing 1.x data structure, supporting only Java SE 8 (Lambdas,...) could be an option, too. Those who need to use Java 6/7 would still safely find the 1.x branch for that, but of course if both community demand and our resources permit we can still support 2 JVM generations (as long as it didn't cause another "Religious" feud;-O) Werner On Mon, Apr 20, 2015 at 4:08 PM, Werner Keil <[email protected]> wrote: > If it works, adjusting that How-To or Readme (as it happened in other > places) couldn't hurt. > And while it is of course not the only area with a "drought" of real-life > examples, supporting not just other languages, but some popular UI and MVC > frameworks could not hurt either. Some languages especially PHP, a "low > level" support of DM or other solutions would barely be accepted, as fellow > speakers at these events (e.g. Dutch PHP where I spoke earlier, we > considered it this year, but it would overlap with DWX I recall) confirmed. > So if you want to support PHP properly you need to support WordPress, Typo3 > or Joomla rather than the "low level" language. In a sense with Plain > Servlets and Spring (the two only Web options we offer directly at > DeviceMap so far) it is not so different, but there are several others, JSF > just to name one and several other Apache ones like Struts, Shale, > Tapestry, Wicket or Sling, etc. > > Werner > > On Mon, Apr 20, 2015 at 3:56 PM, Radu Cotescu <[email protected]> wrote: > >> That README is almost 2 years old when we didn't use to bundle the w3c >> JARs >> in our repo like we do now [0]. >> >> I did consider creating a tighter DeviceMap integration but haven't really >> gotten into it since the DM code was flaky and based on a lot of regex >> evaluation. >> >> [0] - http://svn.apache.org/repos/asf/devicemap/trunk/devicemap/java/lib/ >> >> On Mon, 20 Apr 2015 at 16:26 Werner Keil <[email protected]> wrote: >> >> > The Readme said to install the W3C.jar into local maven before running >> it, >> > was that guideline outdated then? >> > >> > And either way, if it worked against 1.x data, did you ever add it to >> Sling >> > or would you consider doing so to DeviceMap demos? >> > (or via a sync similar to Browsermap, it's structure is unusual, but it >> > seems to work both ways;-) >> > >> > Cheers, >> > Werner >> > >> > On Mon, Apr 20, 2015 at 3:16 PM, Radu Cotescu <[email protected]> wrote: >> > >> > > Hi Werner, >> > > >> > > That's not a W3C compliant implementation - it's just an Apache Sling >> > > integration of the DeviceMap code we had 2 years ago. >> > > >> > > Cheers, >> > > Radu >> > > >> > > On Mon, 20 Apr 2015 at 16:13 Werner Keil <[email protected]> >> wrote: >> > > >> > > > Aside from a Ruby port there's another W3C compliant implementation >> > Radu >> > > > wrote earlier: >> > > > https://github.com/raducotescu/devicemap-demo >> > > > >> > > > Did that work at the time? >> > > > >> > > > Thanks, >> > > > Werner >> > > > >> > > >> > >> > >
