| bio | website | |
|---|---|---|
| location | Austin, TX | |
| age | 28 | |
| visits | member for | 1 year, 10 months |
| seen | Aug 31 '12 at 22:43 | |
| stats | profile views | 16 |
|
Jan 31 |
awarded | Popular Question |
|
Aug 31 |
comment |
Do mixins create coupling with Ruby? It's not a complete code listing. |
|
Aug 21 |
comment |
JavaScript percentage displayer and/or adjuster? Well, actually, this guy might just work! jqplot.com/deploy/dist/examples/mekkoCharts.html. Thank you lunchmeat317 |
|
Aug 21 |
comment |
JavaScript percentage displayer and/or adjuster? Also, the problem with multiple jQuery UI sliders is, multiple sliders do not provide a way of easily seeing the overall ratios across OSes. |
|
Aug 21 |
comment |
JavaScript percentage displayer and/or adjuster? Good suggestion; however, the problem with that is, sometimes I want 1% for a given OS, and that's visually difficult to represent with sliders, given limited screen real estate. |
|
Aug 21 |
asked | JavaScript percentage displayer and/or adjuster? |
|
Jul 24 |
awarded | Commentator |
|
Jul 24 |
comment |
One or many RESTful APIs for large company? Good point. This is all internal, so luckily there are no liability concerns. |
|
Jul 24 |
comment |
One or many RESTful APIs for large company? Thank you for your feedback. Might this look like using multiple endpoints reverse-proxied or virtually mounted under one domain? Example: api.company.com/api1/resource, api.company.com/api2/resource; api1 and api2 are different endpoints possibly hosted on different machines and different vhosts. |
|
Jul 23 |
asked | One or many RESTful APIs for large company? |
|
Jul 25 |
comment |
Do mixins create coupling with Ruby? Cool, thanks again for the follow-up of the follow-up. Now, going further, if I use App.keyring to access the keyring instance, aren't any libraries that require a keyring instance coupled to App (and require it to come along for reuse in any other Rails app utilizing keyring)? |
|
Jul 25 |
comment |
Do mixins create coupling with Ruby? By "everyone" I'm mainly referring to bloggers and StackOverflow-ers. So which would you strive for if you were in my shoes, solving this problem: a mixin approach or a DI approach? |
|
Jul 25 |
comment |
Do mixins create coupling with Ruby? So you would recommend I go a dependency injection route to provide classes access to the keyring instance? Isn't this anti-Ruby, considering everyone advocates modules/mixins over DI? |
|
Jul 25 |
comment |
Do mixins create coupling with Ruby? Thanks for the added response. So, let's say I put the keyring instance in the App module. Would I then "include App" in my FtpConnection class and access the keyring instance there via the "keyring" method which would be mixed into the FtpConnection class? Or would I access the keyring instance in FtpConnection via "App.keyring"? Or something else? |
|
Jul 25 |
awarded | Supporter |
|
Jul 25 |
comment |
Do mixins create coupling with Ruby? My application needs one keyring instance for use with multiple other classes application-wide. This is similar to a database connection. Using a dependency injection-based design, I would instantiate the keyring object at the application level, store it in a registry, and access it as a service via a service locator. Thus, it is not a singleton. Does this make sense? What would you recommend I do, considering it is needed application wide? |
|
Jul 25 |
comment |
Do mixins create coupling with Ruby? Maybe a symbol name could be used for the module name. Or, better yet, maybe a fancy class macro could be used in conjunction with a symbol. Hm. Does anyone know a commonly-used way around this coupling? |
|
Jul 25 |
comment |
Do mixins create coupling with Ruby? Well, I'm comparing this to a dependency injection approach, which might be closer to perfect and would not require copying and pasting. |
|
Jul 25 |
asked | Do mixins create coupling with Ruby? |
|
Jul 25 |
awarded | Student |