<?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[Smart Pension Technology - Medium]]></title>
        <description><![CDATA[Public blog for the Smart Pension Technology team - Medium]]></description>
        <link>https://medium.com/smart-pension-technology?source=rss----f000122a81d---4</link>
        <image>
            <url>https://cdn-images-1.medium.com/proxy/1*TGH72Nnw24QL3iV9IOm4VA.png</url>
            <title>Smart Pension Technology - Medium</title>
            <link>https://medium.com/smart-pension-technology?source=rss----f000122a81d---4</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 29 Nov 2026 06:16:37 GMT</lastBuildDate>
        <atom:link href="https://medium.com/feed/smart-pension-technology" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Smart Pension Engineering Culture]]></title>
            <link>https://medium.com/smart-pension-technology/smart-pension-engineering-culture-ebed3b20d7b3?source=rss----f000122a81d---4</link>
            <guid isPermaLink="false">https://medium.com/p/ebed3b20d7b3</guid>
            <category><![CDATA[pensions]]></category>
            <category><![CDATA[engineering-mangement]]></category>
            <category><![CDATA[engineering-culture]]></category>
            <dc:creator><![CDATA[Brad Jayakody]]></dc:creator>
            <pubDate>Mon, 27 Jul 2020 09:23:04 GMT</pubDate>
            <atom:updated>2020-07-27T09:21:18.247Z</atom:updated>
            <content:encoded><![CDATA[<p>“What’s the Smart Pension Engineering culture like?”. This was the main question I asked <a href="https://www.linkedin.com/in/sambarton/">Sam Barton</a> when I was interviewing with Smart Pension in August 2018. We then had a rather enjoyable conversation about what the culture was at the time and where we wanted to take it. That conversation was the main reason I joined Smart Pension.</p><p>We’re both extremely people focused (<a href="https://www.linkedin.com/in/bradjayakody/">LinkedIn</a> stalk me, even the things I do in my spare time are about humans and human connection)— we firmly believe in creating an environment where everyone can thrive and to find passionate people who want to do what we do, creating a best-in-world engineering team that can fulfil our mission statement:</p><blockquote>Our mission is to transform pensions, savings and financial well-being, across all generations, around the world.</blockquote><p>Why does engineering culture matter? It’s what enables us to move fast and build a industry changing pensions platform with quality at the core of what we do — plus enjoy coming to work!</p><p>As part of our recent <a href="https://medium.com/smart-pension-technology/smart-pension-engineering-virtual-offsite-june-2020-3a835f604742">Virtual Engineering Offsite</a> we took some time to take a look at how we see our current engineering culture. What is our culture? Why do we like working at Smart? What can we do to make things even better (Kaizen - continuously improve)?</p><p>Our approach was to use 3 different methods to try and get an unbiased view of where we are now:</p><ul><li>An anonymous survey</li><li>An interview from the people team (also sometimes known as HR) with individual teams (to remove the bias from Agile Leads or Engineering Managers asking the questions)</li><li>Feedback from individual 1–2–1’s with Engineering Managers.</li></ul><p>This seemed to give us a 360 view, that people in the Engineering department agreed with.</p><h3>Word Cloud</h3><p>From the anonymous survey we asked people to enter 6 words that described the Smart Engineering culture. We generated a word cloud, with more frequently used words larger in size.</p><figure><img alt="Smart Pension Engineering Word Cloud" src="https://cdn-images-1.medium.com/max/1024/0*KYLQO0je4cMBESOm" /></figure><h3>Smart Engineering Culture</h3><p>We’re not perfect, nothing is ever perfect. Our goal with Kaizen is to constantly push forward every day and improve. The wonderful snowball effect, a small change or tweak every week ends up in a massive improvement over time.</p><ul><li><strong>No Blame Culture</strong> — We have a no blame culture at Smart. When something goes wrong, we step back, take a look at what went wrong as a team and work out how to improve our process or code to make sure it never happens again. It allows for a high degree of transparency when we conduct a post mortem. At the same time, we attempt to never make the same mistake twice and people are accountable for their actions and making sure they follow our processes.</li></ul><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FgLSt9JaraFs%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DgLSt9JaraFs&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FgLSt9JaraFs%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/e83526f12f93d5678eaa0efcb9eff47d/href">https://medium.com/media/e83526f12f93d5678eaa0efcb9eff47d/href</a></iframe><ul><li><strong>Trust</strong> — Everyone seems to recognise that they are trusted. People are trusted to do their best work collaborating within their teams to get software delivered.</li><li><strong>Quality</strong> — We focus on quality. In some cases we are looking after individuals’ life savings. We take that very seriously. Pensions are a long term investment, building a pensions platform to transform savings around the world is also a long term investment. We take the time to build software correctly.</li><li><strong>Growth and Continuous Improvement</strong>- We are constantly taking a look at how to improve — Kaizen! As individuals, as a team, as a department and as an organisation. Cross department retros are frequent. Every person has a manager that they spend time with, at least fortnightly, to take a look at how they can continue to grow as individuals and software professionals.</li><li><strong>Post Mortem</strong> — On the topic of no blame, we approach Post Mortems with the goal of taking a clear unbiased view and then come up with ideas and actions to fix it longer term, so it never happens again.</li><li><strong>Fun</strong> — Even in meetings during the day we enjoy what we do and the people we work with. In the weekly product owners update, Nelson almost always ends with a song, and Tomislav always starts with a weather update from Zagreb. Some fun at work and we also get together for events like weekly boardgames or the famous Engineering days out.</li><li><strong>Domain knowledge </strong>— Pensions is a complicated domain, so one topic raised, especially for new starters is how do we improve people’s domain knowledge? We’re about to build out a learning and training department, who will be responsible for helping collate that information — while at the same time Engineering teams will be responsible for making sure that new features delivered are documented.</li><li><strong>True Self and Diversity</strong> — We seem to have built a culture where people can bring their true self to work and we have an extremely diverse team. Our culture is that everyone’s voice is heard and we’ve built an organisation where that happens, so we can build the best solutions.</li></ul><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FHC54KIbNLNQ%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DHC54KIbNLNQ&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FHC54KIbNLNQ%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/4a9481797267d56fb49313108a5fdaf1/href">https://medium.com/media/4a9481797267d56fb49313108a5fdaf1/href</a></iframe><ul><li><strong>Kaizen — Continuous improvement</strong>. We’ve embraced one of the core agile principles of constantly pushing to improve. Partly as you can set a clock by the fact that I mention it multiple times a week. I mentioned it twice in the list of what we celebrate, just to make sure!</li><li><strong>Collaboration</strong> — People really help each other. Any request for help, you’ll have a bunch of people helping answer or sitting down and pairing with you. As we continue to scale, we’ve built communities of practice — so people working in same area (e.g. agile, react, ruby) can get together to share ideas and ways of doing things.</li><li><strong>Communication</strong> — This is one of those challenges as the company gets bigger is for everyone to know what’s going on. We recently tried out a longer all hands monthly Engineering meeting, to share what people were working on across teams, to mixed results. We do constantly focus on making sure people get the information that they need.</li><li><strong>Flat and minimal hierarchy</strong> — Smart is flat, people can talk to whoever. Some teams got a virtual high five from our MD, Will, and CEO, Andrew, during a board of directors meeting. Every Tuesday morning I run what I call “Brad’s Management Surgery”. It’s 2 hours booked out where I used to sit in a room (pre lockdown) with a video link open — anyone can drop in for however long they want to chat about anything. Often there is something I know or I can do to help you out. A 5 minute chat can save you days or worry or work. And the session gets used — the most I’ve had come visit me is 16 people.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/516/1*xFBlsLHnJqYhYfZwnR-vfA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/513/1*EcebKpenSzGjYLa9yiHhlg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/473/1*FQekBhYNeUXseHTfRgQ8QA.png" /><figcaption>Virtual High Fives with some of our Executive Management Team.</figcaption></figure><ul><li><strong>Onboarding</strong> — This is our biggest tweak that we’ve needed to do — we’ve got a lot to improve with how we onboard new people. We grew rather rapidly in the past 18 months and hadn’t created a great onboarding plan. Recently we’ve moved to having new starters start in the first week of every month, so we can explain in a group all the things that everyone needs to know in order to succeed.</li></ul><h3>Comments from the surveys</h3><p>A few other selected comment from the feedback, with my thoughts behind them.</p><blockquote>It’s like going to your successful uncle and aunt’s house</blockquote><p>This has to be one of my favourite comments. We’re doing great work, changing the world of pensions, at the same time there’s a culture of friendliness and non corporate vibe.</p><blockquote>There are a lot of good things to be said about the engineering culture. I love the focus on getting people better and more educated and the levels above being open to feedback.</blockquote><blockquote>I would appreciate if code reviewers would give more actionable and clear reviews where appropriate — focus on getting the other people to understand your point instead of just pointing what is wrong.</blockquote><blockquote>Onboarding was a bit chaotic.</blockquote><p>We do a lot of code reviews at Smart Engineering. On average at least 6 engineers take a look at every PR, it’s part of our focus on quality and feedback. At the same time, sometimes people forget to provide clear guidance. It was a good point and something we’re working on improving. And yes, as mentioned above, our onboarding is now properly getting sorted out! Someone did want balloons on the desk on their first day, that might be the only thing we don’t do!</p><blockquote>Equal and fair treatment of people. Managers — product owners, scrum masters, chief engineers — with the unique skills to execute equality and fairness in the teams.</blockquote><p>We treat people fairly and with respect. Everyone’s voice is heard.</p><p>Finally, I keep saying we’re a people first company, that we are. This last comment by an anonymous member of the Engineering team is one of the clearest indicator on how we work.</p><blockquote>It’s the unfailing and ongoing work right through the company to put the people first, always.</blockquote><blockquote>It’s something we see demonstrated daily, when the news of an unwell colleague results in sympathy and offers to help well before anyone wonders what the project-impact will be. It’s a warm smile in the office (or over Hangouts), because we are genuinely pleased to be working with people we care about. It’s the sitting-right-next-to-you problem-solving we witness or take part in daily. It’s the I’ve-got-your-back attitude and actions of always-supportive line-management. It’s the ongoing conversations about education, personal growth and career pathing. It’s somebody you barely know stopping by your desk to congratulate you on the birth of a child. It’s connecting in to the company’s specially-arranged anti-isolation channel over a long weekend to find it hosted by the executives; think about that for a second… some of the most senior people in the company gave up personal time over a holiday weekend in the interests of staff welfare. It’s that guy who brought you a can of Coke Zero because he’s noticed you’ve been in meetings for two hours flat. It’s about being in a place (even a virtual one) where every single person takes responsibility for the comfort and happiness of the people around them.</blockquote><blockquote>It’s the fact that switching from mostly-onsite to fully-remote overnight didn’t even slow us down.</blockquote><blockquote>It’s the anti-blame way we approach problems, coupled with broad mistake-tolerance; innovation can only thrive under these conditions. It’s the blessing to try something new, different or even (maybe especially?) status-quo-challenging. It’s the way we learn lessons from experiments whether they worked out as expected or not. It’s our never-complacent kaizen.</blockquote><blockquote>It’s the attitude and environment created by a huge group of people who collectively believe that good enough isn’t good enough. It’s the personal pride we all take in our extreme levels of quality and code hygiene. It’s the firm belief that what we do (and therefore the way we do it) MATTERS.</blockquote><p>Still haven’t worked out who wrote the above note. It did resonate loudly with a lot of us at Smart Pension, both in Engineering and the wider company. It shall remain a mystery, as it should do, so it’s untainted by management.</p><p>And yes, we’re a fast scaling company. If this sounds like a place you’d like to work at, take a look at our open roles: <a href="https://www.smart.co/careers">https://www.smart.co/careers</a></p><p>For anyone who is directly interested, ping me on <a href="https://www.linkedin.com/in/bradjayakody/">LinkedIn</a>, I’m always happy to talk tech, Engineering culture and process or Smart Pension if it’s a place you’re looking at exploring to see if it’s a fit!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ebed3b20d7b3" width="1" height="1" alt=""><hr><p><a href="https://medium.com/smart-pension-technology/smart-pension-engineering-culture-ebed3b20d7b3">Smart Pension Engineering Culture</a> was originally published in <a href="https://medium.com/smart-pension-technology">Smart Pension Technology</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Smart Pension Engineering Virtual Offsite June 2020]]></title>
            <link>https://medium.com/smart-pension-technology/smart-pension-engineering-virtual-offsite-june-2020-3a835f604742?source=rss----f000122a81d---4</link>
            <guid isPermaLink="false">https://medium.com/p/3a835f604742</guid>
            <category><![CDATA[scaleup]]></category>
            <category><![CDATA[remote-working]]></category>
            <category><![CDATA[offsite]]></category>
            <category><![CDATA[engineering]]></category>
            <dc:creator><![CDATA[Haroon Hussain]]></dc:creator>
            <pubDate>Tue, 14 Jul 2020 11:06:24 GMT</pubDate>
            <atom:updated>2020-07-14T11:47:21.069Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*s4jiYARAd8ZixSvN4aUTpA.png" /><figcaption>Offsite 2020 theme — Smart Engineering Scale Up</figcaption></figure><h3>Smart Engineering virtual offsite June 2020</h3><p>Smart Engineering Scale Up. The theme for the offsite was Scale Up. On 3 June 2020 Smart held its second-ever Engineering offsite event. The reason I wanted to write up a blog on our most recent offsite is to show how much the company has grown from the last offsite which happened two and a half years ago in November 2017.</p><p>It only feels like yesterday when Smart was just a small tech start-up in pensions with only 20 engineers in the London office. Organising such amazing events was a piece of cake as the Engineering Team was much smaller back then. Creating an offsite agenda was also a pretty much straight forward example to create small groups and discuss the topics which engineers like to discuss and do a presentation at the end.<br>Now when I compare 2017&#39;s offsite to 2020&#39;s it’s been fantastic — a lot more fun and a lot of excitement all around as now we have a team of over 180 engineers.</p><h3>Offsite Photo from 2017</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/960/1*um_pDQ7Mh0MT_5Zo6x4wnA.jpeg" /><figcaption>Smart Engineering Offsite 2017. 20 engineers and Sam Barton our Chief Technology Officer (CTO) in the middle.</figcaption></figure><h3><strong>Can a virtual offsite be fun during lockdown?</strong></h3><p>2020 has been challenging so far, but that doesn&#39;t mean that you have to stop having fun. Our engineers have been working hard since the start of the year and have delivered so many amazing new features and delivered amazing projects. They all deserved to have fun and we would not let Covid-19 break our spirit. Smart decided to hold this year’s offsite remotely, which meant there was a lot of work that needed to be done to make this event fun and exciting for all of the engineers.</p><p>Massive shout out goes to Brad Jayakody our (Head of Engineering), Mehdi Shahinmehr our (Engineering Manager), Kulbir Dhingra (Head of Agile Leads), Nicole Rowe (Senior Agile Lead), Aurelija Stankunaite (Senior Agile Lead) for planning and hosting one of the best remote offsite events ever.</p><p><strong>Was there any swag?</strong></p><p>You can’t have such a big event without swag. Our lovely organisers worked very hard to make sure that we had t-shirts for everyone and had them delivered to each engineer to their home address no matter where in Europe they were based.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kM_Ud4yW_QcurtL61R2Pcw.png" /><figcaption>The Smart engineering mascots approved of the swag!</figcaption></figure><p><strong>So what was the offsite day like?</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZOmRx3fuuQkC8fnPO4Meug.png" /><figcaption>Remote offsite time plan</figcaption></figure><p>As you can see from the photo, we kicked off the day at 09:00 followed by a keynote done by our CTO and Head of Engineering at 09:15.<br>Group discussions at 10:15, break at 11:15.<br>Group presentations at 11:30.<br>Lunch at 12:45<br>followed by talks at 13:45.<br>A virtual scavenger hunt (with prizes) at 15:00 and virtual pub and drinks at 16:00.</p><p><strong>What topics were covered in the group discussion?</strong></p><p>We had 12 amazing topics to cover and engineers had the option to opt-in for the topics they were most interested in. The topics were:</p><ol><li>Most seamless possible integration — both FE and BE</li><li>Knowledge sharing</li><li>Machine learning</li><li>Agile organisation</li><li>Data warehousing and data mining</li><li>Re-using code already developed across products</li><li>Mobile apps</li><li>Testing and automation</li><li>DDD</li><li>Documentation</li><li>Beyond COVID-19</li><li>Engineering culture</li></ol><h3><strong>The virtual scavenger hunt</strong></h3><p>One of my favourite parts of the day was spent playing the virtual scavenger hunt. Groups had to work together to collect the most points by completing various tasks. Some tasks were easy such as taking a selfie with a toaster and coming up with the team name.</p><p>One of my favourite tasks was getting virtual high fives from senior management like our MD, CEO and COS.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5Kv12oOJW1E78cdmzItAiQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JopkxWx620qZnIlcz_P8KQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*21N5ukikUFJW0VHPiBio3w.png" /><figcaption>Here are some photos of getting high fives from senior management.</figcaption></figure><h3>Photo highlights</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pBgz_eUnS2HGWGK2u7SEOA.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5_cpg5kzHb45iEo9pGcYOg.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gg5IGcVxgM1omj2jw1mgpw.jpeg" /><figcaption>Sam Barton getting ready to give the keynote presentation (CTO). Stuart Pethurst (Ruby Developer) in the middle. Haroon Hussain (Agile Lead) on the far right.</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rbfwYJdpJYA4Ozmy1GLcfg.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WD6QJW3njRP2Hsa30J4INQ.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*q_8R2PEUnRSfoaYk7jIA_w.jpeg" /><figcaption>Sam Barton (CTO) on the left. Larry (Ruby Developer) in the middle. Haroon Hussain (Agile Lead) on the right playing virtual scavenger hunt with a toaster.</figcaption></figure><blockquote><em>One of my favorite task in the virtual scavenger hunt was spelling out the name “Smart Pension” using household objects, here is creativity at its best.</em></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/657/1*h_5PAopQR8xgJorTWBwqYQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/875/1*haf9l9SlV07IYZPRGPjJkw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/872/1*E0B3UpjVhX7mZeNA5hpFHA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/887/1*k987zJMvYEAFmb3dw8vCMw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/888/1*sGk3nr5nWOhVJrpXpWbAsw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/660/1*htWoh3v1F23eCReHhn11Lw.png" /><figcaption>Smart Pension using household objects</figcaption></figure><h3><strong>Conclusion</strong></h3><p>It was my first ever remote offsite day and I have to say it was one of the most exciting days full of presentations, roadmaps, as well as talks by members of the teams.</p><p>I would highly recommend a remote offsite day to all companies, especially during these difficult times. It’s not only fun but it also gives a chance for everyone to get together and get to know each other virtually. Particularly as we’ve had lots of new staff onboarded during lockdown.</p><p>It was a fantastic and innovative way to keep company culture alive and in a safe social distanced way.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3a835f604742" width="1" height="1" alt=""><hr><p><a href="https://medium.com/smart-pension-technology/smart-pension-engineering-virtual-offsite-june-2020-3a835f604742">Smart Pension Engineering Virtual Offsite June 2020</a> was originally published in <a href="https://medium.com/smart-pension-technology">Smart Pension Technology</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Smart Pension work experience]]></title>
            <link>https://medium.com/smart-pension-technology/smart-pension-work-experience-64cd5a3313c5?source=rss----f000122a81d---4</link>
            <guid isPermaLink="false">https://medium.com/p/64cd5a3313c5</guid>
            <dc:creator><![CDATA[Brad Jayakody]]></dc:creator>
            <pubDate>Thu, 23 Jan 2020 14:22:02 GMT</pubDate>
            <atom:updated>2020-01-23T14:21:39.701Z</atom:updated>
            <content:encoded><![CDATA[<p>Occasionally we have someone spend a week’s work experience with the Smart Pension Engineering teams, as part of our wonderful goal of encouraging people to try something new, change careers, or learn more about how an Engineering team delivers amazing software.</p><p>Recently, Danielle Inkster, spent a week with one of our Engineering teams, called “Spider Pigs” — our teams get to name themselves. The following is the article that she wrote, this being her first time in an office after having changed careers from working in social service and teaching.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1tbRCO2fcGenz2EizBziJQ.jpeg" /><figcaption>The Spider Pigs Physical Board — different from their JIRA board</figcaption></figure><p>Having recently completed a course in software development at Maker’s Academy, I was lucky enough to get the opportunity to take part in a week’s work experience at Smart Pension. During my time there, I was able to shadow one of their development teams, the Spider Pigs, whose members included a Tech Lead, Engineers, a Product Owner, a Quality Assurance Engineer and an Agile Coach.</p><p>Very quickly, I found myself doing “whatever a Spider Pig does,” which, in this case, meant getting to work. Each day started with a quick stand-up with the team, where members discussed what they’d been working on, where they’d made progress and where they were blocked and what they planned to accomplish for the day. Following that, I partnered with different members of the team, each of whom patiently explained to me what they were working on, how their code would work within the product as a whole or how it would resolve bugs. Though some tasks initially seemed overwhelming to someone just starting out in this field, with their help I was able to orient myself pretty quickly to what was meant to be done.</p><p>I was pleased to find there were a lot of areas of overlap between what I’d learned in my program and how developers were working at Smart Pension. Obviously, the languages, libraries and frameworks I’d studied (Ruby/Rails, JavaScript/React.js) were being used — I understood most of Smart Pension’s code and, fairly quickly, how some of the different models worked together to help create a cohesive product.</p><p>While I pride myself on writing clean, well-crafted code, I confess that debugging is a passion of mine. I was grateful that the program I attended put so much focus on learning the principles of test-driven development (TDD) as well as strong debugging skills. I had the chance to go through some of Smart Pension’s RSpec tests and see how testing, as well as things like mocking and stubbing, can be used in real-world development.</p><p>This was also a great opportunity to see how Agile practices are applied in the workplace within cross-functional teams. Maker’s curriculum is built on a foundation in Agile development. In addition to TDD, we also learned pair-programming, to use stand-ups and retrospectives and work in sprints. I was lucky enough to see it put into action shadowing the team at Smart Pension, as well as getting to learn more about its application and benefits from the team’s Agile coach.</p><p>That’s not to say there weren’t gaps in my knowledge however; it would have been more than presumptuous for me to assume that I would come in knowing everything. Every night, I ended up taking home lists of terms, methods and unfamiliar tech that I’d heard about or seen used during the day, and would then spend my evenings researching them. I spent hours reading up about the AWS cloud platform and how their services for databases and storage work. I went down many a rabbit hole about Ruby fibers and threads and I’m beginning to understand how concurrency can be used to improve performance and reduce lag. In many ways I finished my week with more questions than answers, which has given my learning and projects more direction for the future.</p><p>While I learned a lot during my work experience with Smart Pension, the most valuable part of the experience was learning the importance of developing ‘T-shaped knowledge,’ that is, having a depth of knowledge on a few things and a breadth of knowledge on many things. I think a lot of recent graduates, like myself, feel compelled to try to learn everything about every language and framework in order to appear more valuable to a potential employer. Unfortunately, this more often than not results in not knowing enough about anything. This experience has shown me that I would be best served by developing a deeper understanding of the languages and frameworks I’ve already begun, rather than dabbling around.</p><p>Overall, this was an invaluable experience in my journey to becoming a full-fledged developer. I’m grateful to all the people at Smart Pension who made this experience possible, particularly to the “Spider Pigs” team for all their patience, kindness and support. I look forward to applying what I’ve learned through this experience to my next job, wherever it may be!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=64cd5a3313c5" width="1" height="1" alt=""><hr><p><a href="https://medium.com/smart-pension-technology/smart-pension-work-experience-64cd5a3313c5">Smart Pension work experience</a> was originally published in <a href="https://medium.com/smart-pension-technology">Smart Pension Technology</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Why releasing code many times a day is better than a big bang once a month.]]></title>
            <link>https://medium.com/smart-pension-technology/why-releasing-code-many-times-a-day-is-better-than-a-big-bang-once-a-month-ba11daeb7684?source=rss----f000122a81d---4</link>
            <guid isPermaLink="false">https://medium.com/p/ba11daeb7684</guid>
            <category><![CDATA[smart-pension]]></category>
            <category><![CDATA[continuous-deployment]]></category>
            <category><![CDATA[continuous-delivery]]></category>
            <category><![CDATA[continuous-integration]]></category>
            <category><![CDATA[pensions]]></category>
            <dc:creator><![CDATA[Sam Barton]]></dc:creator>
            <pubDate>Wed, 08 May 2019 10:43:07 GMT</pubDate>
            <atom:updated>2020-07-28T22:20:31.348Z</atom:updated>
            <content:encoded><![CDATA[<p><strong><em>Update [28/07/2020]: It’s been a year and change since I wrote this and I’ve been asked a few times how much has changed. Rather than re-write this article, I’ve added an addendum to the end as this is very much a story that we continue to evolve as we grow and learn as an organisation.</em></strong></p><p>We follow a strict policy of shipping code into production regularly, it is not uncommon for us to release new code into production 15 times a day. Deploying code regularly is something that is considered best practice with other fintechs like us but it’s absolutely not a race, this is about maintaining code quality and avoiding legacy. For a long time, we have been able to shape our direction without inspection, but as we’ve begun working with partners and investors, we’ve had to describe the meaning of continuous deployment a few times and to that end, I thought I’d explain why we favor releasing code many times a day.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/1*BW92_a-wDJPgGOWu9J8i5g.png" /></figure><p>No one starts a business with the objective of shipping code 10 or 15 times a day, this is a function that is built up over time. It is a process that you have to expect to maintain in the form of software and hardware as the code-base increases, but also the engineering team grows. More people, more code, more releases.</p><p>As our business has grown, we’ve begun to work more closely with other incumbents, firms with a significant and respected presence in the industry. Their history is to be admired, but it also means they face this same technology challenge from a different perspective.</p><p>Change control is a hot topic in many organisations, it typically requires a dedicated team to work with third-party vendors and internal stakeholders following a prescribed set of regression tests before the new code can be released into production. That division of labor, first write the code, then hand over the work to fully test it means the human effort needed to complete the process is such that change has to be introduced slowly. As you delay the process, more features stack up, increasing the impact to production and the greater the impact, the greater the risk, hence a<strong><em> big bang release</em></strong>.</p><p>When we started Smart (five years ago today!), we didn’t have to navigate a legacy code base, we started with a clean sheet which afforded us the luxury of writing our own rules with regard to code quality. We also chose to build our applications in-house allowing us full control of our architecture and coding standards. As the first line of Smart code was written it was submitted to a code repository along with a line of automated test coverage. This methodology is known as Test Driven Development (TDD). The principle being that you write unit tests as part of writing the associated executable code and each time you deploy the next new feature, you run your past tests at the same time to ensure your new code doesn’t break the existing code that is running in production. This is known as Continuous Integration (CI), the more code you write, the more test coverage you have integrated with your application. An external server hosts your growing test suite and becomes the guardian of quality, allowing or preventing code moving forward into production. This doesn’t remove the need for human verification, but it greatly reduces that step.</p><p>Having a high level of test coverage means you can deploy with confidence to production more often, but importantly introduces the need for your engineers to keep the code they are working on current. As you write code and tests alongside other engineers you need to ensure your code is on par with other code adjacent to yours. If another engineer is working on a feature branch that is similar to yours but is ahead of yours in the process you might need to rebase your code (update it with the latest changes) to pass the CI suite. To avoid the need to rebase code it is important to commit changes to the master branch and deploy into production regularly. This little and often approach is known as Continuous Deployment (CD).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/1*oEKyQhkqwpUl52cXHoUFmQ.png" /></figure><p>This upfront cost of front-loading your test coverage like this sounds expensive but in-fact pays huge dividends later as your business and therefore code base grows and you want to release features more often. It’s also something that third-party vendors charge more for as they know they make good money on the consultancy and headcount for the fixed regression tests that have been paid for as part of a contract. As contrary as it sounds, it pays them more to avoid best practice, thus embracing a path to legacy.</p><p>In the early days of Smart, we had a small team of five engineers and quickly doubled to ten. Ten is a small team size, but it is an important milestone in maintaining the CD pipeline. You are still able to lean across a desk and discuss a deploy with a colleague. Your deploy count is therefore relatively low as your combined engineering and QA output mean new releases into production are many a week, not many a day.</p><p>As we doubled again to twenty we moved to shipping code many times a day and this required more roles, more QA’s and more people to manage the teams. This is an interesting test of the team’s ability to scale, you need more engineers to write more code, but you also need more QA’s to check the feature and people to carry out the acceptance testing. You can’t have one without the other and all links in the chain have to pull in the same direction.</p><p>As you put in the support structure you are able to grow horizontally, replicating teams by skill set. It wasn’t until we passed 30 engineers that we introduced a Head of Engineering. This enabled that horizontal scaling just at a point where we were expanding our engineering team to include two nearshore offices abroad.</p><p>I had actually been rather against the concept of farming our code base off to other non ‘Smart’ people to work on. Perhaps overly protective of that code quality objective, I didn’t want to lose sight of our guiding principles as we grew. So we flipped the model on its head, we flew to each location and individually interviewed, tested and recruited each person that works in our nearshore teams. We followed the identical process <a href="https://medium.com/smart-pension-technology/hiring-developers-at-smart-pension-ee9baa38e87">we use when recruiting here in the UK</a>. After we found these people, they were flown over to the UK office so they could be onboarded in a practical, contract and laptop sense, but also in a cultural sense. We wanted each new person, regardless of geography to be part of our business. To think and work as we do. Everything from the daily stand-ups to celebrating achievements in a bar.</p><p>This horizontal scaling of approach and management structure allowed the engineering team to double in size again to 60. That meant we were writing more lines of code but also more lines of test coverage and enforcing an increase in the rate of deploys to production to ten a day.</p><p><em>This CI/CD process also means we can onboard a new engineer and know they can ship quality code into production a few days after they start.</em></p><p>Whilst teams might still lean across a physical (or virtual) desk today to discuss a deploy with a fellow engineer all deploys (once approved) are automated and monitored via a number of integrated services that we report on. We also use GitPrime to measure various KPI’s we want to track in this collative process. This ensures we can measure our progress but also that all-important code quality goal.</p><p>As the business has grown we have needed more features and more engineers. Each growth spurt has nudged up the per day deploy count as we’ve held onto our code quality objective. Today we have more lines of test coverage than we have lines of executable code thus empowering our CD pipeline and meaning we can deploy in confidence more often, which last time I checked was at 15 deploys a day.</p><p>As I said before, the deploy count is not a race nor is it is a measure of success. It is simply indicative of the multiple of people we have working on our code-base at any one time whilst maintaining a high standard of test coverage.</p><p>Last year <a href="https://www.linkedin.com/feed/update/urn:li:activity:6382513734170091520"><strong>we won an award for our continuous delivery process</strong></a> (yes, I was as surprised as you, who knew that was a thing!), we beat the likes of Lloyds Bank and Ocado and I won’t deny it was a fun night out with the Smart engineering team. So perhaps you can measure this as a form of success?</p><p>What I can say is that we are very fortunate to have been able to start with that clean sheet and a forward-thinking management team that appreciates the benefits of this process. This has been a guiding principle here at Smart from the outset and is one of the things that differentiates us from our nearest competitors.</p><p><strong><em>Update [28/07/2020]: Since this article was written the code base has grown significantly. It now powers three identical platforms for Smart, Zurich, and the New Ireland Assurance (Bank of Ireland) each one with local settings and infrastructure, but deployed from the same CI/CD pipeline. To achieve this we have also had to grow the engineering headcount, to over 170, or 16 teams. The increase in engineers alongside the same codebase is noteworthy in three major areas.</em></strong></p><p><strong>1- Methodology.</strong> We have stuck to our principals, CI/CD remains the same, we just release more often each day. Between 25 and 30 times a day. To keep this ticking we have also increased the management and quality layer. More Engineering Managers have been hired as a direct multiple of teams being formed and we have also introduced Principal Engineers who’s job it is to be the guardian of code quality.</p><p><strong>2- Domains vs cooks in the kitchen.</strong> Our stack is Ruby, with a very strong focus on Units (or small methods in an Object Orientated Programming pattern). This means we have easy to read code and therefore easy to edit and get into a PR code. It’s why new starters can deploy into prod a few days after joining. Units of code are grouped together into contexts. Payment, membership, investment etc, each area can be bounded together to be viewed as a domain. But we are a monolith, perfectly wrapped up in test coverage, but there comes a point where you reach critical mass in terms of people vs Master Branch. Our focus this year is to move to a Domain Driven Design (DDD) pattern, which allows us to scale areas of context in a code sense, but also in a teams and therefore people sense. Meaning more hires and therefore deploys per domain, whilst retaining the principals outlined above. Simply put, as the business scales so does the headcount, so does the deploy count around a specific domain, but without detriment to our methodology.</p><p><strong>3- Culture.</strong> This final point is perhaps the most important. When Smart was formed I took pride in hiring and cultivating each new starter. Trust is everything in engineering, if your team trust you they will feel empowered to do great things. They will also protect what they have achieved, guarding it against any miss-steps that take the codebase away from its origins. As we grew, I couldn’t do this alone and had to share this responsibility with others, people I was fortunate to find were on the same wavelength as I. Martin Warner, our head of talent along with his amazing team know the heartbeat of our team and are fluent in complimenting our team with likeminded people. Brad Jayakody our head of engineering and I share an identical view on culture. A business can buy technical solutions, or third-party integrations but it cannot buy people who want to deliver at 110% and look after what they have strived to achieve. This is why a good culture is the most important spoke in the wheel of any engineering team that follows CI/CD, TDD, and other best practices today. People make all the difference, regardless of how good your automation is.</p><p><strong><em>If you agree with this principle, check out Brads’ article on the culture at Smart </em></strong><a href="https://medium.com/smart-pension-technology/smart-pension-engineering-culture-ebed3b20d7b3"><strong><em>here</em></strong></a><strong><em>.</em></strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ba11daeb7684" width="1" height="1" alt=""><hr><p><a href="https://medium.com/smart-pension-technology/why-releasing-code-many-times-a-day-is-better-than-a-big-bang-once-a-month-ba11daeb7684">Why releasing code many times a day is better than a big bang once a month.</a> was originally published in <a href="https://medium.com/smart-pension-technology">Smart Pension Technology</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Hiring Developers at Smart Pension]]></title>
            <link>https://medium.com/smart-pension-technology/hiring-developers-at-smart-pension-ee9baa38e87?source=rss----f000122a81d---4</link>
            <guid isPermaLink="false">https://medium.com/p/ee9baa38e87</guid>
            <category><![CDATA[engineering]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[ruby-on-rails]]></category>
            <category><![CDATA[recruiting]]></category>
            <category><![CDATA[ruby]]></category>
            <dc:creator><![CDATA[Brad Jayakody]]></dc:creator>
            <pubDate>Wed, 06 Mar 2019 18:26:17 GMT</pubDate>
            <atom:updated>2019-03-06T18:25:36.472Z</atom:updated>
            <content:encoded><![CDATA[<p>Hiring is always a difficult thing to get right. One of the most important things is to see if it’s a fit on both sides, the candidate needs to see if this is a place they want to work in and you want to see if they will fit in with the team.</p><p>To help the discussion, let’s chat about how we do Engineering interviews at Smart Pension.</p><p>The overview:</p><ol><li>Initial phone call (30 minutes)</li><li>Take home programming test (up to 2.5 hours)</li><li>Test reviewed by Engineering team (we aim to get back to you within 24 hours)</li><li>In person code pairing exercise (1 hour)</li><li>In person cultural fit chat (1 hour)</li></ol><h3>Initial Phone Call</h3><p>Once a CV is reviewed, an initial chat with our Recruitment team is scheduled to discuss expectations. It’s a quick chat to see if we’re what you’re looking for and vice versa. If that’s still a match, this is where it gets fun! Also a chance to ask any burning questions.</p><h3><strong>Take home programming test</strong></h3><p>We send the candidate a take home test. The test is below:</p><blockquote>Ruby Developer Test</blockquote><blockquote>Before you start coding (and let’s be honest, we know that’s what you want to do), please read the following.</blockquote><blockquote>Firstly, the test should take you no more than 2.5 hours to complete.</blockquote><blockquote>Secondly, the test is for us to see how you code and the methodologies you use, what we will be looking for in this test are the following:</blockquote><blockquote>● Functionality</blockquote><blockquote>● Efficiency — We like clean, simple code.</blockquote><blockquote>● Readability</blockquote><blockquote>● Tests (we have 96% test coverage in our code and we aim to keep it that way).</blockquote><blockquote>● Also, we would like to understand your ability to use TDD and OO, so please ensure these are part of your complete test.</blockquote><blockquote>● Feel free to submit your solution as a link to your version control repository</blockquote><blockquote>The test is as follows:</blockquote><blockquote>1. ruby_app</blockquote><blockquote>Write a ruby script that:</blockquote><blockquote>a. Receives a log as argument (webserver.log is provided)</blockquote><blockquote>e.g.: ./parser.rb webserver.log</blockquote><blockquote>b. Returns the following:</blockquote><blockquote>&gt; list of webpages with most page views ordered from most pages views to less page views</blockquote><blockquote>e.g.: /home 90 visits /index 80 visits etc… &gt; list of webpages with most unique page views also ordered e.g.: /about/2 8 unique views</blockquote><blockquote>/index 5 unique views etc…</blockquote><blockquote>Finally, have some fun — Feel free to make changes or design something if you think it meets the criteria above, but would produce better outcomes and of course, the sooner you return the test, the quicker we can move the process.</blockquote><p>If you want to code it up yourself, the test file is over here: <a href="https://textuploader.com/159t1">https://textuploader.com/159t1</a></p><p>Why make the test public? You really can’t cheat at it as the next step is we bring you in to pair with our Engineers to work on extending your solution. Those that have copied it are found out rather quickly. We’ve had people copy solutions they have found online — most of those online solutions are from people who currently work at Smart!</p><h3><strong>Test reviewed by Engineering team</strong></h3><p>Once the test is completed, our recruitment team sends it across to the Engineering team to review. The names of the candidate are stripped from any solution, so that Engineers review tests blind. This means no biases are brought in, we review code purely on the code itself. After reviewing, the Engineers (and at least 2 Engineers review every test, often more) also recommend what level the candidate is.</p><p>We do separate tests on one criteria, junior vs anyone else — We’re a little bit more understanding of people learning at that level (We use 5 criteria for reviewing Junior tests, one of which is “ Not copied from someone else”. Okay this also applies for everyone, but we recently had a massive spike of people applying for junior roles just copying code found on github and changing a few variable names).</p><p>We use a trello board to track the tests, a new card is created when the recruitment team needs the Engineering team to review, an alert is automatically made in #sp-dev-recruitment slack channel.</p><p>Feedback is then given independently on the card (the recruitment team normally puts their name on the card so it’s easier for them to track progress).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*sUvvUj-9XGxeR8ZkDDauDQ.png" /><figcaption>An example of tech tests in review</figcaption></figure><p>Feedback is then sent to the candidate, whether good news or bad news. It’s always constructive feedback, as Engineers we should always be looking for ways that we can improve! Why code reviews are fun! Our code base is of an extremely high quality, we develop using TDD, so we’re looking for people who understand that philosophy of building high quality code and who want to work with a TDD philosophy.</p><h3><strong>In person code pairing exercise</strong></h3><p>The best way to get a feel for the team you could be working with is to pair with them. At Smart, we do a lot of pairing, not all the time, but most of our Engineers pair at certain times.</p><p>Bring in your own laptop! We’ll connect you up to the Internet when you get in.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ey71wB8YKs_VnLuFrw_zhg.jpeg" /><figcaption>Part of the reason to bring your laptop in, is so we can look at your stickers (not seriously)</figcaption></figure><p>We don’t believe in whiteboard coding exercises, we’d rather you program in the way you do day to day. Use whatever tools that you are comfortable with</p><p>During the pairing, there are normally two Engineers present. We chat about your solution, explore ways we can extend it and code away.</p><p>Next we give you a short programming exercise. What we’re looking for here is understanding how you work and if you’d enjoy working with us.</p><p>Finally a few general Ruby questions.</p><p>It’s a highly interactive process! We encourage you to ask questions back.</p><h3>In person cultural fit chat</h3><p>Next up, with 2 different members of the team, they could be Engineers, Scrum Masters, Product Owners or Engineering Managers. We have a chat about culture at Smart, how we work and how you like to work.</p><p>We have a highly collaborative culture at Smart, everyone helps everyone to deliver awesome high quality software, so we want to make sure that’s a place you’ll enjoy.</p><p>Some people really like to be given a problem and then being left alone for weeks to complete it, we don’t work that way. We focus on the team building the best possible solution that they can.</p><p>Our teams are empowered to decide on what processes to put in place (they do get advice from Engineering Managers and Agile Coaches), but they do make the final decision. For example one team recently switched from Kanban to Scrum. After a few weeks they have switched back to Kanban. We encourage that experimentation!</p><p>We’re also building software for the long term, so want to make sure we’re building it properly. Pensions are long term, our software (or at least the data) will be being used 80 years from now. So we want to make sure we get it right.</p><p>We leave plenty of time for questions from you, normally at least 20 minutes. Again, we want to make sure this is a workplace you’d enjoy working in!</p><h3><strong>Conclusion</strong></h3><p>We believe that diverse teams makes the best teams. We want you to bring your true self to work. We don’t care who you are or what you wear and we don’t discriminate in any way.</p><p>All of us have innate biases, so we make sure where ever possible we have a diverse group of people on the interview panel, including at least one woman. After the interview loop, we get together with the hiring manager where we discuss the candidate and make a decision. Part of the job of the hiring manager is to ask the questions of the interviewers to make sure they aren’t bringing their own biases into the interview process. As humans we often tend to hire people who similar to us — the goal in building an awesome team is to hire people who don’t think like us, while at the same time having the same core values (passionate about development, collaborative, care about building high quality software).</p><p>After our conversation, we then chat to the recruitment team, give our feedback and aim to have feedback to you within 24 hours. Feedback is always sent back to the candidate, whether good or bad news. We aim to make it constructive as well, areas for you to improve or grow in.</p><p>Our hiring process is a work in progress. We also firmly believe in Kaizen — continuous improvement. We’re always tweaking the process to make it better. So if you have any suggestions, we’ll love to hear them!</p><p>And if you’re looking for a role, we are hiring, check out our jobs page: <a href="https://www.autoenrolment.co.uk/careers">https://www.autoenrolment.co.uk/careers</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ee9baa38e87" width="1" height="1" alt=""><hr><p><a href="https://medium.com/smart-pension-technology/hiring-developers-at-smart-pension-ee9baa38e87">Hiring Developers at Smart Pension</a> was originally published in <a href="https://medium.com/smart-pension-technology">Smart Pension Technology</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[From {{Classic}} style to <AngleBracket /> components in EmberJS]]></title>
            <link>https://medium.com/smart-pension-technology/from-classic-style-to-anglebracket-components-in-emberjs-7ceacfae0bb6?source=rss----f000122a81d---4</link>
            <guid isPermaLink="false">https://medium.com/p/7ceacfae0bb6</guid>
            <category><![CDATA[ember]]></category>
            <dc:creator><![CDATA[William Bautista]]></dc:creator>
            <pubDate>Fri, 01 Mar 2019 12:36:50 GMT</pubDate>
            <atom:updated>2019-03-04T09:01:10.573Z</atom:updated>
            <content:encoded><![CDATA[<p>Here at <a href="https://www.smartpension.co.uk/">Smart Pension</a>, we are constantly evolving. We are a very successful Fintech company, not just in the UK, but globally too. That is why we are always looking to adapt and move to the best practices within the Ember community. One thing that came to our attention was the fact that, yes we try to keep aligned with the LTS Ember version, but we are missing some of the power it can provide us with. One specific case was that we were not using <strong>&lt;AngleBracket/&gt;</strong> components within our apps.</p><p>Once we realised the need for this within the business and understood the benefits of this migration, we established some rules to follow. This was important as we currently have <strong>five</strong> different client apps and one <strong>common</strong> app, where we share many components across in our monolith repo. The rules were:</p><ul><li>The migration will be done one single app at a time</li><li>Only components belonging to the current app in the migration process will be moved</li><li>Once all apps have been migrated, we’ll move the <strong>common</strong> components in one single migration as it affects all other five clients.</li></ul><p>By following these steps we reduced potential bugs or errors. Alongside these rules, our QA team could do a small regression test each time we did a migration, rather than a large one if we had decided to go down the route of migrating everything in one go. 🌋</p><p>Bearing in mind that by the time we started this change we were using Ember version <strong>3.3</strong> and that <strong>&lt;AngleBracket/&gt;</strong> is only built in Ember <strong>3.4</strong> onward, we had to do some research to see if there was some sort of polyfill available to us, instead of doing a whole upgrade first. Thankfully, and this is one of the best things about Ember community, the core team had already produced one polyfill which was back compatible.</p><p><a href="https://github.com/rwjblue">Robert Jackson</a> created <a href="https://github.com/rwjblue/ember-angle-bracket-invocation-polyfill">ember-angle-bracket-invocation-polyfill</a> which supported Ember <strong>2.12, 2.16, 2.18, 3.1, 3.2 and 3.3</strong> 😎</p><pre>ember i ember-angle-bracket-invocation-polyfill</pre><p>The most awesome thing about this polyfill was the fact that it needed zero configuration, apart from the fact that <strong>ember-cli-htmlbars-inline-precompile</strong> was at least version <strong>1.0.3</strong> in our repo. Other than that, we were ready to start doing our first migration. The next step was to find some sort of codemod which alleviated the burden of renaming files and adjusting component calls inside our hbs, but sadly there was none available. After hours of research, the reason was that manipulating hbs itself is not easy, especially because a component can use inline or block style which makes the dynamic process a bit complex.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*EaXlXe90Oym9qnLC" /><figcaption>Photo by <a href="https://unsplash.com/@matthewhenry?utm_source=medium&amp;utm_medium=referral">Matthew Henry</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>After that, we decided to start working on the transition manually. 👨‍💻</p><p>These are some examples of how our code looked after that.</p><p><strong>Self-closing syntax</strong></p><pre>// Before<br>{{error-page-content}}</pre><pre><br>// After<br>&lt;ErrorPageContent /&gt;</pre><p><strong>Block syntax</strong></p><pre>// Before<br>{{headers/nav-masterhead<br>  authManager=authManager<br>  invalidateSession=(action &#39;invalidateSession&#39;)<br>  isDesktopView=isDesktopView<br>  isTabletView=isTabletView<br>}}<br></pre><pre>// After<br>&lt;HeadersNavMasterhead<br>  @authManager={{authManager}}<br>  @invalidateSession={{action &#39;invalidateSession&#39;}}<br>  @isDesktopView={{isDesktopView}}<br>  @isTabletView={{isTabletView}}&quot;<br>/&gt;</pre><h3>Passing HTML attributes with ...attributes</h3><p>Either if you have a <strong>template only</strong> or <strong>hbs-js</strong> component, you can pass HTML attributes thanks to <strong><em>…attributes</em></strong>, this will allow you to modify your component in a neat way without to add extra logic to get the same result.</p><pre>// Component introduction-title.hbs<br>&lt;div class=&quot;title&quot; ...attributes&gt;<br>  &lt;h1&gt;{{@title}}&lt;/h1&gt;<br>&lt;/div&gt;</pre><pre>// Calling component<br>&lt;IntroductionTitle<br>  <a href="http://twitter.com/title">@title</a>=&#39;Angle bracket components&#39;<br>  class=&#39;my-class&#39;<br>  data-test=&#39;my-data-selector&#39;<br>/&gt;</pre><p>In this way, you can add HTML attributes to your component that will be added to your DOM thanks to Ember magic, the result will be:</p><pre>&lt;div data-test=&quot;my-data-selector&quot; class=&quot;title my-class&quot;&gt;<br>  &lt;h1&gt;Angle bracket components&lt;/h1&gt;<br>&lt;/div&gt;</pre><p>Bear in mind that if you append <strong><em>…attributes</em></strong> at the beginning of your div, you will append your component attributes at the beginning of your div.</p><pre>// Component introduction-title.hbs<br>&lt;div ...attributes class=&quot;title&quot;&gt;<br>  &lt;h1&gt;{{<a href="http://twitter.com/title">@title</a>}}&lt;/h1&gt;<br>&lt;/div&gt;</pre><pre><br>// Calling component<br>&lt;IntroductionTitle<br>  <a href="http://twitter.com/title">@title</a>=&#39;Angle bracket components&#39;<br>  class=&#39;my-class&#39;<br>  data-test=&#39;my-data-selector&#39;<br>/&gt;<br></pre><pre>// HTML <br>&lt;div data-test=&quot;my-data-selector&quot; class=&quot;my-class title&quot;&gt;<br>  &lt;h1&gt;Angle bracket components&lt;/h1&gt;<br>&lt;/div&gt;</pre><h3><strong>Conclusions</strong></h3><p>By not having nested components as they are not supported on <strong>&lt;AngleBrackect/&gt; </strong>we could have a far clear picture of our existing ones. Also, we could identify and 🔥 some other unused ones, resulting in a more clean repo.</p><ul><li>We renamed some components to reflect what they were for, as some of the community patterns suggested.</li><li>Now we could identify in a clearer way which attributes were inherent to each component itself and what other bits were pure HTML attributes.</li><li>Proper <strong>{{helpers}}</strong> were now easier to identify from actual components when going through our code.</li></ul><h3>Resources</h3><ul><li><a href="https://github.com/rwjblue/ember-angle-bracket-invocation-polyfill">https://github.com/rwjblue/ember-angle-bracket-invocation-polyfill</a></li><li><a href="https://davidtang.io/2018/09/25/what&#39;s-new-with-components-as-of-ember-3.4.html">https://davidtang.io/2018/09/25/what&#39;s-new-with-components-as-of-ember-3.4.html</a></li><li><a href="https://www.youtube.com/watch?v=GZX0G3wt_HE">https://www.youtube.com/watch?v=GZX0G3wt_HE</a></li><li><a href="https://guides.emberjs.com/release/reference/syntax-conversion-guide/">https://guides.emberjs.com/release/reference/syntax-conversion-guide/</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7ceacfae0bb6" width="1" height="1" alt=""><hr><p><a href="https://medium.com/smart-pension-technology/from-classic-style-to-anglebracket-components-in-emberjs-7ceacfae0bb6">From {{Classic}} style to &lt;AngleBracket /&gt; components in EmberJS</a> was originally published in <a href="https://medium.com/smart-pension-technology">Smart Pension Technology</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[A Little Win]]></title>
            <link>https://medium.com/smart-pension-technology/a-little-win-fd5818581e7?source=rss----f000122a81d---4</link>
            <guid isPermaLink="false">https://medium.com/p/fd5818581e7</guid>
            <category><![CDATA[github]]></category>
            <dc:creator><![CDATA[Ben]]></dc:creator>
            <pubDate>Thu, 21 Feb 2019 10:09:49 GMT</pubDate>
            <atom:updated>2019-02-21T10:09:49.204Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*H564Cjz69qz0BLrjtoM1gQ.jpeg" /></figure><p>Isn’t it awesome when you find nifty little things that make the daily grind that teeny bit more smooth? This one might well be awesome for you.</p><h4>TLDR;</h4><ul><li>In Chrome or Chromium go to: <strong>chrome://settings/searchEngines</strong></li><li>Next to <strong>Other search engines</strong> there’s a button marked <strong>Add</strong>, click it!</li><li>Give the new search engine a name. For example: G<strong>ithub pull requests</strong></li><li>Give it shortcut. For example: <strong>pr</strong></li><li>Next enter the url, including <strong>%s</strong> to be replaced when searching.<br> For example:<br><strong> </strong><a href="https://github.com/smartpension/api/pull/5053"><strong>https://github.com/smartpension/projectfeelgood/pull/%</strong></a><strong>s</strong></li><li>Finally, click <strong>Add</strong></li></ul><p>Now when you go to the address bar and type <strong>pr</strong> followed by an id, the browser will take you direct to the Github pull request matching the id.</p><h3>Every Little Helps</h3><p>When you do something quickly, you might not think about ways to make it more efficient. However, if it’s something you’re doing numerous times a day, the time saved all adds up.</p><p>I visit the same parts of certain sites multiple times per day, per hour even.</p><p>Chrome (and other browsers) have feature to help with this repetitive task. In Chrome these are known as <strong>search engines. </strong>A system that saves me time and hassle.<br>I use it for:</p><ul><li>GitHub PR’s</li><li>Ruby Gems</li><li>NPM Packages</li><li>Heroku Review Apps</li><li>Jira</li><li>Ruby Doc</li></ul><p>.. the list goes on.</p><p>Without a search engine, I would have to</p><ul><li>Open the site — perhaps I have a bookmark to click, but this could also involve typing some characters to trigger google search to find the site I want, then clicking the search result to take me to the site.</li><li>Find the page — this means using my hands on the mouse, my eyes to find the links and little bit of brain power to navigate to where I want to go.</li><li>Find the thing — now i need to read a list or perhaps do a search for the item on the page I want, then I finally click it.</li></ul><p>The above process can take a fair few seconds to complete to reach your end goal. With a search engine I can go directly to the page I want in a few keys strokes and save valuable time and brain cycles.</p><h4>Search Engine URL</h4><p>When defining a new search engine within the browser the URL is key. For this tip to work you need to ensure the site you are using has as URL you can harness, so that it can have part of it replaced with the text you search with. This excludes any URLs and require POST requests or specific headers.</p><p>One search engine I use required a username and password to access. I can still use the search engine by including the username and password in the URL, in the following example I specify the user as <em>poweruser</em> with a password of <em>P0werP4ssWord9</em></p><blockquote>https://poweruser:P0werP4ssWord9@somesite.org/tickets/%s/view</blockquote><p>Take the time to set up a search engine and give it a try, I would be surprised if you did not thank yourself!</p><p>Ben</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fd5818581e7" width="1" height="1" alt=""><hr><p><a href="https://medium.com/smart-pension-technology/a-little-win-fd5818581e7">A Little Win</a> was originally published in <a href="https://medium.com/smart-pension-technology">Smart Pension Technology</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Thanks for sharing! #1]]></title>
            <link>https://medium.com/smart-pension-technology/thanks-for-sharing-1-93993a2fad1a?source=rss----f000122a81d---4</link>
            <guid isPermaLink="false">https://medium.com/p/93993a2fad1a</guid>
            <category><![CDATA[slack]]></category>
            <dc:creator><![CDATA[Aurelija St.]]></dc:creator>
            <pubDate>Tue, 05 Feb 2019 16:02:00 GMT</pubDate>
            <atom:updated>2019-02-06T11:55:50.164Z</atom:updated>
            <content:encoded><![CDATA[<p>Slack is good fun.</p><p>Quite a large proportion of my team does not even read their emails.</p><p>Below is a collection of my fave posts from the last month in #general #random (gotta have a random channel!) &amp; of course #sp-dev ❤️</p><p>Selection is based purely on my own very personal view. As I scrolled back through, some I remembered, but some were new and stood out. While Slack is a great tool, keeping up with all the messages in a large channel can be tough. So it’s easy to miss some. It just happens!</p><p>In other words, this is a list of the ones I’m happy I did not miss:)</p><h3>Here goes my slack favourites 12.27–01.26:</h3><h4>1. Our MD knowing the importance of time off</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/842/1*cIMcsiI-nhi3_Uf2pMMkjA.png" /></figure><p>This year, all employees were gifted two extra days off over Christmas 😊, most took advantage of this and booked the whole festive period off. The extra holiday was a truly nice gift, but the above interaction makes the top of list because it made me feel trusted and relaxed. I was reassured that the big bosses do not frown if people enjoy a game or two during work hours. Trust is awesome.</p><h4>2. Argh… I wish I was working!</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/724/1*RAb2J70NMk55TMsdWzyEiA.png" /></figure><p>It’s almost 11 pm! Why are they at work?</p><p>I look at this picture and there is simply too much fun going on.</p><p>Why is everyone smiling? Whose hand is balancing that beer? What’s going on with Brad’s selfie face? All this gave me massive FOMO and it made me wish I was in the office at that hour.</p><p>This group of rockstars was tackling Heroku Enterprise migration. It had to be done and it had to be done outside of working hours. Working late is not something we advocate at Smart, but sometimes we <em>have to, </em>but we also have a choice of <em>how</em> <em>to</em>. In this instance, the pizza was ordered, beer was in the fridge, and a few teammates stuck around to play board games (aka float around for emotional support).</p><p>A nice reminder that making work fun is not obligatory, but highly encouraged.</p><h4>3. Ability to laugh at oneself (#1)</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/842/1*njMQDqQSu6HalXWv7wc6yQ.png" /></figure><p>Haroon organises a monthly pot-luck lunch in the office. A pot-luck is where all the attendees make something, bring it in and share it. However, the rumour has it that Haroon never cooks himself, and no one really knows where he gets those amazing homemade dishes from.</p><p>Massive THANKS goes to Haroon 👏👏👏 for this monthly organisation, connecting people through food, ability to laugh at oneself &amp; share his best tries in a company-wide channel! #failfast #shareandlearn</p><h4>4. Coffee machine crisis</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/624/1*YoHnAWXB3U3x_AGKarGxIA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/944/1*f8jvFQX6fLehIlS6UDqAMA.png" /></figure><p>Coffee machine broke 😱, which is pretty much the worst news for someone as addicted to caffeine as I am.</p><p>However, in this time of crisis, the genius of my team shone through — though it took me a google or two to fully get the joke.</p><h4>5. Happy Birthday, Gab!</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*sHhAChLy77-xSwSxORtThQ.png" /></figure><p>Birthdays at work usually go like this: Brad (our head of engineering) asks if you want a birthday celebration with the team, or if you’d like to keep it quiet. It’s a simple yet important question — some people don’t like the fuss or attention.</p><p>On this particular day, the Brad was not around to check. Since Gab invited a whole team to his 30th last year, we figured he’s not going to mind a little celebration. The whole team got together and surprised him with two beautiful cakes and a bottle of prosecco!. The ambush and the out-of-tune singing was all captured on video, as well as Gab’s hesitant yet grateful smirk.</p><p>This one is a super subjective entry in the list, as I love Gab to bits. He’s been incredibly supportive throughout my time at Smart. Gab is one of the most patient and kind people I know, and never loses his cool. This is due to both, his overall attitude to life and work, as well as incredible knowledge of the platform and industry. I’m sure this sentiment would be shared by the whole tech team because, as one of the first Smart tech team members he’s been a friendly and welcoming face since day one.</p><h4>6. Lost &amp; Found</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/604/1*KP3gOQxpWtRehco986iRgQ.png" /></figure><p>I just knew it is someone from UX. Even before I read the sharers name.</p><p>UX love their stationery, so do I, and therefore can really feel the pain behind this shout of help.</p><p>UX does some really physical, visual things, and tend to have the best stationery, as they have a keen eye for what looks good. I highly advise befriending them, they are a good bunch. You might also get some pretty post-it notes and amazing pens as an added bonus.</p><h4>7. Ability to laugh at oneself (#2)</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/788/1*-DLEv_AkEgqKxc1A8Y0RCg.png" /></figure><p>Hands up if you have never googled anything to get your job done! ✋ Exactly…</p><p>I’m not an engineer, this meme still really tickled me. Although it is slightly self-deprecating, it was a nice reminder that really, actually, no one fully knows what they are doing… at least to some extent.</p><h4>Afterthoughts: Emoji’s, Likes, and does anyone care?</h4><p>When scrolling through all the gems on slack, it clicked that the amount of emojis is not an indicator of how popular or impactful a message is. Some people told me they simply don’t like using emoji’s as a way of interaction. Yet, it likely that someone is interested/cares/relates to a post — even if there is no single reaction.</p><p>Last year, there was this really heartfelt big announcement on a dev team channel. It was one of those ‘wow’ kind of shares. I loved it and of course emoji’ed all the way. Then, I was surprised how little reactions it got. I chatted with the person who posted it, and their view was <em>just because there aren’t many emojis it does not mean people don’t read it or don’t appreciate it</em>. I tend to agree.</p><p>Some people (myself included) are hesitant about public sharing in a typed format. Yet, even if I don’t slack a lot, I appreciate all that others share; the good, the bad, and the ugly — it all helps me get to know the people, the teams, and simply learn.</p><p>Aurelija x</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/249/1*lXeVqYK_qnYrVG8EzzmPiQ.gif" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=93993a2fad1a" width="1" height="1" alt=""><hr><p><a href="https://medium.com/smart-pension-technology/thanks-for-sharing-1-93993a2fad1a">Thanks for sharing! #1</a> was originally published in <a href="https://medium.com/smart-pension-technology">Smart Pension Technology</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[London Rails Girls 2018]]></title>
            <link>https://medium.com/smart-pension-technology/london-rails-girls-2018-31b8724db25c?source=rss----f000122a81d---4</link>
            <guid isPermaLink="false">https://medium.com/p/31b8724db25c</guid>
            <category><![CDATA[mentorship]]></category>
            <category><![CDATA[tech]]></category>
            <category><![CDATA[rails-girls]]></category>
            <dc:creator><![CDATA[Brad Jayakody]]></dc:creator>
            <pubDate>Fri, 07 Dec 2018 11:52:54 GMT</pubDate>
            <atom:updated>2018-12-07T11:55:44.600Z</atom:updated>
            <content:encoded><![CDATA[<p>Rails Girls is a free workshop aimed at making technology more approachable for women — <a href="https://railsgirls.london/">https://railsgirls.london/</a>. It’s a free workshop where participants can learn sketching, prototyping, basic programming and get introduced to the world of technology, in a safe environment.</p><p>Smart Pension was one of the sponsors of the event and over 80% of the Engineering team volunteered their Friday night and all day Saturday to be coaches at the event. Plus some of HR team and other members also attended to learn how to code!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/638/1*OK_6RV3qXNB62HR_pGjdCQ.jpeg" /><figcaption>Carla Torri, HR &amp; Recruitment Administrator at Smart Pension, getting Rails running!</figcaption></figure><p>One of the things that we shared with some of the students, learning as a programmer never ends. While helping people learn how to build an application, most of us learnt something new (granted for a lot of the developers who use a mac, it was how to edit host files on a windows machine). One of the best ways to actually see how deep your understanding of a subject, is to explain it to someone who is learning.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-SPI8AP4R7VFeo3d8qBw4w.jpeg" /><figcaption>Craig Plummer, Tech Lead at Smart Pension, helping some students build an app</figcaption></figure><p>I gave a short talk about the Engineering culture at Smart Pension, one of our Engineers recently said, “The Software that we are building, will be used 10, 20, 40, 50 or maybe even 100 years from now — we need to build it right or future engineers will hunt me down”. More importantly chatted about how building complicated software is a much more collaborative than most people realise until they start working in an Engineering team. For example, most PR’s are reviewed by over 90% of the Engineering team (okay, as we scale in size of people, that isn’t going to continue!)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Ps0Aqsxifb76qpSbg6JmXA.jpeg" /><figcaption>Brad Jayakody, Head of Engineering, talking about the culture at Smart Pension</figcaption></figure><p>From a personal level, my girlfriends daughter, Lexie (11 years old) attended the event. She didn’t have any experience in building an application, nor of coding and at the end of it she had an application up and running. She had this to say about the incredible coaches at the event. Most importantly she also saw a lot of people who had gone through a few challenges to learn how to be engineers — positive role models are so important!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/674/1*wB6Xk3Bc3voCLv7xDka0Rg.jpeg" /><figcaption>Lexie during Rails Girls</figcaption></figure><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FRwOe_McIifo%3Ffeature%3Doembed&amp;url=http%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DRwOe_McIifo&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FRwOe_McIifo%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/8b8cb5077ca1e5cf8c91d9c1c9bb78e6/href">https://medium.com/media/8b8cb5077ca1e5cf8c91d9c1c9bb78e6/href</a></iframe><p>Feedback that I head from a lot of attendees, it was helpful for people to work with similar people, to find out that we all sometimes had a case of impostor syndrome, and also get new found confidence in their abilities.</p><p>Interested in signing up for the next event? Check out <a href="https://railsgirls.london/">https://railsgirls.london/</a></p><p>It’s highly likely a lot of the Smart Pension Engineering team will be there next time, so come say hello!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cQdf-o4vWyk-Rg86N5FZWQ.jpeg" /><figcaption>Some members of the Smart Engineering Team!</figcaption></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=31b8724db25c" width="1" height="1" alt=""><hr><p><a href="https://medium.com/smart-pension-technology/london-rails-girls-2018-31b8724db25c">London Rails Girls 2018</a> was originally published in <a href="https://medium.com/smart-pension-technology">Smart Pension Technology</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Authenticate your QA’s]]></title>
            <link>https://medium.com/smart-pension-technology/authenticate-your-qas-d5ca2ab89c65?source=rss----f000122a81d---4</link>
            <guid isPermaLink="false">https://medium.com/p/d5ca2ab89c65</guid>
            <category><![CDATA[ruby]]></category>
            <category><![CDATA[qa]]></category>
            <category><![CDATA[ruby-on-rails]]></category>
            <dc:creator><![CDATA[Ben]]></dc:creator>
            <pubDate>Wed, 05 Dec 2018 11:23:31 GMT</pubDate>
            <atom:updated>2018-12-14T09:33:43.653Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Xfs5ZqM3U8WNGD131DBkqA.jpeg" /></figure><p>For an easy life, get into your authenticated application without having to type in a username and password.</p><p>TLDR; add a custom strategy in here:config/initializer/devise.rb like so:</p><pre>config.warden do |manager|<br>  manager.strategies.add(:qa_mode) do<br>    def valid?<br>      ENV[&#39;RAILS_ENV&#39;] == &#39;staging`<br>    end</pre><pre>    def authenticate!<br>      user = User.find_by(email: QA_USER_EMAIL)<br>      user ? success!(user) : fail(&#39;Could not find qa user&#39;)<br>    end<br>  end</pre><pre>  manager.default_strategies(scope: :admin_user).unshift(:qa_mode)<br>end</pre><p>We deploy many times a day. It could be fresh features, optimisations or bug fixes, one constant is quality. To ensure that quality we have team of dedicated, laser sighted QA engineers hammering away at our application weeding out any defects that slipped through the test suite.</p><p>A QA’s job is hard one, and as as a developer you can help improve their lot by making repetitive tasks less painful. For a QA there is nothing more repetitive than logging into the application.</p><p>Take our admin system for example, when a change is made to this area, a QA Engineer will be required to go the freshly deployed review app, create a admin user, then visit the admin url, type in the email address, type in the password, click login then finally they are ready to start the QA process.</p><p>How can we improve this?</p><p>We use Ruby on Rails and the Devise gem for authentication, so whenever we call the method to trigger authentication</p><pre>authenticate_admin_user!</pre><p>we want to just authenticate, rather than ask for a username and password. We also want to avoid scatteringif statements in our code to check if we are running in test mode</p><h3>Add the new strategy</h3><p>Add a new strategy to Warden (which Devise uses under the hood), either inline like so:</p><pre>config.warden do |manager|<br>  manager.strategies.add(:qa_mode) do<br>    ...<br>  end<br>end</pre><p>Or add a class which implements the strategy like this:</p><pre>config.warden do |manager|<br>  manager.strategies.add(:qa_mode, MyApp::Devise::Strategy)<br>end</pre><p>Choose whichever you find best suites your needs.</p><h3>The Strategy</h3><p>Warden has a number of strategies it uses for authentication. It will run through the list until it authenticates, fails or gets to the end of the list.</p><p>With the above in mind the most simple strategy contains only 1 method</p><pre>def authenticate!<br>  ...<br>end</pre><p>This should result in calling 1 of three other methods</p><pre>success!(user)</pre><p>Calling this method tells warden to stop running through strategies and authenticate using the passed in object.</p><pre>fail(“failure message”)</pre><p>Calling this method tells warden to continue to the next strategies as this one has failed.</p><pre>fail!(“failure message”)</pre><p>Calling this method tells warden to stop running through strategies and fail authentication.</p><p>A strategy can contain more methods which hook into Wardens logic, one of which is valid? . <br>Warden uses this to test if it can attempt to apply a strategy, in our strategy we use it to see if Rails is running in the staging environment, if so, it can apply the strategy if not, do not.<br>This is important as otherwise in production we would just be letting anyone into our admin system.</p><h3>Apply the strategy</h3><p>Now Warden knows of our new strategy, we can add the it to the front of list of strategies, using unshift like so:</p><pre>manager.default_strategies(scope: :admin_user).unshift(:qa_mode)</pre><p>Note the scope passed to default_strategies , this is needed as we want this strategy applied whenever we call authenticate_admin_user! as apposed to authenticate_user!</p><p>With all this in place our code can be well tested without hindering the QA team.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d5ca2ab89c65" width="1" height="1" alt=""><hr><p><a href="https://medium.com/smart-pension-technology/authenticate-your-qas-d5ca2ab89c65">Authenticate your QA’s</a> was originally published in <a href="https://medium.com/smart-pension-technology">Smart Pension Technology</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>