<div dir="ltr"><span style="font-family:arial,sans-serif;font-size:12.727272033691406px">>>Why are you trying to make things complicated by calling back via HTTP into your app? </span><div>Fascinating. One mans simple is another mans complicated.</div>

<div><br></div><div>Backgound processing libraries introduce another level of abstraction and indirection.</div><div>You have to write another adaptor to call the logic, we already have that, its called a controller.</div>

<div><br></div><div>There is a need to go back over the wire, which I outlined. However, depending on the <br>OS it won't actually make it over physical wire. </div><div><br style="font-family:arial,sans-serif;font-size:12.727272033691406px">

<span style="font-family:arial,sans-serif;font-size:12.727272033691406px">>>  env = Rack::MockRequest.env_for('/')</span><br style="font-family:arial,sans-serif;font-size:12.727272033691406px"><span style="font-family:arial,sans-serif;font-size:12.727272033691406px">>>  status, headers, body = PagesController.action(:index)</span><span style="font-family:arial,sans-serif;font-size:12.727272033691406px">.call(env)</span><br style="font-family:arial,sans-serif;font-size:12.727272033691406px">

<br style="font-family:arial,sans-serif;font-size:12.727272033691406px"><font face="arial, sans-serif">This doesn't test the stack of the app the way a client does. </font></div><div>And this represents an overhead just like calling a 3rd party library like Sidekq. So now we can <br>

discuss which offers more consistency and less overhead. </div><div><br></div><div>If I use a controller to call a method on my object and that same method is called via Sidekq</div><div>then I have two tests to write, one for it being called by the controller and one for it being <br>

called by Sidekq. Using a http request is saving code and tests and the overhead is not proven<br>to be higher than Sidekq or some other background processing library.</div><div><br></div><div>Please don't get me wrong, I appreciate you taking the time to answer my query.<br>

<br><div class="gmail_extra">- James.<br><br><div class="gmail_quote">On Tue, Jul 8, 2014 at 7:02 AM,  <span dir="ltr"><<a href="mailto:chat-request@lists.lrug.org" target="_blank">chat-request@lists.lrug.org</a>></span> wrote:<br>

<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">Send Chat mailing list submissions to<br>
        <a href="mailto:chat@lists.lrug.org">chat@lists.lrug.org</a><br>
<br>
To subscribe or unsubscribe via the World Wide Web, visit<br>
        <a href="http://lists.lrug.org/listinfo.cgi/chat-lrug.org" target="_blank">http://lists.lrug.org/listinfo.cgi/chat-lrug.org</a><br>
or, via email, send a message with subject or body 'help' to<br>
        <a href="mailto:chat-request@lists.lrug.org">chat-request@lists.lrug.org</a><br>
<br>
You can reach the person managing the list at<br>
        <a href="mailto:chat-owner@lists.lrug.org">chat-owner@lists.lrug.org</a><br>
<br>
When replying, please edit your Subject line so it is more specific<br>
than "Re: Contents of Chat digest..."<br>
<br>
<br>
Today's Topics:<br>
<br>
   1. Re: Ruby on Rail 4.2 networking breakfast (Graeme McCubbin)<br>
      (Andrew White)<br>
   2. [JOBS] Lead Developer at Picfair (Benji Lanyado)<br>
   3. Re: [JOBS] Lead Developer at Picfair (Najaf Ali)<br>
<br>
<br>
----------------------------------------------------------------------<br>
<br>
Message: 1<br>
Date: Sun, 6 Jul 2014 23:00:45 +0100<br>
From: Andrew White <<a href="mailto:andrew.white@unboxedconsulting.com">andrew.white@unboxedconsulting.com</a>><br>
To: "<a href="mailto:chat@lists.lrug.org">chat@lists.lrug.org</a>" <<a href="mailto:chat@lists.lrug.org">chat@lists.lrug.org</a>><br>
Subject: Re: [LRUG] Ruby on Rail 4.2 networking breakfast (Graeme<br>
        McCubbin)<br>
Message-ID:<br>
        <<a href="mailto:3C0AC133-5331-45DC-9CDF-4FE8552E841A@unboxedconsulting.com">3C0AC133-5331-45DC-9CDF-4FE8552E841A@unboxedconsulting.com</a>><br>
