<?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[Stories by Theo Nicolaou on Medium]]></title>
        <description><![CDATA[Stories by Theo Nicolaou on Medium]]></description>
        <link>https://medium.com/@theonico85?source=rss-f6006efe1b02------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*KlMoeBsPVnIqGhxq.jpg</url>
            <title>Stories by Theo Nicolaou on Medium</title>
            <link>https://medium.com/@theonico85?source=rss-f6006efe1b02------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 24 Nov 2026 06:53:12 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@theonico85/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Reflecting on LeadDev Live 2020]]></title>
            <link>https://medium.com/@theonico85/reflecting-on-leaddev-live-2020-a4a54cf86010?source=rss-f6006efe1b02------2</link>
            <guid isPermaLink="false">https://medium.com/p/a4a54cf86010</guid>
            <category><![CDATA[management-and-leadership]]></category>
            <category><![CDATA[engineering-leadership]]></category>
            <category><![CDATA[lead-developers]]></category>
            <dc:creator><![CDATA[Theo Nicolaou]]></dc:creator>
            <pubDate>Sat, 06 Jun 2020 21:25:10 GMT</pubDate>
            <atom:updated>2020-06-07T13:39:08.885Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*Wi_ictiCxRRu6n5SRZH8Ww.png" /></figure><p>Following the unfortunate but understandable news that the Lead Developer 2020 conferences would be postponed due to COVID-19, a new, free online event was launched — <a href="https://live.theleaddev.com/">LeadDev Live</a> — taking place on 7th &amp; 8th April. The agenda looked pretty good to say the least, with a mix of talks and panel sessions focusing on how to be the most effective leader in these uncertain times, along with some really interesting technical talks. The conversations continued on the <a href="https://lead-dev-slack.herokuapp.com/">Lead Dev Slack channel</a> and <a href="https://live.theleaddev.com/replays/">are available to watch</a> in case you missed any.</p><p>I wasn’t able to attend in real-time so I made sure to put some time aside specifically to watch the sessions a couple of weeks later. Ahead of this, I looked at the agenda and earmarked the sessions which appealed to me the most — I picked out five talks and four panel sessions, and in this blog post I will talk about what I learnt and the things that stood out for me. I have also included some wonderful sketchnotes by <a href="https://twitter.com/miphoni">Miriam Busch</a> (if anyone can point me in the direction of the ones that are missing, that would be great!)</p><p>What I love about these talks (and the other LeadDev conference talks) is that the advice and insights are transferable to so many situations and experiences. There is some great continuity and consistency between the themes of the LeadDev Live talks, and that is 100% down to the fantastic work by the curators. I also really enjoyed the panel talks and hope to see this format again in the future (online or in-person)!</p><p>So, here are the four things I learnt from LeadDev Live:</p><h3>1. This is not a normal situation: we’re doing our best and need to take care of ourselves and each other</h3><blockquote>“We’re not even working from home. We’re stuck at home, trying to get work done.” — Juan Pablo Buritica</blockquote><blockquote>“How do you avoid losing your mind when the world around you is seemingly falling apart?” — Samuel Serban</blockquote><p>Coping with the COVID-19 pandemic as an engineering leader (and a human being) was an overarching theme of LeadDev Live. I watched three sessions that covered this topic:</p><ul><li><a href="https://live.theleaddev.com/talks/leading-teams-through-times-of-uncertainty-and-upheaval/">“Leading teams through times of uncertainty and upheaval</a>” (a panel session with <a href="https://twitter.com/cmccarrick">Christian McCarrick</a>, <a href="https://twitter.com/skamille">Camille Fournier</a>, <a href="https://twitter.com/lara_hogan">Lara Hogan</a>, and <a href="https://twitter.com/kumar_rachana">Rachana Kumar</a>)</li><li><a href="https://live.theleaddev.com/talks/engineering-leadership-in-the-time-of-coronavirus/">“Engineering management in the time of Coronavirus”</a> (a talk by Samuel Serban, Head of Hong Kong Engineering @ Bloomberg)</li><li><a href="https://live.theleaddev.com/talks/best-practices-for-pivoting-to-remote-work/">“Strategies for rapidly pivoting to remote work”</a> (a panel session with <a href="https://twitter.com/katie_womers">Katie Womersley</a>, <a href="https://twitter.com/alicegoldfuss">Alice Goldfuss</a>, <a href="https://twitter.com/buritica">Juan Pablo Buritica</a> and <a href="https://twitter.com/lrnrd">Lena Reinhard</a></li></ul><p>The main message was that we’re not in a normal situation right now. We’re working from home in a crisis, forced to adapt to a very stressful situation. This isn’t necessarily anything new — there is plenty of advice online about this, loads of stuff being posted on social media and we’re all no doubt talking about it non-stop. But, I found these talks to be quite refreshing because they not only covered what appears to be “the usual” with this topic — talking about what’s happening right now — they also provided some great points and ideas about how to move forward and <em>get through this</em>, not just as a team leader or manager but also as a <em>person</em>. I’ve listed my main takeaways below:</p><h4>Look after yourself first, so that you can look after your team</h4><blockquote>“When you as a leader want to help others, you can’t do that without taking care of yourself.” — Samuel Serban</blockquote><p>Sam made the point that to maintain our own mental wellbeing at this time, we should try to accept the things we can’t control. It’s sometimes easier said than done, so I tend to think about the “CIA” model: what can/can’t you Control, what can/can’t you Influence, what should you just Accept? (this is something I use quite a lot at work and have found it to be helpful).</p><blockquote>“Communicate: tell people when you’re walking away from the computer, when you’re signing off for the night, and emote more in video calls to try to put your presence in there with people and combat isolation.” — Alice Goldfuss</blockquote><p>I liked Alice’s comment about communication — people can’t see you like they would in the office, they can’t tell whether you’re at your desk, or just taking a break, or answering the door, or something’s come up that you need to attend to. Send a message, or set your status — or both. It only takes a couple more seconds and I don’t think it is over-communicating. Emoting more in video calls, where possible, means that we’ll be breaking down the “barriers” of working remotely and trying to feel as comfortable as we can every day, because this is probably not going to be a short-term thing.</p><blockquote>“Use the BICEPS framework to help figure out what your core needs are and what is causing the stress.” — Lara Hogan</blockquote><p>Lara referred to <a href="https://www.palomamedina.com/biceps">Paloma Medina’s BICEPS model</a>, which was developed to represent peoples’ Core Needs. You can <a href="https://larahogan.me/blog/desk-moves/">read a bit more about it on Lara’s blog</a>. I first heard about this when Lara <a href="https://www.youtube.com/watch?v=lqqBktWqPLo&amp;list=PLBzScQzZ83I9uW36NnjX6Pe5P63EpEk_q&amp;index=2&amp;t=0s">gave a talk at LeadDev London 2019</a>, which was in the context of navigating friction within your team. I really liked her idea of using this model to work out <em>your own</em> core needs during this stressful time so I thought I would mention it here.</p><blockquote>“Try to log off every day at 5:30. Just say no. Learning to say no is very important.” — Rachana Kumar</blockquote><p>It can be pretty hard to finish on time when you work from home — I’ll admit I struggled with this, especially when lockdown first started. Similarly, it’s all very well if you finish on time, but your mind continues to work and you don’t necessarily switch off until later in the evening (if at all). You don’t have a commute or an opportunity to change your scenery, get some air and switch contexts to “home mode”.<br>So, make this happen. When I was working in the office, I would have to leave by 5pm at the latest — otherwise I wouldn’t get home in time to see my little boy, Alfie, before his bath and bedtime. I’d get a bit of time to switch off on my train journey home. During the lockdown, I would have to finish by 5pm — or certainly 5:30pm — otherwise I wouldn’t get a chance to go for a walk with my wife and Alfie. I recall one week where I didn’t leave the house for 5 days, not because I was in self-isolation or anything like that — but because I finished work a little too late every day (plus the weather wasn’t too good). I felt horrendous by the end of the week! Everyone has their own situations and circumstances but this is something that I think we can all take control of. It also ties into leading by example, which I’ll cover further down.</p><h4>If we are all understanding of each other, then we can get through this situation together</h4><blockquote>“The situation overall is extremely stressful — and everything needs to come with that little asterix, that this situation is not normal and we’re doing the best we can.” — Alice Goldfuss</blockquote><p>There might be a tendency to dwell on the non-normal situation too much, but we shouldn’t shy away from being honest about it. Ask for help, ask for feedback, offer to support others. As Juan Pablo put it, “we’re all a work in progress, and we are all figuring it out”.</p><blockquote>“When you return to work, ask your team for suggestions and listen to them. They’re the ones to know best.” — Samuel Serban</blockquote><p>Sam made a great point about letting your team drive the process and discover what works for them — in our normal day-to-day working lives, we experiment, iterate and improve our processes and how we work together. Why should it be any different when we’re working remotely, and when we return to the office? I have always believed (and said to my colleagues on many occasions) that as leaders, your team are your eyes and ears — they can tell you what’s really going on and what might work best, and it’s up to you to then decide how to make use of that information.</p><h4>Good habits/tips for maintaining momentum — for now and the future</h4><blockquote>“Get a cadence of the most important things so that people can flow…PR’s reviewed by noon, emails checked by the end of the day…if you have meetings that were in person, still have them. If you have stand-ups, still have them.” — Juan Pablo Buritica</blockquote><blockquote>“Work out your communication protocols. What are your expectations for communications? Are Slack messages replied to instantly? Or is it treated as “I will get back to you by next break or end of the day”? With email, do you expect email to be replied to within an hour or within a day?” — Katie Womersley</blockquote><p>There were some really good tips across the panels and talks for maintaining momentum and keeping up good habits. There’s certainly food for thought here in terms of how we could work with our teams, both remotely right now and remotely or in-person in due course. Could we be more explicit about when we will be reviewing Pull Requests? Could we be clearer about communication protocols, even when things go “back to normal” (whatever that might be)? I don’t think we need to be so specific that we become inflexible, as that would be counter-productive, but we could all definitely look at improving our ways of working with our teams and colleagues (this doesn’t just apply to managers, in my opinion).</p><blockquote>“Often what makes more of an impact on your overall business is the pace of decisions made, not necessarily how good those decisions are.” — Katie Womersley</blockquote><p>Katie also made a great point about empowering your team during this period of working remotely. If multiple people are required to give permission for something, then it could take a long time to make any progress. So, if you can, empower your team to make a lot of the decisions as opposed to asking for a manager, specifically in a situation where it might take a long time to hear back. Thinking about it, this will not only help during the pandemic, but can also encourage growth and development within your team overall.</p><h4>Being transparent and leading by example</h4><p><strong>Being transparent</strong></p><blockquote>“Transparency only works when you are providing it with the right context — context which they can understand.” — Camille Fournier</blockquote><p>There was some really interesting conversation about being transparent in the panel session <a href="https://live.theleaddev.com/talks/leading-teams-through-times-of-uncertainty-and-upheaval/">“Leading teams through times of uncertainty and upheaval</a>”. Camille pointed out that transparency only works with context — otherwise by trying to be helpful you could cause more confusion. Lara suggested that if you can’t provide all the context, or don’t have full clarity, the best thing you can do is create the clarity: for example, when your team can next expect to hear from you or hear an update from someone else. I thought this was all very interesting as the balance between trying to be honest with your team and giving the right information at the right time is really delicate, especially during a time of uncertainty.</p><blockquote>“Some people, all they want is to know how they’re doing, they need that kind of clarity. Other people don’t have space in their brains for this right now…but — giving feedback is critical. Feedback unfortunately still has to happen.” — Lara Hogan</blockquote><p>Lara reminded us all that we still have to give people feedback, even during this stressful period. Ultimately, if you don’t give feedback there will be even more stress in the long-run anyway! And if you’re not sure how to approach a difficult (or positive!) conversation, practice it:</p><blockquote>“In leadership, we never improvise. We practice (difficult) conversations.” — Juan Pablo Buritica</blockquote><p><strong>Leading by example</strong></p><blockquote>“One of the best things leaders can do right now is lead by example…think about the tone and environment you want your team to be functioning in and do your best to facilitate it. Signing off at 5pm, and making sure you’re not online at night just because you’re working from home now.” — Alice Goldfuss</blockquote><p>Following on from the point earlier about logging off every day at the correct time, your behaviour as a leader is so important (and not just right now — this applies to leadership, full-stop). If you are sending emails at midnight, your team will notice this — it really does make a huge difference to their perception of you and the team culture. I’m not encouraging this at all, but <em>if you really have to</em> write the emails at any time outside of normal working hours, then the best thing you can do is draft them and wait until morning to send them. If anything, a fresh view might help you spot a couple of typos or rewrite a sentence, and it will send the right signals to your team.</p><blockquote>“You’re not going to be able to undo what you’re doing. Your team will remember this forever. They’re going to remember how you led during a time of crisis, and you can never take that back…don’t be the person that’s remembered as a terrible psychopathic leader just because you’re stressed and it’s a pandemic.” — Katie Womersley</blockquote><p>Well said, Katie!</p><h3></h3><p></p><h3></h3><p></p><h3>2. Failure is contextual</h3><p>In “<a href="https://live.theleaddev.com/talks/risky-business-taking-risks-in-production/">Risky business: taking risks in production</a>”, <a href="https://twitter.com/LeemayNassery">Leemay Nassery</a> and Matthew Hawthorne talked about risk and the different types of failure. They described failure in three different contexts: product, operational and personal and talked about how to tell if you’re taking enough risks in each context. I thought this talk was really well-framed, enjoyable and relevant. I found it to be quite empowering and uplifting as it provided some really practical tools and tips for trying to take more risks with your work.</p><p>I’ll share some of my favourite quotes from Leemay and Matthew’s conversation but I would highly recommend watching it to get the full experience!</p><h4><strong>Product failure</strong></h4><p>This is where you create a product that people do or don’t want, combined with ineffective delivery of that product.</p><p>On gauging whether you’re taking enough product risks, the speakers encourage just trying things out in a measured way, and it doesn’t matter if they don’t work out:</p><blockquote>“It’s ok to deprecate features as your product evolves — that means you’re getting better at what you’re building for your customers.”</blockquote><blockquote>“Do you know what’s riskier than A/B testing? Not A/B testing.”</blockquote><h4><strong>Operational failure</strong></h4><p>This is “a system malfunction that results in unsatisfactory experience for an unacceptable percentage of users”.</p><p>On gauging whether you’re taking enough operational risks, you don’t need to have a perfect system or a perfect launch (because this might take too much time and lead to losing opportunities):</p><blockquote>“The time it takes to be 100% certain that a launch is safe is the exact amount of time it takes for your company to die because your competitors launched more features than you.”</blockquote><p>A solution for taking more operational risks is to try things out in a contained way:</p><blockquote>Move fast, pursue failures and limit the “blast radius” of those failures.</blockquote><p>We can limit the radius by using quick rollbacks and gradual deployments. To move fast, we can time-box our capacity planning:</p><blockquote>“If you only had 1 week to prepare for a big launch, what would you focus on? What’s an aggressive, but sane, rollout strategy?”</blockquote><p>I really liked the question about capacity planning and rollout strategies — this doesn’t just apply to when we are taking more risks; it should be something that we ask ourselves regularly to ensure we are focusing on the most important things and therefore launching the most important and valuable things.</p><h4>Personal failure</h4><p>In the talk, this is described as “not learning anything, not having any novel experiences, or not gaining any new knowledge or skills”. For me this is a really interesting one, as personal expectations can vary between people, and even as an individual, the goals and expectations you have for yourself can change over time. I also think that this doesn’t necessarily just apply to technical skills — it can apply to anything in life. In my opinion, you can learn many different things in many different ways, and the value of these lessons are really only determined by you. Leemay and Matthew talked about staying within your comfort zone, having the most domain knowledge and whether you should work on the same thing for more than 5 years:</p><blockquote>“Being a domain expert is comfortable, but are you growing? If you always feel like you are the smartest person in the room or have the most domain knowledge and that is a comfortable feeling, is that a feeling you want?”</blockquote><p>My view is this: at a certain time in your life, feeling comfortable about having the most domain knowledge within your team (for example) might be exactly what you want, as it could mean that you are able to enjoy your job, do it really well and when you leave the office you can juggle other life commitments without worrying about your work. At a different point in your life or career, you might feel deep-down that you’re getting bored or frustrated and it is time to move on from a certain project or company.</p><p>Ultimately, it is really down to you, your preferences, your personal situation.</p><p>I’ve recently taken a personal risk by starting a side-project to build a digital version of the Cypriot recipe book I wrote when I was finishing Primary School (I’ve started a series of blog posts about my project — <a href="https://medium.com/@theonico85/building-a-digital-version-of-my-cypriot-recipe-book-part-1-94530344acde">Part 1 is here</a>).</p><p>It’s a personal risk for me because I’m using modern web technologies which I have to learn in my own time and I’ve found some of it quite hard — it’s been a pretty humbling experience at times but when I’ve managed to get things working, the risk of putting myself outside of my comfort zone has definitely been worth it. This is something that I’ve decided to do now because it suits my life circumstances — it’s specific to me and I’m managing that expectation with myself.</p><p>It’s quite natural to compare yourself with others and feel that you’re not achieving as much, or that you’re failing, but the speakers gave some great advice:</p><blockquote>“Think about where you are, where you want to be and what you want to do…if you want to take more personal risks, ask yourself: What do I want to build?”</blockquote><h3>3. When rebuilding software: remember your customers, communicate — and be accountable</h3><blockquote>“The problem we get into is that people are scared of rebuilding software because everything is a hairball. You pull something on the right-hand side, and the left side lights up green, and you don’t understand why that happens.” — Bryan Liles</blockquote><p>In “<a href="https://live.theleaddev.com/talks/avoiding-the-pitfalls-of-rebuilding-software/">Avoiding the pitfalls of rebuilding software</a>”, a panel session with <a href="https://twitter.com/ericastanley">Erica Stanley</a>, <a href="https://twitter.com/bryanl">Bryan Liles</a>, Jai Chakrabarti and Dan Berry, the panelists talked about the challenges of rebuilding software and the things you should take into account when considering a software rebuild. They covered a lot of aspects, with some really good tips about potential metrics for rebuilds and some great points about the perceptions around rebuilds, why they don’t always go to plan — and how to help them go to plan next time. I’ve included the points that I found most useful below.</p><h4>Remember your customers (and don’t forget your developers)</h4><p>Erica made some great points about the customers or users of your software:</p><blockquote>“In a lot of cases you’re rebuilding something that customers are already using, so usually a big metric is how quickly can we get to parity with what we already had, with the existing user experience?”</blockquote><blockquote>“If you’re really thinking through how this affects the customer, you’re thinking through all of the components that could be affected and that helps guide the decision a little bit better, rather than just adding a new and shiny thing for the sake of it.”</blockquote><p>It seems quite common that a software rebuild happens for an internal reason or goal, rather than an external or customer-facing goal. So it was really nice to hear this view from Erica because sometimes the user can be forgotten. Her comments encourage us to think about the rebuilds in chunks or components, to help with planning it all out or to help make a decision, whilst always keeping the user in mind. If you can do this throughout a rebuild, you can keep yourself grounded and focused, and the work won’t affect the users in a negative way.</p><p>She and the other panelists did also talk about the other side of the coin — how a rebuild could affect the scalability of a codebase and the productivity of your team— so even when you do focus on your customers, you should still consider what it could mean for your team:</p><blockquote>“How do you scale this so that the entire team can continue to be productive with the entire codebase?”</blockquote><blockquote>“Those are the things you want to think about: how does this affect your customers? How does this affect how we get to build on this in the future?”</blockquote><h4>The role of tech leads in a software rebuild</h4><p>The panelists also talked about who might make the decision to do a rebuild in an organisation. Bryan made the point that tech leads would likely need to make the case to senior managers about why it should (or will) happen. He suggested the reason needs to be linked to an objective:</p><blockquote>“Your tech leads are going to have to make the argument to engineering management and to the executives of why this is going to happen, and it can’t be “because it’s faster”, it has to be “it will help us with X objective in a better way.”</blockquote><p>Hint: perhaps that objective is related to your customers or users…?! (I thought this led on nicely from Erica’s points above).</p><h4>The missing pieces</h4><p>One of the questions posed to the panel related to the balance between incremental rebuilds versus taking a step back and rebuilding fully. Dan made an observation about collaboration and communication being the missing pieces of the software rebuild puzzle:</p><blockquote>“Collaboration and communication are the two things that can help from the outset, and I find a lot of times when we are thinking about building a new system, or rebuilding, that those are the pieces that end up missing that result in these tangled webs down the road.”</blockquote><p>I think this is a really important point, as it doesn’t just apply to software rebuilds — collaboration and communication are vital for any work to be successful, and as leaders I feel it is our responsibility to encourage, facilitate and demonstrate these actions to our teams and colleagues. So I guess this is just a reminder to take a step back every now and then, and check that collaboration and communication are as good as they can be.</p><h4>Be accountable</h4><blockquote>“Someone is going to have to be accountable. If you have a room full of people slightly accountable, no-one is accountable…”</blockquote><p>I loved this quote from Bryan. He was talking about the need for a leader (e.g. engineering management or tech leads) to make the case for a software rebuild and be accountable for it, but again it is something that can be transferred to any situation. I will be referring to this quote regularly!</p><h3></h3><p></p><h3>4. A good strategy requires alignment and understanding</h3><p>The panel session “<a href="https://live.theleaddev.com/talks/building-and-conveying-vision/">Building and conveying vision</a>” (<a href="https://twitter.com/KevinGoldsmith">Kevin Goldsmith</a>, Lawrence Bruhmuller, <a href="https://twitter.com/nerdneha">Neha Batra</a>, <a href="https://twitter.com/mariagutierrez">Maria Gutierrez</a>) focused on what vision is (versus missions, strategy and roadmaps), and the panelists gave some interesting and useful insights about the best ways to implement a vision or strategy.</p><h4>Timely and relevant</h4><p>I found this session really useful and relevant, as in my role of Lead Developer at the Natural History Museum, one of my responsibilities is to define and implement a technical front-end strategy to support our department’s Digital Strategy. A big part of it involves working with colleagues and stakeholders from various teams in the Museum to ensure alignment and understanding of what we would like to achieve and how we might get there. So, it was great to hear Maria and Neha thoughts on alignment and what that means:</p><blockquote>“Align the thinking. A good vision and strategy won’t just come from you, you need to always frame it around problems that you want to solve for a target audience and that really aligns with the values and business mission…” — Maria Gutierrez</blockquote><blockquote>“When I say ‘aligned’, it doesn’t mean we have the same opinion. It is about understanding each other, understanding where we come from and understanding all of the perspectives (especially given the history of a product or organisation).” — Neha Batra</blockquote><h4>Communication, facilitation and networking</h4><p>Lawrence reminded us about the need for effective communication:</p><blockquote>“Make sure all your communication is actually working. How do you know? You have to work well with your leadership team and make sure they’re all aligned and you would all say the same thing. You also have to speak to the individual contributors, sample the organisation, and see how the message is actually getting through.”</blockquote><p>And Neha suggested using facilitation techniques when working on getting the alignment you need:</p><blockquote>“For conversations like this, have good facilitation techniques ready. Find ways to collaborate and get the creative juices going.”</blockquote><p>This was like a “lightbulb moment” for me, as I hadn’t thought about using facilitation techniques in this context. So this was really helpful!</p><h4>Vision debt</h4><p>There was quite a lot of discussion about making a vision or strategy as a living document, so that it doesn’t go out of date or build up “vision debt” (as Lawrence put it, and a phrase I will use in future):</p><blockquote>“Have a checkpoint, maybe twice a year, where you check yourself and make sure you haven’t built up vision debt, or strategy debt.”</blockquote><p>Again, this is something I will think about and discuss with my colleagues when working on the strategy. Really I just want to say “thank you” to the panel for this session as I found it reassuring that some of my approaches to-date matched with what the speakers were suggesting and I will certainly be using it as a springboard for my own work.</p><p>I’ve learnt so much from the LeadDev Live 2020 sessions — and I would certainly recommend watching all of the talks if you haven’t already. To recap, here are the four main things I learnt:</p><ol><li>This is not a normal situation: we’re doing our best and need to take care of ourselves and each other</li><li>Failure is contextual</li><li>When rebuilding software: remember your customers, communicate — and be accountable</li><li>A good strategy requires alignment and understanding</li></ol><p>I hope you enjoyed reading this blog post — please <a href="https://twitter.com/theonico85">get in touch on Twitter</a> if you have any thoughts, comments or feedback.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a4a54cf86010" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Building a digital version of my Cypriot recipe book (part 4)]]></title>
            <link>https://medium.com/@theonico85/building-a-digital-version-of-my-cypriot-recipe-book-part-4-7600212e072e?source=rss-f6006efe1b02------2</link>
            <guid isPermaLink="false">https://medium.com/p/7600212e072e</guid>
            <category><![CDATA[learning]]></category>
            <category><![CDATA[vuejs]]></category>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[side-project]]></category>
            <dc:creator><![CDATA[Theo Nicolaou]]></dc:creator>
            <pubDate>Wed, 27 May 2020 21:05:05 GMT</pubDate>
            <atom:updated>2020-06-01T22:01:49.643Z</atom:updated>
            <content:encoded><![CDATA[<p>In 1996, when I was in Year 6 and finishing Primary school, one of my half-term targets was about Cypriot cooking. I made a recipe book — “Theo’s Book of Cypriot Recipes”. I will eventually share the actual recipes, but first I am going to build a digital version using modern web technologies — and will be documenting my journey in a series of blog posts.</p><p>Previous posts:</p><ul><li>In <a href="https://medium.com/@theonico85/building-a-digital-version-of-my-cypriot-recipe-book-part-1-94530344acde">Part 1</a>, I considered the scope of the project in terms of functionality and what I wanted to learn.</li><li>In <a href="https://medium.com/@theonico85/building-a-digital-version-of-my-cypriot-recipe-book-part-2-fc6d1a4889ab">Part 2</a>, I started scratching at the surface by creating a Hello World project and a starter project with the Vue CLI.</li><li>In <a href="https://medium.com/@theonico85/building-a-digital-version-of-my-cypriot-recipe-book-part-3-8d193d5c6772">Part 3</a>, I investigated further how the Vue CLI project works and I looked at how to modify the templates and folder structure to suit my project.</li></ul><p>In this blog post (Part 4), I will be concentrating on creating a JSON file and displaying the data from it in the browser.</p><p>This week, I wanted to make sure I could pull JSON data into my application (Trello card: <a href="https://trello.com/c/nOKi0cyd">https://trello.com/c/nOKi0cyd</a>). I used the power of Twitter to ask for help when I got stuck (thank you <strong><em>so much</em></strong>, <a href="https://twitter.com/trysmudford">Trys Mudford</a> and <a href="https://twitter.com/wearethreebears">Liam Hall</a>!) and you can see my code <a href="https://github.com/theonicolaou/digital-cypriot-recipe-book/tree/setup-json-data">in GitHub</a>. I’m really pleased with the progress I’ve made — and here’s what I encountered along the way.</p><h3>Making a start on the data structure</h3><p>My first step was to visualise what the data structure could look like. I was starting with a Recipes View which likely needed to be split up into smaller Views and/or Components and I also had my original paper recipe book to refer to. This is one of the recipe pages (which I envisaged would become <em>RecipeDetails.vue</em>):</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*r8H14CIKbHhI7AxjvCWYmg.jpeg" /><figcaption>A photo of one of the recipes from my Cypriot recipe book</figcaption></figure><p>One of the recipes has a slightly different structure for the ingredients (note the headings for “mince filling”, “macaroni” and “white sauce”), so I’ll take that into account in due course as well:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*x9SGg_c8Oq2mB5PIKD8_0w.jpeg" /><figcaption>Another recipe, with a slightly different content structure</figcaption></figure><p>The recipe book also has an insert with some photos, so I will find a way to include the associated picture in each recipe page later on:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*H2astl-yiKIZ9sOzunnchA.jpeg" /><figcaption>Photos from my recipe book</figcaption></figure><p>This was all well and good, but possibly a bit too much scope to start with. I didn’t know how to pull in JSON data into a Vue app at all so I needed to keep it simple and just prove the concept first. I drew a quick sketch and from this I was able to start thinking about the structure of the actual JSON file:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*V98iITnHo5wEdsS6v6cS0w.jpeg" /><figcaption>A quick sketch of the RecipeDetail View with separate sections/components</figcaption></figure><p>I spent plenty of time searching on Google for how to do things — and used a mix of tutorials to help me get started (<a href="https://medium.com/html-all-the-things/hatt-vue-js-2-9b34557f0305">this one, for example</a> and <a href="https://www.freecodecamp.org/news/an-introduction-to-dynamic-list-rendering-in-vue-js-a70eea3e321/">this one</a>). I created a data.json file:</p><pre>{<br>   &quot;recipes&quot;: [<br>        {<br>	  &quot;id&quot;: 0,<br>	  &quot;recipeName&quot;: &quot;Recipe 1&quot;,<br>	  &quot;ingredients&quot;: [&quot;Recipe 1, Ingredient 1&quot;, &quot;Recipe 1, Ingredient 2&quot;],<br>	  &quot;utensils&quot;: [&quot;Recipe 1, Utensil 1&quot;, &quot;Recipe 1, Utensil 2&quot;],<br>	  &quot;method&quot;: [&quot;Recipe 1, Method step 1&quot;, &quot;Recipe 1, Method step 2&quot;]<br>        },<br>        {<br>	  &quot;id&quot;: 1,<br>	  &quot;recipeName&quot;: &quot;Recipe 2&quot;,<br>	  &quot;ingredients&quot;: [&quot;Recipe 2, Ingredient 1&quot;, &quot;Recipe 2, Ingredient 2&quot;],<br>	  &quot;utensils&quot;: [&quot;Recipe 2, Utensil 1&quot;, &quot;Recipe 2, Utensil 2&quot;],<br>	  &quot;method&quot;: [&quot;Recipe 2, Method step 1&quot;, &quot;Recipe 2, Method step 2&quot;]<br>	}<br>  ]<br>}</pre><p>And imported it in <em>Recipes.vue</em>:</p><pre>&lt;template&gt;<br>  &lt;div class=&quot;recipes&quot;&gt;<br>  &lt;h1&gt;This is the recipes View, within maincolumn, but with a different background colour just to show&lt;/h1&gt;<br>   ...<br>  &lt;/div&gt;<br>&lt;/template&gt;<br><br>&lt;script&gt;<br><strong>  import recipeData from &#39;../json/data.json&#39;</strong><br><br>  export default {<br>    name: &#39;Recipes&#39;<br> }<br><br>&lt;/script&gt;<br><br>&lt;style scoped lang=&quot;scss&quot;&gt;<br>.recipes {<br>  background-color: #cccccc;<br>}<br>&lt;/style&gt;</pre><h4>Tip: use a JSON validator</h4><p>When I started writing my JSON data, I thought I could “go it alone” but quickly found that errors were occurring and I couldn’t easily find the issue in the JSON file. I knew a machine could do a better job so I searched for a JSON validator — there are plenty to choose from but I found <a href="https://jsonlint.com/">https://jsonlint.com</a> to be pretty simple and decent enough. Whenever there were any issues during development, one of the things I always checked was the JSON file — even if I didn’t think it was likely to be related. This saved my bacon a few times.</p><h4>Even more ESLint rules</h4><p>I really need to find a way to change the overall ESLint configuration for the project. The errors were coming up non-stop as soon as I started working on the <em>Recipes.vue file </em>and I found myself spending at least 1 hour on my first morning fiddling around with ESLint rules. Here are the additional rules I added:</p><pre>&quot;no-mixed-spaces-and-tabs&quot;: 0,<br>&quot;space-before-function-paren&quot;: 0,<br>&quot;indent&quot;: 0</pre><p>It felt like I was just chucking fixes at whatever the linter is complaining about, rather than understanding why they should be true or false (or whatever the value is) and which standards I should be adhering to. I had made a note about looking into this in <a href="https://medium.com/@theonico85/building-a-digital-version-of-my-cypriot-recipe-book-part-3-8d193d5c6772">Part 3</a> but I’ve now made a <a href="https://trello.com/c/4yUA7ZuY">Trello card</a> so I don’t forget!</p><h4>Bonus tip: Use Opt + Click in Terminal to place your cursor anywhere</h4><p>Well, this was timely. I spotted this tweet on Monday morning just as I was starting work — and I think it has saved me 20 years’ worth of effort (ha ha).</p><h3>Mihai Leonte on Twitter</h3><p>🤯 Opt + click to place your cursor wherever in Terminal 🤯 And to think that for YEARS I&#39;ve been holding down the arrow keys like a caveman... 🤪 https://t.co/IsWnMsSOk0</p><h3>Displaying the data in the browser</h3><p>I didn’t know exactly how I would display the data in the browser, but I envisaged needing to use some kind of “for” loop or something that says “look at the JSON, and for every item, print out the data within it”. This has always been something that I’ve never really managed to get my head around (not just for this project, but previous ones as well), as I had seen plenty of examples like the one below, but not anything that helped make it clear what it really means:</p><pre>//What do these really mean? For me, the names are too confusing to be able to associate with real-life examples</pre><pre>for <strong>foo</strong> in <strong>bar</strong></pre><pre>OR</pre><pre>for <strong>item</strong> in <strong>items</strong></pre><p>I started with the smallest thing I could think of — the recipe name:</p><pre>&lt;template&gt;<br>  &lt;div class=&quot;recipes&quot;&gt;<br>  &lt;h1&gt;This is the recipes View, within maincolumn, but with a different background colour just to show&lt;/h1&gt;<br>    &lt;ul&gt;<br><strong>      &lt;li v-for=&quot;recipe in recipeData&quot; v-bind:key=&quot;recipe.id&quot;&gt;<br>        {{ recipeData.recipeName }}<br>      &lt;/li&gt;</strong><br>    &lt;/ul&gt;<br>  &lt;/div&gt;<br>&lt;/template&gt;<br><br>&lt;script&gt;<br>  import recipeData from &#39;../json/data.json&#39;<br><br>  export default {<br>    name: &#39;Recipes&#39;,<br><br>    <strong>data() {<br>     return {<br>       recipeData,<br>       recipeName: &#39;&#39;<br>     }</strong><br>   }<br> }<br><br>&lt;/script&gt;<br><br>&lt;style scoped lang=&quot;scss&quot;&gt;<br>.recipes {<br>  background-color: #cccccc;<br>}<br>&lt;/style&gt;</pre><p>I was trying all kinds of things, particularly with what was being included in the data object — and I do still feel like I was doing it quite blindly. I was seeing errors like this one:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*S_gspC-htA5rIWr-2o8y0w.png" /></figure><p>and when I fixed that, I was seeing the view in the browser but it was just displaying a full-stop instead of the actual data:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Yv91SW7G-TTVjVXnhDhpCA.png" /></figure><p>After a lot of trial and error and some <a href="https://twitter.com/theonico85/status/1264871171591471104?s=20">very valuable help from Trys</a>, I had eventually worked the template into a state I was happy with (and also added URL’s into the JSON as I thought they would be useful for the future):</p><pre>&lt;template&gt;<br>  &lt;div class=&quot;recipes&quot;&gt;<br>  &lt;h1&gt;This is the recipes View, within maincolumn, but with a different background colour just to show&lt;/h1&gt;<br>    &lt;h2&gt;Recipe names:&lt;/h2&gt;<br>    &lt;ul&gt;<br>      &lt;li v-for=&quot;recipe in recipeData.recipes&quot; v-bind:key=&quot;recipe.id&quot;&gt;<br>        {{ recipe.recipeName }} (ID: {{ recipe.id }}, URL: {{ recipe.url }})<br>      &lt;/li&gt;<br>    &lt;/ul&gt;<br><br>    &lt;h2&gt;Ingredients:&lt;/h2&gt;<br>    &lt;ul&gt;<br>      &lt;li v-for=&quot;recipe in recipeData.recipes&quot; v-bind:key=&quot;recipe.id&quot;&gt;<br>        {{ recipe.ingredients }}<br>      &lt;/li&gt;<br>    &lt;/ul&gt;<br><br>        &lt;h2&gt;Utensils:&lt;/h2&gt;<br>    &lt;ul&gt;<br>      &lt;li v-for=&quot;recipe in recipeData.recipes&quot; v-bind:key=&quot;recipe.id&quot;&gt;<br>        {{ recipe.utensils }}<br>      &lt;/li&gt;<br>    &lt;/ul&gt;<br><br>        &lt;h2&gt;Methods:&lt;/h2&gt;<br>    &lt;ul&gt;<br>      &lt;li v-for=&quot;recipe in recipeData.recipes&quot; v-bind:key=&quot;recipe.id&quot;&gt;<br>        {{ recipe.method }}<br>      &lt;/li&gt;<br>    &lt;/ul&gt;<br>  &lt;/div&gt;<br>&lt;/template&gt;<br><br>&lt;script&gt;<br>  import recipeData from &#39;../json/data.json&#39;<br><br>  export default {<br>    name: &#39;Recipes&#39;,<br><br>    data() {<br>     return {<br>       recipeData<br>     }<br>   }<br> }<br><br>&lt;/script&gt;<br><br>&lt;style scoped lang=&quot;scss&quot;&gt;<br>.recipes {<br>  background-color: #cccccc;<br>}<br>&lt;/style&gt;</pre><p>In the browser, it looked like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Jj2ZTUukFAaNI56WSgDW7A.png" /></figure><h4>The v-for directive</h4><p>So, I was using a v-for directive but what did it mean? This is my take on it (and I would welcome any corrections if I’ve misunderstood!)</p><p>When using this:</p><pre>&lt;li v-for=&quot;<strong>recipe</strong> in <strong>recipeData.recipes</strong>&quot; v-bind:key=&quot;recipe.id&quot;&gt;<br>   {{ recipe.recipeName }}<br>&lt;/li&gt;</pre><p><em>recipe </em>is the alias you use within the curly braces (I think it can be anything),<em> recipeData </em>is the name you’re assigning the JSON object which you’re importing,<em> </em>and<em> recipes </em>is the name of the array in the JSON object. So essentially it’s this:</p><pre>alias in JSONObject.JSONObjectArray</pre><p>The v-bind:key is required, and from my understanding I can use anything for it and it adds a unique identifier to the data being pulled into the component. I later tried it out with <em>recipe.recipeName</em> and even <em>recipe.ingredients</em>, and I could see these in the markup when using DevTools.</p><h3>Sculpting the app into shape</h3><p>I could feel the momentum now. My next task was to split the <em>Recipes.vue</em> into smaller Views and Components, and work out how to link to each recipe page whilst still using only one View, so that clicking on “Recipe 1” would take you to “Recipe 1” and “Recipe 2” would take you to “Recipe 2” etc. It didn’t make sense to have a separate view for each individual recipe page as all recipe data would be coming from the same place (the <em>data.json</em> file), plus app and data maintenance would quickly become difficult if I took that approach.</p><h4>Splitting the views</h4><p>First of all, I referred back to my earlier sketch: I needed a RecipeDetail View which would contain different sections (Ingredients, Utensils, Method, along with the Recipe Title and an Image, and perhaps other data too). I amended the <em>Recipes.vue</em> file to contain a list of links to all of the recipes (i.e. a component called <em>RecipesList.vue)</em>:</p><pre>&lt;template&gt;<br>  &lt;div class=&quot;recipes&quot;&gt;<br>  &lt;h1&gt;This is the RecipesListing View, within maincolumn, but with a different background colour just to show. It calls the RecipesList component&lt;/h1&gt;<br>    <strong>&lt;RecipesList/&gt;</strong><br>  &lt;/div&gt;<br>&lt;/template&gt;<br><br>&lt;script&gt;<br>  import recipeData from &#39;../json/data.json&#39;<br>  <strong>import RecipesList from &#39;@/components/RecipesList.vue&#39;</strong><br><br>  export default {<br>    name: &#39;Recipes&#39;,<br>    components: {<br>      RecipesList<br>    },<br><br>    data() {<br>     return {<br>       recipeData<br>     }<br>   }<br> }<br><br>&lt;/script&gt;</pre><p>This is the <em>RecipesList.vue</em> component:</p><pre>&lt;template&gt;<br>  &lt;div class=&quot;recipes&quot;&gt;<br>  &lt;h1&gt;This is the RecipesList component&lt;/h1&gt;<br>    &lt;h2&gt;Recipes:&lt;/h2&gt;<br>    &lt;ul&gt;<br>      &lt;li v-for=&quot;recipe in recipeData.recipes&quot; v-bind:key=&quot;recipe.id&quot;&gt;<br>        &lt;a :href=&quot;`#/recipes/${recipe.url}`&quot;&gt;{{ recipe.recipeName }}&lt;/a&gt; (ID: {{ recipe.id }}, URL: {{ recipe.url }})<br>      &lt;/li&gt;<br>    &lt;/ul&gt;<br>  &lt;/div&gt;<br>&lt;/template&gt;<br><br>&lt;script&gt;<br>  import recipeData from &#39;../json/data.json&#39;<br><br>  export default {<br>    name: &#39;RecipesList&#39;,<br><br>    data() {<br>     return {<br>       recipeData<br>     }<br>   }<br> }<br><br>&lt;/script&gt;</pre><p>I then cut and pasted the associated code from <em>Recipes.vue</em> into the individual component files. As an example, <em>RecipeIngredients.vue</em> looked like something like this. I also amended the CSS class at the root of each template so that I can easily differentiate each component, and also hook into it when writing the styles:</p><pre>&lt;template&gt;<br>  &lt;div<strong> class=&quot;recipe-ingredients&quot;</strong>&gt;<br>    &lt;h2&gt;Ingredients:&lt;/h2&gt;<br>    ...<br>  &lt;/div&gt;<br>&lt;/template&gt;<br><br>&lt;script&gt;<br>  export default {<br>    name: &#39;RecipeIngredients&#39;,<br>  }<br><br>&lt;/script&gt;</pre><p>The <em>RecipeDetails.vue</em> file would eventually contain all of the components:</p><pre>&lt;template&gt;<br>  &lt;div class=&quot;recipes&quot;&gt;<br>    &lt;h1&gt;This is recipeDetails View, within maincolumn, but with a different background colour just to show&lt;/h1&gt;<br>    &lt;div&gt;<br><strong>      &lt;RecipeIntro/&gt;<br>      &lt;RecipeIngredients/&gt;<br>      &lt;RecipeUtensils/&gt;<br>      &lt;RecipeMethod/&gt;</strong><br>    &lt;/div&gt;<br>  &lt;/div&gt;<br>&lt;/template&gt;</pre><pre>&lt;script&gt;<br><strong>import recipeData from &#39;../json/data.json&#39;<br>import RecipeIntro from &#39;@/components/RecipeIntro.vue&#39;<br>import RecipeIngredients from &#39;@/components/RecipeIngredients.vue&#39;<br>import RecipeUtensils from &#39;@/components/RecipeUtensils.vue&#39;<br>import RecipeMethod from &#39;@/components/RecipeMethod.vue&#39;</strong></pre><pre>export default {<br>  name: &#39;RecipeDetails&#39;,<br>  components: {<br><strong>    RecipeIntro,<br>    RecipeIngredients,<br>    RecipeUtensils,<br>    RecipeMethod</strong><br>  },</pre><pre>  data() {<br>    return {<br>      recipeData<br>    }<br>  }<br>}</pre><pre>&lt;/script&gt;</pre><pre>&lt;style scoped lang=&quot;scss&quot;&gt;<br>.recipes {<br>  background-color: #cccccc;<br>  border-top: 1px solid #000000;<br>}<br>&lt;/style&gt;</pre><p>At this stage, the app still expected to be looking at <em>Recipes.vue</em> (except now I wanted to refer to it as <em>RecipesList</em>) and I also wanted to make the connection with the <em>RecipeDetails.vue</em> file. So in <em>router/index.js</em> I made the following changes:</p><pre>import Vue from &#39;vue&#39;<br>import VueRouter from &#39;vue-router&#39;<br><br>Vue.use(VueRouter)<br><br>const routes = [<br>  {<br>    path: &#39;/&#39;,<br>    name: &#39;Home&#39;,<br>    component: () =&gt; import(&#39;../views/Home.vue&#39;)<br>  },<br>  {<br>    path: &#39;/recipes&#39;,<br>    <strong>name: &#39;RecipesList&#39;,</strong><br>    <strong>component: () =&gt; import(&#39;../views/Recipes.vue&#39;)</strong><br>  },<br>  {<br><strong>    path: &#39;/recipes/:recipeName&#39;,</strong><br>    <strong>name: &#39;RecipeDetails&#39;,</strong><br>    <strong>component: () =&gt; import(&#39;../views/RecipeDetails.vue&#39;)</strong><br>  }<br>]<br><br>const router = new VueRouter({<br>  routes<br>})<br><br>export default router</pre><p>I made sure the path for RecipeDetails was <em>/recipes.:recipeName</em> as this would then be the basis for making the URL dynamic and linking each recipe as a separate page whilst using one View. In RecipesList.vue, the &lt;a href&gt; link pointed to a dynamic path which matched the path in the Router file. The :href is shorthand for the v-bind:href attribute:</p><pre><strong>&lt;a :href=&quot;`#/recipes/${recipe.url}`&quot;&gt;</strong>{{ recipe.recipeName }}&lt;/a&gt;</pre><p>The Recipes page looked like this, but at this stage even though the links were separate, the data in the Recipe Detail was the same:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lGIBHLlw0JGtw_fzx6xDoA.png" /><figcaption>The Recipes View, displaying links to the individual RecipeDetails (although still with the same data)</figcaption></figure><h4>Linking to each recipe page dynamically</h4><p>This was tricky, and I’m very grateful to Liam for helping me out with this one (<a href="https://twitter.com/theonico85/status/1265229460909023234?s=20">you can see the Twitter thread here</a>).</p><p>From what I had read in various tutorials, it seemed like I needed to do something with props, so at one point I added this into the <em>router/index.js</em> file:</p><pre>{<br>    path: &#39;/recipes/:recipeName&#39;,<br>    name: &#39;RecipeDetails&#39;,<br><strong>    props: true,</strong><br>    component: () =&gt; import(&#39;../views/RecipeDetails.vue&#39;)<br>  }</pre><p>And after some further tinkering my app was looking like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uisgkKdx_aRmcf0ivWLbBQ.png" /></figure><p>Getting closer, but still not quite right. From Liam’s explanation, I realised that I needed to change how I was extracting the recipe data:</p><h3>Liam Hall - Three Bears on Twitter</h3><p>@theonico85 At the moment in RecipeDetails.vue, your recipeData is still all of your recipe&#39;s which you then loop through RecipeIntro components with. You&#39;ll need to extract the unique recipe data from the JSON, you could use a computed property, then remove v-for and :key from RecipeIntro</p><p>He suggested using a computed property in <em>RecipeDetails.vue</em>, which looked like this:</p><pre>export default {<br>  name: &#39;RecipeDetails&#39;,<br>  components: {<br>    RecipeIntro,<br>    RecipeIngredients,<br>    RecipeUtensils,<br>    RecipeMethod<br>  },<br><br>  data() {<br>    return {<br>      recipeData<br>    }<br>  },<br><br>  <strong>computed: {<br>    recipe() {<br>      return this.recipeData.recipes.find(recipe =&gt; recipe.url === this.$route.params.recipeName)<br>    }<br>  }</strong><br>}</pre><p>From my understanding, this meant that we were checking to see if the recipe URL matched the current recipe name (<em>this.$route.params.recipeName</em>) and then displaying the associated data by returning the computed property ‘<em>recipe</em>’. I also had to remove the JSON import from every component file and instead, pass the recipe as a prop and access it that way rather than looping through all of the JSON every time.</p><p>Taking <em>RecipeIngredients.vue</em> as an example again, I passed a recipe prop in <em>RecipeDetails.vue</em>:</p><pre>&lt;template&gt;<br>  &lt;div class=&quot;recipes&quot;&gt;<br>    &lt;h1&gt;This is recipeDetails View, within maincolumn, but with a different background colour just to show&lt;/h1&gt;<br>    &lt;div&gt;<br>      &lt;RecipeIngredients<strong> :recipe=&quot;recipe&quot;</strong>/&gt;<br>    &lt;/div&gt;<br>  &lt;/div&gt;<br>&lt;/template&gt;</pre><p>And in <em>RecipeIngredients.vue</em> I set up the prop by adding this:</p><pre>&lt;script&gt;<br>  export default {<br>    name: &#39;RecipeIngredients&#39;,<br><br><strong>    props: {<br>      recipe: {<br>        required: true,<br>        type: Object<br>      }<br>    }</strong><br>  }<br>&lt;/script&gt;</pre><p>Then in <em>RecipeIngredients.vue</em>, instead of looping through the recipes, I looped through the ingredients from the recipe prop:</p><pre>&lt;template&gt;<br>  &lt;div class=&quot;recipe-ingredients&quot;&gt;<br>    &lt;h2&gt;Ingredients:&lt;/h2&gt;<br>    &lt;ul&gt;<br>      &lt;li <strong>v-for=&quot;(ingredient, index) in recipe.ingredients&quot; :key=&quot;index&quot;</strong>&gt;<br>        <strong>{{ ingredient }}</strong><br>      &lt;/li&gt;<br>    &lt;/ul&gt;<br>  &lt;/div&gt;<br>&lt;/template&gt;</pre><p>And it worked! The page for Recipe1 now displays the correct data and Recipe2 data is displaying on the Recipe2 page, but all of this is coming from one set of Views and Components:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bE_mHAqq34kMInnPQvEIbQ.png" /><figcaption>The page for Recipes1 displaying the correct JSON data in the browser</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*iRcJelrGL4OurT6sGWUKYw.png" /><figcaption>The page for Recipes2 displaying the correct JSON data in the browser</figcaption></figure><p>With this part of the code in particular, I don’t fully understand what I have done to make things work. I <em>think</em> I get it, but I don’t think I could explain it properly! For example, I want to know more about computed properties and the syntax used here:</p><pre>&lt;li <strong>v-for=&quot;(ingredient, index) in recipe.ingredients&quot; :key=&quot;index&quot;</strong>&gt;</pre><p>So I’m going to <a href="https://trello.com/c/bmAXFVCD">read up more about it in due course</a>, starting with Liam’s suggestions:</p><p>I’m pretty chuffed with how the app is coming together now. There is still quite a lot to implement:</p><ul><li>I think my next task will be to <a href="https://trello.com/c/w7biB5hQ">create the full JSON data structure</a> — including titles, descriptions and images.</li><li>Then I’ll <a href="https://trello.com/c/BWm0nAFs">create a new branch with a clean project folder structure</a>, as what I’ve done to-date is really more like mini experiments or spikes and I need to put it all in one place.</li><li>This will also help with <a href="https://trello.com/c/CO9zQxQq">setting up GitHub pages</a> so I can host the app on a URL rather than just on my localhost — it’ll be easier if the branch I deploy has clean code in it. Whilst writing this blog post I noticed that when I run npm run build, it compiles the app to the <em>/dist</em> folder without any issues but I get a blank screen — I’m not sure what that’s about but I suspect I’ll have to resolve it if I want to deploy my <em>/dist</em> folder to GitHub pages! Cue my new <a href="https://trello.com/c/96BY4JlR">Trello card</a>…</li></ul><p>Alongside this, I have quite a lot to read up about:</p><ul><li><a href="https://trello.com/c/4yUA7ZuY">ESLint configurations</a></li><li><a href="https://trello.com/c/bmAXFVCD">Passing data between Vue components</a></li><li><a href="https://trello.com/c/Zb44muVs">Figuring out the config for CSS &amp; JS files</a></li><li><a href="https://trello.com/c/d2jp3TNo">Understanding more about Nuxt</a>, to name a few.</li></ul><p>I hope you found this post interesting and you’ll come back to join me on this journey!</p><p>Am I moving in the right direction? Is there anything else I need to consider for my app and for my learning? Have I completely misunderstood something along the way? Feel free to get in touch on <a href="https://twitter.com/theonico85">Twitter</a> if you have any thoughts/comments/feedback.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7600212e072e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Building a digital version of my Cypriot recipe book (part 3)]]></title>
            <link>https://medium.com/@theonico85/building-a-digital-version-of-my-cypriot-recipe-book-part-3-8d193d5c6772?source=rss-f6006efe1b02------2</link>
            <guid isPermaLink="false">https://medium.com/p/8d193d5c6772</guid>
            <category><![CDATA[side-project]]></category>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[vuejs]]></category>
            <category><![CDATA[learning]]></category>
            <dc:creator><![CDATA[Theo Nicolaou]]></dc:creator>
            <pubDate>Fri, 22 May 2020 14:10:27 GMT</pubDate>
            <atom:updated>2020-06-06T20:56:52.454Z</atom:updated>
            <content:encoded><![CDATA[<p>In 1996, when I was in Year 6 and finishing Primary school, one of my half-term targets was about Cypriot cooking. I made a recipe book — “Theo’s Book of Cypriot Recipes”. I will eventually share the actual recipes, but first I am going to build a digital version using modern web technologies — and will be documenting my journey.</p><p>In <a href="https://medium.com/@theonico85/building-a-digital-version-of-my-cypriot-recipe-book-part-1-94530344acde">Part 1</a>, I considered the scope of the project in terms of functionality and what I wanted to learn. In <a href="https://medium.com/@theonico85/building-a-digital-version-of-my-cypriot-recipe-book-part-2-fc6d1a4889ab">Part 2</a>, I started scratching at the surface by creating a Hello World project and a starter project with the Vue CLI. I ended with a lot of unanswered questions and things to investigate further — and in this blog post (Part 3) I will talk about how I found the answers to some of those, along with the progress I made in other areas of the project. It’s quite a long blog post, so grab a beverage and let’s get cracking!</p><p>The questions I had from Part 2 are listed below:</p><ol><li>How/where is Webpack configured?</li><li>How/where is PWA support configured?</li><li>How/where is <strong>HtmlWebpackPlugin</strong> set?</li><li>How/where is <strong>BASE_URL</strong> set?</li></ol><p>Alongside finding answers to these, I also wanted to set a goal for progressing the project over the course of the week. I’ve allocated myself three mornings a week for professional development — which includes this side-project, but could be for other things too — so I needed to be realistic about my time. Looking at my <a href="https://trello.com/b/1ypiGRW1/digital-cypriot-recipe-book">project Trello board</a>, I decided to pick up the following tasks:</p><ol><li>How can I modify the Vue CLI starter project templates and folder structure to suit my project? (<a href="https://trello.com/c/tbsKpo1m">see Trello card here</a>).</li><li>Clarify: should I be using CSS Modules / Styled Components / Single File Components for styling? (<a href="https://trello.com/c/3gnv38sd">see Trello card here</a>).</li><li>Stretch goal: set up JSON file and work out how to display data (<a href="https://trello.com/c/sOMzLEEH">see Trello card here</a>).</li></ol><p>I figured that if I could get some answers, and at a minimum complete Task 1 all this week, then I would be making good progress.</p><p>I also had some remaining research/questions from my Part 1 blog post but I’ll just have to find some spare time to read up about these:</p><ol><li>What is Nuxt? Do I need it for this project? (<a href="https://trello.com/c/d2jp3TNo">see Trello card here</a>)</li><li>Finish comparing React and Vue (<a href="https://trello.com/c/IZ6C13M3">see Trello card here</a>)</li></ol><h3>Finding answers to my questions</h3><h4><strong>1. How/where is Webpack configured?</strong></h4><p>It’s amazing what a difference it makes when you have just a little more time and a little more headspace to work something out. In <a href="https://medium.com/@theonico85/building-a-digital-version-of-my-cypriot-recipe-book-part-2-fc6d1a4889ab">Part 2</a>, one of my lessons learnt was to keep my focus, and another was to take a bit more time to absorb information. I concentrated just on finding the answer to this question about Webpack, and an initial answer is that the default Vue CLI starter project only includes Babel &amp; ESLint, so that might explain why Webpack and PWA are not there. I realised that it was in the <a href="https://cli.vuejs.org/guide/creating-a-project.html#vue-create">Vue documentation all along</a>. It was also very well explained in this <a href="https://www.sitepoint.com/vue-cli-intro/">Sitepoint tutorial for setting up a Vue CLI project</a> (good ol’ Sitepoint, I forgot how good their site is!)</p><h4>2. How/where is PWA support configured?</h4><p>As mentioned, PWA support is also not included by default in the Vue CLI project but it appears that it can be configured via the <a href="https://github.com/vuejs/vue-cli/tree/dev/packages/%40vue/cli-plugin-pwa">cli-plugin-pwa Vue Plugin</a> — I created a <a href="https://trello.com/c/yCEqPeTu">Trello card</a> for this, as it is one to investigate at a later date.</p><h4>Trying out a custom Vue CLI starter project</h4><p>Now that I had more information about the Vue CLI project and it’s default settings, I decided to try creating another Vue CLI project — this time with a custom configuration. In Terminal, I branched off <em>master </em>and checked out a new branch to start a custom Vue CLI project (you can see <a href="https://github.com/theonicolaou/digital-cypriot-recipe-book/tree/vue-cli-app-custom">the branch and all the changes I made, in GitHub</a>).</p><p>I started the process as I did before, with this:</p><pre>vue create vue-cli-app-custom</pre><p>And I chose the option to manually select features:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/625/1*tt0Lu1pqHyZk6zBgoFnY_w.png" /><figcaption>A screenshot of my Terminal, with the option to manually select features when generating a new Vue CLI project</figcaption></figure><p>I took a guess and chose a bunch of features — I wasn’t really sure if I needed TypeScript or Vuex, and for now decided not to included Unit Testing or E2E Testing — but my assumption is that I can add all of these in later if necessary:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/612/1*e8vqyy8Ef9Y6FH8-xKYKxQ.png" /><figcaption>A screenshot of my Terminal, with a list of features available to be added into a new Vue CLI project</figcaption></figure><p>This is a screenshot of the features I selected:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/973/1*2ankmnWlNQjipUsRQKiSMg.png" /><figcaption>A screenshot of my Terminal, with all of the features selected for the custom Vue CLI project</figcaption></figure><p>Overall, this config seemed to work pretty well but the one feature that I think may need some tweaking is the Linter/Formatter config (more on this later in this post).</p><p>So, this explains why PWA support and Webpack were not included in my Vue CLI starter project. In terms of Webpack itself, the <a href="https://cli.vuejs.org/guide/webpack.html#simple-configuration">Vue documentation states that this config can be tweaked via the vue.config.js file</a>. I still want to get more clarity about this as it still feels like too much of a “black box” — but maybe I’m missing something…!</p><p>Once I had the project up and running, I started the development server:</p><pre>npm run serve</pre><p>I navigated to <em>localhost:8080</em> and I could see the default page with the default title. It all looked relatively familiar, though there were a few more files in the sidebar of my IDE. I could see <em>registerserviceworker.js</em>, which has the basics of the PWA support I was looking for, <em>router/index.js</em>, which showed me the ability to have more than one page or screen in the app, and I also noticed that <em>App.vue</em> looked different. The original file looked like this:</p><pre>&lt;template&gt;<br>  &lt;div id=&quot;app&quot;&gt;<br>    &lt;img alt=&quot;Vue logo&quot; src=&quot;./assets/logo.png&quot;&gt;<br>    &lt;HelloWorld msg=&quot;Welcome to Your Vue.js App&quot;/&gt;<br>  &lt;/div&gt;<br>&lt;/template&gt;<br><br>&lt;script&gt;<br>import HelloWorld from &#39;./components/HelloWorld.vue&#39;<br><br>export default {<br>  name: &#39;App&#39;,<br>  components: {<br>    HelloWorld<br>  }<br>}<br>&lt;/script&gt;<br><br>&lt;style&gt;<br>#app {<br>  font-family: Avenir, Helvetica, Arial, sans-serif;<br>  -webkit-font-smoothing: antialiased;<br>  -moz-osx-font-smoothing: grayscale;<br>  text-align: center;<br>  color: #2c3e50;<br>  margin-top: 60px;<br>}<br>&lt;/style&gt;</pre><p>And the new file looked like this:</p><pre>&lt;template&gt;<br>  &lt;div id=&quot;app&quot;&gt;<br>    &lt;div id=&quot;nav&quot;&gt;<br>      &lt;router-link to=&quot;/&quot;&gt;Home&lt;/router-link&gt; |<br>      &lt;router-link to=&quot;/about&quot;&gt;About&lt;/router-link&gt;<br>    &lt;/div&gt;<br>    &lt;router-view/&gt;<br>  &lt;/div&gt;<br>&lt;/template&gt;<br><br>&lt;style lang=&quot;scss&quot;&gt;<br>#app {<br>  font-family: Avenir, Helvetica, Arial, sans-serif;<br>  -webkit-font-smoothing: antialiased;<br>  -moz-osx-font-smoothing: grayscale;<br>  text-align: center;<br>  color: #2c3e50;<br>}<br><br>#nav {<br>  padding: 30px;<br><br>  a {<br>    font-weight: bold;<br>    color: #2c3e50;<br><br>    &amp;.router-link-exact-active {<br>      color: #42b983;<br>    }<br>  }<br>}<br>&lt;/style&gt;</pre><p>The biggest difference I could see was the use of router-link, to allow navigation. I didn’t want to lose my focus too much so I time-boxed a quick experiment with the routes so I could see the effect my changes would make.</p><ol><li>In <em>router/index.html, </em>I changed the path of the About page, and the name:</li></ol><pre>import Vue from &#39;vue&#39;<br>import VueRouter from &#39;vue-router&#39;<br>import Home from &#39;../views/Home.vue&#39;</pre><pre>Vue.use(VueRouter)</pre><pre>const routes = [<br>  {<br>    path: &#39;/&#39;,<br>    name: &#39;Home&#39;,<br>    component: Home<br>  },<br>  {<br>    <strong>path: &#39;/abouttttttt&#39;,</strong><br>    <strong>name: &#39;Aboutytthjn&#39;,</strong><br>    // route level code-splitting<br>    // this generates a separate chunk (about.[hash].js) for this route<br>    // which is lazy-loaded when the route is visited.<br>    component: () =&gt; import(/* webpackChunkName: &quot;about&quot; */ &#39;../views/About.vue&#39;)<br>  }<br>]</pre><pre>const router = new VueRouter({<br>  routes<br>})</pre><pre>export default router</pre><p>2. I also changed the router-link path in <em>App.vue </em>to match:</p><pre>&lt;template&gt;<br>  &lt;div id=&quot;app&quot;&gt;<br>    &lt;div id=&quot;nav&quot;&gt;<br>      &lt;router-link to=&quot;/&quot;&gt;Home&lt;/router-link&gt; |<br>      <strong>&lt;router-link to=&quot;/abouttttttt&quot;&gt;About&lt;/router-link&gt;</strong><br>    &lt;/div&gt;<br>    &lt;router-view/&gt;<br>  &lt;/div&gt;<br>&lt;/template&gt;</pre><pre>&lt;style lang=&quot;scss&quot;&gt;<br>#app {<br>  font-family: Avenir, Helvetica, Arial, sans-serif;<br>  -webkit-font-smoothing: antialiased;<br>  -moz-osx-font-smoothing: grayscale;<br>  text-align: center;<br>  color: #2c3e50;<br>}</pre><pre>#nav {<br>  padding: 30px;</pre><pre>a {<br>    font-weight: bold;<br>    color: #2c3e50;</pre><pre>&amp;.router-link-exact-active {<br>      color: #42b983;<br>    }<br>  }<br>}<br>&lt;/style&gt;</pre><p>I could see my changes instantly, as the hot-reload included within the VUE CLI project was doing it’s thing (although I couldn’t see any reference to the change of the <em>name </em>property so I’m assuming that is just a reference rather than something that is being used by the app):</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/968/1*6KxJAQIl6Q6qpviSYab_wg.png" /><figcaption>A screenshot of my Vue CLI custom project, with amended route for the About page</figcaption></figure><p>Horrah! Finally getting somewhere — and more to investigate on this in due course. On to my remaining questions:</p><h4><strong>3. How/where is HtmlWebpackPlugin set?</strong></h4><p>It took a bit of digging and understanding, but I found that <em>HtmlWebpackPlugin</em> is being set via the Pages object in <em>vue.config.js. </em>Initially I got the impression that this file is created at some point when the Vue CLI project is generated, but it wasn’t in my codebase so I created a new one. The <a href="https://cli.vuejs.org/config/#pages">Vue docs</a> say that by configuring the Pages object I would essentially be building the app in multi-page mode. It sounded like this might cause a bit of a conflict with using <em>BASE_URL</em> (more on this later) but I wanted to modify <em>HtmlWebpackPlugin.options.title</em> so I carried on. I was able to do this by setting <em>entry </em>and <em>title</em>:</p><pre>// vue.config.js<br>module.exports = {<br>  pages: {<br>    index: {<br>        entry: ‘src/main.js’,<br>        title: ‘This is the title’<br>    }<br>  }<br>}</pre><p>I could see the changes — but not in development mode! It took me a while to work out that I had to run npm run build to see these in the browser, with the files being generated in the dist folder. Maybe this was documented somewhere but I hadn’t spotted it. Anyway, I ran the command in a new Terminal window and waited for it to build:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/714/1*iMT-np6nPRaIwnLqmAcgHQ.png" /><figcaption>A screenshot of the output in Terminal when running “npm run build”</figcaption></figure><p>And checked the title using Firefox DevTools:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/359/1*ro9a-l-p5XG-OYD5Nj70MA.png" /><figcaption>A screenshot of Firefox DevTools showing the modified &lt;title&gt; element</figcaption></figure><p>I couldn’t tell where all of those new files listed in the Terminal window were coming from — they must be configured somewhere — but again I decided to leave this for another day, as time was tight.</p><p>Another quick thing I wanted to try was adding some styles into one of the Views, to make sure it compiles. I added some very basic CSS into <em>About.vue</em>, but it threw an error referring to the use of tabs. This was related to the ESLint config, which I amended.</p><p>Here are the changes in the <em>About.vue</em> file:</p><pre>&lt;template&gt;<br>  &lt;div class=&quot;about&quot;&gt;<br>    &lt;h1&gt;This is an about page&lt;/h1&gt;<br>  &lt;/div&gt;<br>&lt;/template&gt;</pre><pre><strong>&lt;style scoped lang=&quot;scss&quot;&gt;<br> .about {<br>   background-color: #ff0066;<br> }<br>&lt;/style&gt;</strong></pre><p>And in the <em>.eslintrc.</em>js file:</p><pre>module.exports = {<br>  root: true,<br>  env: {<br>    node: true<br>  },<br>  extends: [<br>    &#39;plugin:vue/essential&#39;,<br>    &#39;<a href="http://twitter.com/vue/standard">@vue/standard</a>&#39;<br>  ],<br>  parserOptions: {<br>    parser: &#39;babel-eslint&#39;<br>  },<br>  rules: {<br>    &#39;no-console&#39;: process.env.NODE_ENV === &#39;production&#39; ? &#39;warn&#39; : &#39;off&#39;,<br>    &#39;no-debugger&#39;: process.env.NODE_ENV === &#39;production&#39; ? &#39;warn&#39; : &#39;off&#39;,<br>    <strong>&quot;no-tabs&quot;: 0</strong><br>  }<br>}</pre><p>And the outcome was this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UxlITZCKYTS_RzJ79Rbm1w.png" /><figcaption>A screenshot of some basic style changes made to the About page in the Vue CLI custom project</figcaption></figure><h4><strong>4. How/where is BASE_URL set?</strong></h4><p>I think this is a bit of a funny one. The <a href="https://cli.vuejs.org/config/#baseurl">Vue docs</a> say that <em>BASE_URL</em> is deprecated so you should use <em>publicPath</em>. No problem, except that the docs also state <a href="https://cli.vuejs.org/config/#publicpath">some limitations of using publicPath</a> — including if you are using the Pages option to build a multi-page app (which I am — or at least I think I am!). Looking beyond the scope of my work for this week, I want to set up GitHub Pages so I can deploy the app via GitHub — and after a quick glance <a href="https://cli.vuejs.org/guide/deployment.html#github-pages">at the docs for this</a>, I could see that <em>publicPath</em> needs to be used for this as well, So I’m not really sure what to do here!</p><h3>Remaining tasks for the week</h3><p>I was pretty happy with my progress as I had found out most of the answers I was looking for, so decided to make a start on the remaining tasks for the week.</p><p>I checked out a new branch, but this time instead of branching off from <em>m</em>aster, I branched off <em>vue-cli-app-custom </em>as I had more to work with from this branch. You can see all of the changes I made in this branch <a href="https://github.com/theonicolaou/digital-cypriot-recipe-book/tree/basic-template-structure">in GitHub</a>.</p><h4>1. Modifying the Vue CLI starter project templates and folder structure</h4><p>My goal was to work out how to change the starter project templates and folder structure so that it matches something closer to my app structure. But I hadn’t really defined what that looked like, so I sketched out a rough template structure:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*U5MxQOObtUt49ADDY81Kyw.jpeg" /><figcaption>A photo of my rough sketch of a template structure for the app</figcaption></figure><p>Almost immediately after I had done this, I had questions — so I started making some notes (which you can see in the photo above). I had a feeling the structure might change so I decided to just carry on for the time being.</p><p>I was using the Vue CLI starter project files as a basis, so every time I wanted to change a template I made a copy of it and renamed the original with underscore. This meant it would not be referenced anywhere in the deployed app:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/272/1*TxtXxhY9mAvz87tBqItKjA.png" /><figcaption>A screenshot of the files and folders in Sublime, with original files renamed with an underscore for easy reference</figcaption></figure><p>Initially, this did cause a few errors — I think I changed too many things at once — so I took it step-by-step and started listing the new components and Views in <em>App.vue. </em>I<em> </em>concentrated first on the Header, as I knew that once I had worked out how to display it then the same could be applied to the other sections:</p><pre>&lt;template&gt;<br>  &lt;div id=&quot;app&quot;&gt;<br>    This is the App View<br>    &lt;Header/&gt;<br>  &lt;/div&gt;<br>&lt;/template&gt;</pre><pre>&lt;script&gt;<br>// @ is an alias to /src<br>import Header from &#39;@/views/AppHeader.vue&#39;</pre><pre>export default {<br>  name: &#39;app&#39;,<br>  components: {<br>    Header<br>  }<br>}<br>&lt;/script&gt;</pre><p>I did a bit of reading about Single File Components, and decided this was the format to use for each of the Views and Components as it seems like that is the most common and recommended way to write code in Vue. I found <a href="https://vueschool.io/articles/vuejs-tutorials/structuring-vue-components/">this VueSchool tutorial about structuring Vue components</a>, which gave me enough of an idea about how to start, then set up the <em>AppHeader.vue</em> file itself which is being referred to in the <em>App.vue</em> file:</p><pre>&lt;template&gt;<br>  &lt;div id=&quot;header&quot;&gt;<br>   &lt;header&gt;This is the header&lt;/header&gt;<br>  &lt;div id=&quot;nav&quot;&gt;<br>   &lt;router-link to=&quot;/&quot;&gt;Home&lt;/router-link&gt; |<br>   &lt;router-link to=&quot;/recipes&quot;&gt;Recipes&lt;/router-link&gt;<br>  &lt;/div&gt;<br>  &lt;/div&gt;<br>&lt;/template&gt;</pre><pre>&lt;script&gt;<br>export default {<br>  name: &#39;Header&#39;<br>}<br>&lt;/script&gt;</pre><pre>&lt;style lang=&quot;scss&quot;&gt;<br> #header {<br>  background-color: cyan;<br> }<br>&lt;/style&gt;</pre><p>I was getting a lot of errors from the start — for example, <em>‘The template root requires exactly one element’</em>, and <em>‘The component has been registered but not used’</em> so I took a step back and copied the <em>HelloWorld.vue</em> code into the <em>AppHeader.vue</em> template. This worked! Must be something I did in my file, then. So I started commenting everything out, then slowly replaced it with my own code so I could see what was causing errors.</p><p>Once that was resolved, I edited the <em>router/index.js</em> file so that any link in the nav pointed to a corresponding View:</p><pre>import Vue from &#39;vue&#39;<br>import VueRouter from &#39;vue-router&#39;</pre><pre>Vue.use(VueRouter)</pre><pre>const routes = [<br>  {<br>    path: &#39;/&#39;,<br>    name: &#39;Home&#39;,<br>    component: () =&gt; import(&#39;../views/Home.vue&#39;)<br>  },<br>  {<br>    path: &#39;/recipes&#39;,<br>    name: &#39;Recipes&#39;,<br>    component: () =&gt; import(&#39;../views/Recipes.vue&#39;)<br>  }<br>]</pre><pre>const router = new VueRouter({<br>  routes<br>})</pre><pre>export default router</pre><p>In all honesty, I don’t really know if this is the right way to set up the app! But it was starting to work. I could navigate between the Home and Recipes views by clicking on the links!</p><p>I then moved onto the <em>MainColumn.vue</em> file but I found myself getting confused with this. For some reason, the content inside <em>MainColumn.vue</em> was being duplicated in the app and was displaying regardless of which View I had navigated to. I think my code looked something like the below but I couldn’t see what the problem was, so I decided to comment out the references to <em>MainColumn</em> View for simplicity and come back to it:</p><pre>&lt;template&gt;<br>  &lt;div id=&quot;app&quot;&gt;<br>    This is the App View<br>    &lt;Header/&gt;<br>    <strong>&lt;MainColumn/&gt;</strong><br>    &lt;router-view/&gt;<br>    &lt;Footer/&gt;<br>  &lt;/div&gt;<br>&lt;/template&gt;</pre><p>As I was creating more and more <em>.vue</em> files I thought it would be handy to set up better syntax highlighting in Sublime Text 3, to save me from having to configure it on a per-file basis (the default was Plain Text). This is how I did it:</p><ol><li>In Sublime, I opened the Command Palette (Shift + Cmd + P on a Mac)</li><li>I selected ‘Install Package’.</li><li>I searched for “Vue” and found the Vue Syntax Highlighter. It installed after a few seconds and any new .vue files opened with the correct highlighting. Any existing files had to be closed for the changes to take effect.</li></ol><p>I was also encountering quite a few ESLint errors — for example, <em>‘Mixed spaces and tabs’</em>, <em>‘Newline required at end of file but not found’:</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/933/1*c7mtiFYXiLnJa3-IylPguw.png" /><figcaption>A screenshot of ESLint errors in Terminal</figcaption></figure><p>I guess this is something to do with the Standard Linter feature I chose when I set up the project. They were cropping up quite often so really I could do with changing that setting to something else which would be a bit more lenient if possible, but in the short-term I found that I could add options into the <em>eslintrc.js</em> file:</p><pre>module.exports = {<br>  root: true,<br>  env: {<br>    node: true<br>  },<br>  extends: [<br>    &#39;plugin:vue/essential&#39;,<br>    &#39;<a href="http://twitter.com/vue/standard">@vue/standard</a>&#39;<br>  ],<br>  parserOptions: {<br>    parser: &#39;babel-eslint&#39;<br>  },<br>  rules: {<br>    &#39;no-console&#39;: process.env.NODE_ENV === &#39;production&#39; ? &#39;warn&#39; : &#39;off&#39;,<br>    &#39;no-debugger&#39;: process.env.NODE_ENV === &#39;production&#39; ? &#39;warn&#39; : &#39;off&#39;,<br>    &quot;no-tabs&quot;: 0,<br><strong>    &quot;eol-last&quot;: 0,<br>    &quot;no-mixed-spaces-and-tabs&quot;: 0</strong><br>  }<br>}</pre><p>After fixing all the other components and views, I used the Vue Firefox plugin to inspect the Vue code within the browser and realised that the page content was loading within the &lt;Header/&gt;. This was a little odd as I expected it to be a separate section of the page.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cXPFi-WXxTHOWuoWM04yYA.png" /><figcaption>A screenshot of the Vue Firefox plugin, showing the Vue app code within the browser</figcaption></figure><p>Suddenly, I had a Eureka moment — this is where the MainColumn View comes into play! I reinstated the reference to <em>MainColumn.vue </em>in <em>App.vue:</em></p><pre>&lt;template&gt;<br>  &lt;div id=&quot;app&quot;&gt;<br>    This is the App View<br>    &lt;Header/&gt;<br>    <strong>&lt;MainColumn/&gt;</strong><br>    &lt;Footer/&gt;<br>  &lt;/div&gt;<br>&lt;/template&gt;</pre><pre>&lt;script&gt;<br>// @ is an alias to /src<br>import Header from &#39;@/views/AppHeader.vue&#39;<br><strong>import MainColumn from &#39;@/views/MainColumn.vue&#39;</strong><br>import Footer from &#39;@/views/AppFooter.vue&#39;</pre><pre>export default {<br>  name: &#39;app&#39;,<br>  components: {<br>    Header,<br>    MainColumn,<br>    Footer<br>  }<br>}<br>&lt;/script&gt;</pre><p>And in <em>MainColumn.vue</em> itself, I only referenced &lt;router-view/&gt;, which (from what I could tell) meant that the View that was loaded in <em>MainColumn</em> depended on whatever Vue Router was pointing to:</p><pre>&lt;template&gt;<br>  &lt;div class=&quot;maincolumn&quot;&gt;<br>   This is main column<br>   <strong>&lt;router-view/&gt;</strong><br>  &lt;/div&gt;<br>&lt;/template&gt;</pre><pre>&lt;style lang=&quot;scss&quot;&gt;<br> .maincolumn {<br>    background-color: orange;<br> }<br>&lt;/style&gt;</pre><p>So in this case, it would point to <em>Home.vue</em> or <em>Recipes.vue </em>and I could add more in due course as appropriate.</p><p>My final touch for this task was to add background colours in each of the Views to make it clear to myself which ones are displaying:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0wIbXmfu2BxNCO3zbkmZ0Q.png" /></figure><p>Very colourful, and really starting to take shape now.</p><h4>2. Should I be using CSS Modules / Styled Components / Single File Components for styling?</h4><p>I was fast running out of time, which meant I wouldn’t be able to get a definitive answer for how to style my app this week. I knew I would be using Single File Components, but I was still a bit confused about the difference between CSS Modules and Styled Components — and also, what about regular SCSS? I did a very quick Google search and <a href="https://vueschool.io/articles/vuejs-tutorials/globally-load-sass-into-your-vue-js-applications">found this on VueSchool</a> which indicates a way to compile SCSS partials globally. I’ll have to investigate that another time!</p><p>I’m really pleased with my progress this week. It was a bit of a hard slog, particularly working through the Vue errors and working out why the <em>MainColumn</em> content was duplicating but I’m glad I got through it! I didn’t manage to look at setting up data in a JSON file but I knew this would be a stretch goal anyway.</p><p>I now have some additional questions which I have logged in my Trello board. Here they are for easy reference:</p><ol><li>Where is the config for the JS &amp; CSS files being generated when using npm run build?</li><li>I’m still not 100% clear about Webpack config location — perhaps linked to Q1?</li><li>Seems like I’ll need to use <em>publicPath</em> for GitHub Pages, but <em>publicPath</em> should be avoided when using Pages in <em>vue.config.js </em>— so what to do? Or does this not matter?</li><li>Can I reset the ESLint config to be more lenient or will I need to continue adding rules as and when the errors occur?</li></ol><p>I hope you found this post interesting and you’ll come back to join me on this journey! <a href="https://medium.com/@theonico85/building-a-digital-version-of-my-cypriot-recipe-book-part-4-7600212e072e">You can read Part 4 here</a>.</p><p>Am I moving in the right direction? Is there anything else I need to consider for my app and for my learning? Have I completely misunderstood something along the way? Can you help answer any of my questions above? Feel free to get in touch on <a href="https://twitter.com/theonico85">Twitter</a> if you have any thoughts/comments/feedback.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8d193d5c6772" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Building a digital version of my Cypriot recipe book (part 2)]]></title>
            <link>https://medium.com/@theonico85/building-a-digital-version-of-my-cypriot-recipe-book-part-2-fc6d1a4889ab?source=rss-f6006efe1b02------2</link>
            <guid isPermaLink="false">https://medium.com/p/fc6d1a4889ab</guid>
            <category><![CDATA[vuejs]]></category>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[side-project]]></category>
            <category><![CDATA[learning]]></category>
            <dc:creator><![CDATA[Theo Nicolaou]]></dc:creator>
            <pubDate>Tue, 12 May 2020 15:21:41 GMT</pubDate>
            <atom:updated>2020-06-06T20:55:55.353Z</atom:updated>
            <content:encoded><![CDATA[<p>In 1996, when I was in Year 6 and finishing Primary school, one of my half-term targets was about Cypriot cooking. I made a recipe book — “Theo’s Book of Cypriot Recipes”. I am going to build a digital version using modern web technologies — and will be documenting my journey.</p><p>This is Part 2— you can <a href="https://medium.com/@theonico85/building-a-digital-version-of-my-cypriot-recipe-book-part-1-94530344acde">read Part 1 here</a>.</p><p>In this blog post I’m going to walk through the progress I made on my project and the challenges I faced. I think I’ve learned quite a few lessons just from a few hours of attempting to get set up — and hopefully they will be helpful for you too.</p><p>Today I created a <a href="https://trello.com/b/1ypiGRW1/digital-cypriot-recipe-book">Trello board</a> for my project and started to dig around the Vue documentation to get started. I had considered trying to build a basic web app using vanilla JavaScript or jQuery but I decided to just go for it and see what I could do with Vue. I must admit I found myself feeling quite frustrated today — I didn’t make anywhere near as much progress as I would have liked and found myself down many rabbit holes very quickly! I can see why someone could feel quite overwhelmed by learning a new framework or technology, but at the same time I think I just need to find a better way to focus.</p><h3><strong>Starting with Hello World</strong></h3><p>The <a href="https://vuejs.org/v2/guide/">Vue documentation</a> is pretty comprehensive but I found myself getting both distracted and a little confused about where to actually start. It suggests <a href="https://vuejs.org/v2/guide/#Getting-Started">using the Hello World example</a> which I looked at but I think I got impatient/jumped ahead too quickly as I then started looking at the <a href="https://cli.vuejs.org/guide/installation.html">Vue CLI docs</a> and wondering whether I should create a starter app via that method instead. I wasn’t sure if I was trying to run before I could walk so I started digging around the docs and got distracted by other information — I started looking at Nuxt, Webpack, comparisons between React and Vue, all kinds of things — when really I should have just stuck to the task at hand!</p><p>Eventually, I snapped out of it and created a <a href="https://github.com/theonicolaou/digital-cypriot-recipe-book">Git repo</a> with a README and a gitignore file. Horrah, I’ve finally written some sort of code! Then I branched off <em>master </em>and set up a very basic app using <a href="https://scrimba.com/p/pXKqta/cQ3QVcr">this example</a> from the Vue docs. I changed a couple of things so that it displayed a greeting and a person’s name — horrah, it worked! <a href="https://github.com/theonicolaou/digital-cypriot-recipe-book/tree/vue-hello-world">You can see it here</a>. That felt really good, despite it being very, very basic.</p><p>Then, I decided to move on to the Vue CLI version so I branched off <em>master</em> again. After a quick Google search, I found <a href="https://dev.to/devmount/how-to-kickstart-a-vuejs-project-2mj5">this dev.to tutorial</a> and <a href="https://flaviocopes.com/vue-first-app/">this one</a>, both of which might be slightly out of date but provide more in-depth explanations about the files within the CLI starter project compared to the CLI docs themselves. Initially, I followed the dev.to tutorial but I quickly got stuck — Vue wasn’t installing, it was throwing errors…plus I was hungry. After banging my head against the desk (and having some lunch) I realised that my Node version wasn’t up to date, so I updated this and managed to install Vue. I then created a starter project with the default configurations (<a href="https://github.com/theonicolaou/digital-cypriot-recipe-book/tree/vue-cli-app">you can see it here</a>). I did start to play around with it a little, which I’ll talk about further down, but first, here are my lessons learnt:</p><ul><li><strong>Keep your focus (or, at least try to)</strong>: it’s very easy to become distracted and possibly overwhelmed when you’re learning something new. I was getting into all sorts of rabbit holes but when I realised this and took a step back, and just started with the smallest thing (i.e. creating a Git repo), suddenly I started to see a path ahead and I felt much better.</li><li><strong><em>Read</em> the things you are reading</strong>: yes, I meant to write that. If you are reading docs, actually <em>read</em> them. If you are following a tutorial, actually <em>follow</em> it. I got caught out as I decided to skip ahead a little whilst following the tutorial to set up the Vue CLI app, and by doing so I missed the note (in quite a big font) about checking your Node version. This added a lot of time and head-scratching. So a lesson for me is to just take my time a little more and absorb the information — in the long run, I expect I’ll save time and effort!</li><li><strong>Don’t try and work when you’re hungry</strong>: I usually have some kind of snack in my hand (or mouth) but today I didn’t and quickly found myself to be running out of steam. Plus, I wasn’t drinking anywhere near enough water. So if I’m going to be working on this project regularly, I need to set myself up in a better way.</li></ul><h3>My Vue CLI starter project</h3><p>I started digging around the starter project but not for very long — I basically just kept updating one of the .vue files and watching the instant reload (very cool). But, I ended up with more questions than answers. Mainly, in the <em>index.html</em> file there are a couple of variables (<em>htmlWebpackPlugin</em> and <em>BASE_URL</em>) but I couldn’t find where they are being set:</p><pre>&lt;!DOCTYPE html&gt;<br>&lt;html lang=&quot;en&quot;&gt;<br>  &lt;head&gt;<br>    &lt;meta charset=&quot;utf-8&quot;&gt;<br>    &lt;meta http-equiv=&quot;X-UA-Compatible&quot; content=&quot;IE=edge&quot;&gt;<br>    &lt;meta name=&quot;viewport&quot; content=&quot;width=device-width,initial-scale=1.0&quot;&gt;<br>    &lt;link rel=&quot;icon&quot; href=&quot;&lt;%= <strong>BASE_URL</strong> %&gt;favicon.ico&quot;&gt;<br>    &lt;title&gt;&lt;%= <strong>htmlWebpackPlugin</strong>.options.title %&gt;&lt;/title&gt;<br>  &lt;/head&gt;<br>  &lt;body&gt;<br>    &lt;noscript&gt;<br>      &lt;strong&gt;We&#39;re sorry but &lt;%= <strong>htmlWebpackPlugin</strong>.options.title %&gt; doesn&#39;t work properly without JavaScript enabled. Please enable it to continue.&lt;/strong&gt;<br>    &lt;/noscript&gt;<br>    &lt;div id=&quot;app&quot;&gt;&lt;/div&gt;<br>    &lt;!-- built files will be auto injected --&gt;<br>  &lt;/body&gt;<br>&lt;/html&gt;</pre><p>I checked the Vue docs and found a short explanation about the <a href="https://cli.vuejs.org/config/#vue-config-js">htmlWebpackPlugin in the vue.config.js file</a> (which isn’t included in the default starter project files) but the same documentation also says that <a href="https://cli.vuejs.org/config/#baseurl">BASE_URL is deprecated</a> — so I wonder why it is still included in the starter project file? As per my lessons learnt above, I need to read up a bit more about the starter project but at a glance it didn’t seem obvious to me. Same applies for Webpack and some indication of PWA support — I expected them to be part of the default files but it wasn’t. I also wonder if the <em>vue.config.js</em> file would be included if I manually configured the starter project rather than using the default.</p><p>Reflecting back on my session today, I know I have quite a long road ahead — but I will get there, even if I take it one step at a time. And although I didn’t cover everything today that I wanted to (I expected to have fully set up and understood the Vue CLI starter project by the end of it, whereas I still have quite a few unanswered questions), I’ve now got enough to think about and to look forward to.</p><p>I hope you found this post interesting and you’ll come back to join me on this journey! <a href="https://medium.com/@theonico85/building-a-digital-version-of-my-cypriot-recipe-book-part-3-8d193d5c6772">You can read Part 3 here</a>. Feel free to get in touch on <a href="https://twitter.com/theonico85">Twitter</a> if you have any thoughts/comments/feedback.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fc6d1a4889ab" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Building a digital version of my Cypriot recipe book (part 1)]]></title>
            <link>https://medium.com/@theonico85/building-a-digital-version-of-my-cypriot-recipe-book-part-1-94530344acde?source=rss-f6006efe1b02------2</link>
            <guid isPermaLink="false">https://medium.com/p/94530344acde</guid>
            <category><![CDATA[learning]]></category>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[vuejs]]></category>
            <category><![CDATA[react]]></category>
            <category><![CDATA[side-project]]></category>
            <dc:creator><![CDATA[Theo Nicolaou]]></dc:creator>
            <pubDate>Mon, 11 May 2020 15:44:06 GMT</pubDate>
            <atom:updated>2020-06-06T20:55:09.043Z</atom:updated>
            <content:encoded><![CDATA[<p>In 1996, when I was in Year 6 and finishing Primary school, one of my half-term targets was about Cypriot cooking. I made a recipe book — “Theo’s Book of Cypriot Recipes” — and typed up 11 of the recipes which we ate regularly as a family. It had photos of the food inside and clip-art from CorelDraw on the front cover. I still use the book to this day and I’ve even kept the special message my teacher wrote to me at the time.</p><figure><img alt="A photo of my Cypriot recipe book which I wrote for a Year 6 Primary school project." src="https://cdn-images-1.medium.com/max/1024/1*jf-g2vfGtlFKGZiAB4XzKw.jpeg" /></figure><p>So, that might be a nice story but why is it relevant? Well, I have a bit of extra time at the moment so I’ve decided to spend three mornings a week on my professional development. I usually read articles and watch videos about web development and team leadership in my evenings or when I have a spare moment, so I thought I would use this allocated time to learn some of the web dev stuff that I read so much about and have just never had a chance to use or work with.</p><p>I’m going to start by making a digital version of my recipe book and will write up my thoughts and what I learn along the way. I’m expecting it to be fun and challenging — fun because I’ve actually come up with a side project! And challenging because I haven’t flexed my coding muscles in quite a while, or certainly not to the extent I’m expecting to use them (more recently I’ve been focusing on recruitment and team leadership in my role as opposed to the day-to-day coding).</p><p>This morning I started a little later than planned so I didn’t have the full 4 hours I had allocated myself. But I still had enough time to make a basic plan of what I want the application to do, and what I want to learn from this side project:</p><h3><strong><em>What do I want my digital Cypriot recipe book to do?</em></strong></h3><p>I made a list of high-level requirements and tried not to think about the details too much at the time. Perhaps they can be turned into user stories in due course?</p><p><strong>My Digital Cypriot recipe book should:</strong></p><ol><li>Display recipes in digital format</li><li>Give ability to add and update recipes</li><li>Give ability to navigate between the recipes</li><li>Work on a mobile/tablet</li><li>Work offline</li><li>Be fast</li><li>Be accessible</li></ol><h3>What do I want to learn — and what could the tech stack be?</h3><p>I then reviewed the list and wrote down everything I want to learn by building the recipe book. Whilst doing so, I found myself making notes about the tech stack that I could use and some questions/thoughts around this. I’ve tried to match these up against the above requirements as much as possible:</p><ol><li><strong><em>Display recipes in digital format<br></em></strong>The recipe book should be web-based and I want to learn how to use a JavaScript framework.<br><em>Tech stack notes: maybe use Vue or React? If so then I’ll need to set up Webpack and learn how to configure that. Also might need to look up how to write CSS within Vue or React — perhaps using CSS modules? Or Styled Components? Or are they the same thing? Where does Gatsby/Gridsome, Next/Nuxt sit in all this? Do I even need them?<br>First of all, though, I just want to build something. So I might just chuck it together with jQuery or vanilla JavaScript and not use a JS framework straight away.</em></li><li><strong><em>Give ability to add and update recipes<br></em></strong>The recipes should be stored in a maintainable format so I will need to work out how to structure the data in a scalable way, as well as hook it up to the JS framework or whatever is going to display the data.<br><em>Tech stack notes: the content of the recipe book is quite standard and consistent so I should be able to start with a JSON file and update it manually. Then possibly move data into a database and add recipes via a UI? Could I hook it up to a headless CMS? Is this all even necessary?</em></li><li><strong><em>Give ability to navigate between the recipes<br></em></strong>There should be a simple, user-friendly way of navigating from one recipe to another.<br><em>Tech stack notes: to navigate between the recipes, I’ll need to work out how to dynamically load the links to each recipe page so that you can cycle through. Similarly, if there is going to be a menu (perhaps a dropdown or a list?) then this needs to be dynamically populated as well. Maybe this is where routing comes into play — is that what Next/Nuxt are for?</em></li><li><strong><em>Work on a mobile/tablet<br></em></strong>The web app should have a very simple, responsive interface that can load and display clearly on smaller device screens.<br><em>Tech stack notes: the layout will be very simple so perhaps I could use CSS Grid and/or Flexbox. A CSS framework will make it quick to build but likely to be overkill and heavy on the performance side. Plus, I’ve used Flexbox only a little in the past and never used CSS Grid so I want to play with these a bit more!</em></li><li><strong><em>Work offline<br></em></strong>The web app should be able to load and be usable without a network connection.<br><em>Tech stack notes: the answer to this one is simple — make it a PWA!</em></li><li><strong><em>Be fast<br></em></strong>The web app will be very light overall in terms of functionality and content, and the page load speeds should reflect this.<br><em>Tech stack notes: there will be some images of the food so perhaps I can experiment with the WebP format and see if there is any difference in load times. Could I also load styles as Critical CSS — will it make much difference with such a small web app? Probably worth a try, even if just to understand how to set it up.</em></li><li><strong><em>Be accessible<br></em></strong>The web app should adhere to WCAG AA standards.<br><em>Tech stack notes: make sure to use ALT text, ARIA labels, semantic HTML — and try it out with a screen reader. Will it be accessible if I am using a JS framework?</em></li></ol><p>That’s enough writing for one day. I may chuck this into a Trello board — and I’m looking forward to getting started!</p><p>I hope you found this post interesting and you’ll come back to join me on this journey! <a href="https://medium.com/@theonico85/building-a-digital-version-of-my-cypriot-recipe-book-part-2-fc6d1a4889ab">You can read Part 2 here</a>. Feel free to get in touch on <a href="https://twitter.com/theonico85">Twitter</a> if you have any thoughts/comments/feedback.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=94530344acde" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Dear Netmag…thank you]]></title>
            <link>https://medium.com/@theonico85/dear-netmag-thank-you-36daa150c345?source=rss-f6006efe1b02------2</link>
            <guid isPermaLink="false">https://medium.com/p/36daa150c345</guid>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[magazine]]></category>
            <dc:creator><![CDATA[Theo Nicolaou]]></dc:creator>
            <pubDate>Sat, 18 Apr 2020 18:00:07 GMT</pubDate>
            <atom:updated>2020-04-18T18:16:49.310Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lUb1bpD_GS9wkl1BE_GkKQ.jpeg" /></figure><p><strong>Dear Netmag…thank you.</strong></p><p>A couple of days ago I was catching up on reading my web dev email newsletters and was saddened to see <a href="https://twitter.com/danoliver/status/1247478967826857984?s=20">this tweet</a> linked to from <a href="https://responsivedesign.is/newsletter/">RWD Weekly</a>. It might sound a bit over-dramatic but it felt like I’d lost an old friend. Netmag…gone! I couldn’t believe it. I don’t write blog posts very often but I wanted to write something about Netmag and the impact it has had on me and my career — and no doubt similar for others too.</p><p>I’ve been a Netmag subscriber for many years — I’ve lost count but I wouldn’t be surprised if it’s been a decade or more — and prior to that I used to buy the magazine regularly. In January 2005 I was very ill and ended up in hospital for 4 weeks. I’m pretty sure my Dad bought my first copy for me while I was in hospital — I was at uni studying Multimedia, Technology and Design at the time and having this magazine kept me going when I couldn’t do much else (I missed 3 months of uni due to illness). Something that has stuck with me since that first issue is the consistency of the quality content in every issue.</p><p>I used to look forward to the next issue so much but I must admit over the last 18 months I’ve struggled to keep up with reading the magazine in time for the next one to arrive. It got to the point where I had quite a backlog to read through and it felt like a bit of a burden, but that’s not because of Netmag. That was just because I didn’t have the time! In February I renewed my subscription, somewhat reluctantly, but I didn’t want to let go — despite the lack of time to read the magazine, what would I do without it?!</p><p>So, what was so good about it? Sure, over the years there have been some absolutely fantastic issues full of excellent articles, tutorials and opinion pieces along with the profiles and Q&amp;A’s of peers from the web industry. But you would expect that from a leading industry publication. What else made it so special?</p><p>Well, here’s my take:</p><ul><li><strong>A break away from the screen</strong>: quite ironically, I loved reading a physical copy of a magazine about the digital world. I remember countless days relaxing with my copy of Netmag in front of the TV, with Sky Sports News or something else on in the background — for me, this was just right! It also made my commutes to or from work much more bearable. I did have a print+digital subscription, but it just didn’t feel right when I read it on my iPad. There was something about being able to step away from the computer and read the magazine itself.</li><li><strong>A window into the Web industry</strong>: I was quite late to the Twitter party, and initially I used it just to follow a small number of web-related people (and now mostly dogs — ha ha) but Netmag was a great alternative to this in the earlier part of my career as a web developer. It was a window into the Web industry, without the huge daunting scale of the Twitterverse where you don’t necessarily know where to start or who to follow. It gave enough exposure to the really useful things, the leading design agencies and the famous names in the web world which you could then explore further in whichever way you liked.</li><li><strong>Wonderful cover art and illustrations</strong>: Netmag’s front covers and illustrations inside were so creative and really made the magazine stand out from the rest. This was definitely a feature that will be missed.</li></ul><p>In more recent years I have been lucky enough to contribute to the magazine — starting from the odd mention here and there in the Exchange section, or having a random tweet included in a sidebar (always a nice surprise!), all the way through to writing a “Head-to-Head” comparison and a couple of opinion pieces. I guess a downside of being published in a magazine is that you don’t know what people think of your work as you don’t necessarily get that feedback, so I probably won’t ever know what people thought of my articles — but these were incredible opportunities and I am very grateful and proud to have been part of the Netmag journey. Perhaps I’ll post the equivalent versions on here — let me know <a href="https://twitter.com/theonico85">on Twitter</a> if you’re interested in reading them!</p><p>I’m pretty sure my career path would have been different if it hadn’t been for Netmag. I really hope that it will come back some day, quite likely in a completely different format but no doubt with the same quality we have seen over the past 25 years. In the meantime, I want to wish all of the writers and staff at the publishing company all the best in these uncertain times and finish by saying: <strong><em>THANK YOU</em></strong>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=36daa150c345" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Notes from Lead Dev Meetup #2 @ Intercom – 11th Dec]]></title>
            <link>https://medium.com/@theonico85/notes-from-lead-dev-meetup-2-intercom-11th-dec-9fb756f5c452?source=rss-f6006efe1b02------2</link>
            <guid isPermaLink="false">https://medium.com/p/9fb756f5c452</guid>
            <category><![CDATA[leadership]]></category>
            <category><![CDATA[development]]></category>
            <dc:creator><![CDATA[Theo Nicolaou]]></dc:creator>
            <pubDate>Tue, 12 Feb 2019 20:17:57 GMT</pubDate>
            <atom:updated>2019-02-12T20:19:59.169Z</atom:updated>
            <content:encoded><![CDATA[<p>Notes from Lead Dev Meetup #2 @ Intercom – 11th Dec</p><p>With the next Lead Dev Meetup coming up in just over a weeks’ time, I thought it would be nice to reflect back on the notes I had taken at the previous Meetup in December (hosted by Intercom). So, here they are, completely unedited but hopefully as useful to others as they are for me!</p><p>Maria Gutierrez – Head of Engineering @ Intercom (@mariagutierrez)</p><p>Sound familiar?:</p><p>“I don’t like meetings, they are a waste of time”</p><p>“It’ll be done when it’s done”</p><p>“I saw this new technology and decided to try it in my project”</p><p>Risks:</p><p>Hiring</p><p>Technical debt</p><p>Security</p><p>Reliability</p><p>Understand the business!</p><p>As a business grows, it’s impossible to centralise the decision-making, and as a leadership team you have to:</p><ul><li>set the context</li><li>be transparent</li><li>be accountable</li></ul><p>Don’t let a lack of transparency stop you from being curious and getting what you need to do your job</p><p>“Success is liking yourself, liking what you do and liking how you do it” – Maya Angelou</p><p>Liking what you do (team and individual):</p><p>Why do we exist?</p><p>What are we doing?</p><p>How do we behave?</p><p>What’s important now?</p><ul><li>strategic work</li><li>commercial success</li><li>product gaps</li><li>product health</li><li>Do you understand the mission, vision and strategy of the business?</li><li>Do you understand the purpose of your team?</li><li>set the context and expectations for new and existing employees</li></ul><p>“Shipping brings life to your team, to your product and to your customers. Shipping is your company’s heartbeat”.</p><ul><li>Be ruthless</li><li>Work on meaningful and valuable features</li><li>Learn and iterate – use KPI’s to monitor performance (business and technical metrics)</li></ul><p>Set goals – quarterly, weekly, daily</p><p>Liking how you do it:</p><ul><li>Growth paths are expected from engineers and managers</li></ul><p>Categories:</p><p>Business impact</p><p>Communication</p><p>Domain knowledge</p><p>Ownership &amp; leadership</p><p>Problem solving</p><p>Teamwork</p><p>Team commitments &amp; behaviours</p><p>Technical proficiency</p><p>“You can be brilliant at a technology but if you are behaving against team or business values then you won’t be able to grow”</p><p>“I’ve learned that people will forget what you said, people will forget what you did, but people will never forget how you made them feel” – Maya Angelou</p><p>Liking yourself:</p><ul><li>take regular breaks</li><li>ask for help</li><li>be aware of burnout</li></ul><p>Try to spend time exploring your personal values and strengths</p><p>Book: “Mindset: the new psychology for success”</p><p>YOU own your personal development</p><p>“If you get, give. If you learn, teach” – Maya Angelou</p><p>Dr James Stanier – VP Engineering, Applications @ Brandwatch (@jstanier, theengineeringmanager.com)</p><p>Management bugs: a transparent way of enabling democratic change</p><p>As you get bigger, making change gets harder.</p><p>Submitting bugs in JIRA is an accepted process in engineering</p><p>“Management bugs” board created in JIRA!</p><p>Every time a bug is fixed, a summary email is sent to the department (emails stored on Google Drive)</p><ul><li>Ongoing for 1.5 years</li><li>48 bugs completed</li><li>5 in progress</li><li>90% submitted by non-managers</li></ul><p>Christine Thompson – Coach @ Alfresco</p><p>How Neuro-linguistic Programming is used in coaching</p><p>The most useful information about a person is their behaviour</p><p>Each person is in charge of their own results</p><p>There are no unresourceful people, only unresourceful states</p><p>Listen for 3 filters:</p><ul><li>Delete</li><li>Distort</li><li>Generalise</li></ul><p>“Perception is projection” – your focus becomes your reality, what you expect to happen will happen</p><p>Reframe to deal with this:</p><ol><li>Content: seeing that behaviour can have a different meaning</li><li>Context: giving behaviour a positive twist</li><li>Using reframing in conversations helps to find the positive</li></ol><p>Language patterns</p><ul><li>mind reading (“you don’t like me”)</li><li>cause and effect (“you make me sad”)</li><li>value judgements (“it’s bad to make mistakes”)</li><li>universal generalisations (“I am never good at what I do”)</li><li>necessity operators</li></ul><p>How to help overcome imposter syndrome:</p><ul><li>help them look for evidence to the contrary</li><li>send them on an experiment to see what they find</li><li>ask them to think about times when they did their job well</li></ul><p>Listen for filters! Challenge their assumptions! Question the negative language patterns!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9fb756f5c452" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>