<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">not sure if it came through, yet, &nbsp;but my after thinking about the separate repo thing, &nbsp;<div class=""><br class=""></div><div class="">“Thinking a little bit more, &nbsp;we don’t need separte repo’s for each feature. &nbsp;Thats what we can use AeroGear-Components thingy to distribute via bower. &nbsp; We can script that shizzell, &nbsp;to create custom feature builds”</div><div class=""><br class=""></div><div class=""><br class=""></div><div class=""><div><blockquote type="cite" class=""><div class="">On Feb 24, 2015, at 1:31 PM, Sebastien Blanc &lt;<a href="mailto:scm.blanc@gmail.com" class="">scm.blanc@gmail.com</a>&gt; wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><div class="gmail_extra"><br class="Apple-interchange-newline"><br class=""><div class="gmail_quote">On Tue, Feb 24, 2015 at 6:26 PM, Lucas Holmquist<span class="Apple-converted-space">&nbsp;</span><span dir="ltr" class="">&lt;<a href="mailto:lholmqui@redhat.com" target="_blank" class="">lholmqui@redhat.com</a>&gt;</span><span class="Apple-converted-space">&nbsp;</span>wrote:<br class=""><blockquote class="gmail_quote" style="margin: 0px 0px 0px 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex;"><div style="word-wrap: break-word;" class=""><p style="margin: 1.2em 0px 1.6em; color: rgb(36, 38, 40); font-family: 'Open Sans', sans-serif; font-size: 18.1887989044189px; line-height: 27.2831993103027px; background-color: rgb(255, 255, 255);" class=""><span style="font-size: 18.1887989044189px; line-height: 27.2831993103027px;" class="">While i was getting things together for the 2.1.0 release, I started to think about the structure of AeroGear.js.</span></p><p style="margin: 1.2em 0px 1.6em; color: rgb(36, 38, 40); font-family: 'Open Sans', sans-serif; font-size: 18.1887989044189px; line-height: 27.2831993103027px; background-color: rgb(255, 255, 255);" class="">Lets take DataManager as an example.</p><pre style="font-family: Inconsolata, monospace; font-size: 0.9em; margin-top: 1.6em; margin-bottom: 1.6em; border: 1px solid rgb(221, 219, 204); width: 671.34375px; padding: 10px; overflow: auto; border-top-left-radius: 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px; color: rgb(36, 38, 40); line-height: 27.2831993103027px; background-color: rgb(241, 240, 234);" class=""><code style="font-family: Inconsolata, monospace; font-size: inherit; white-space: pre-wrap; border: none; border-top-left-radius: 2px; border-top-right-radius: 2px; border-bottom-right-radius: 2px; border-bottom-left-radius: 2px; padding: 0px; background-color: transparent; background-position: initial initial; background-repeat: initial initial;" class="">var dataManager = new AeroGear.DataManager();
</code></pre><p style="margin: 1.2em 0px 1.6em; color: rgb(36, 38, 40); font-family: 'Open Sans', sans-serif; font-size: 18.1887989044189px; line-height: 27.2831993103027px; background-color: rgb(255, 255, 255);" class="">Basically, the resulting&nbsp;<code style="font-family: Inconsolata, monospace; font-size: 0.85em; white-space: pre-wrap; border: 1px solid rgb(221, 219, 204); border-top-left-radius: 2px; border-top-right-radius: 2px; border-bottom-right-radius: 2px; border-bottom-left-radius: 2px; padding: 1px 3px; background-color: rgb(241, 240, 234); background-position: initial initial; background-repeat: initial initial;" class="">datamanger</code>&nbsp;object is a fancy array. We can add new&nbsp;<code style="font-family: Inconsolata, monospace; font-size: 0.85em; white-space: pre-wrap; border: 1px solid rgb(221, 219, 204); border-top-left-radius: 2px; border-top-right-radius: 2px; border-bottom-right-radius: 2px; border-bottom-left-radius: 2px; padding: 1px 3px; background-color: rgb(241, 240, 234); background-position: initial initial; background-repeat: initial initial;" class="">stores</code>&nbsp;to it:</p><pre style="font-family: Inconsolata, monospace; font-size: 0.9em; margin-top: 1.6em; margin-bottom: 1.6em; border: 1px solid rgb(221, 219, 204); width: 671.34375px; padding: 10px; overflow: auto; border-top-left-radius: 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px; color: rgb(36, 38, 40); line-height: 27.2831993103027px; background-color: rgb(241, 240, 234);" class=""><code style="font-family: Inconsolata, monospace; font-size: inherit; white-space: pre-wrap; border: none; border-top-left-radius: 2px; border-top-right-radius: 2px; border-bottom-right-radius: 2px; border-bottom-left-radius: 2px; padding: 0px; background-color: transparent; background-position: initial initial; background-repeat: initial initial;" class="">dataManager.add('memoryStoreThing');