Content-Type: text/plain; charset=us-ascii<br>
<br>
<br>
On 6 Jul 2014, at 22:26, James Ladd <<a href="mailto:ladd.james@gmail.com">ladd.james@gmail.com</a>> wrote:<br>
<br>
> Simply we want to test our app which receives a http request through rails and in response to that request it can fire off background events also via http to the same application.<br>
<br>
Why are you trying to make things complicated by calling back via HTTP into your app? Even if for some strange reason a background processing library like Sidekiq or Resque doesn't do what you need there's no need to go back over the wire - just call the Rack endpoint directly. For example you can call a controller action like this:<br>


<br>
  env = Rack::MockRequest.env_for('/')<br>
  status, headers, body = PagesController.action(:index).call(env)<br>
<br>
Though I wouldn't recommend this as a real solution - you should refactoring your code so you can call it directly without the request overhead.<br>
<br>
> and even a nil doesn't understand reverse in the SQL layer.<br>
<br>
I'm not sure exactly what you're saying here - please expand on what you mean.<br>
<br>
<br>
Andrew White<br>
Rails Core Team Member<br>
<br>
<br>
<br>
------------------------------<br>
<br>
Message: 2<br>
Date: Mon, 7 Jul 2014 11:19:56 +0100<br>
From: Benji Lanyado <<a href="mailto:benjilanyado@gmail.com">benjilanyado@gmail.com</a>><br>
To: London Ruby LRUG <<a href="mailto:chat@lists.lrug.org">chat@lists.lrug.org</a>><br>
Subject: [LRUG] [JOBS] Lead Developer at Picfair<br>
Message-ID:<br>
        <CAHK1NnSbYy-h469b1z0AwkAODZCcc1C7EAg2aF2Pm=<a href="mailto:EECtC0dA@mail.gmail.com">EECtC0dA@mail.gmail.com</a>><br>
Content-Type: text/plain; charset="utf-8"<br>
<br>
Hello LRUGgers<br>
<br>
Picfair <<a href="https://www.picfair.com/" target="_blank">https://www.picfair.com/</a>> is looking for a Ruby developer.<br>
<br>
*What?*<br>
<br>
Picfair is a recently-funded<br>
<<a href="http://techcrunch.com/2014/06/08/picfair-raises-520k-to-take-on-getty-with-an-image-marketplace/" target="_blank">http://techcrunch.com/2014/06/08/picfair-raises-520k-to-take-on-getty-with-an-image-marketplace/</a>><br>


(investors<br>
include Alexis Ohanian, Reddit founder) image licensing marketplace,<br>
connecting photographers directly to buyers. I'm sorry to do this, but the<br>
analogy works: it's AirBnB for images. We are gunning for Shutterstock and<br>
Getty - they constrict supply and take the vast majority of royalties in a<br>
$6bn market. We do neither, and want to take that market from them.<br>
<br>
Picfair is very young, but already has 50,000 ridiculously good<br>
<<a href="https://www.picfair.com/posts/best-of-2013-picfair-picks-images-of-the-future" target="_blank">https://www.picfair.com/posts/best-of-2013-picfair-picks-images-of-the-future</a>><br>
images<br>
uploaded by 4,000 photographers in 60 different countries. We've made them<br>
thousands of pounds already, have had images licensed from website<br>
backgrounds to newspaper front pages. We've barely even started. The next<br>
few years are going to be incredibly exciting.<br>
<br>
*Who*<br>
<br>
I'm Benji, the founder of the company: a recovering journalist (NYT,<br>
Guardian - I still dabble, when I feel like kicking Tech City<br>
<<a href="http://www.theguardian.com/commentisfree/2014/jun/30/tech-city-subsidise-code-schools-year-of-code" target="_blank">http://www.theguardian.com/commentisfree/2014/jun/30/tech-city-subsidise-code-schools-year-of-code</a>>)<br>


who learnt how to code<br>
<<a href="http://www.fastcolabs.com/3013699/open-company/how-this-journalist-turned-coder-built-his-startup-for-6000" target="_blank">http://www.fastcolabs.com/3013699/open-company/how-this-journalist-turned-coder-built-his-startup-for-6000</a>><br>


