<?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 Paul Field on Medium]]></title>
        <description><![CDATA[Stories by Paul Field on Medium]]></description>
        <link>https://medium.com/@fieldp?source=rss-ec7a755aa53a------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*PFalx7hIhU2qTeeknUFp8A.jpeg</url>
            <title>Stories by Paul Field on Medium</title>
            <link>https://medium.com/@fieldp?source=rss-ec7a755aa53a------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 02 Dec 2026 17:15:29 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@fieldp/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[AR assisted conflict management]]></title>
            <link>https://fieldp.medium.com/ar-assisted-conflict-management-9e2b8a092cf2?source=rss-ec7a755aa53a------2</link>
            <guid isPermaLink="false">https://medium.com/p/9e2b8a092cf2</guid>
            <category><![CDATA[augmented-reality]]></category>
            <category><![CDATA[conflict-management]]></category>
            <dc:creator><![CDATA[Paul Field]]></dc:creator>
            <pubDate>Sat, 16 Nov 2024 10:18:25 GMT</pubDate>
            <atom:updated>2024-11-16T10:18:25.743Z</atom:updated>
            <content:encoded><![CDATA[<h3>Augmented Reality for Conflict Management?</h3><p>By Paul Field and Michele Zilli</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RgFxfxxG4ylVYgFWYVOCJg.jpeg" /></figure><p>What if 2 people in conflict is like 2 people speaking different languages?</p><p>Then, imagine a world where everyone has AR glasses. Maybe like those previewed at the recent Facebook Connect <a href="https://developers.facebook.com/m/meta-connect-developer-sessions/connect-keynote/">event</a> but more minimalistic and powerful. What if such technology could be used to make meetings more efficient by smoothing communications? In particular, could such technology help manage possible conflict?</p><p>Maybe advanced optomyography could read muscle contractions around the eyes and mouth (for example) to help detect expressions. This <a href="https://www.emteqlabs.com/">prototype</a> looks like it’s advancing in the right direction. As with everything, you have to try read past the hype but given we’re allowing ourselves to look forward in time a bit, this (imho) makes it look entirely possible.</p><h4>As a Listener</h4><p>Imagine a bit further ahead where there is enough compute in your pocket (and/or the glasses themselves) and enough sensor tech in the glasses (and other wearables) to not only real time translate languages but summarise content and modify tone into the easiest form possible for you to digest based on how you’re feeling.</p><p>Triggers like a speaker getting frustrated when talking (maybe they’re having a bad day) could be ameliorated by translating what you hear to something to suit your current disposition. This could be different for everyone in the room. Some might not even hear a speaker’s frustration, yet others might be triggered by it.</p><p>The glasses read your expression, smart watch (or wearable band) looks at your heart rate, maybe your blood sugar (if that comes or a real time glucose monitor if it doesn’t) and uses a pocket compute device to work out enough about your mental state to figure out the best way to land the content for you to hear and understand.</p><p>Going further, the tech could work out if you’re not understanding something and throw up visual summaries of terms or concepts you’re not familiar with. Maybe in the near future you could use a gesture to ask the glasses to pop up an explanation of something you don’t get.</p><h4>As a Speaker</h4><p>Your glasses could monitor your audible delivery and throw up visual warnings that you might be coming across, hurried or impatient etc. This capability could be further strengthened if the glasses could all talk to each other, allowing you to judge how well you’re coming across. User privacy rules would need to apply though. But this could really help people refine their delivery.</p><h4>Privacy</h4><p>Should someone be able to see and hear a modified (by a set of rules you may not have complete or any control over) version of you? That’s an ethical dilemma. On the one hand it might aid communication but without full transparency of the rules and fine grained sharing controls, it’s taking away the right to self expression. And doing it requires the device maker to approximate/know what you’re feeling. You might have good reason not to want that. Any of the tech giants, already know a lot (probably too much) about you.</p><h4>As a Facilitator</h4><p>For a manager who wants to better facilitate the meeting and coach, maybe they’re able to see the disposition of everyone in the room (again, this requires a workable privacy solution) in order that they can give additional feedback after. Of course some people are good at doing that naturally but such a technology could enhance and make it clearer. If the glasses collated interaction information for later review, then the facilitator could remain more connected to the meeting.</p><h4>Conclusion</h4><p>On a practical note, if any such solution were to be attempted, there’d need to be some advanced user testing. Getting the balance right between visual / auditory input from the glasses vs what’s coming direct to the ears and eyes would be difficult to get right.</p><p>Maybe it’s a crazy flight of fancy. Certainly none of the above fundamentally change how someone feels. But something like this could be used to regulate the temperature in some meetings that might otherwise become very heated. It would certainly be an interesting experiment. Whatever happens though, there is still no replacement for feedback and coaching.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9e2b8a092cf2" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[AR for monitoring cognitive fatigue]]></title>
            <link>https://fieldp.medium.com/ar-for-monitoring-cognitive-fatigue-34c13c4ebb3c?source=rss-ec7a755aa53a------2</link>
            <guid isPermaLink="false">https://medium.com/p/34c13c4ebb3c</guid>
            <category><![CDATA[augmented-reality]]></category>
            <category><![CDATA[cognitive-load]]></category>
            <dc:creator><![CDATA[Paul Field]]></dc:creator>
            <pubDate>Fri, 15 Nov 2024 09:06:16 GMT</pubDate>
            <atom:updated>2024-11-15T09:06:16.208Z</atom:updated>
            <content:encoded><![CDATA[<h3>Augmented Reality for Monitoring Cognitive Fatigue</h3><p>By Paul Field, Michele Zilli, ChatGPT4, research support by NotebookLM</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zRVdaoOan2Nza6X9H81SLw.jpeg" /></figure><h4>The Silent Performance Killer</h4><p>We’ve all had that feeling: it’s just hard to process information. Cognitive fatigue. The feeling of mental exhaustion that no amount of coffee is going to fix. Yet, this feeling may not be visible to colleagues. Especially if they’re caught up in the moment of explaining something important. As a result, interactions may not yield expected results.</p><h4>Personalised Feedback in Real Time</h4><p>AR glasses equipped with biosensors and integrated machine learning could change this. By analysing subtle changes in pupil <a href="https://en.wikipedia.org/wiki/Task-invoked_pupillary_response">response</a> and <a href="https://www.theverge.com/2021/1/25/22248202/gabe-newell-valve-brain-computer-interface-bci-meat-peripherals">brain activity</a> through non invasive EEG sensors (still very early research and obviously a long way off readiness for glasses form), glasses could detect signs of mental fatigue.</p><h4>It’s Coming</h4><p>One project actively exploring this area is AttentivU, developed by the MIT Media Lab. <a href="https://www.media.mit.edu/projects/attentivu/overview/">AttentivU</a> is a wearable that monitors attention and cognitive load, providing insights into the wearer’s mental state. On the basis that things get smaller and complementary technology eventually integrates, this seems like a relevant step forward.</p><h4>Scenario</h4><p>Imagine walking into a meeting wearing a sleek pair of AR glasses. They’re not just for projecting slides or reminders into your field of view — they’re also quietly monitoring your cognitive state, helping you perform at your best. AR glasses have the potential to revolutionise our understanding of how we work by making the invisible visible: tracking cognitive fatigue and providing timely, actionable feedback.</p><h4>Imagine</h4><p>Receiving a gentle visual cue when your focus begins to slip. Maybe a calming icon appears in your peripheral vision, suggesting it’s time to take a brief break. Or perhaps the glasses subtly adjust the display of complex data, simplifying the information when your mental reserves are running low. Feedback could be personalised — a soft notification to you, or, if desired/and user permitted, a discreet alert to a trusted colleague. This kind of nuanced support could help teams work more effectively, identifying moments when a shift in workload or a supportive nudge might prevent mistakes or reduce risk of burnout.</p><h4>Applications in High-Stakes Environments</h4><p>The broader implications are even more far reaching. Teams that rely on sustained mental performance, like surgeons, pilots, or financial analysts, could benefit immensely from real-time cognitive monitoring. Imagine a pilot AR system (on top of other measures, wearables etc) gently alerting the co-pilot when the primary pilot’s fatigue indicators exceed a certain threshold, allowing them to take over or suggest a break.</p><h4>Privacy and Ethical Considerations</h4><p>Privacy is a major consideration. Monitoring cognitive states involves deeply personal data, and such technology would need to be implemented with strict controls. Users would need the ability to control who has access to their cognitive metrics. Implemented with the right safeguards (e2e encryption and fine grained controls at the very least), the benefits could outweigh the risks and lead to healthier work habits and better support for mental well-being.</p><h4>A New Ally in Cognitive Health</h4><p>AR glasses, by blending the physical and digital worlds, could become allies in managing cognitive performance in the workplace. They could help us understand ourselves better, encourage sustainable productivity, and foster a culture that values mental wellness just as much as physical health.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=34c13c4ebb3c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Augmented Reality’s Potential for Neurodivergent Individuals]]></title>
            <link>https://fieldp.medium.com/augmented-realitys-potential-for-neurodivergent-individuals-56f966147d27?source=rss-ec7a755aa53a------2</link>
            <guid isPermaLink="false">https://medium.com/p/56f966147d27</guid>
            <category><![CDATA[neurodivergent]]></category>
            <category><![CDATA[augmented-reality]]></category>
            <dc:creator><![CDATA[Paul Field]]></dc:creator>
            <pubDate>Wed, 13 Nov 2024 11:03:38 GMT</pubDate>
            <atom:updated>2024-11-27T15:52:09.044Z</atom:updated>
            <content:encoded><![CDATA[<p>By Paul Field, Michele Zilli, ChatGPT 4o canvas and research support from NotebookLM.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*hX7F7DfC6QoX4iiL" /><figcaption>Photo by <a href="https://unsplash.com/@antenna?utm_content=creditCopyText&amp;utm_medium=referral&amp;utm_source=unsplash">Antenna</a> on <a href="https://unsplash.com/photos/people-meeting-in-room-cw-cj_nFa14?utm_content=creditCopyText&amp;utm_medium=referral&amp;utm_source=unsplash">Unsplash</a></figcaption></figure><h4>Précis</h4><p>Augmented Reality (AR) technology (especially <a href="https://about.fb.com/news/2024/09/introducing-orion-our-first-true-augmented-reality-glasses/">glasses</a> when they come to the mass market) could change the way we interact with the world. But its potential goes beyond gaming or virtual furniture shopping. AR has the potential to sculpt an environment. It could help reduce the struggle for some neurodivergent individuals to fit into environments never designed with them in mind.</p><p>When sufficiently advanced, AR glasses could be nearly indistinguishable from any other glasses. AR technology could offer a unique way to bridge the gap between un-augmented environments and the needs of neurodivergent people. By overlaying helpful information, cues, or even sensory filters onto the physical world, AR might make daily tasks more accessible, comfortable, and even enjoyable.</p><h4>Background</h4><p>The purpose of this article is to explore some of what might be possible in the near to medium term future and how it could help.</p><p>I was originally motivated to write about AR and Neurodiversity (ND) to explore technology that could help me, being bi-polar type 2 (which is not necessarily ND — it seems unclear). However, after discussions with some friends, it seemed better to write a more general piece on AR/ND and something separate from a more personal perspective. As such, with regard to ND, I am talking about a topic which I’ve taught myself about rather than one I have lived experience with.</p><p><a href="https://www.health.harvard.edu/blog/what-is-neurodiversity-202111232645">Neurodiversity</a> is an <a href="https://www.theguardian.com/world/2023/jul/05/the-mother-of-neurodiversity-how-judy-singer-changed-the-world">umbrella</a> term that encompasses a variety of neurological differences, including autism, ADHD, dyslexia, and others. These differences can sometimes make traditional environments difficult to process or navigate.</p><p>Note: Neurodivergence’ wide scope means technology usage and benefits could vary a lot depending on where people may broadly fit within that scope. This article talks in terms of generalities, trying to predict what could be possible in the future. In real-world situations, an AR device would need well-thought-out configuration options, allowing the user to select the capabilities that help them most.</p><p>It’s also worth noting that technology would need to be extensively tested and assessed as there are potential <a href="https://www.ncbi.nlm.nih.gov/pmc/articles/PMC9137951/">downsides and risks</a>.</p><h4>Supporting Sensory Needs</h4><p>For some, managing sensory input can be a major challenge. AR could act as a buffer or a guide to help manage <a href="https://www.autism.org.uk/advice-and-guidance/topics/sensory-differences/sensory-differences/all-audiences">overwhelming situations</a>. Imagine an AR headset that could highlight only the most relevant visual cues in a busy environment to reduce overstimulation.</p><p>Further, imagine a situation like an airport or busy train station with lots of textual information to process. The glasses could reformat the text into a more readable font like say <a href="https://opendyslexic.org/">OpenDyslexic</a>.</p><p>On a related note, good-quality noise-canceling earbuds (or something more <a href="https://www.loopearplugs.com/">specialised</a>) might be a useful, optional addition to AR glasses to quieten loud sounds.</p><p>Such tools could transform crowded spaces into more manageable places, potentially lowering anxiety and increasing independence.</p><h4>Visual Schedules and Routine Assistance</h4><p>AR also has potential to aid in executive functioning. Visual schedules and reminders could be overlaid onto an individual’s field of vision, offering a subtle and non-intrusive way to keep track of daily tasks and routines.</p><p>Imagine looking at your living room and seeing virtual sticky notes appearing near objects you need for the day — like keys, a wallet, or a water bottle. Then extend that idea into a crowded workspace with a mixture of virtual and physical noise; messages coming in from all directions, meetings, conflicting priorities, deadlines, etc. An advanced AR device could bring order, focusing only on the top few tasks and environmental aspects at hand, helping to prevent overwhelm.</p><h4>Reducing Anxiety Through Predictability</h4><p>Uncertainty and unpredictability can be sources of anxiety. AR has the potential to offer previews of places and situations, reducing the unknown. Picture using an AR app to “walk through” a new restaurant before visiting — seeing where you will sit, what the menu looks like, and what the space sounds like. To further empower such capability, seamless integration with a smart phone could help provide another control plane for interacting with an AR environment.</p><p>This type of preview could make new experiences less intimidating, offering a level of comfort and control that many might deeply appreciate.</p><h4>Social Interaction and Emotional Cues</h4><p>Social interactions can be difficult for some, especially when it comes to reading facial expressions or interpreting body language. AR could assist by subtly displaying emotional cues during conversations. For example, glasses equipped with AR could highlight facial features or provide hints about the emotional state of a person speaking.</p><h4>Breaking Barriers to Learning</h4><p>In educational settings, AR can be an powerful <a href="https://pmc.ncbi.nlm.nih.gov/articles/PMC9137951/">tool</a> for neurodivergent students who might struggle with traditional teaching methods. Abstract concepts in maths or science can come alive through visual overlays that turn equations into interactive diagrams or animations. Looking much further ahead, imagine being able to bring historical events into the classroom as 3D experiences.</p><h4>A Future That Includes Everyone</h4><p>As AR technology continues to evolve, it’s crucial that developers consider the needs of neurodivergent people. By creating adaptable, user-friendly AR experiences, we can move toward a more inclusive world where everyone has the tools they need to thrive. For neurodivergent individuals, AR offers a future where the world can be reshaped to better fit their unique ways of thinking, feeling, and experiencing life.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=56f966147d27" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[What technology teams can learn from Amundson and Scott’s race for the South Pole]]></title>
            <link>https://fieldp.medium.com/what-technology-teams-can-learn-from-amundson-and-scotts-race-for-the-south-pole-be37ddc61db7?source=rss-ec7a755aa53a------2</link>
            <guid isPermaLink="false">https://medium.com/p/be37ddc61db7</guid>
            <category><![CDATA[planning]]></category>
            <category><![CDATA[teamwork]]></category>
            <dc:creator><![CDATA[Paul Field]]></dc:creator>
            <pubDate>Sun, 07 Jul 2024 09:12:59 GMT</pubDate>
            <atom:updated>2024-07-07T09:12:59.377Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_MgSiFQnQXvs3u8xglWatg.jpeg" /><figcaption>Image by Dall-E</figcaption></figure><p>(I’d say I wrote this title about 2 years ago. Again ChatGPT comes through for me)</p><h4>Navigating Uncharted Territories: Lessons from the South Pole for IT Leaders</h4><p>As I listened to the Audiobook of <a href="https://www.audible.co.uk/pd/Scott-and-Amundsen-Audiobook/B004EVX3QY?qid=1700209125&amp;sr=1-1&amp;ref_pageloadid=not_applicable&amp;ref=a_search_c3_lProduct_1_1&amp;pf_rd_p=c6e316b8-14da-418d-8f91-b3cad83c5183&amp;pf_rd_r=9BDS5Z8GPCR8PFB65AFM&amp;pageLoadId=VjxhXEoDohuY2BdP&amp;ref_plink=not_applicable&amp;creativeId=41e85e98-10b8-40e2-907d-6b663f04a42d">Race for the South Pole</a>, a spark of unexpected inspiration struck me. This historical account, frequently referenced in Jim Collins’ work, surprisingly resonated (for me) with the challenges we face in the tech industry. I am not a scholar of the race itself. This is based on my take away from the book.</p><h4>Parallel Journeys: South Pole Exploration and Technological Innovation</h4><p>The journey to the South Pole mirrors the path of innovation in technology. Just as Amundsen and Scott embarked on an unprecedented expedition, IT leaders venture into the unknown realms of new technology and management challenges. The race to the pole, fraught with uncertainty and risk, (to me) shares a similarity with the tech industry’s constant quest for innovation.</p><h4>Non reversible decisions: Amundsen vs. Scott</h4><p>The contrasting styles of Amundsen and Scott could offer insights for IT managers.</p><p>Amundsen’s meticulous planning, respect for local knowledge, and flexible strategy helped assure his team’s success and survival. In contrast, Scott (and team)’s tragic fate was in no small part due to poor technology choices; motor sledges that were badly built and not tested in extreme conditions, poor choices of animals (ponies in the main instead of dogs) and poor training (Amundsen’s team were much stronger on skiing and navigation). Arguably Scott was doomed even before the start.</p><h4>Delusion</h4><p>With Scott, there also seems to have been a strong sense of self delusion. Adversity was always the fault of the conditions, the animals, the machines and even the people. He kept seeming to be expecting his luck to change. To me, this just shows a lack of depth of thought about the challenge or willingness to engage with the problems and make hard decisions.</p><p>Amundsen recognised the benefits of skis and recruited high levels of expertise and experience into his team. And they worked meticulously on seemingly small things like getting their boots right to make skiing more effective. Iteration and clear goals. Skiing combined with the use of dogs created conditions for success. Scott took skis but never seemed to commit to them and his team didn’t have training or much experience. He took dogs but didn’t commit. Along with the motor sledges, he hedged his bets and didn’t seem to do well with any. In the end, “man hauling” made the job ridiculously difficult. From the book you would almost get the impression that Scott felt the pain was a worthwhile part of the challenge.</p><p>With clearer thinking, higher levels of expertise, better choices, Amundsen was able to make significantly better progress and this helped in fundamental ways, e.g., with having enough nutrition to keep the team well fed. Scott by contrast (estimated in the book) was feeding his team 1500 calories per day <strong>less</strong> than they needed. The corollary could be driving a team to exhaustion rather than standing up and admitting you need help in terms of funding, resource or whatever. Though, in the heat of battle, that’s easier said than done.</p><h4>Team Dynamics: The Core of Expedition Success</h4><p>The spirit of camaraderie and mutual support among Amundsen’s team draws parallels to the importance of workplace relationships in IT. Building a team culture that values each member’s contribution and fosters open communication is crucial in both contexts.</p><h4>Conclusion: Embracing the Explorer’s Mindset</h4><p>The race to the South Pole is a testament to the power of strategic planning, adaptability, and team dynamics – elements that are equally significant in the world of technology. It also seems to show that a will to succeed is not enough. It can drive meticulous planning and innovation or lead to dangerous delusion. As IT leaders, we must embrace the explorer’s mindset, navigating the uncharted territories of technology with a balance of planning, agility, and team unity.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=be37ddc61db7" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[IT and Artistic Process]]></title>
            <link>https://fieldp.medium.com/it-and-artistic-process-9810d18ecd65?source=rss-ec7a755aa53a------2</link>
            <guid isPermaLink="false">https://medium.com/p/9810d18ecd65</guid>
            <category><![CDATA[agile]]></category>
            <category><![CDATA[art]]></category>
            <dc:creator><![CDATA[Paul Field]]></dc:creator>
            <pubDate>Sun, 12 Nov 2023 15:05:40 GMT</pubDate>
            <atom:updated>2023-11-12T15:10:50.057Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="A two part picture. The left side is a face with coloured flowers in their hair and an artist’s palette in front of them. The right side is a laptop sourounded by post it notes, all on a background of lines of code." src="https://cdn-images-1.medium.com/max/1024/1*0SQv6V0hGvjwePKJZ9sU0g.png" /><figcaption>(by DALL-E)</figcaption></figure><h4>Preface</h4><p>As per the previous article, I am now working on articles with my bot. I somehow feel I need to justify this. So here’s how I am thinking about it;</p><p>I have a lot I want to say and not enough time to say it.</p><p>I’ve got the bot to a point where it speaks enough like me that I like working with it and feel able to put my name to the work. Also, as mentioned before, I am actually learning from the process.</p><p>In my Medium account, I have a long list of drafts. Some are just titles. Some have an opening paragraph or two. One right now is quite well developed but has been sitting like that for ages. So anything that let’s me say things I want to say is going to be a capability I’ll utilise.</p><h4>Article</h4><p>Drawing parallels between Agile methodologies in IT and an artist’s creative process offers a fascinating perspective. Both domains, though seemingly different, share fundamental principles of creativity, adaptation, and continuous improvement.</p><ol><li>Iterative Process: In Agile, software development is approached iteratively, with continuous releases and frequent feedback. This mirrors how an artist works on a painting. An artist doesn’t create a masterpiece in a single stroke; it’s a process of adding layers, adjusting colours, and refining details over time. Similarly, Agile teams build software in increments, enhancing and refining with each iteration.</li><li>Responding to Change: Agile methodologies emphasize adaptability and responding to change, akin to an artist who must often adapt their vision as a piece evolves. An artist may start with a concept, but as they engage with their medium, new ideas and techniques might emerge, leading to a different, often more evolved, outcome. Agile teams similarly adapt their plans and strategies in response to evolving project requirements or challenges.</li><li>Collaboration and Feedback: Collaboration is key in both fields. Just as artists might seek feedback from peers or mentors, Agile teams rely on constant feedback from stakeholders and users to guide their work. This process of collaboration and incorporating feedback ensures that the end product — whether a software application or a painting — is refined, user-centric, and of high quality.</li><li>Vision and Execution: Both an artist and an Agile team start with a vision. In art, this might be an emotional message or a depiction of a scene. In Agile, it’s the project’s goals and outcomes. The journey from concept to reality involves a blend of skill, creativity, and meticulous execution, with a focus on achieving the envisioned end result while being open to modifications along the way.</li><li>Empirical Process Control: Agile methodologies, particularly Scrum, operate on empirical process control — transparency, inspection, and adaptation. Artists similarly work in an empirical fashion. They constantly inspect their work, make transparent the process through layers and adjustments, and adapt techniques and elements to achieve the desired outcome.</li><li>Sustainable Pace: Both Agile teams and artists understand the importance of maintaining a sustainable pace. In the artistic process, this means balancing creativity with rest, avoiding burnout. Agile methodologies advocate for sustainable development practices, ensuring teams can maintain a consistent pace and quality over time.</li></ol><p>In essence, both Agile methodologies and the artistic process embrace a journey of continuous refinement, adaptation, and collaborative effort to create something that meets both the creator’s vision and the needs of those who will engage with the final product. This analogy not only highlights the creative nature of software development but also underlines the importance of flexibility, feedback, and the iterative pursuit of perfection.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9810d18ecd65" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Friends at Work]]></title>
            <link>https://fieldp.medium.com/friends-at-work-8f8a9b65422e?source=rss-ec7a755aa53a------2</link>
            <guid isPermaLink="false">https://medium.com/p/8f8a9b65422e</guid>
            <category><![CDATA[friendships-and-lessons]]></category>
            <category><![CDATA[workplace]]></category>
            <category><![CDATA[agile-methodology]]></category>
            <dc:creator><![CDATA[Paul Field]]></dc:creator>
            <pubDate>Sun, 12 Nov 2023 14:51:54 GMT</pubDate>
            <atom:updated>2023-11-12T14:58:13.242Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0WmmiXF_yVRBc3pHB3dUFw.png" /><figcaption>(DALL-E 3)</figcaption></figure><h4>Preface</h4><p>The article that starts after this preface is the first I’ve generated using my first bot created with <a href="https://openai.com/blog/introducing-gpts">GPTs</a>. I spent time customising it with examples of my writing (mainly from my <a href="https://fieldp.medium.com/">Medium</a> posts), my interests and influences. I’d written the first paragraph a year or so ago but could not make the time to focus on it.</p><p>So, armed with my new bot and the opening paragraph, I asked it to take that and generate an article. Five versions in and it was making arguments I hadn’t thought about but could see how they related to points I would make directly. During that process, I went back to the bot and further refined what I wanted it to do.</p><p>For some of those new arguments, it was making citations I’d never come across. E.g., I’ve never read The Prince and in particular, <a href="https://insights.som.yale.edu/insights/no-machiavelli-did-not-say-its-better-to-be-feared-than-loved">its musings</a> on love and respect.</p><p>So very quickly, we went beyond me showing it what I wanted, to me sitting back and thinking. I was then checking arguments and references and learning from it. I even got to the point of thinking that even if it was hallucinating a point, that I still liked it!😳</p><p>The point is, the process took an unexpected but interesting turn. I expected to become a content producing machine (😎) and in actual fact started learning about something I thought I knew enough about to write about. An interesting and, I suspect a long running process.</p><h4>Article</h4><p>In the labyrinth of modern work culture, the question of whether one can cultivate friendships at work is not just a matter of personal preference but a strategic consideration for any IT leader. It reminds me of a leader I once knew, who shared a philosophy that resonates deeply with me. She started all professional relationships with 100% trust, a bold and optimistic strategy, and then adjusted her expectations based on people’s actions. This approach, while idealistic, aligns with a fundamental human desire to connect and trust.</p><p>However, there’s a nuanced understanding that must accompany this philosophy, which is eloquently captured by the Agile Manifesto’s principle of valuing “individuals and interactions over processes and tools.” In IT, where processes and tools often dominate discussions, prioritizing human connections can be a revolutionary act.</p><h4>The Machiavellian Approach: Balancing Trust and Prudence</h4><p>Machiavelli, often misunderstood as a proponent of ruthless tactics, actually emphasized the balance between being loved and feared. In the context of workplace friendships, this translates to balancing trust with prudence. Trust is the foundation, but not everyone we encounter in our professional journey is a potential friend. Some colleagues are amiable and cooperative, but that doesn’t necessarily make them friends in the true sense. Recognizing this distinction is crucial for maintaining professional boundaries and avoiding disappointments.</p><h4>The Architectural Framework of Workplace Relationships</h4><p>In software architecture, there’s an emphasis on building systems that are robust yet flexible. Similarly, in cultivating workplace relationships, one must develop a framework that is open to genuine connections but resilient enough to withstand the complexities of work dynamics. It’s like being an architect of your own social landscape at work, designing it with both openness and safeguards.</p><h4>A Tool for Navigating Complexities</h4><p>A touch of self-deprecating humour can be a powerful tool in this journey. It signals humility and approachability, making you more relatable and trustworthy. However, it’s important to balance this with confidence and assertiveness, ensuring that your leadership qualities are not overshadowed by your efforts to be likable.</p><h4>The Hard Choice: Recognizing the Limits of Friendship</h4><p>There’s a hard choice that often accompanies the realization that not everyone is a potential friend. It involves acknowledging that while professional relationships can be deep and meaningful, they have their limits. This is where your leadership skills come into play — in recognizing and respecting these boundaries, and in managing your expectations and emotions in a mature and pragmatic manner.</p><h4>Conclusion: Embracing a Balanced Approach</h4><p>In conclusion, making friends at work is possible and can be enriching for both personal and professional growth. However, it requires a balanced approach, blending trust with prudence, openness with boundaries, and humility with leadership. As IT leaders, we navigate these relationships with the same precision and thoughtfulness that we apply to our technical endeavors, striving to build connections that are both meaningful and appropriate within the professional context.</p><p>This article is intended to resonate with IT leaders who seek to balance their professional and personal lives in a way that is both humane and strategically sound.</p><h4>Coda</h4><p>(Pure me again. I’d be interested in if people think this sounds like me.)</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8f8a9b65422e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Risk of over ideological Agile Transformation]]></title>
            <link>https://fieldp.medium.com/agile-doesnt-work-until-it-does-5d74e90676b7?source=rss-ec7a755aa53a------2</link>
            <guid isPermaLink="false">https://medium.com/p/5d74e90676b7</guid>
            <category><![CDATA[agile]]></category>
            <dc:creator><![CDATA[Paul Field]]></dc:creator>
            <pubDate>Thu, 12 Oct 2023 11:15:48 GMT</pubDate>
            <atom:updated>2023-11-10T10:55:42.490Z</atom:updated>
            <content:encoded><![CDATA[<h2>Risk of over ideological Agile transformation</h2><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KzU29ZCR366VffT0WuNZoQ@2x.jpeg" /><figcaption>Photo by jana müller on Unsplash</figcaption></figure><p>TLDR; when the desire to become more ‘agile’ becomes part of corporate strategy, there are some huge risks to avoid. It’s being too ideologically driven and wasting vast amounts of mental and emotional energy getting all the agile ideologues, pragmatists, waterfall-arians on the same page. Within that, trying to weight belief based on reading from belief based on experience is extremely difficult. And if you complete that Herculean task, it’s making sure the result isn’t a watered down approach to keep everyone happy. Then, it’s avoiding the temptation to deploy the biggest Agile framework that’s trying to be all things to all people. It’s better to start small, learn fast and then bring in scale-up mechanisms. Start with a lighthouse project. Manage it well, get it to meet its KPIs, scale-up, rinse, repeat and the world is your oyster.</p><p>Before I go on, caveat emptor: <a href="https://www.sparknotes.com/shakespeare/macbeth/quotes/page/5/">Life is a tale told by an Idiot…</a></p><p>In a land of candyfloss and perpetual rainbows, a scholar is born every day. They march up a glitter strewn street, ideological thought bubbles in their wake.</p><p>The sclerotic, unwashed masses march t’ward them, accompanied by a miasma of paper dust. Within their ranks, the odd t-Rex. All <em>they</em> see are jesters, hell bent on chaos.</p><p>Contact begins with an intellectual minuet but before long segues to waltz after exhausting waltz. It can go on for months or even years.</p><p>Those who fight, believe hard in the battle for ideological supremacy.</p><p>Too often though, the result is persistent stalemate and nothing really changes. The agile ‘lot’ do sprints, the waterfall group do gantt charts and there is a permanent air of mutual suspicion.</p><p>Seem familiar?</p><blockquote>‘Agile didn’t work,’ mutters the beleaguered executive.</blockquote><p>The road to nowhere is, when things fail, blame the methodology and drag everyone back to the status quo, which can be incredibly demoralising. So don’t do it. It’s important to commit and learn.</p><blockquote>The reality is, the battle is the wrong approach.</blockquote><p>Equally, a truce of the lowest common denominator is not a collective win either.</p><p>If there remains any money, time and will to collaborate, something fledgling could still emerge: If. Deep, uncomfortable, soul searching can be done, it can lead to insight that can be actioned and lead to success.</p><blockquote>The magic ingredient is stop trying to keep everyone happy and, per Amazon, disagree and commit.</blockquote><p>Start with incremental gains where a few changes are easy and even small successes are hard won. But won as one team. Anything else is, at best, a zero sum game.</p><p>There are many traps to avoid but plotting a change plan is possible. It requires continual self examination and long term thinking.</p><p>In going through wanting the change, trying it and labouring away with medicore results is thinking it’s <a href="https://www.goodreads.com/quotes/9763120-a-common-example-is-process-as-proxy-good-process-serves#:~:text=The%20process%20becomes%20the%20proxy,re%20doing%20the%20process%20right.">all about the process and forgetting the end goal</a> (part of <a href="https://www.aboutamazon.com/news/company-news/2016-letter-to-shareholders">Jeff Bezos’ 2017 letter to shareholders</a>).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/799/1*8NKIquJ12Ct9s2dAQ3Wm1w.jpeg" /></figure><p>One trap is the <a href="https://en.wikipedia.org/wiki/Waterfall_(M._C._Escher)">Escher waterfall</a> (how I imagine it) minting Scrum Masters from Project Managers. Some will be great at it. And some won’t. The good ones will have evolved their way to a SM level of thinking on their own, even if they haven’t thought much about agile. For where it doesn’t work out, routing people back to PMs might in some cases work. Some problems need the PM mindset.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*StvMopowG-oOltNL" /><figcaption>Photo by <a href="https://unsplash.com/@simonppt?utm_source=medium&amp;utm_medium=referral">SIMON LEE</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Product Owners and Business Managers (I am using this as a generic term for any number of roles that may have some sort of say about requirements and priorities and some sort ownership of a ‘product’) can get stuck on a <a href="https://godelescherblog.wordpress.com/2015/04/05/mobius-band-bach-is-the-best-bach/">möbius strip</a> of doom: for who should decide what the product should do? I’ve seen it so many times where everyone agrees in the role of the Product Owner but insists their side should be the ones to do it. Personally, I think this stems from the deep rooted belief in some that IT are a waste of time and if you just give developers to business then all will be well. Seen this in a few places too. There’s probably a whole article there on why shadown IT exists.</p><p>The truly transformational leader keeps their people safe from these traps.</p><p>The whole reason these battles can start is because, in the multiverse of a company there lies the valley of the glittering spires, each encrusted with the ancient runes of their orders.</p><p>There are the <a href="https://agilemanifesto.org/principles.html">mAgile</a> (honestly, I think this is as relevant now as it ever was) classicists, the worshipers of <a href="https://amzn.eu/d/0FrU2RX">Kerstin</a>, the followers of Consulititis and the most ancient of all, the grand order of statisticians and numerologists. If you’re stuck at a <a href="https://science.nasa.gov/resource/what-is-a-lagrange-point/">lagrange</a> point among these options, you’re dead.</p><p>With so many traps, how can anyone triumph? It sounds like a stupid tautology, but I think it’s true.</p><blockquote>Agile has to be Agile.</blockquote><p>Wagile compromises can so often fail. It’s all too easy to wrap up engineers in tons of management in order to feel risks are managed and we’re going to get what we want.</p><p>But in the end, the only way to know, is prototype it, show it to the business and iterate towards production.</p><p>This includes non functional as well. Because everything non functional still has to be evidenced and there will be the various stakeholders who need to see these things are taken care of.</p><p>The core of the engine is still about small cross functional teams, automation driven, that can prioritise and rapidly iterate.</p><blockquote>This is when agile starts to work.</blockquote><p>I think a good corollary of the original agile manifesto is Daft Punk’s <a href="https://www.youtube.com/watch?v=D8K90hX4PrE">Technologic</a>: bend it break it. Quick re-write it…</p><p>And if you’re tempted to write that sentiment off because it only applies to code, think again.</p><blockquote>It’s not going to be long before <em>we’re</em> the <a href="https://github.com/features/copilot">co-pilot </a>to the AI. Then it’s just a short step to the AI being the developer and the human is only a source of requirements?</blockquote><p>And how long before an AI can understand the company’s corpus, its behaviour, strategy, culture, successes, failures and predict its decisions? It can outsource everything it can’t (yet) do, using smart contracts and crypto. So all you need is a board.</p><blockquote>Then, how long before we just end up with <a href="https://cointelegraph.com/learn/what-is-a-dao">DAOs</a> where <a href="https://browse.arxiv.org/pdf/2304.03442.pdf">every board member is an AI</a>? Maybe all you need then is a CEO (‘demi-God’?) and eventually that can be an autonomous agent itself.</blockquote><p>While we do still have jobs or any purpose, one last entreaty: It’s worth re-reading <a href="https://www.amazon.co.uk/Mythical-Man-Month-Software-Engineering-Anniversary/dp/0201835959">Fred Brooks</a>. Some lessons transcend metrology and ideology.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5d74e90676b7" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[ChatGPT Early Learnings]]></title>
            <link>https://fieldp.medium.com/chatgpt-early-learnings-e5e023aae356?source=rss-ec7a755aa53a------2</link>
            <guid isPermaLink="false">https://medium.com/p/e5e023aae356</guid>
            <category><![CDATA[3d-animation]]></category>
            <category><![CDATA[threejs]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[chatgpt]]></category>
            <dc:creator><![CDATA[Paul Field]]></dc:creator>
            <pubDate>Sat, 09 Sep 2023 15:50:50 GMT</pubDate>
            <atom:updated>2024-07-07T10:17:58.541Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*yjNZlbFIN7g2vUhn" /><figcaption>Photo by <a href="https://unsplash.com/@mateusz_roman?utm_source=medium&amp;utm_medium=referral">Mateusz Roman</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><h2>ChatGPT 3D Animations</h2><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FgmTSUZ0uHcY%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DgmTSUZ0uHcY&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FgmTSUZ0uHcY%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="640" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/5850198c4a86f63642a60081c1dcd81f/href">https://medium.com/media/5850198c4a86f63642a60081c1dcd81f/href</a></iframe><h4>Full Explanation</h4><p>In my day job I do technical leadership type roles. In my early career I spent a good number of years coding, these days there is never enough time to chip off the rust and do anything real and interesting (to me).</p><p>For a couple of months, I have been using ChatGPT (heretofore, ‘<strong>it</strong>’), mainly v4, to see if I can use what spare time I have to build something interesting.</p><p>I am blown away by what it’s enabled. And I think I am just scratching the surface.</p><p>I wanted to share my initial learnings, impressions and ways I’ve tried working with it. I know people are doing much more advanced things, and there is plenty more I want to try. But <a href="https://github.com/stompinghoss/3toroids"><strong>here</strong></a> is a thing I wanted to share.</p><p>Note, this was after having tried a much <a href="https://github.com/stompinghoss/3toroids/blob/main/dist/toroid.html">simpler</a> <a href="https://github.com/stompinghoss/3toroids/blob/main/README.md">example</a>.</p><p>Initially I threw lots of different problems at it.</p><h4>Selecting a Problem</h4><p>I did some messing about with some graph theory.</p><p>Then I had the vague idea to see what it would make of the <a href="https://en.wikipedia.org/wiki/Seven_Bridges_of_K%C3%B6nigsberg">7 bridges of Königsberg</a> but decided I wasn’t smart enough to explain the problem.</p><p>Though I want to go back to that. It might be an interesting reasoning test. I am not getting my hopes up for an answer…I am pretty sure it’s proven impossible to solve.</p><h4>Going Graphical</h4><p>The problem type I found that gave the most satisfaction was getting it to build 3D animations that would run in a web page.</p><p>Early ideas came to life within minutes. Same for simple adaptations. Adding more complex features did take some time. Mainly, it was figuring out how to ask for what I wanted and in some cases dealing with getting something that sort of worked but not quite. That said, I was still making faster progress than doing it manually.</p><p>In what I describe here, there is no way I could have got this far, this quickly by “old school” Java Script programming. The last time I did any production JavaScript was more years ago than I want to admit. And I was a middle of the road developer when I was doing it.</p><p>Whenever I dip back into code, I always find the range of tools, frameworks, languages is growing so fast, the idea of doing anything useful, quickly is really intimidating. (in my defence, I think a healthy dose of humilty is reasoonable). Don’t get me wrong, the time is still well spent as it keeps me conversant if not fluent. And I like to think I have a good intuitive grasp of things. All of that said, for me, imposter syndrome is never far away.</p><h4><strong>ChatGPT changed all that</strong></h4><p>I can get things to a proof of concept level quickly. At least with what I’ve tried so far.</p><p>Starting to write this, my plan had been to share some lessons but I am also going to see if I can explain how my whole approach to technical leadership is changing. I say changing because I feel I am just scratching the surface and the AI revolution just keeps on going.</p><h4>Why 3D stuff?</h4><p>Way back when, I had a C64 and got a demo off a magazine disc that inspired me. It was A — level maths animating sprites in circular patterns. I got fascinated. I was greatly inspired see a few mega demos on my friend’s Amiga 500. It was so long ago but drove me to want to do something like it. So off I went into ARM assembler on my Arc. And along with my maths cheat sheet, a bit of trig and vector maths, I got some results and found it fun. But it gets harder. I started trying to figure out how to write shaders and ran into a lack of knowledge and time. And I sort of gave up. But I never lost the fascination for the end result.</p><p>A few years ago, I found time to dabble with Unity and got some interesting results, especially when adding in a physics component.</p><p>Since then, I’ve lived it vicariously through 2 minute papers which has some <a href="https://youtu.be/Lu56xVlZ40M">very interesting</a> content.</p><h4>Enter Chat GPT</h4><p>So I decided to see what I could do with computer graphics.</p><p>I thought about doing something with circles.</p><h4><strong>Approaching the problem</strong></h4><p>I thought I’d start simple and build up. I soon found it much easier to keep asking it to make modifications rather than trying to build the original query up and out.</p><h4>Caveats</h4><p>It’s proof of concept level only…not extensively cross browser tested. Is generally assuming most browsers will run ECMAScript 6. I was testing in Brave and periodically testing in Brave on an iPhone 13 pro max.</p><h4>Get 1 Ring Rotating</h4><p>I’d never heard of <a href="https://threejs.org/">three.js</a> when I started this. There is so much open source now, that it’s hard to keep up. It just told me it generated code using it. Interestingly, the generated code was a sequential script rather than object oriented. I decided I come back to that.</p><h4>Get 3 Rings Rotating</h4><p>That was easy. Just asked for more rings. See the original example (<strong>link)</strong>. If I was doing it manually, it would be reasonably simple based on an understanding of what the first step did. It was broadly intuitive, but I’d not looked at the three.js documentation. I think I got away with it because I broadly understood basic concepts like a perspective camera, viewing planes, lights and shading. So while I’d not read up on how <a href="https://threejs.org/">three</a> does it, I made assumptions and it worked (mostly).</p><p>Interestingly, as things got more complex, I found I really had to go back over and understand what it was doing. And eventually spend a lot of time in the three.js docs and examples (which btw, are very impressive).</p><h4>Make the Rings Shiny</h4><p>From college I remembered about Phong shading. I assumed it would come for free now. And it very much did, and then some.</p><p>Further on in the process, it was generating all sorts of custom shaders. They were in experimental versions I am not putting in here. What I particularly liked was with those cases, it advised me the code could be complex and you really needed to understand the syntax of the shader code.</p><p>So I basically asked it to apply Phong shading and it did.</p><h4>Add Lights</h4><p>To get anything to happen with shading, you need lights. I had several occasions where I’d run the code and just get a blank screen. If this involved shiny materials or textures it was usually due to lack of useful light. ChatGPT often advised me of this and it was fairly quick to fix. So I had shiny materials, shaders and light and it was all looking pretty and smooth in a browser.</p><h4>Add a Floor “xz plane”</h4><p>I wanted this so there’d be something to project shadows onto. I had it initially as a kind of stage, going all the way across the view from left to right. It generated this fine, but it had to rotate the plane to the xz orientation. To see how it worked, I had to remember how radians worked. ChatGPT could help with that, of course.</p><h4>Shading the Floor</h4><p>I thought it might be nice to have the floor plane fade to black at the horizon. But this messed up the look of the projected shadows. I did lots of experiments with it generating shader code for different effects, but settled on something simple in the end. See the code.</p><p>Went into a few variations with custom shader code, but that would have been a pretty deep rabbit hole and it wasn’t necessary to get what I wanted at the time.</p><h4>Corners</h4><p>Later I added xy and yz planes and making the stage floor the same as the other two planes and joining them up to make a 3D cornerr. Here I found myself dropping into normal programming and replicated some code that I later refactored with ChatGPT.</p><h4>Shadows</h4><p>The concept of things projecting and receiving shadows was simple enough in principle for it to implement. Though, it again looped me rounding getting lights right.</p><p>The next problem was I found the shadow edges were very jagged. So I figured I needed anti aliasing. At that point I needed to include three.js additional modules. That caused some issues.</p><h4>Down the Rabbit hole on Imports</h4><p>Initially it generated code that included <a href="https://threejs.org/">three</a> from a CDN.</p><p>Then I’d ask it to generate anti aliasing code and it wanted to include things (like ShaderPass and EffectsComposer) that weren’t in the place it thought they were in the version of <a href="https://threejs.org/">three</a> it included. So the code didn’t work.</p><p>(Side note; when I started experimenting with physics engines [different demo, not here], ChatGPT could explain to me about <a href="https://developer.mozilla.org/en-US/docs/WebAssembly">wasms</a> which was useful)</p><p>I’d never really played with node before, but eventually worked out the simplest (albeit maybe not the fastest) way was to install <a href="https://threejs.org/">three</a> locally and import from it.</p><p>Then I ran into issues with paths to node modules, but again it advised me to get paths to resolve from the root of the site by running a local server like <a href="https://vitejs.dev/"><strong>vite</strong></a>. I’d not come vite across before but it worked well. Even just with a simple convenience of it auto re-loading when I made a change. It was a step up from python3 -m http.server.</p><h4>npm</h4><p>I’d never really used in anger. ChatGPT helped me sort out a bit of a mess here. As I’d played with it in various small projects, I’d ended up with a lot of orphaned modules. I learned about tree shaking which was useful. Then I learned about webpack.</p><h4>Un-jagged shadows</h4><p>Things got a bit out of control here.</p><p>Up to this point, I was generally finding it would give me code that did what To applying anti-aliasing, it got me to add several passes to the rendering process. It seemed to work.</p><h4>Unexpected Consequences</h4><p>When I later added in orbit controls, when I looked at the scene from underneath, I was getting a significant zig zag pattern where the plane edges joined:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/782/1*70-cZ8Jb_5Ccoz0p0BYRYg.png" /></figure><p>Similarly, I was seing weird artefacts:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/734/1*smVgbqZ1N5G1rMlpiaa_Xw.png" /></figure><p>Without texturing off, the artefacts were much worse:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/922/1*DdVuKV5ALFE0C8zkbuYeuQ.png" /></figure><p>Without texturing, it should have (at that version of the code) looked like:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/914/1*TO3NEUFvNPUcpp9rDq9ZCQ.png" /></figure><p>I spent a long time querying ChatGPT and even Bard and Claude.</p><p>The answer was always that it was to do with ‘z-fighting’, but there was no solution offered.</p><p>Being a bit random, I asked if <a href="https://threejs.org/docs/index.html?q=ray#api/en/core/Raycaster">ray casting</a> might solve it, but it said no and that it’d be computationally expensive. I got enough of an explanation to believe it. So avoided a dead end.</p><h4>Down the Physics Rabbit Hole</h4><p>Another approach (which in hind sight, didn’t make too much sense, but it was interesting) I thought I might try was introducing physics. The idea being that things couldn’t overlap each other because they couldn’t take up the same physical space. That being the case, it might solve the artefacts.</p><p>This was interesting but part way (well probably a few weeks given limited time to work on it) in, I realised it wasn’t going to help.</p><p>I did learn a few interesting things though.</p><p>I tried <a href="https://github.com/kripken/ammo.js">ammo.js</a> because it could do soft body collisions which look cool, as per a <a href="https://threejs.org/examples/?q=physics#physics_ammo_volume">demo</a> on <a href="https://threejs.org/">three.js</a></p><p>Eventually, I got a soft body demo (I’d gone well off topic here) working but the code was horrible and I didn’t understand it very well. Also the documentation was difficult (for me).</p><p>I decided to switc to <a href="https://lo-th.github.io/Oimo.js/#basic">oimo</a> which had some nice demos and looked like it might be easier. I got quite quick progress.</p><p>By this point, I was learning the general idea was to mimic what you wanted to animate using graphics in a physical simulation and update the graphical world to stay in line with positions, movements (etc) in the physics world.</p><p>However, things got more difficult when I found that if the physics engine doesn’t support the shapes in the graphics engine then you run into problems. I.e., if graphically you can build a torus out of triangles but you can’t in the physics engine, then physical behaviours will only be an approximation.</p><p>I got a couple of demos interesting enough that I want to come back to them, but at this point it was clear that at least for the libraries and approaches I tried, the answer was not in physics.</p><h4>Back to Basics</h4><p>In the end, I decided to unpick the rendering passes that were supposed to have helped with anti-aliasing. I put switches in for for each and eventually found the thing I thought was helping, actually wasn’t and it was something else.</p><p>So, goes to show you can’t always get away with not understanding everything you’re given. But that goes for anything else you look up on the Internet, so it’s not a down side IMHO.</p><p>The disabled (switch render control to false) became:</p><pre>if (this.renderControls.antiAliasing) {<br>   // Create the anti-aliasing pass<br>   const fxaaPass = new ShaderPass(FXAAShader);<br>   fxaaPass.uniforms.resolution.value.set(1 / window.innerWidth, 1 / window.innerHeight);<br>   composer.addPass(fxaaPass);<br>}</pre><pre>if (this.renderControls.shadowPass) {<br>   // NOTE: This isn’t working. When switched on it’s created<br>   // zig zag aretfaces in adjoining edges like adjacent plane edges<br>   // Create the shadow pass<br>   const shadowPass = new ShaderPass(CopyShader);<br>   shadowPass.uniforms.opacity.value = 1.0;<br>   shadowPass.renderToScreen = true; // Render the final result to the screen<br>   this.composer.addPass(shadowPass);<br>}</pre><p>When viewing from underneath, the corners joined properly.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/916/1*qj1iPk6p-1oUQM0rhAVs6A.png" /></figure><p>And the rings looked right.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/890/1*MzJ9RYooKpJWJCQ-220Tbg.png" /></figure><p>You could then also zoom in and see no jagged edge problems:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zLp6atCJNeK8JfR0hR6VLg.png" /></figure><p>So what was actually having the effect? It was something else it suggested. And this was really where I learned you can get into problems if you don’t quite know what it’s doing. It was the following that made shadows work:</p><pre>if (this.renderControls.shadowsOn) {<br>   renderer.shadowMap.enabled = true;<br>   renderer.shadowMap.type = THREE.PCFSoftShadowMap; // Soft shadow mapping<br>}</pre><pre>if (this.renderControls.shadowsOn) {<br>   light.shadow.mapSize.width = 1024;<br>   light.shadow.mapSize.height = 1024;<br>   light.shadow.camera.near = 20;<br>   light.shadow.camera.far = 1000;<br>  }</pre><p>Getting the mapSize right was the key. You can go higher and it just slows down without (to me) be noticeably better.</p><p>When I was writing about anti-aliasing and shadows, I couldn’t remember all of the relevant factors, so I asked it, and it still thought that I needed all of these passes to get the desired effect.</p><p>It’s entirely possible there are benefits in those passes and I’ve solved the symptom and not the problem. But for now it does it what I wanted and I didn’t want to lose any more time. I might come back to it though.</p><h4>Performance Considerations</h4><p>While experimenting, I had made the shadow maps larger. This ran ok on the computer but blew up completely on mobile devices. I eventually found a thread suggesting it could be a vram issue. It would fail silently which was making it real pain to debug.</p><h4>Fiddle with Light Types and Positions</h4><p><a href="https://threejs.org/">three.js</a> has an abundance of choice of lights. I tried directional and spot lights but in the end came back to point lights. There is a huge amount you can do with lighting and I’ve kept it simple because I wanted to get something finished, or at least baselined.</p><h4>Textures</h4><p>This became a big subject, and something I am only scratching the surface of.</p><p>Long story short, I found a useful <a href="https://marmoset.co/posts/basic-theory-of-physically-based-rendering/">article</a> that helped explain the fundamentals.</p><p>I got references to available textures and ended up <a href="https://ambientcg.com/view?id=Metal041B">using</a> a rusty metallic one from <a href="https://ambientcg.com/">ambientcg</a> who kindly allow usage under C<a href="https://docs.ambientcg.com/license/">reative Commons</a>.</p><p>Its preview looks like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*70p95vBzgCp-LF-5kPR_hA.png" /></figure><p>It’s definitely worth checking out their website. ChatGPT also led me to a few other sources like <a href="https://polyhaven.com/">Poly Haven</a>. Just ask it: “where can I get hdri tone map images?” (Note, I’d never heard of HDRI tone maps but it told me about them in a query I made about lighting).</p><p>I realised I needed to load multiple files for a complete texture:</p><p>Metalness map, roughness map, displacement map, normal map etc.</p><p>At this point I started running into timing issues. I remembered about Promises in JavaScript, but couldn’t remember the syntax. ChatGPT provided me the following which appeared to work.</p><pre>LoadTexture(url) {<br>   return new Promise((resolve, reject) =&gt; {<br>       this.textureLoader.load(<br>       url,<br>       (texture) =&gt; resolve(texture),<br>       undefined,<br>       (error) =&gt; reject(error),<br>       );<br>   });<br>}</pre><pre>texturedRender() {<br>   Promise.all([<br>   this.loadTexture(‘/assets/Metal041B_1K-JPG/Metal041B_1K_Color.jpg’),<br>   this.loadTexture(‘/assets/Metal041B_1K-JPG/Metal041B_1K_Roughness.jpg’),<br>   this.loadTexture(‘/assets/Metal041B_1K-JPG/Metal041B_1K_Metalness.jpg’),<br>   this.loadTexture(‘/assets/DayEnvironmentHDRI033_1K-TONEMAPPED.jpg’),<br>   this.loadTexture(‘/assets/Metal041B_1K-JPG/Metal041B_1K_Displacement.jpg’),<br>   this.loadTexture(‘/assets/Metal041B_1K-JPG/Metal041B_1K_NormalGL.jpg’),<br>   ]).then(([map, roughnessMap, metalnessMap, envMap, displacementMap, normalMap]) =&gt; {<br>   const mat = new THREE.MeshStandardMaterial({<br>       map,<br>       roughnessMap,<br>       metalnessMap,<br>       envMap,<br>       displacementMap,<br>       normalMap,<br>       normalScale: new THREE.Vector2(1, 1),<br>  });<br>  <br>  mat.metalness = 0.8;<br>  mat.roughness = 1.0;<br>  <br>  this.createScene(mat);<br>}).catch((error) =&gt; {<br>   // eslint-disable-next-line no-console<br>   console.error(&#39;An error occurred while loading the textures.&#39;, error);<br> });<br>}</pre><p>(Note, this was before moving the assets to a CDN.)</p><p>I tried a few different textures and experimented with factors like metalness and roughness. The numbers above are experimental and seemed to look reasonable.</p><h4>Diagnostics of a Sort</h4><p>When trying to work out why (some) textures didn’t look right, I tried mapping the textures to a simpler shape (a cube) and putting a light shining on every face. This performed really badly. Clearly light and shadow are expensive. Though, it did help show if the textures was being setup right because in some cases they looked better on a simpler shape.</p><p>Sometimes I found I needed to check which way x, y and z were pointing, so drawing up the axes helped. I’ve left that in but switched off in the render controls.</p><p>The trusty browser developer tools showed performance issues in the texture loads. I switched from 4k to 1k files which helped. tbh, it’s still not quick enough. I am sure there’s more to be done in general.</p><h4>Tidy Up</h4><p>Up to this point, I just had a straight script. I asked it to refactor to object oriented. It did this partially and left the rest as exercise for the reader.</p><p>It showed me how to install and setup a <a href="https://eslint.org/">linter</a> which was useful.</p><p>Also got it to help setup the linter in Sublime.</p><p>Got it to analyse for security issues. It gave a few things (like eslint <a href="https://github.com/eslint-community/eslint-plugin-security">plugins</a>) but pointed me to more professional tools to help with this.</p><h4>Bring on the Config files</h4><p>Though it’s not as exciting as the centre piece of a proof of concept, getting it to deal with the minutiae seemingly endless config files is a god send. Practical, albeit simple examples would be .eslintrc, package.json, Sublime build scripts etc.</p><p>I always had this bad habit of leaving building and packaging until the end. No longer. The iteration is pretty easy. So I am building more robust(ish) solutions that I feel just about up to sharing. Though, to be clear, this is a PoC and not production ready. Just getting my excuses in early.</p><h4>Package and Release</h4><p>I am not one of life’s natural born Dev Ops engineers, though I massively appreciate the value of the role. When programming on my own time, I tend to focus on the core and have shared very little, so it’s not been an issue.</p><p>It walked me through <a href="https://webpack.js.org/">webpack</a> to get it bundled.</p><p>Helpfully, it walked me through git setup. I’ve tinkered before but with long gaps and there were a few things I needed help with. The history shows the amount of mucking about I did…not so clever.</p><p>It didn’t help me to realise (that while I using local assets) I needed <a href="https://docs.github.com/en/repositories/working-with-files/managing-large-files/configuring-git-large-file-storage">LFS</a> to handle binaries (textures), but that wasn’t difficult to find.</p><p>For the top of page code attributions, I borrowed some css from one of the <a href="https://threejs.org/">three.js</a> demos and it walked me through the styling syntax to get what I wanted. I remembered next to nothing about css. tbh I am not sure I ever knew a lot.</p><h4>Going to a CDN</h4><p>I thought it’d be good if I could publish straight onto a CDN. On this topic, ChatGPT only helped in a minor way because in some of the earlier versions, it was importing <a href="https://threejs.org/">three</a> from <a href="https://www.cloudflare.com/en-gb/">Cloudflare</a> and Cloudflare seemed a good place to start. I very quickly found their <a href="https://www.cloudflare.com/en-gb/developer-platform/pages/">Pages</a> capability and it was easy to link to Git Hub so every time I did a <a href="https://github.com/stompinghoss/3toroids/tree/main">push</a> it’d get the update, build it and publish it.</p><h4>Getting a Demo Video</h4><p>This was pretty easy. I just asked it to add code to save a ten second video. It gave me <a href="https://developer.mozilla.org/en-US/docs/Web/API/MediaRecorder">Media Recorder</a> for that. There are definitely better ways, but this will do for now.</p><h4>All Hail three.js</h4><p>I’d never heard of <a href="https://threejs.org/">three.js</a> before it told me and used it. But it is a HUGE testament to the quality of three.js’ design and its exceptional documentation that I was able to get this far. I often looped between its suggestions and the documentation.</p><h4>Lessons</h4><h4><strong>Avoid God Prompts</strong></h4><p>At least for me, this wasn’t a good approach.</p><p>Initially I tried writing extensive prompts, then following up with modifications and looping back to modify the original prompt.</p><p>This didn’t work out too well. I had lots of question prompts that led to command prompts and iterated round. E.g, ‘how would I …’ which would result sometimes in a complete answer, but sometimes in options. Options then lead to ‘how would I do that one’ type of questions. Sometimes the answer would be to extend a script with some lines of code. But if it was a config file where I was say not too familiar with the syntax, it was sometimes just easier to give it the script and ask it to modify it for me. Loop upon loop. But productive.</p><p>One of the downsides of this approach I found was that it was too much to keep track of prompt/result, so I can’t remember what I asked it.</p><h4>It’s Performance Aware</h4><p>Generally it’d give advice on what might run slowly and it was usually right.</p><h4>Try other LLMs</h4><p>When I was trying to solve (what I thought was) z-fighting, Bard gave inspiration.</p><h4>Try to avoid slipping back old School Dev</h4><p>There were a few cases where I found myself slipping back ‘normal’ development:</p><ul><li>Trying to solve z-fighting</li><li>Getting multiple planes to build a corner</li><li>Getting the lighting right for textures</li></ul><p>And various other minor things.</p><h4>Avoid being too Specific</h4><p>At one point, I wondered if Ray casting (per the above) might solve z-fighting problem. It advised me this wouldn’t work and as I thought about it, I realised it indeed didn’t make sense.</p><h4>Cajoling</h4><p>Initially it didn’t want to generate graphics for me, but when I specified it be JavaScript in a browser, it carried on without problem.</p><p>Similarly, I got it to record a short video to use for demo purposes and the code would save it as a .webm file.</p><h4>Explaining CLI Syntax</h4><p>I found this easier than going through stackoverflow articles.</p><h4>What Next on This?</h4><ul><li>This code is most definitely proof of concept and I am sure could be a lot better. But the purpose of the exercise was just to get something working.</li><li>It needs to be more visually arresting. But that could be plenty more work and I wanted to share some learnings now.</li><li>It needs to be faster, especially up-front load time.</li><li>Convert to Typescript.</li><li>Further re-factor. There are definitely some things that could be more elegant.</li><li>Maybe try converting to Python to observe how that might work.</li><li>Try to bring it toward the original idea of making it look like the <a href="https://www.youtube.com/watch?v=ljeDM2v-a6E">Gravity Drive from Event Horizon</a> (minute 3:40). Based on my current understanding, I am sure the lighting is going to be performance intensive.</li></ul><h4>What Next in General</h4><p>Back out of graphics and into real enterprise things…</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e5e023aae356" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Cycle like you’re 10 years old]]></title>
            <link>https://fieldp.medium.com/cycle-like-youre-10-years-old-f06d64ff1bd4?source=rss-ec7a755aa53a------2</link>
            <guid isPermaLink="false">https://medium.com/p/f06d64ff1bd4</guid>
            <dc:creator><![CDATA[Paul Field]]></dc:creator>
            <pubDate>Wed, 27 Oct 2021 12:42:04 GMT</pubDate>
            <atom:updated>2021-10-27T12:42:04.288Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8nuw9A1IKqajr1vdYB-AwA.jpeg" /><figcaption>Photo by<a href="https://unsplash.com/@dannynee?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText"> Danny Nee</a> on<a href="https://unsplash.com/s/photos/cycling-friends?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText"> Unsplash</a></figcaption></figure><p><strong>Cycle like you’re 10 years old</strong></p><p>Remember what it felt like when you’d learned to ride and got your first bike? It didn’t matter what it was. What mattered was being with friends, outside. How fast you got to your friend’s house didn’t matter. What you wore didn’t matter. You might cycle to a park, or as you got a bit older, explore wider, but every day you’d either be thinking about meeting up and cycling or (during the holidays) actually doing it.</p><p>And then, before you knew it, had a good job, a family and those days seemed like 100 years ago. Now everyone is on Strava, Zwift, Peloton et al, everyone’s competing. It’s all about social media bragging rights and trying to meet impossible body images, KOMs, finishing events, KMs per week or crazy over priced bikes and equipment.</p><p>The old bike just sits in the garage, gathering dust. When you get in your car to go to work, you may look wistfully at the bike but then think you definitely don’t want to be caught up in the cycling rat race and so the bike stays in its long term home; alone, forgotten.</p><p>Yet, fate can take interesting turns. Maybe a couple of friends invite you for a pub lunch. You know they don’t ride fancy bikes. And you heard about the pub. And you think; what the hell — you actually have a bit of time. You yank the bike out and pedal it up and down the street. Amazingly (it seems) everything just about works. Even more shockingly, you make it to the pub and lunch tastes so much the better for having done a little work.</p><p>Before long, you’re all meeting up weekly. It may be to a pub or to a coffee shop for a cappuccino and some sweet, guilty pleasure. And you start to think; just maybe you’d like to cycle longer, still with friends, but just to enjoy nature.</p><p>Wouldn’t it be just great if we could just forget the paraphernalia and the competition and get back to basics?</p><p>My wife created <a href="https://sashacycling.com/">Sasha Cycling</a> back in 2014 as a way to help women specifically, who want to cycle for <strong>fun and when the rides get a little longer, to do so in comfort.</strong></p><p>I wanted to help. I’ve worked with a lot of digital marketers and had the general idea, but I decided to try the Udacity Marketing degree to learn specific details and market in an authentic way that speaks to people and inspires them to cycle.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f06d64ff1bd4" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Classics of IT: Object Orientation]]></title>
            <link>https://fieldp.medium.com/the-classics-of-it-object-orientation-c6da85742bb1?source=rss-ec7a755aa53a------2</link>
            <guid isPermaLink="false">https://medium.com/p/c6da85742bb1</guid>
            <category><![CDATA[learning-to-code]]></category>
            <category><![CDATA[object-oriented]]></category>
            <dc:creator><![CDATA[Paul Field]]></dc:creator>
            <pubDate>Mon, 11 Oct 2021 16:48:02 GMT</pubDate>
            <atom:updated>2021-10-12T09:39:45.729Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dBYw3cjo9uLh-7z6Rl6GzQ.jpeg" /><figcaption>Photo by <a href="https://unsplash.com/@miracleday?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Elena Mozhvilo</a> on <a href="https://unsplash.com/s/photos/choice?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Unsplash</a></figcaption></figure><h4>How I’d Explain Object Orientation to someone who’s never programmed</h4><h4>First and Foremost</h4><p>It’s only one way of thinking when designing and building a programme.</p><p>Programming trends rise and fall as thought and tools evolve. There also tends to be a lot of dogma about the ‘right’ way to look at things. I agree with the point made near the bottom of the <a href="https://en.wikipedia.org/wiki/Object-oriented_programming#Criticism">Wikipedia</a> page on object oriented programming which is; there is no one <em>right</em> way. How you approach a problem depends on the problem and the situation. That will all become clearer as you get into things. It’s entirely possible you’ll use multiple approaches.</p><p>OO has been around a <em>long time</em> and while some excellent tools and thought models have emerged, there is still a lot of it about. So if you’re coming fresh into programming, it’s worth having an idea what OO is.</p><h4>Background</h4><p>Reading around this topic, the explanations I found all seem to start quite technical, assuming that you already know some programming. Also, the articles I came across (definitely not an exhaustive search) can throw in jargon which might be off putting.</p><p>So here’s how I’d approach explaining it to someone who’s never programmed but keen to start. I tend to want to explain things in a way that encourages people to learn and to form their own opinions.</p><h4>Don’t get Put off by…</h4><p>Explanations that say it’s only good for modelling the real world, e.g. simulations. And that somehow you have jam in concepts to your model that don’t help. Give it a little more time, think about it. Decide for yourself.</p><p>There is certainly <a href="http://There is a certainly valid criticism">valid criticism</a> but don’t get drawn into dogmatic arguments. Just see this as a nugget of knowledge as you dig the mine.</p><p>IMHO, it hinges on what you think is your ‘real world’.</p><p>For example, if you want to build a note taking app, your ‘real world’ is mainly going to be digital concepts that only really exist in the computer. E.g. <strong>Text</strong>, <strong>Colour</strong>, <strong>Font</strong>, <strong>Note</strong>, <strong>Folder</strong> etc. You would’t need to model a person’s writing desk, chair and computer monitor, even though they are in the ‘real world’ of a person who wants to write some notes. They’re almost certainly not relevant. Maybe if you want to run your app on a Smart Table then you’d model a table…but otherwise, not relevant.</p><p>So the point is, real world does not have to mean the whole physical world or anything that’s not relevant or useful. Or in actual fact it could be a combination of real and digital (is cyber real, I’d say I can perceive it so it is…). E.g. an aircraft monitoring solution might well contain ideas like, <strong>Monocoque</strong>, <strong>Wing</strong>, <strong>Flaps</strong>, <strong>Wheel</strong> etc, but also more technical ideas like <strong>Sensor </strong>and some model of the data that comes out of them.</p><h4>A more Practical Explanation</h4><p>It’s a way of thinking about, structuring and developing software in a way that:</p><ul><li>Allows you to think closer (than some approaches) to the actual problem. Though, as mentioned, not all situations suit OO. A helpful example where you might use OO could be; if you’re creating an air traffic control system, your initial thoughts might be about what is there; <strong>Plane</strong>, <strong>Air Corridor</strong>, <strong>Weather</strong> etc. You don’t immediately have to break everything down into (potentially, but hopefully not too) abstruse code that would take real study to link back to the original ideas.</li><li>Makes code easier (if used well / appropriately) to read and understand because there will be some concepts from your original thoughts about the application. Like in your air traffic control system, the actual application may well have <em>things</em> (see below) named as per your original thoughts. And as you think about it more, you might come up with non physical but equally high level ideas like say, a <strong>Schedule </strong>which isn’t in the so called real world anyway.</li><li>Is manageable because (assuming you pick a suitable technology) will allow you divide much of your application into the things (hint — they’re objects) mentioned above. Of course how you engineer can make a big difference to how visible these things are/remain. A badly implemented programme may lose all those ideas in translation. They might be there, somewhere, but near impossible to fathom for a first time reader. And you might have to study it yourself if coming back to it after a break. <strong>Unfortunately this happens a lot. And it shows that like any tool, it’s only as good as its user</strong>.</li><li>Is fairly easy to extend because object oriented thinking can allow inclusion (where relevant) of new functionality that naturally extends existing functionality. E.g. if the system needs to handle <strong>Prop Plane</strong> and <strong>Jet Plane</strong> separately, it may be all planes have some things in common but you can bring specifics into play by having plane variants that inherit from the general idea of a <strong>Plane</strong>.</li></ul><p>The ideas of OOP can be expanded on a lot (and defined a bit more formally) but I think these points are helpful to get a basic idea.</p><p>If you’ve tried to learn programming without object orientation, this way of approaching an application build might be quite helpful. Though depending on the way your brain is wired, it might not. Some people may naturally look at the world another way — and that is totally fine. There is never just one way. It’s always context specific.</p><h4>Where it May not Help Much</h4><p>If you want to write a few lines of script to deploy your code or do some ad-hoc task. Building out classes and objects may just get in the way of the task.</p><p>If you want to build a data processing pipeline, it may not be the right core approach, or, as mentioned it may complement other approaches and ideas. If your problem is best approached with set theory say, you may just not need OO and focus more on the data.</p><p>A criticism mentioned on the Wikipedia pages is that OO emphasises nouns as possible objects when thinking through a written explanation of the problem. But why are verbs any less important? It’s a fair point and is discussed in a detailed <a href="https://steve-yegge.blogspot.com/2006/03/execution-in-kingdom-of-nouns.html">blog</a> post (referred to from the wiki page) on the topic.</p><h4>Taking it Too Far</h4><p>Like most ways of designing and writing code, basic ideas can be over used or badly used and this could taint your view of the approach you’re using.</p><p>The analogy that comes to my mind is from Terry Pratchett where he mentions that it’s sometimes difficult to know when to stop spelling, “Banana” — it is sometimes difficult to know when to stop thinking up new objects. Especially if you’re new to it. If you don’t know where to stop, your code can become unwieldy, slow, over complex etc.</p><p>Think about a traffic monitoring system for motorways with variable speed limits where it tries to predict what speed settings will minimise congestion.</p><p>You might want to think about things like different types of <strong>Vehicle</strong> (e.g. trucks that are speed limited or cars that aren’t — in general), <strong>Lane(s)</strong> (e.g. roadworks might reduce lanes), <strong>Speed Camera</strong> (that might cause sudden slow downs when people see them), <strong>Road Block</strong> (where data can tell you about average traffic speed in a blocked area), weather that makes people drive slower etc. But when thinking about roadworks, you probably don’t need to specifically model each traffic cone, but rather the <strong>affect</strong> of all cones between points A and B. Building dense environments of simple objects that don’t really need to be there can make for slow, bloated code.</p><h4>The Object in Object Orientation</h4><p>Sticking in the travel business, say you want to build a complete system for managing an airline.</p><p>No small task, but it’s rich with ideas where OO can probably help. A moment’s thought and we know our airline management team are going to need to do certain things to run the business. We’ll probably have certain things which are in fact ‘objects’ in this way of thinking and there will be processes we want to run across those objects. All the possible objects are mentioned in bold.</p><p>We’ll probably need to have a <strong>Plane</strong> and it will probably have a <strong>Schedule</strong> — i.e. where is it and where do we want it to be at any given time. We’ll want to know what type of plane we have as they’ll have differences (e.g. physical spec) as well as more digital / data differences such as <strong>Maintenance Schedule</strong>s. And there will likely be a lot of rules and constraints needed to define a schedule that is safe as well as meeting regulatory compliance. We’ll have an <strong>Engineering and Maintenance</strong> team who will have <strong>Part(s)</strong>, <strong>Supply Chain(s) for each</strong>, <strong>Tool(s)</strong>, <strong>Engineer(s)</strong>, <strong>Qualification(s)</strong>, <strong>Warranties</strong> etc. We’ll have planning staff who need to know what <strong>Airports</strong> are where, what landing <strong>Slots</strong> are owned / available when (and maybe what they could be sold for on the open market right now), how much it costs to get an aircraft somewhere. We’ll have <strong>Crew</strong> all of whom have <strong>Training</strong> and movement <strong>Schedules</strong> etc. All of that said, a debate on what objects you want to have can get heated.</p><p>The airline business is a rich and interesting topic which would show off the value of object oriented thinking very well.</p><h4>Not taking it Far Enough</h4><p>This is all fine, but if we don’t choose a language that has OO capabilities then we lose these ideas beyond the white board. Luckily there are lots of languages that support OO. Python is a helpful example. Though there are others that take the idea and tools for OO further. Again, some of the clever stuff you <em>can</em> do can end up hindering more than helping.</p><p>But we also need to think about where it’s useful to keep these ideas in the lower engineering levels. E.g. our API design, package design, infrastructure design, database design. objects may get translated down into just names to reflect thinking and give familiarity to anyone reading the code.</p><h4>When to take a Different Perspective</h4><p>Key technologies may be very good at what they do but not look at problems in an OO way because it’s not so helpful. A good relational database design may well not follow the OO model and then it’s up to the designers and engineers to think how best to implement that while keeping things clear, functional, performant etc. It was an early problem. There are tools for mapping from OO thinking to other forms of thinking.</p><p>Also, in the real world there may already be a database on which you want to build a new application so you may not even have the luxury to design the whole app how you’d like so as to get object/relational mappings just how you’d like. Again, there are tools and approaches.</p><p>Equally though, if you have the choice, you might have a different type of database that allows you to retain your OO thinking more into the database. It might be you find that way keeps your application structure be more how you want it and allows basic needs like performance, scale and security to be retained.</p><h4>Getting an Object</h4><p>So you know you want to have a plane object to represent each <strong>Plane</strong> in the fleet.</p><p>You could do that by defining what is common to all planes and defining that as a ‘Class’.</p><p>E.g. all planes may have physical dimensions (e.g. so you know what size hangar you need), range, speed etc.</p><p>But, the values of these ‘attributes’ may be different for every plane, though the essential ‘plane-iness’ isn’t any different.</p><p>So, when you create (‘instantiate’) an object, you’re saying; I want a specific instance (an object) of the class and I’ll define its specifics. So I might have 40 x Dreamliners, 20 x 747s etc. And each one <em>could be an </em>object with the relevant specifics, like say range, wing span, top speed, runway length needed etc.</p><h4>The Purpose of an Object</h4><p>A plane will have a <strong>Seating Plan</strong>. Different types of planes may have different numbers of seats but allocating a customer to a seat is still the same concept, regardless.</p><p>So you want the idea of <strong>doing a seat allocation</strong>. You probably also want the idea of <strong>changing</strong> an allocation, doing an upgrade etc.</p><p>These are all things you <em>do </em>to a Seating Plan and a set of Customers. These things that you do, in OO thinking are ‘methods’ and they live in the class because they work the same way and can operate on all types of plane (say) even when some of the specifics (like we mentioned) can vary. How you can implement that depends on the language/tech stack you choose.</p><p>The important point is you tend to group <em>things</em> with things you do them to them.</p><h4>Extending a Class</h4><p>It doesn’t take much thought to see that in the Airline business, there is a lot of scheduling. Like getting customers, crew, planes, parts where they need to be. Schedules might have attributes in common like time slots but work completely differently in the detail. Scheduling algorithms (if you’ve not encountered this term yet, think of it a bit like a recipe, just a set of steps to get an outcome) can be really complex and might vary a lot. As will the constraints for what is allowed.</p><p>E.g. you might have a machine learning (if you’re not familiar with ideas of ML, just think of it as a <em>clever</em> algorithm for solving really hard problems, but don’t worry, it’s not sentient or anything…) system that tries to work out how best to move <strong>Aircraft</strong> between airports to minimise fuel and time, while meeting schedules for picking up people and also going for maintenance. And, a lot of other variable factors.</p><p>Yet, the algorithm to get <strong>Crew</strong> to the right plan, for least cost, while ensuring crew are properly rested (this is extremely important) could be quite different to the scheduler for planes.</p><p>And the approach to decide when to take planes out of service for maintenance would depend on a whole set of other factors.</p><p>In each case you might have common ideas like configuring the solution you want:</p><ul><li>For plane schedule for say the next month — I want to be able to fly 4 times a day to the Maldives from Heathrow and move a total of 1200 people in that day. I need crew in the right place and well maintained planes to be in the right place. I want to know the cost of the journey so I can overall know how much my fuel costs are and to buy enough to keep everything working.</li><li>For maintenance, I want to take planes out of service when I predict parts will need replacing so I can minimise disruption and cost. And even if I think the part will not fail within its standard schedule window, I still need to replace it within the standard time window. But, I also want to have out of service period as low as possible for a plane. And for all planes. Think about that; minimising down time for one plane is hard enough. Trying minimising down time for the whole fleet...Food for thought there. And of course, I need the right engineers and parts to be in the same place as the plane when the service work needs to happen.</li></ul><p>So in each case you configure the solution providing variables and have a general concept of creating the schedules. So these would be our methods.</p><h4>Doing it Differently</h4><p>The Schedule class would make it clear that we need to be able to define parameters for a schedule and create the schedule. These are general points.</p><p>But then we’d have a have a Plane Scheduler, Crew Scheduler and Maintenance Scheduler that implement those methods in different ways.</p><p>The advantage of this is an application’s logic just has to think about scheduling the things it needs to schedule without worrying about the big differences in how things work.</p><p>An example would be that because there are going to be near constant changes in passenger bookings, plane arrival/departure times, and maintenance needs, there may be an overall system that wants to make sure all the different schedules are optimised (as much as feasible, it’s not really solvable perfectly) to give the best overall position for customers and the airline and that can be written without knowledge of the details of the schedulers. Because this is an extremely difficult set of problems to solve, trying to keep the code clean and easy (!) to understand takes real work.</p><h4>Conclusion</h4><p>So that’s it. A hopefully jargon free, definitely simplified intro. Key take away is, it’s one way to look at the world, can be helpful but there is a wealth of tools in the box, so have a good look around.</p><p><strong>Update 12th Oct 21</strong> — Fixed several typos. Re-worded a couple of awkward sentences. Added a couple of clarifications. De-pluralised some objects/nouns. Capitalised and bolded objects for consistency.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c6da85742bb1" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>