dataManager.add({{
    name: "indexDBStore",
    type: "IndexedDB"
}});
</code></pre><p style="margin: 1.2em 0px 1.6em; color: rgb(36, 38, 40); font-family: 'Open Sans', sans-serif; font-size: 18.1887989044189px; line-height: 27.2831993103027px; background-color: rgb(255, 255, 255);" class="">I'm not sure what the reason for this was historically. I think this concept was initally created when we were doing Pipeline.</p><p style="margin: 1.2em 0px 1.6em; color: rgb(36, 38, 40); font-family: 'Open Sans', sans-serif; font-size: 18.1887989044189px; line-height: 27.2831993103027px; background-color: rgb(255, 255, 255);" class="">But sticking to this example, i'm wondering if it adds any value though. would someone create a Datamanager that has more than one store in it? It's possible i guess if someone wanted to store the same info in a IndexedDB and WebSQL database at the same, for example, but there is currently no way to sync data between the two</p><p style="margin: 1.2em 0px 1.6em; color: rgb(36, 38, 40); font-family: 'Open Sans', sans-serif; font-size: 18.1887989044189px; line-height: 27.2831993103027px; background-color: rgb(255, 255, 255);" class="">With the next release, 2.1.0, we will be deprecating Notifier, which uses this pattern.</p><p style="margin: 1.2em 0px 1.6em; color: rgb(36, 38, 40); font-family: 'Open Sans', sans-serif; font-size: 18.1887989044189px; line-height: 27.2831993103027px; background-color: rgb(255, 255, 255);" class="">So Datamanager and Sync would be the only things using this pattern. Which i'm not sure makes sense anymore.</p><p style="margin: 1.2em 0px 1.6em; color: rgb(36, 38, 40); font-family: 'Open Sans', sans-serif; font-size: 18.1887989044189px; line-height: 27.2831993103027px; background-color: rgb(255, 255, 255);" class="">The remaining parts of the Library, Crypto, UnifiedPush, and to some extent SimplePush(currenlty coupled with Notifier) don't do this.</p><p style="margin: 1.2em 0px 1.6em; color: rgb(36, 38, 40); font-family: 'Open Sans', sans-serif; font-size: 18.1887989044189px; line-height: 27.2831993103027px; background-color: rgb(255, 255, 255);" class="">I am leaning toward proposing we get rid of this pattern and just make a DataManager object hold 1 store/adapter( sync woud follow suit )</p><p style="margin: 1.2em 0px 1.6em; color: rgb(36, 38, 40); font-family: 'Open Sans', sans-serif; font-size: 18.1887989044189px; line-height: 27.2831993103027px; background-color: rgb(255, 255, 255);" class="">This change though would be a 3.0 thing since it would be changing the way the API works.</p><p style="margin: 1.2em 0px 1.6em; color: rgb(36, 38, 40); font-family: 'Open Sans', sans-serif; font-size: 18.1887989044189px; line-height: 27.2831993103027px; background-color: rgb(255, 255, 255);" class="">I'm also wondering if it would make sense to separate the differnt parts of the library into different repo's.</p></div></blockquote><div class="">That would make Bower distribution easier right &nbsp;? &nbsp;</div><blockquote class="gmail_quote" style="margin: 0px 0px 0px 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex;"><div style="word-wrap: break-word;" class=""><p style="margin: 1.2em 0px 1.6em; color: rgb(36, 38, 40); font-family: 'Open Sans', sans-serif; font-size: 18.1887989044189px; line-height: 27.2831993103027px; background-color: rgb(255, 255, 255);" class="">I think one of the main reasons this wasn't done in the past was because&nbsp;<code style="font-family: Inconsolata, monospace; font-size: 0.85em; white-space: pre-wrap; border: 1px solid rgb(221, 219, 204); border-top-left-radius: 2px; border-top-right-radius: 2px; border-bottom-right-radius: 2px; border-bottom-left-radius: 2px; padding: 1px 3px; background-color: rgb(241, 240, 234); background-position: initial initial; background-repeat: initial initial;" class="">AeroGear.Core</code>&nbsp;was shared across many pieces of the library and it would be a lot of code duplication.</p><p style="margin: 1.2em 0px 1.6em; color: rgb(36, 38, 40); font-family: 'Open Sans', sans-serif; font-size: 18.1887989044189px; line-height: 27.2831993103027px; background-color: rgb(255, 255, 255);" class="">But something like the UnifiedPush Client SDK, might make sense in a separate repo.</p><p style="margin: 1.2em 0px 1.6em; color: rgb(36, 38, 40); font-family: 'Open Sans', sans-serif; font-size: 18.1887989044189px; line-height: 27.2831993103027px; background-color: rgb(255, 255, 255);" class="">For distribution, i've actually created a AeroGear Component GH organization, that has pieces of the library,&nbsp;<a href="https://github.com/orgs/AeroGear-Components/dashboard" target="_blank" style="color: rgb(91, 164, 229);" class="">https://github.com/orgs/AeroGear-Components/dashboard</a></p><p style="margin: 1.2em 0px 1.6em; color: rgb(36, 38, 40); font-family: 'Open Sans', sans-serif; font-size: 18.1887989044189px; line-height: 27.2831993103027px; background-color: rgb(255, 255, 255);" class="">I think i've started to ramble, so i'll stop here and look for comments</p></div><br class="">_______________________________________________<br class="">aerogear-dev mailing list<br class=""><a href="mailto:aerogear-dev@lists.jboss.org" class="">aerogear-dev@lists.jboss.org</a><br class=""><a href="https://lists.jboss.org/mailman/listinfo/aerogear-dev" target="_blank" class="">https://lists.jboss.org/mailman/listinfo/aerogear-dev</a><br class=""></blockquote></div><br class=""></div></div><span style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: inline !important;" class="">_______________________________________________</span><br style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><span style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: inline !important;" class="">aerogear-dev mailing list</span><br style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><a href="mailto:aerogear-dev@lists.jboss.org" style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class="">aerogear-dev@lists.jboss.org</a><br style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><a href="https://lists.jboss.org/mailman/listinfo/aerogear-dev" style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class="">https://lists.jboss.org/mailman/listinfo/aerogear-dev</a></div></blockquote></div><br class=""></div></body></html>