in<br>
order to build the site. Yes - *gasp* - a CEO who codes.<br>
<br>
So far, Team Picfair are four: a brilliant and disconcertingly young junior<br>
designer/developer <<a href="https://www.behance.net/jcklydesign" target="_blank">https://www.behance.net/jcklydesign</a>>; an equally<br>
brilliant and disconcertingly young Growth Marketer<br>
<<a href="https://twitter.com/MissEm_ma" target="_blank">https://twitter.com/MissEm_ma</a>>; an Editorial Manager<br>
<<a href="https://www.picfair.com/users/salxhart" target="_blank">https://www.picfair.com/users/salxhart</a>>with the eye of a Guggenheim<br>
curator; and me. We work in a very fun shared workplace in Shoreditch<br>
<<a href="https://twitter.com/benjilanyado/status/476673719059099648" target="_blank">https://twitter.com/benjilanyado/status/476673719059099648</a>>, alongside 10<br>
other startups.<br>
<br>
The phenomenal Rik Lomas <<a href="https://twitter.com/riklomas" target="_blank">https://twitter.com/riklomas</a>> has been looking<br>
after Picfair's product for the last few months, and is now off to launch<br>
something new (watch this space, you'll love it), so, we're looking for a<br>
....<br>
<br>
*Lead Developer*<br>
<br>
Picfair currently has a single aim: do whatever it takes to get sh*t loads<br>
of good images onto the site, building up to a benchmark when the company's<br>
focus can swing to the other side of the market, launching an all-pronged<br>
attack on the industry incumbents.<br>
<br>
Picfair's Lead Developer will oversee and build a variety of things that<br>
will get it there. The challenges are big - we want to be managing millions<br>
of images, uploaded from thousands of locations, very soon. We are looking<br>
for someone who is as skilled at writing code as they are at organisation:<br>
Picfair is a Get Sh*t Done company.<br>
<br>
- 5 years min RoR experience<br>
- Excellent code/deployment planning and management skills<br>
- Very good Javascript (Backbone/jQuery), good front end skills, and good<br>
design/UX instinct<br>
- Experience in scaling web apps & DBs from quite big to REALLY BIG.<br>
- Someone who is passionate about what they do.<br>
- Competitive salary & EMI scheme<br>
<br>
If you're interested, please send over your CV and Github. Looking forward<br>
to hearing from you.<br>
<br>
Benji Lanyado<br>
Founder, Picfair.com<br>
<a href="http://benjlabs.com" target="_blank">benjlabs.com</a><br>
Guardian <<a href="http://www.guardian.co.uk/profile/benjilanyado" target="_blank">http://www.guardian.co.uk/profile/benjilanyado</a>> | NYT<br>
<<a href="http://query.nytimes.com/gst/search.html?query=%20BENJI%20LANYADO" target="_blank">http://query.nytimes.com/gst/search.html?query=%20BENJI%20LANYADO</a>> | Starting<br>
up <<a href="http://benjilanyado.wordpress.com/2013/04/29/starting-up-an-intro/" target="_blank">http://benjilanyado.wordpress.com/2013/04/29/starting-up-an-intro/</a>> |<br>
RedditEdit <<a href="http://redditedit.com/" target="_blank">http://redditedit.com/</a>><br>
Twitter <<a href="https://twitter.com/#!/benjilanyado" target="_blank">https://twitter.com/#!/benjilanyado</a>><br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: <<a href="http://lists.lrug.org/pipermail/chat-lrug.org/attachments/20140707/768d43c4/attachment.html" target="_blank">http://lists.lrug.org/pipermail/chat-lrug.org/attachments/20140707/768d43c4/attachment.html</a>><br>


<br>
------------------------------<br>
<br>
Message: 3<br>
Date: Mon, 7 Jul 2014 11:28:03 +0100<br>
From: Najaf Ali <<a href="mailto:ali@happybearsoftware.com">ali@happybearsoftware.com</a>><br>
To: Benji Lanyado <<a href="mailto:benjilanyado@gmail.com">benjilanyado@gmail.com</a>><br>
Cc: London Ruby LRUG <<a href="mailto:chat@lists.lrug.org">chat@lists.lrug.org</a>><br>
Subject: Re: [LRUG] [JOBS] Lead Developer at Picfair<br>
Message-ID:<br>
        <<a href="mailto:CAPByDDE30m4wGUvLnZ4FVMUqV3YMC4gEDH6dM_jqiHkzS4WqiA@mail.gmail.com">CAPByDDE30m4wGUvLnZ4FVMUqV3YMC4gEDH6dM_jqiHkzS4WqiA@mail.gmail.com</a>><br>
Content-Type: text/plain; charset="utf-8"<br>
<br>
Benji asked me to come on board last year when Picfair wasn't anywhere near<br>
as successful as it is now. If I were more amenable to FTE I'd be kicking<br>
myself. It's *very* rare that you find a startup founder that has anything<br>
like a hope in hell of succeeding, but I wouldn't bet against Benji. If you<br>
want to do the whole startup CTO thing and actually build something people<br>
with use, apply!<br>
<br>
<br>
<br>
<br>
On Mon, Jul 7, 2014 at 11:19 AM, Benji Lanyado <<a href="mailto:benjilanyado@gmail.com">benjilanyado@gmail.com</a>><br>
wrote:<br>
<br>
> Hello LRUGgers<br>
><br>
> Picfair <<a href="https://www.picfair.com/" target="_blank">https://www.picfair.com/</a>> is looking for a Ruby developer.<br>
><br>
> *What?*<br>
><br>
> Picfair is a recently-funded<br>
> <<a href="http://techcrunch.com/2014/06/08/picfair-raises-520k-to-take-on-getty-with-an-image-marketplace/" target="_blank">http://techcrunch.com/2014/06/08/picfair-raises-520k-to-take-on-getty-with-an-image-marketplace/</a>> (investors<br>


> include Alexis Ohanian, Reddit founder) image licensing marketplace,<br>
> connecting photographers directly to buyers. I'm sorry to do this, but the<br>
> analogy works: it's AirBnB for images. We are gunning for Shutterstock and<br>
> Getty - they constrict supply and take the vast majority of royalties in a<br>
> $6bn market. We do neither, and want to take that market from them.<br>
><br>
> Picfair is very young, but already has 50,000 ridiculously good<br>
> <<a href="https://www.picfair.com/posts/best-of-2013-picfair-picks-images-of-the-future" target="_blank">https://www.picfair.com/posts/best-of-2013-picfair-picks-images-of-the-future</a>> images<br>
> uploaded by 4,000 photographers in 60 different countries. We've made them<br>
> thousands of pounds already, have had images licensed from website<br>
> backgrounds to newspaper front pages. We've barely even started. The next<br>
> few years are going to be incredibly exciting.<br>
><br>
> *Who*<br>
><br>
>  I'm Benji, the founder of the company: a recovering journalist (NYT,<br>
> Guardian - I still dabble, when I feel like kicking Tech City<br>
> <<a href="http://www.theguardian.com/commentisfree/2014/jun/30/tech-city-subsidise-code-schools-year-of-code" target="_blank">http://www.theguardian.com/commentisfree/2014/jun/30/tech-city-subsidise-code-schools-year-of-code</a>>)<br>


