<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Buttercloud Labs - Medium]]></title>
        <description><![CDATA[Opinions on software and the business of it, by the team at www.buttercloud.com - Medium]]></description>
        <link>https://medium.com/buttercloud-labs?source=rss----e4d979e9977b---4</link>
        <image>
            <url>https://cdn-images-1.medium.com/proxy/1*TGH72Nnw24QL3iV9IOm4VA.png</url>
            <title>Buttercloud Labs - Medium</title>
            <link>https://medium.com/buttercloud-labs?source=rss----e4d979e9977b---4</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 29 Nov 2026 01:43:17 GMT</lastBuildDate>
        <atom:link href="https://medium.com/feed/buttercloud-labs" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Email Marketing Analytics: essential metrics that measure success!]]></title>
            <link>https://medium.com/buttercloud-labs/email-marketing-analytics-essential-metrics-that-measure-success-63961d32864a?source=rss----e4d979e9977b---4</link>
            <guid isPermaLink="false">https://medium.com/p/63961d32864a</guid>
            <category><![CDATA[email-marketing]]></category>
            <category><![CDATA[campaign]]></category>
            <category><![CDATA[newsletter-marketing]]></category>
            <dc:creator><![CDATA[Jasmin Al-Hawi]]></dc:creator>
            <pubDate>Mon, 02 Oct 2017 14:17:28 GMT</pubDate>
            <atom:updated>2017-10-02T14:17:28.079Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NLLJWmMqiKnEy4Hf01pcRw.png" /></figure><p>With Email marketing, constant iteration and testing is crucial in order to know what is working; what type of content is your audience finding most helpful, which CTA are they responding to, and which subject lines are getting better results.</p><blockquote>“If you can’t measure it, you can’t manage it.” -Peter Drucker</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wr16kps_4HSZk2NCqAw1ug.png" /></figure><p><em>Which email metrics are you tracking over time to know what is working for you?</em> Here are the metrics we think are most important in order to measure your progress, and better manage your campaigns!</p><ul><li><strong>Open rate:</strong> the percentage of people that opened your email</li></ul><p>Open rate is a basic metric, but it is not 100% accurate. Since the open rate depends on a small tracking pixel image within the email being loaded, and some email services block images by default and certain mobile devices only read emails in text format, it can’t be considered reliable. However, it can still help out while comparing your emails (using the same subscribers list) and A/B testing, it indicates which subject lines are working better in comparison to one another. The other thing open rate helps indicate is the best timings to send your subscribers emails.</p><p>Check out <a href="https://mailchimp.com/">MailChimps</a> average open rate based on industry or company size<br><a href="https://mailchimp.com/resources/research/email-marketing-benchmarks/">https://mailchimp.com/resources/research/email-marketing-benchmarks/</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*g0NtfeM1MuY6UqI-ogxbsg.png" /></figure><ul><li><strong>Click through rate:</strong> the percentage of people who clicked at least one link in your email.</li></ul><p>The CTR shows you how your audience interacted with your content and message, it’s a measure of your campaign’s success, especially if you have a clear call to action that your recipients are following through with, whether it’s “buy now” or “register for an event”.</p><ul><li><strong>Click-to-open rate:</strong> the CTOR is calculated by dividing unique clicks by unique opens. This signals more clearly the quality and success of the content.</li><li><strong>CTR vs. CTOR: </strong>Using CTOR instead of CTR, shows you the percentage of people that clicked in relation to the ones that opened the email, instead of just the number of people that clicked through which the CTR reveals. Meaning the CTOR doesn’t get affected by subject lines or email timings, it just shows us how the content performed.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3xTnFdyGDA28sOGxdxdd4A.png" /></figure><ul><li><strong>Unsubscribe rate:</strong> the percentage of people who unsubscribed after receiving your email.</li></ul><p>Check out your industry’s benchmark unsubscribe rate in the above MailChimp stats link, but anything over 0.5% is worrying.</p><p>There are many reasons someone might unsubscribe, but if there is a sudden spike in the unsubscribe rate for one email campaign or a single email, go over the content and your message, there may be something particular your readers didn’t like.</p><p>Another reason your unsubscribe rate is high might be the method of finding and adding people to your mailing list. Are you using double opt-in? A high unsubscribe rate may signal that your subscribers weren’t actually expecting to receive emails.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*042e2HnUcBPz2vWiKNaR0Q.png" /></figure><ul><li><strong>Earnings per click: </strong>Knowing how much you earned, in terms of revenue, for your email campaign is essential in order to know if it was a success.</li></ul><p>If your email marketing campaign was not as profitable as hoped, apply the lessons learned from this campaign to your next. Problems might be the quality of your email list, you may have included emails of people that found your product or message not relatable. There might have been a problem with your subject line, content, or call to action, which will show from the above mentioned metrics.</p><p>In order to keep your email list efficient, with recipients who actually receive your email (since a low delivery rate is a bad sign), monitoring the delivery rate, hard and soft bounce numbers is essential.</p><ul><li><strong>Hard bounce number:</strong> the invalid email addresses. These should be filtered out as soon as possible.</li><li><strong>Soft bounce number:</strong> usually due to a full inbox of the recipient. Retrying this email is a good idea, but after a few times of soft bounces, it should get filtered out.</li><li><strong>Delivery rate: </strong>the percentage of emails successfully delivered, this also include the emails that end up in junk mail.The number of bounced emails is excluded. If it’s over 95% it’s a good rate.</li></ul><p><em>Let us know which metrics you think are most important? And how did your last email campaign go?</em></p><blockquote>Need help with your next email marketing campaign? Check out our <a href="http://www.buttercloud.com/services/grow/product-analytics/">digital analytics consulting services.</a></blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=63961d32864a" width="1" height="1" alt=""><hr><p><a href="https://medium.com/buttercloud-labs/email-marketing-analytics-essential-metrics-that-measure-success-63961d32864a">Email Marketing Analytics: essential metrics that measure success!</a> was originally published in <a href="https://medium.com/buttercloud-labs">Buttercloud Labs</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Best DevOps is NoOps]]></title>
            <link>https://medium.com/buttercloud-labs/the-best-devops-is-noops-e99c83d4fdf0?source=rss----e4d979e9977b---4</link>
            <guid isPermaLink="false">https://medium.com/p/e99c83d4fdf0</guid>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[serverless]]></category>
            <category><![CDATA[startup-lessons]]></category>
            <category><![CDATA[startup]]></category>
            <category><![CDATA[devops]]></category>
            <dc:creator><![CDATA[Feras Hirzalla]]></dc:creator>
            <pubDate>Mon, 31 Jul 2017 09:25:54 GMT</pubDate>
            <atom:updated>2020-12-21T18:20:11.606Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qKpCdhxl_8WhATVo6oFwnQ.jpeg" /></figure><p>How’s the monitoring going on the servers? Do we have a memory leak? Have you installed the latest security patches? Let’s launch another staging server to test out the new release. Hey, you made TechCrunch with that latest press release but haven’t set up automatic scaling. Oh wait, the background workers aren’t running on staging.</p><p>This will sound familiar if you’re a startup that has chosen to run its own servers. Whether you’re an early-stage bootstrapped startup that’s looking for product-market fit, or an established startup that’s well on its way to growth, take a moment to consider a new strategy for your early stage startup:</p><blockquote><em>The Best DevOps is NoOps.</em></blockquote><p>What is NoOps you ask? In his blog post “I don’t want DevOps, I want NoOps”, Matt Guiltier of Forrester Research defines NoOps as:</p><blockquote><em>NoOps means that application developers will never have to speak with an operations professional again.</em></blockquote><p><a href="http://www.buttercloud.com/">At Buttercloud</a>, we like to think of NoOps as making infrastructure selections that meet the following criteria:</p><ol><li>Scalable and abstracted backends</li><li>Easy &amp; fast deployments</li><li>Minimal or no server administration time.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CbwnMMNcRpQX81JJ6P7Qag.jpeg" /></figure><p>A few examples of NoOps platforms that fit the above criteria are Heroku, Amazon Lambda, and Google Firebase. By adopting these platforms, you’re committing to applications with no or minimal backends, that can scale infinitely.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZshqqdjfdXc3E-QXRBrSWA.jpeg" /></figure><h3>Aren’t services like Heroku and Amazon Lambda more expensive than traditional hosting?</h3><p>Yes they can be depending on your scale and use-case, but take a second to think about your opportunity cost as a young early stage startup where every minute counts. Every hour you put into setting up servers is an hour of time you could have spent building features, pitching your product, or experimenting with different growth campaigns. These all lead your startup directly to profitability and revenue. Your hosting bill may be $50 — $300+ higher every month, but if you are able to achieve profitability 1 month earlier, you’ve already won.</p><h3>You Already Outsource Your Email Delivery</h3><p>Most startups choose not to run their email servers. They use services like Mandrill, Mailchimp, or Sendgrid. This isn’t because startups don’t have the technical capability to run their own email servers. It’s because it can be difficult to get email deliverability and uptime right, the small amount these services charge is well worth it when accounting for deliverability and time savings. I’m suggesting you consider the same setup when it comes to your servers. Think about your ideal DevOps process, then start eliminating parts that can be handed off to managed providers.</p><p>Startups go through a few different phases throughout their lifecycle. We’ve found that the NoOps approach is a better fit throughout the earlier stages of a startup. The graphic below demonstrates the startup lifecycle and a suggested approach of applying NoOps in a time &amp; cost efficient manner:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ckT9a4Dzp_On_CKbEBEk7A.jpeg" /><figcaption>Startup Lifecycle with DevOps / NoOps</figcaption></figure><p>If your team doesn’t have a full-time DevOps engineer, managed providers will likely do a better job than you scaling the infrastructure, and your team members can focus on building the best product experience for your customers.</p><p>When we build early stage products for startups at Buttercloud, we like to off-load as much as we can of the DevOps process early on. For more mature startups, we’ve chosen to get our hands dirty and run a full blown server infrastructure on Amazon Opsworks. For any in-house products we’re building, especially the newer ones — we’re trying to minimize DevOps related work and focus on building out the product &amp; growth experimentation process.</p><h3>Case Study: The Tizmos Screenshotter</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NBBhJjco0y1r2eogDVeDiA.jpeg" /></figure><p>At <a href="https://www.tizmos.com/">Tizmos</a>, an educational platform for teachers to discover and share resources, we’ve adopted a NoOps approach on a specific portion of the application. Tizmos runs a data collection service that crawls educational websites and captures screenshots of those pages. One of the major requirements was to be able to scale the screenshotting service in order to be able to keep hundreds of thousands of screenshots up-to-date throughout the month. We ended up architecting an Amazon Lambda back-end integrated with Amazon API Gateway. The Ruby on Rails backend makes a request to Amazon API Gateway, which fires off multiple Lambda functions that run the actual data processing. The team at Tizmos previously struggled with keeping their infrastructure up-to-date as it related to using headless browsers and running back-end queues to scale the process and handle failures. They now have an abstracted back-end hosted completely in the cloud that can scale to millions of screenshots per month — something that would have taken months to complete and get right with a traditional approach.</p><h3>Summary</h3><p>It may not work 100% of the time for 100% of companies, but the bulk majority of startups can save time, money, and validate their product early as their competitors burn time on building DevOps infrastructures.</p><blockquote>Interested in working with Buttercloud to help build your startup’s web &amp; mobile apps? Check out our <a href="http://www.buttercloud.com/services/build/mvp/">Build Your MVP</a> service.</blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e99c83d4fdf0" width="1" height="1" alt=""><hr><p><a href="https://medium.com/buttercloud-labs/the-best-devops-is-noops-e99c83d4fdf0">The Best DevOps is NoOps</a> was originally published in <a href="https://medium.com/buttercloud-labs">Buttercloud Labs</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to build a referral program to encourage word of mouth marketing]]></title>
            <link>https://medium.com/buttercloud-labs/how-to-build-a-referral-program-to-encourage-word-of-mouth-marketing-b77ff30f07d9?source=rss----e4d979e9977b---4</link>
            <guid isPermaLink="false">https://medium.com/p/b77ff30f07d9</guid>
            <category><![CDATA[growth-hacking]]></category>
            <category><![CDATA[marketing-strategies]]></category>
            <category><![CDATA[marketing-automation]]></category>
            <category><![CDATA[referral-marketing]]></category>
            <category><![CDATA[marketing]]></category>
            <dc:creator><![CDATA[Jasmin Al-Hawi]]></dc:creator>
            <pubDate>Sun, 16 Jul 2017 11:02:04 GMT</pubDate>
            <atom:updated>2017-08-30T09:25:58.896Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vfzVpaVV1Ui4p_ahNr6QTQ.png" /></figure><p>Many new ways to advertise to consumers are emerging, ways to get your messages across to potential customers, yet a <a href="http://www.nielsen.com/us/en/insights/news/2013/under-the-influence-consumer-trust-in-advertising.html">Nielsen study</a> showed that consumers still thought word-of-mouth advertising is the most trust-worthy.</p><blockquote><em>83% of consumers say they either completely or somewhat trust recommendations from family, colleagues, and friends about products. –</em><a href="http://www.nielsen.com/us/en/insights/reports/2015/global-trust-in-advertising-2015.html"><em>Nielsen</em></a></blockquote><p>However, even if you have happy and satisfied customers that absolutely love your product, they still might not recommend it to others.</p><blockquote><em>According to a </em><a href="https://www.forbes.com/sites/chuckcohn/2015/11/23/how-to-make-customers-the-best-advocates-for-your-company/#3c5711f4d9e8"><em>Wharton School of Business study</em></a><em>:<br>83% of satisfied customers say they are willing to refer products or services. Only 29% ultimately do.</em></blockquote><p>This is where your referral program comes in, referral programs is a way to nudge happy and satisfied customers to refer your product or service to the people around them.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*oafvvkgV0ycZt3HASC4KfQ.png" /></figure><h4><strong>Why should you have a referral program?</strong></h4><p>Referral programs are more influential than other marketing efforts, due to the fact that people trust their friends, family, and colleagues more. The fact that they tried the product or service, liked it, and recommended it, is enough reason for them to try it. Built-in-trust plays a great role in getting consumers to try new products or services.</p><blockquote><em>92% of consumers trust referrals from people they know — </em><a href="http://www.nielsen.com/us/en/insights/news/2013/under-the-influence-consumer-trust-in-advertising.html"><em>Nielsen</em></a></blockquote><blockquote><em>People are 4 times more likely to buy when referred by a friend — </em><a href="http://www.nielsen.com/us/en/insights/news/2013/under-the-influence-consumer-trust-in-advertising.html"><em>Nielsen</em></a></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xHpeYxxrzZBiOFZ_AZGw6Q.png" /></figure><p>Another reason is the <strong>low cost compared to your return on investment</strong>. The cost compared to other marketing efforts is much lower, since the message you need to send out is for your existing customer base, making targeting much easier. <br>The other factor is the referral incentive you will offer. Your referral program, depending on your business, will most probably need a two-sided incentive. A referral reward for the existing customer that refers and the referred friend that buys your product or service.</p><p>For example, <a href="https://www.dropbox.com/">Dropbox</a> implemented a two-sided incentive <a href="https://www.referralcandy.com/blog/dropbox-referral-program/">referral program</a>, offering 500 MB of bonus space for the referred friend as well as the existing user. Dropbox went from having 100,000 users to 4,000,000 users in only 15 months!</p><p>You get to set up the referral incentives, and can calculate the exact incentive that is good enough for your customers to refer you.</p><p>Setting up the referral program or the cost paid to the service provider should also be considered. On the plus side, service providers that can create and track your referral programs can range from low to high pricing, and what you need for your own business-size can easily be found.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*eh-liMJeU0xIOSwpXX-Jlw.png" /></figure><p>Another reason to try out referral marketing if you don’t already have a referral program as part of your marketing strategy, is because customers that are referred are <strong>more loyal</strong> than those that were obtained through different methods.</p><blockquote><em>A referred customer is 18% more loyal than a customer acquired through a different method, spends 13.2% more than a non-referred customer, and has a lifetime value that is 16% higher than a non-referred customer. [Source: Journal of Marketing]</em></blockquote><h4>How to build a referral program?</h4><p>In order for your referral program to be amazing, first <strong>your product or service needs to be outstanding</strong>. Customers will not refer family members and friends to a product or service that they are not satisfied with. First, create a great product consumers need, then focus on exceptional customer service, make sure customers will be willing to refer your company before building your referral program, usually a high <a href="https://www.netpromoter.com/know/">net promoter score</a> is a great sign!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*q1RB4LYldH5aGwrFC0GHjg.png" /></figure><p>When choosing the referral incentives you would like to present to your customers and prospect customers,<strong> make sure to choose incentives customers will find interesting and rewarding</strong>. Know your customers and make sure to present rewards they will love! It should also be related to your product, for example a free sample of a product, a discount for your product/service, or account credit.</p><p>I’d like to link back to the<strong> </strong><a href="https://www.dropbox.com/">Dropbox</a><strong> </strong><a href="https://www.referralcandy.com/blog/dropbox-referral-program/">referral program</a> already mentioned, another reason it was such a great success is also that the incentive (free storage up to 16 GB) was very appealing to users, and inviting friends was an easy process, made very clear, and the rewards (free storage) earned were very clearly listed and showcased to each user.</p><p><strong>Make it as easy as possible for customers to refer friends</strong>, you don’t want customers to get frustrated from the process and give up. In order to make the sharing experience easier, have a clear landing page, add a share button to all social media sites, and have auto-filled text. Also, to make it easy for customers to find and start referring friends, sending Email blasts, writing a blog post, and posting on social media pages, will help get the message out.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1EFMAm3CkQ9duodUhMI_gQ.png" /></figure><p><strong>Pay great attention to analytics and tracking</strong>. Whether you’re building the referral program in-house, or you’re using a referral program software, stay focused on analytics, and track where new customers are coming from. You need to know whether your referral program is working or not, if it was worth implementing, and if the new customers you are gaining are satisfied and loyal. If you’re using a referral program software, analytics and tracking are included.</p><p><em>To wrap things up..</em></p><p>Having a referral program as one of your marketing campaigns is essential and will help your business thrive. You’ll be getting new customers that are more likely to be loyal, the ROI is high compared to the initial investment, and the fact that referred customers are more likely to try out your product/service.</p><p>Before building your referral program, make sure your current customers are happy and your product and services are well received. When thinking of what incentives to offer make sure they are incentives the customers will find interesting and rewarding. Also, make your referral program relatively easy to use and measurable. Lastly, continuously check the analytics and track where new customers are coming from to know what works.</p><p>Interested in working with Buttercloud? Check out one of our Grow services that will help you <a href="http://www.buttercloud.com/services/grow/referral-program/">build &amp; execute a successful referral program</a>, or contact us to learn more about our <a href="http://www.buttercloud.com/services/grow/product-analytics/">Digital Analytics Consulting Service</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b77ff30f07d9" width="1" height="1" alt=""><hr><p><a href="https://medium.com/buttercloud-labs/how-to-build-a-referral-program-to-encourage-word-of-mouth-marketing-b77ff30f07d9">How to build a referral program to encourage word of mouth marketing</a> was originally published in <a href="https://medium.com/buttercloud-labs">Buttercloud Labs</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[5 Practical Lessons For Any Startup]]></title>
            <link>https://medium.com/buttercloud-labs/5-practical-lessons-for-any-startup-98837e15705a?source=rss----e4d979e9977b---4</link>
            <guid isPermaLink="false">https://medium.com/p/98837e15705a</guid>
            <category><![CDATA[team-building]]></category>
            <category><![CDATA[entrepreneurship]]></category>
            <category><![CDATA[startup]]></category>
            <dc:creator><![CDATA[Ahmad Hammad]]></dc:creator>
            <pubDate>Fri, 27 May 2016 21:31:41 GMT</pubDate>
            <atom:updated>2016-05-27T22:46:00.742Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-9ws2B4RnDPyKhkj3RQSCQ.jpeg" /></figure><p>There are many nuggets of wisdom that we use as guiding principles when building our team. Here are five that have proven to be especially valuable and lasting.</p><h3>The rule of 3 and 10</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lfZHZTLBDf_KTy673465wg.jpeg" /></figure><p>Coined by Hiroshi Mikitani, founder and CEO of <a href="http://global.rakuten.com/en">Rakuten</a>, the rule implies that every time your team triples in size, rounding up t0 nearest multiples of 10, everything changes, things break.</p><blockquote>When you go from one person to three people it’s different. When it’s just you, you know what you are doing and then you have three people and you have to rethink how you are doing everything. But when there are 10 people it’s all going to change again. And when there are 30 people it will change again. Same when you reach 100 people.</blockquote><p>— <a href="https://www.sequoiacap.com/article/the-rule-of-3-and-10/"><em>https://www.sequoiacap.com/article/the-rule-of-3-and-10/</em></a></p><p>Everything from team dynamics, communication tools and meetings to payroll and the intentional or natural formation of hierarchy is affected.</p><p>At Buttercloud, a team floating around the 6–10 person size, a change of plus or minus one can often have a palpable impact and require rethinking everything we are doing. A simple example would be how to maintain the practicality of our morning standup call as the number of attendees increases, that 20-30 minute call is suddenly approaching the hour mark.</p><h3>Edit your team</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*m-B8uV_3S-UoM-Neq7516A.jpeg" /></figure><p>As CEO of Square, <a href="https://twitter.com/jack">Jack Dorsey</a> sees himself as “Chief Editor”, where his #1 priority is editing the team dynamics. In his words:</p><blockquote>“I’ve often spoken to the editorial nature of what I think my job is, I think I’m just an editor, and I think every CEO is an editor. I think every leader in any company is an editor. Taking all of these ideas and editing them down to one cohesive story, and in my case my job is to edit the team, so we have a great team that can produce the great work and that means bringing people on and in some cases having to let people go.”</blockquote><p>When speaking on the matter, <a href="https://twitter.com/kevinrose">Kevin Rose</a> also used the term “pruning” which by definition is the act of trimming down in order to encourage growth.</p><p>Editing your team is just as much about nurturing the company culture as it is about building a skilled and experienced team. As with rowing, all team members need to paddle in the same direction at the same speed in order to reach the finish line.</p><h3>Brooks’ Law</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uPcwXhyiWJ8DgN5ixMvdTQ.jpeg" /></figure><p>Although Fred Brooks, in his book <a href="https://en.wikipedia.org/wiki/The_Mythical_Man-Month"><em>The Mythical Man-Month</em></a><em>, </em>coined this oversimplified rule in reference to software projects, I believe it can be applied to projects of any nature.</p><blockquote>“adding manpower to a late software project makes it later”</blockquote><p>Factors such as “ramp up” time, communication overhead and lack of concurrent tasks can attribute to negatively impacting a project in progress by adding to the team. This is something often overlooked by clients and project managers but also by startups that want to accelerate growth. As a small startup, the act of hiring in and of itself can be extremely time and energy consuming, which can be crippling at a critical time. If you can afford it, hire proactively rather than reactively.</p><h3>Broken window theory</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wgqOvfm-KtmlbVUUYNAM1Q.jpeg" /></figure><p>How many times have you said “I’ll come back to it” or “I’ll clean it up later”? Be it a piece of code or a post implementation review, if it doesn’t come back to bite you in the ass it’s sure to instigate decay by those inheriting your work.</p><blockquote>One broken window, left unrepaired for any substantial length of time, instils in the inhabitants of the building a sense of abandonment — a sense that the powers that be don’t care about the building. So another window gets broken. People start littering. Graffiti appears. Serious structural damage begins. In a relatively short space of time, the building becomes damaged beyond the owner’s desire to fix it, and the sense of abandonment becomes reality.</blockquote><p>— <a href="https://pragprog.com/the-pragmatic-programmer/extracts/software-entropy">The Pragmatic Programmer</a></p><p><a href="https://en.wikipedia.org/wiki/Broken_windows_theory">Broken window theory</a> will have a negative impact, even if implicit, on company culture. Lead by example, don’t leave broken windows.</p><h3>What gets measured gets managed</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*A7QlcSGUAo5elCY1xJYJ1w.jpeg" /></figure><p>In order to practice <a href="https://en.wikipedia.org/wiki/Kaizen">Kaizen</a>, you need to track and continuously monitor that which you wish to improve. If you were to think of this in terms of losing weight, its obvious that in order to realise the loss of weight you need to constantly step on a scale, but that alone does not guide the process, it merely informs you whether or not you have lost weight. Ask anyone who has lost significant weight and they will tell you that it’s extremely difficult to succeed without tracking calories in and calories out.</p><p>This principle can and should be applied to all aspects of your product or business such as platform performance, A/B testing pricing, productivity with strict in-office hours vs flexible work from home, the list goes on.</p><p>Improvement can sometimes be pinpointed to a source but more often than not, we don’t know why something worked, for example a successful marketing campaign; we can shrug our shoulders and celebrate but unless we can explain it, we won’t be able to guarantee repeated success. Try to get to the source, keep asking why until you find the reason.</p><blockquote><a href="http://www.toyota-global.com/company/toyota_traditions/quality/mar_apr_2006.html">“Ask ‘why’ five times about every matter.”</a></blockquote><p><em>— Taiichi Ohno, Former Executive Vice President of Toyota</em></p><p>What principles or advice have you found to be invaluable in your company? We would love for you to share your stories and experiences growing your team and culture.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=98837e15705a" width="1" height="1" alt=""><hr><p><a href="https://medium.com/buttercloud-labs/5-practical-lessons-for-any-startup-98837e15705a">5 Practical Lessons For Any Startup</a> was originally published in <a href="https://medium.com/buttercloud-labs">Buttercloud Labs</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Learning Ruby through Clojure]]></title>
            <link>https://medium.com/buttercloud-labs/learning-ruby-through-clojure-fee5eb990226?source=rss----e4d979e9977b---4</link>
            <guid isPermaLink="false">https://medium.com/p/fee5eb990226</guid>
            <category><![CDATA[ruby]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[clojure]]></category>
            <dc:creator><![CDATA[Ahmad Hammad]]></dc:creator>
            <pubDate>Thu, 10 Sep 2015 14:06:41 GMT</pubDate>
            <atom:updated>2015-10-14T17:22:20.704Z</atom:updated>
            <content:encoded><![CDATA[<p>My interest in Clojure piqued in late 2013 when I decided to take a Clojure crash course taught by <a href="https://twitter.com/henrygarner">@henrygarner</a> and <a href="https://twitter.com/jarohen">@jarohen</a>. As a newcomer to Clojure (especially from an OOP background) you are told that there will come a moment when it ‘clicks’ and you just get it. For me the aha! moment was understanding why and how the language and its data structures were designed the way they are; just like when Neo finally sees the Matrix for what it really is — code. The parenthesis faded away and I saw the syntax for what it really is — data. Anyway, this isn’t about my Clojure epiphany but about how it helped me improve my Ruby code.</p><p>In this post I’d like to touch on four things I learnt more about in Ruby through Clojure. I don’t aim to cover them in-depth but rather to shed some light on them and point you to resources that do a great job at explaining them in detail.</p><h3>Destructuring</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/577/1*-wxJew_u8OVlTqePUs8p4A.jpeg" /></figure><p>Destructuring is a pattern of capturing values from a data structure into a set of symbols/variables most commonly within a function’s or block’s argument list.</p><p>Clojure provides a strong set of destructuring patterns that are commonly used to provide more readable and concise code. It supports the destructuring of two types of data structures: vectors (Array in Ruby) and maps (Hash in Ruby) or anything that implements the IPersistentVector or IPersistentMap interfaces. (To learn more about Clojure’s awesome destructuring syntax you can checkout this <a href="http://blog.jayfields.com/2010/07/clojure-destructuring.html">article</a> by <a href="https://twitter.com/thejayfields">@thejayfields</a>).</p><p>Ruby only provides one form of destructuring which acts on Arrays, however the splat operator <strong>*</strong> can also be used in creative ways to help out. I was always aware of Ruby’s destructuring but the effectiveness on code brevity only dawned on me when I started using it in Clojure.</p><p>The most basic form:</p><pre>x, y = [1, 2]<br>puts x+y</pre><pre># 3</pre><p>All we did here was assign x to the first element 1, and y to the second element 2. I find this simple pattern most useful in the following two situations:</p><p>1) Returning more than one value from a function:</p><pre>def get_position<br>  [10, 20, 50]<br>end</pre><pre>x, y, z = get_position<br>puts “x = #{x}, y = #{y}, z = #{z}”</pre><pre># x = 10, y = 20, z = 50</pre><p>2) Argument destructuring:</p><pre>peeps = [[“John”, [“male”, 28]], [“Jane”, [“female”,40]]]<br> <br>peeps.each do |(name, (gender, age))|<br>  puts “#{name} is a #{age} year old #{gender}” <br>end</pre><pre># John is a 28 year old male<br># Jane is a 40 year old female</pre><p>The rest of the patterns are all based on the aforementioned two with some splatting help. <a href="https://twitter.com/pitluga">@pitluga</a> does a great job at digging into this topic <a href="http://tony.pitluga.com/2011/08/08/destructuring-with-ruby.html">here</a>.</p><h3>Sets</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/577/1*eFJQODv9s-arNwYTFuZvMw.jpeg" /></figure><p>Clojure’s syntax by design revolves heavily around its collection data structures, as a result you have no choice but to get intimately familiar with their purpose and underlying design in order to write efficient Clojure code. These include Lists ‘(), Vectors [], Maps {} and Sets #{}.</p><p>As you would imagine <a href="http://www.ruby-doc.org/stdlib-2.1.3/libdoc/set/rdoc/Set.html"><strong>Sets</strong></a> are based on the <a href="http://en.wikipedia.org/wiki/Set_(mathematics)">mathematical set</a><a href="http://en.wikipedia.org/wiki/Set_(mathematics)),">,</a> which is basically a collection of distinct items. In Ruby, unlike Arrays [] and Hashes {}, Sets don’t have a literal syntax representation; instead you can create a set in one of two ways:</p><pre>Set.new([:a, 1, “hey”, :a])</pre><pre># #&lt;Set: {:a, 1, “hey”}&gt;</pre><p>or</p><pre>[:a, 1, “hey”, :a].to_set</pre><pre># #&lt;Set: {:a, 1, “hey”}&gt;</pre><p>Notice that in both cases the set will be instantiated with only one <strong>:a</strong> symbol in it. It simply throws away any duplicates checked using <a href="http://ruby-doc.org/core-2.2.2/Object.html#method-i-eql-3F"><strong>Object#eql?</strong></a> with no warning.</p><p>An important thing to note here is that Ruby Sets store their values internally in a <strong>Hash</strong>. This is the Ruby implementation of the <a href="https://github.com/ruby/ruby/blob/305be780df86d3bd5f1b93848101b477083452ed/lib/set.rb#L289"><strong>Set#add</strong></a> function:</p><pre>def add(o)<br>  @hash[o] = true<br>  self<br>end</pre><p>So when we create a <strong>Set</strong> like this:</p><pre>s = [:a, :b, :c].to_set</pre><p>it will be internally represented as:</p><pre>{a: true, b: true, c: true}</pre><p>What does that mean for us? Well for starters it means that calling <strong>Set#include?</strong> or <strong>Set#member?</strong> will simply call <strong>Hash#include?</strong> on the internal Hash instance, and therefor we get the advantage of extremely fast Hash lookups! Read about<a href="https://blog.engineyard.com/2013/hash-lookup-in-ruby-why-is-it-so-fast"> why Hash Lookups are fast</a> in this detailed explanation from the guys at Engine Yard.</p><p>Given what we’ve learnt so far about Sets in Ruby, we can already deduce that using a Set is superior to using an Array when:</p><p>a) We only want to store distinct values. This saves us from polluting our code with <strong>Array#uniq</strong>. Resulting in faster and cleaner code.</p><p>b) We need fast existential lookups on a list of values. This can be slightly less verbose than creating a lookup Hash.</p><p>Keep in mind that unlike an Array, a Set does not guarantee the order of the elements; for that you can use the <a href="http://www.ruby-doc.org/stdlib-2.1.3/libdoc/set/rdoc/SortedSet.html">SortedSet</a>.</p><p>Another important thing to mention is that Sets are Enumerable, so you get all those nifty collection functions you are so used to as well as the mathematical Set related functions such as <strong>Set#subset?</strong>, <strong>Set#superset?</strong> and the likes which you can discover in the <a href="http://www.ruby-doc.org/stdlib-2.1.3/libdoc/set/rdoc/Set.html">docs</a>.</p><h3>Lazy Sequences</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/577/1*caYpJWX5D995LJEUtlCfvw.jpeg" /></figure><p>Lazy sequences or enumerations were introduced to Ruby in the 2.0.0 release however I’ve rarely seen it put to use. In Clojure, most core sequence functions are implicitly lazy, in fact most functional languages are either fully or heavily lazy.</p><p>Laziness has several characteristics and use cases. <a href="http://ruby-doc.org/core-2.0.0/Enumerator/Lazy.html">Lazy Enumerations</a> allow you to easily work with large (including infinite) collections by passing or executing one item at a time. What does that mean? Doing something like this in non lazy Ruby will result in an infinite loop:</p><pre># Given an infinite range, return the result of n+1<br># for the first 10 items</pre><pre>(1..Float::INFINITY).map { |n| n+1 }.first(10)<br># Don&#39;t hold your breath</pre><p>Even though we only want the first 10 numbers, <strong>Enumerable#first </strong>doesn’t actually get called until <strong>Enumerable#map </strong>is done executing the block on every item in the range, which in this case is infinite, so it will never reach <strong>first(10)</strong>.</p><p>To fix this we can call the <strong>Enumerable#lazy </strong>method on our range:</p><pre>(1..Float::INFINITY).lazy.map { |n| n+1 }.first(10)<br>=&gt; [2, 3, 4, 5, 6, 7, 8, 9, 10, 11]</pre><p>This basically turns it into a conveyor belt passing on each value one by one as opposed to working on the entire batch and then dumping it all to the next function in the chain.</p><p>For more use cases and a detailed drill down check out <a href="https://twitter.com/pat_shaughnessy">@pat_shaughnessy</a>’s great article <a href="http://patshaughnessy.net/2013/4/3/ruby-2-0-works-hard-so-you-can-be-lazy">“Ruby 2.0 Works hard so you can be lazy”</a> on laziness in Ruby 2.0.</p><h3>Immutability</h3><p>Immutability is at the core of Clojure and one of the many things it handles really well. What is immutability exactly? Simply put, an object that can’t be changed once it has been created is considered immutable. Why would we need that? Immutability offers some interesting tradeoffs, some of which include: peace of mind (for the developer), simpler concurrency, and sometimes performance boosts.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/577/1*6cbbthgZs9fLtIH4MzTo4Q.jpeg" /></figure><p>What do I mean by peace of mind? How many times have you pulled your hair out trying to figure out how and where the value in your variable changed? This most often happens with instance variables in Rails controllers that trickle down through the hierarchy of child controllers and down to the views and any partials rendered in those views. The value of that variable could have been changed multiple times by different parts of code along the way and the only way to find out is to trace back every occurrence of it in the code it is scoped in, place a few breakpoints or print values left and right. This can be avoided by explicitly cloning the object whenever you need it to change and returning a new value, or by using an immutable data type.</p><p>Immutability can help with performance too, for example using the Ruby <a href="http://ruby-doc.org/core-2.2.3/Object.html#method-i-freeze"><strong>Object#freeze</strong></a><strong> </strong>in certain situations, such as string Hash keys, can speed things up as demonstrated by <a href="https://twitter.com/schneems">@schneems</a> <a href="http://www.sitepoint.com/unraveling-string-key-performance-ruby-2-2/">here</a>.</p><p>Some more useful resources to dig deeper into immutability:</p><ul><li><a href="https://www.youtube.com/watch?v=SiFwRtCnxv4">Immutability: Putting The Dream Machine To Work</a> talk by <a href="https://twitter.com/swannodette">@swannodette</a></li><li><a href="https://bugs.ruby-lang.org/issues/11473">Discussion on making all Strings immutable in Ruby 3.0</a></li><li>The <a href="https://github.com/hamstergem/hamster">hamster</a> gem to get immutable data structures in Ruby.</li><li>You can also see how frozen strings made their way into Rails 5 to give it some memory and performance enhancements in this <a href="https://github.com/rails/rails/pull/20946">merged patch</a> and another titled “<a href="https://github.com/rails/rails/pull/21057">Beyond Ludicrous Speed</a>” by <a href="https://twitter.com/schneems">@schneems</a>.</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fee5eb990226" width="1" height="1" alt=""><hr><p><a href="https://medium.com/buttercloud-labs/learning-ruby-through-clojure-fee5eb990226">Learning Ruby through Clojure</a> was originally published in <a href="https://medium.com/buttercloud-labs">Buttercloud Labs</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>