> who learnt how to code<br>
> <<a href="http://www.fastcolabs.com/3013699/open-company/how-this-journalist-turned-coder-built-his-startup-for-6000" target="_blank">http://www.fastcolabs.com/3013699/open-company/how-this-journalist-turned-coder-built-his-startup-for-6000</a>> in<br>


> order to build the site. Yes - *gasp* - a CEO who codes.<br>
><br>
> So far, Team Picfair are four: a brilliant and disconcertingly<br>
> young junior designer/developer <<a href="https://www.behance.net/jcklydesign" target="_blank">https://www.behance.net/jcklydesign</a>>; an<br>
> equally brilliant and disconcertingly young Growth Marketer<br>
> <<a href="https://twitter.com/MissEm_ma" target="_blank">https://twitter.com/MissEm_ma</a>>; an Editorial Manager<br>
> <<a href="https://www.picfair.com/users/salxhart" target="_blank">https://www.picfair.com/users/salxhart</a>>with the eye of a Guggenheim<br>
> curator; and me. We work in a very fun shared workplace in Shoreditch<br>
> <<a href="https://twitter.com/benjilanyado/status/476673719059099648" target="_blank">https://twitter.com/benjilanyado/status/476673719059099648</a>>, alongside<br>
> 10 other startups.<br>
><br>
> The phenomenal Rik Lomas <<a href="https://twitter.com/riklomas" target="_blank">https://twitter.com/riklomas</a>> has been looking<br>
> after Picfair's product for the last few months, and is now off to launch<br>
> something new (watch this space, you'll love it), so, we're looking for a<br>
> ....<br>
><br>
> *Lead Developer*<br>
><br>
>  Picfair currently has a single aim: do whatever it takes to get sh*t<br>
> loads of good images onto the site, building up to a benchmark when the<br>
> company's focus can swing to the other side of the market, launching an<br>
> all-pronged attack on the industry incumbents.<br>
><br>
> Picfair's Lead Developer will oversee and build a variety of things that<br>
> will get it there. The challenges are big - we want to be managing millions<br>
> of images, uploaded from thousands of locations, very soon. We are looking<br>
> for someone who is as skilled at writing code as they are at organisation:<br>
> Picfair is a Get Sh*t Done company.<br>
><br>
> - 5 years min RoR experience<br>
> - Excellent code/deployment planning and management skills<br>
> - Very good Javascript (Backbone/jQuery), good front end skills, and good<br>
> design/UX instinct<br>
> - Experience in scaling web apps & DBs from quite big to REALLY BIG.<br>
> - Someone who is passionate about what they do.<br>
> - Competitive salary & EMI scheme<br>
><br>
> If you're interested, please send over your CV and Github. Looking forward<br>
> to hearing from you.<br>
><br>
> Benji Lanyado<br>
> Founder, Picfair.com<br>
> <a href="http://benjlabs.com" target="_blank">benjlabs.com</a><br>
> Guardian <<a href="http://www.guardian.co.uk/profile/benjilanyado" target="_blank">http://www.guardian.co.uk/profile/benjilanyado</a>> | NYT<br>
> <<a href="http://query.nytimes.com/gst/search.html?query=%20BENJI%20LANYADO" target="_blank">http://query.nytimes.com/gst/search.html?query=%20BENJI%20LANYADO</a>> | Starting<br>
> up <<a href="http://benjilanyado.wordpress.com/2013/04/29/starting-up-an-intro/" target="_blank">http://benjilanyado.wordpress.com/2013/04/29/starting-up-an-intro/</a>> |<br>
> RedditEdit <<a href="http://redditedit.com/" target="_blank">http://redditedit.com/</a>><br>
> Twitter <<a href="https://twitter.com/#!/benjilanyado" target="_blank">https://twitter.com/#!/benjilanyado</a>><br>
><br>
><br>
> _______________________________________________<br>
> Chat mailing list<br>
> <a href="mailto:Chat@lists.lrug.org">Chat@lists.lrug.org</a><br>
> Archives: <a href="http://lists.lrug.org/pipermail/chat-lrug.org" target="_blank">http://lists.lrug.org/pipermail/chat-lrug.org</a><br>
> Manage your subscription: <a href="http://lists.lrug.org/options.cgi/chat-lrug.org" target="_blank">http://lists.lrug.org/options.cgi/chat-lrug.org</a><br>
> List info: <a href="http://lists.lrug.org/listinfo.cgi/chat-lrug.org" target="_blank">http://lists.lrug.org/listinfo.cgi/chat-lrug.org</a><br>
><br>
><br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: <<a href="http://lists.lrug.org/pipermail/chat-lrug.org/attachments/20140707/6e1a6b08/attachment-0001.htm" target="_blank">http://lists.lrug.org/pipermail/chat-lrug.org/attachments/20140707/6e1a6b08/attachment-0001.htm</a>><br>


<br>
------------------------------<br>
<br>
Subject: Digest Footer<br>
<br>
_______________________________________________<br>
Chat mailing list<br>
<a href="mailto:Chat@lists.lrug.org">Chat@lists.lrug.org</a><br>
Archives: <a href="http://lists.lrug.org/pipermail/chat-lrug.org" target="_blank">http://lists.lrug.org/pipermail/chat-lrug.org</a><br>
Manage your subscription: <a href="http://lists.lrug.org/options.cgi/chat-lrug.org" target="_blank">http://lists.lrug.org/options.cgi/chat-lrug.org</a><br>
List info: <a href="http://lists.lrug.org/listinfo.cgi/chat-lrug.org" target="_blank">http://lists.lrug.org/listinfo.cgi/chat-lrug.org</a><br>
<br>
<br>
------------------------------<br>
<br>
End of Chat Digest, Vol 102, Issue 6<br>
************************************<br>
</blockquote></div><br></div></div></div>