<?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 Aaron Rosenberg on Medium]]></title>
        <description><![CDATA[Stories by Aaron Rosenberg on Medium]]></description>
        <link>https://medium.com/@arosenber?source=rss-82e708428d7b------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*rmeOEFgnHLI9livbS_TrxA.jpeg</url>
            <title>Stories by Aaron Rosenberg on Medium</title>
            <link>https://medium.com/@arosenber?source=rss-82e708428d7b------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 30 Nov 2026 07:47:44 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@arosenber/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[Practical Writing]]></title>
            <link>https://medium.com/@arosenber/practical-writing-cfa2d83f519c?source=rss-82e708428d7b------2</link>
            <guid isPermaLink="false">https://medium.com/p/cfa2d83f519c</guid>
            <category><![CDATA[work]]></category>
            <category><![CDATA[writing]]></category>
            <category><![CDATA[reading]]></category>
            <dc:creator><![CDATA[Aaron Rosenberg]]></dc:creator>
            <pubDate>Sat, 10 Jun 2023 17:28:19 GMT</pubDate>
            <atom:updated>2023-06-10T17:28:19.339Z</atom:updated>
            <content:encoded><![CDATA[<p>I spend a lot of time reading and, perhaps in consequence, I’ve grown enamored of writing itself.</p><p>I’ve spent a good chunk of time wondering what makes great writing so smooth and what makes other writing torturous. It’s led me to enjoy numerous books on writing and to get some unexpected but delightful benefits.</p><p>Probably the most cited book on writing I’ve seen is<em> </em><a href="https://www.goodreads.com/book/show/33514.The_Elements_of_Style"><em>The Elements of Style</em></a>. Though most praise it, it’s quite widely criticized as well. As E.B. White was a childhood favorite author of mine, I’ve made a few forays into the book, but without success- the stiff dry prescriptive textbook style turned me away each time.</p><p>Eventually, I came across <a href="https://www.goodreads.com/book/show/16149296-on-writing-well#SocialReviews"><em>On Writing Well</em></a><em> </em>by Zinsser. Zinsser‘s animated story telling keeps the book lively, but beyond that, the book comes with a slew of pragmatic advice. Typically, books put their onus on filling in knowledge gaps (like convoluted grammar rules) and encouraging the reader to practice. Zinsser pushes the reader to opportunities to use their already present skills to improve their writing.</p><p>In a Hemmingway-esque way, Zinsser champions simplicity in writing. He derides the abstruse nature of corporate communication, and breaks down numerous examples with their more clear replacements. Zinsser points out the motivation (even if subconscious) of a writer to distance themselves from accountability. As pushed by Zinsser, I took a look at some of my communications and found them rifled with that habit. Despite reading the book years ago, I still regularly think back to this book when writing unhappy news.</p><p>Admittedly, writing quality gets subjective. There’s plenty of highly praised style that strikes me as overdone or inanely abstract. There’s also a lot of people that would pan Zinsser’s book for promoting simplified style. It’s perhaps one of the beauties of writing that we can all discover our personal ideal.</p><p>When it comes to grammar itself, I’ve always struggled. I had a lot of trouble with lessons in my school days. Grammar so often seemed sensible at first. It was easy to pick out nouns and verbs. But, as sentences grew more complicated I quickly fell out of my depths. I can parse, “The quick brown dog jumped over the lazy dog.” Despite the adjectives, it’s a simple sentence. But, give me, “Britain at the height of its imperialist empire subjugated most of the world with a series of brutal ordinances that obliterated the rich culture of their supposed citizens,” and I’m lost. Even at this moment I’m not fully confident that’s a grammatically sound sentence. Then, I wonder if “at the height of its imperialist empire” ought to be separated by commas. If it’s an essential phrase it’s correct as is, if it’s not then the commas are needed, right? Grammar gets hard.</p><p>I got so self-conscious with one critical teacher in high school that I reduced my writing to the simplest unadorned sentences. Perhaps I should have been less surprised when he then critiqued my writing as “technically correct, but painfully dull.”</p><p>Yet, I’ve come a long way in my comfort and most of that was thanks to <a href="https://www.goodreads.com/book/show/20821371-the-sense-of-style"><em>The Sense of Style</em></a><em> </em>by Pinker. Though often dry, Pinker captivated me in his explanations of grammar. His explanations made so much more sense than what I grew up with. I found myself frustrated that my school lessons didn’t better mirror his explanations.</p><p><em>The Sense of Style</em> made substantial inroads into my concerns by first validating my insecurity. Pinker goes through some examples that show the holes in the traditional lesson. Pinker directs the reader towards an alternative of grammar trees. This approach made much more sense to me, and even though I didn’t retain all of it, it revolutionized my comfort in my own writing. Besides helping my own writing, I gained clearer explanations to share with others to help them with the docs they wrote.</p><p>I hope those intrigued by the idea of improving their writing give these books a chance.</p><p>As a whole other, p.s. style aside, even ignoring my practical gains, there’ve been a number of writing books that have captivated me for their narrative alone. One such book is <a href="https://www.goodreads.com/book/show/12543.Bird_by_Bird?ref=nav_sb_ss_2_12"><em>Bird by Bird</em></a><em> </em>by<em> </em>Lamott. Lamott’s book blends writing advice with a memoir style story that captivated me to the end. Similarly, <a href="https://www.goodreads.com/book/show/10569.On_Writing?ref=nav_sb_ss_1_10"><em>On Writing</em></a><em> </em>by Stephen King is a rich memoir. More surprising, I felt attached despite not even liking the one novel of his I’d read.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=cfa2d83f519c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[First Mentor]]></title>
            <link>https://medium.com/@arosenber/first-mentor-2f6a51db9233?source=rss-82e708428d7b------2</link>
            <guid isPermaLink="false">https://medium.com/p/2f6a51db9233</guid>
            <category><![CDATA[mentorship]]></category>
            <category><![CDATA[engineering]]></category>
            <category><![CDATA[memories]]></category>
            <dc:creator><![CDATA[Aaron Rosenberg]]></dc:creator>
            <pubDate>Mon, 13 Sep 2021 18:06:54 GMT</pubDate>
            <atom:updated>2021-09-13T18:06:54.117Z</atom:updated>
            <content:encoded><![CDATA[<p>I met Chris on my first day at Amazon, my manager, Bob, introduced him as the senior engineer on my first main project. Once Bob walked away, Chris toured me around the department. He introduced me to the various teams, making me feel more like his little brother than the engineer he’d be working with going forward.</p><p>Chris had a few years on me, I guessed he was somewhere in his 30s while I was 20. Chris invited a few of the people we met to join us for lunch, all of whom were significantly older. The lunch made me feel like the kid being privileged with the chance to hang out with the adults. I stayed mostly quiet for the meal and only minor efforts were made to include me, most of which came off as motivated by pity.</p><p>The lunch went on for a while making me only more uncomfortable as most of a day had passed without me doing any work. People did want to get back to work and by 2 pm Chris showed me to my desk and gave me some setup tasks.</p><p>Chris pointed me to company wikis, but also let me know that they hadn’t worked 3 years earlier when he joined and he expected they’d be worse now. He cautioned me from relying on them and gave me a one line code change to make. Chris left after that explanation and I didn’t see or hear from him until the next day at the team standup.</p><p>The team standup turned into a fiasco. I didn’t sit on the same side of the floor as the rest of the team, but I expected to meet everybody else at their desks. When I showed up though, I found nobody else there. Convinced that I’d mixed up the time or location I hurried back to my desk to check.</p><p>I did have the right time and when I came back a minute later everybody else stood there relaxed and waiting. Chris made a comment about the guts I had to show up late to my first team meeting and I felt my face go red. At that moment I wished for the first, but not last, time that I’d been assigned to work with the other team member instead of Chris.</p><p>I felt only further frustrated over the next few weeks. I felt incompetent every time I gave up and asked Chris for help. Chris almost never had an answer himself, instead, he’d give me an exasperated look and then walk me over to another engineer he figured would be able to help. It meant that any time I needed help I needed to be prepared to not just look stupid to Chris, but also to whomever he’d bring me to. Pouring more salt in the wound, any day I asked Chris a question he’d talk about it at the next standup as if it had taken a significant portion of his day.</p><p>After a few weeks, in another moment of exasperation, Chris told me I needed to stop relying on his network for help. He let me know he’d taken a long time developing those relationships and he couldn’t keep using that goodwill on me. I didn’t know how to react to that, but I vowed to myself that I’d never ask for Chris’s help again no matter how long it took me to handle something on my own.</p><p>When I turned in code for him to review Chris would often act exasperated like he couldn’t believe the low level of my work. I couldn’t fathom his attitude. I wasn’t turning in bad code, he just continuously thought I should be doing more. At one point, a task to add retries to a rarely failing API call somehow turned into a library that took a call and a set of retry configuration options and managed those API calls.</p><p>On a few occasions, the long time of my code in review led to the other senior team member reviewing my code. Rather than a boon, he’d get into arguments with Chris. The two of them demanded conflicting changes and threatened to block the change if I followed the requests of the other.</p><p>My instincts sided against Chris, but I feared a worsening in our relationship if I voiced that. Instead, I tried to compromise between their requests which led to both being upset. After a particularly bitter cycle of code reviews for a change, Chris decided the blame lay with me. I caused the problem by being so un-opinionated. I didn’t even know how to react to that, but I took the lesson to heart. After that, I made it clear whose review I’d follow when the opinions started to conflict.</p><p>Luckily I didn’t have a lot of those situations. After a couple of incidents of the two of them going at each other, Bob decided to create distance. Only Chris would review my changes.</p><p>In my 3rd month, with our abysmal project progress, Chris let me know that we’d have to start working weekends to ensure we’d get the project done on time. At that moment my feelings of frustration with Chris changed to hate. I felt slow and inadequate as an engineer, but I felt Chris had misused me and wasted time. Chris made me feel like the problems were entirely my fault and that if I had only been better we wouldn’t have to work the weekend.</p><p>We ended up working every weekend for the next month, every Saturday and the last couple of Sundays. Maybe due to the lack of distractions, but on the weekend Chris would actually sit with me on the weekends and work through the tasks needed for the project. For the first time we worked closely together and I gained the chance to learn from him.</p><p>Chris directed me through changes in code, but often took over the writing himself. Chris amazed me by diving through code files and making invasive changes without hesitation. Chris went through the coding tasks with speed and self-assurance I couldn’t match.</p><p>But, code work only accounted for one part of the project, far from our bottleneck. We had to set up a number of infrastructure pieces and get them all connected and running. The moment we moved away from code Chris became a blind man stumbling around hoping his actions were correct. They rarely were. Whereas code allowed quick iteration and tests to understand what was happening, infrastructure didn’t. In the first couple hours of setting up a service, I realized I’d be faster without Chris.</p><p>It wasn’t that I knew what to do, but I consistently determined the problems before Chris and I trusted that my instincts were better around what to try. As we got later in the day Chris let me know he had to go take care of his family and he asked if I could stay and finish. I didn’t know how to say no, so I promised to finish the task alone.</p><p>I ended up leaving less than an hour after Chris with the realization that if Chris hadn’t left we’d definitely have still been there. On Monday though I claimed it took a lot longer out of fear of hurting his ego. That pattern repeated over the next few weeks where Chris and I would meet and go over what needed to be done. He’d come for a portion of the time and leave me to complete the work. I felt frustrated that I still needed Chris to break down and explain tasks to me. I even started to suspect he purposely withheld information from me to keep up the dependence. The stress clearly got to me, and it got to Chris too.</p><p>Chris began treating me like a confidante. He vented to me about the problems he faced in life and work and littered his thoughts with advice for me to succeed in my own personal and professional lives. Chris began calling me late at night to go over details of the project he claimed he needed to give to Bob asap. I hated that I depended on Chris and the questions Chris asked felt like ones he should have known the answer to without asking. And, even if he didn’t, he should have been able to easily resolve them on his own. By the time we launched the project, I couldn’t fathom how Chris had been able to succeed at Amazon for 3 years.</p><p>The launch went poorly, the project didn’t work. That wasn’t a surprise, despite a number of targeted manual tests, we hadn’t had the time to build anything sophisticated enough to do an end-to-end test. The project handled processing for multi-day real-world events. Building something that artificially shortened that process to minutes let alone seconds would be a project in and of itself.</p><p>The project clients complained, and with good justification given the project didn’t actually work. Bob played at damage control and pulled more engineers in to help while I got relegated to the side. Our desks had been rearranged at that point though, and I was close enough to hear them ask Chris questions he didn’t know the answers to. Questions I could answer, that Chris must have known I knew the answers to. But, he acted like if he didn’t know they’d have to learn themselves. With the bits and pieces I heard, I grew certain Chris had laid the blame with me, claiming that he lost unreasonable amounts of time having to cover for me.</p><p>A couple of weeks after the launch Chris came to me pleading for my help. Except it wasn’t a plea. More like he was giving me a task I ought to feel obligated to fulfill. He claimed they were going to fire him and he needed every piece of feedback he could get to keep his job. He assured me it was only a matter of time until I ended up in a similar situation. I didn’t doubt him, I had my own regular nightmares about being fired. I wrote the feedback for Chris with as many positives as I could think of, as strained as the relationship got, I didn’t want to feel at fault for his firing.</p><p>It didn’t seem to make a difference. I didn’t see Chris the next week. He hadn’t said anything to me after that last request, and I wouldn’t have known what to say if he had.</p><p>Over the next couple of weeks, I found myself progressively more relaxed. Chris had been the largest source of job stress, and I realized he’d been a tormentor I didn’t know how to escape from.</p><p>As a mentor, Chris accelerated my abilities at work, a motivation spurred heavily by the frustration of relying on him. So, even though Chris wasn’t the mentor I wanted and one I doubt I could have sustained too much longer, maybe, just maybe, he was the one I needed.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2f6a51db9233" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Oncall: Department rotation]]></title>
            <link>https://medium.com/@arosenber/i-learned-that-id-be-joining-a-department-oncall-rotation-in-my-first-week-at-amazon-247f27248ea7?source=rss-82e708428d7b------2</link>
            <guid isPermaLink="false">https://medium.com/p/247f27248ea7</guid>
            <category><![CDATA[engineering]]></category>
            <dc:creator><![CDATA[Aaron Rosenberg]]></dc:creator>
            <pubDate>Sun, 12 Sep 2021 19:07:04 GMT</pubDate>
            <atom:updated>2021-09-12T19:30:16.944Z</atom:updated>
            <content:encoded><![CDATA[<p>I learned that I’d be joining a department oncall rotation in my first week at Amazon. The rotation covered six different engineering teams between the US and India offices. Already horrified about the responsibilities I had for the team oncall, I could only try to suppress my terror for the larger rotation.</p><p>My manager, Bob, had defended oncall as an important responsibility that kept engineers close to their products. The responsibility would give us the domain knowledge to make good decisions for future features and products. Plus, he pointed out, being responsible would give us a good incentive to make sure we built quality products.</p><p>Both points seemed quite reasonable, but it did little to push against the reality that the company wanted me to work nights and weekends and I didn’t want to. Bob’s arguments changed when it came to the department rotation.</p><p>With that rotation, Bob pushed the experience as an opportunity to integrate me into the wider department engineering community. He also pointed out that our team, being new, didn’t have a comparable set of services we were responsible for. Joining the wider rotation would help foster fairness for engineers across the org who had little to no control over what team they ended up in.</p><p>Bob’s first point felt like a con, interactions with other engineers would only reveal my incompetence. I wanted to delay that for as long as possible. Bob’s second point worked better, I felt grateful for our relatively small amount of existing code and did think it only right that I do my fair share.</p><p>Yet both of these points felt pretty divorced from the arguments for being oncall on my team. Knowing more about problems in code on another team wouldn’t help me make my features. The business knowledge wouldn’t be applicable!</p><p>The contradictions between the two arguments made me feel like Bob had made an attempt to surface the bright side of situations I didn’t have a choice about. I appreciated his effort but found myself getting more cautious around him, a little afraid of what kind of manipulation he could be capable of.</p><p>I didn’t really have a choice in the matter and had my first shift about 3 months into the job. The rotation had 12 people in it, at least I wouldn’t have to do it that often. The multi-team rotation didn’t include nights either, at least I wouldn’t have to worry about being woken up.</p><p>We had a support team in India and they were oncall from 7:30 pm to 7:30 am, our engineering rotation handled the other half. I had some trouble understanding that disparity, if they could justify a support team in India, then they should have been able to in the US too. I probed someone on my team about it and they gave me an exasperated response that convinced me not to dig further.</p><p>Eventually, as my shift approached, my mentor’s turn came up. Chris, had me shadow him. Chris found the rotation ridiculous and likened the role to a glorified telephone operator. When a problem came up he’d follow the wiki instructions, assuming they had an explicit remedy. In almost every other situation he contacted the relevant team oncall to handle the problem.</p><p>I knew I couldn’t handle the oncall like Chris. I couldn’t hand off problems so easily without even making a real effort to handle them myself. I feared looking incompetent too much, way more than I cared about whether something was or wasn’t my responsibility. So, I nodded along to Chris as he gave me sporadic thoughts about the rotation. They weren’t really pieces of advice so much as gripes and I figured if I actually asked him about resolving a problem he’d just comment about how I didn’t need to deal with it.</p><p>Besides handling those pages, the rotation also handled config updates. The department represented the bulk of transportation teams at Amazon and we contained the services that managed the config that decided what shipping methods were used, what their costs would be, and when they operated. The config was specific to one team, and not my own, which made me more confused as to why the rotation handled it.</p><p>As it turned out, the reviews took a while and weren’t really engineering work, so they were added into the rotation. Historically, a number of problems were caused by bad configuration. The system had intelligence around invalid config, but not so much around config that contextually didn’t make sense. A human might catch on that if Mon-Thus the shifts are from 8 am-8 pm, then the Friday one is probably not 8 pm-8 am. But, it could be, and even if it wasn’t brainstorming and enforcing every little thing like that wasn’t realistic. Nobody had the time. Even though there were business partners responsible for reviewing the config, there’d been enough problems that engineering did reviews as well.</p><p>All config changes were grouped into one of 3 sets each week, at least limiting the number of reviews the oncall had to do. I went through an example review with an engineer on the owning team, but I felt only minorly more comfortable. The process seemed ridiculous as I didn’t have anything close to an understanding of how transportation config ought to work, and felt like my approval would do little more than give people a target to hold accountable.</p><p>The week after Chris I went to verify my shift, I remembered I had a couple of weeks between Chris’s turn and my own and hadn’t previously bothered to remember the exact date beyond that. When I checked I couldn’t find my name on the rotation at all. I didn’t know what could have happened and for a brief moment felt elated that I wouldn’t have to go oncall.</p><p>My joy quickly turned to anxiety. Why was I removed? I’d recently caused some problems and maybe my removal meant the department was getting ready to get rid of me? Or maybe it was an accidental mistake by one of the rotation members? Maybe it was some kind of sadistic trial and I’d been removed just to see if I’d raise the problem of my disappearance on my own?</p><p>I didn’t know what to think and went to Chris to see if he knew. He didn’t and was upset that my name was removed, he didn’t want anything shortening the time between his shifts. I went to another team member, Evan, and he let me know he’d check into it.</p><p>Evan came back and let me know that one of the other team’s managers had removed me. Evan also let me know he’d be talking to Bob about it. Nobody involved me, but the next day Bob let me know I was back on the rotation. The other manager had been concerned about me being more harm than good and was concerned that I’d cause his team to lose more time than if one of them had the oncall instead.</p><p>I felt humiliated. I could tell that it wasn’t about me, that it was about my juniorness instead, but that didn’t help. The underlying problem was still there, I wasn’t good enough and needed to improve to be acceptable if I hoped to stay employed.</p><p>The other manager had been upset about ineffectiveness caused by oncall engineers that simply handed off problems. That seemed like a direct admonishment of Chris, which didn’t surprise me but made me all the more stressed about how much I had to handle on my own.</p><p>A couple of weeks later my shift started. Soon I had a page for another team with no idea how to handle it. I forced myself to dig in and try to make progress. I realized I wasn’t completely hopeless. The last couple of months in particular I’d been forced to dive into a lot of unknown code and I realized I’d built some useful skills for this oncall. Still, I felt incredibly slow.</p><p>As the week went on I found I could handle a lot more than I would have guessed. But still, I hit walls and had to escalate to the specific team’s oncall. They often wanted to talk with me about it and each time I worried that they’d go into how I should have been able to handle the problem myself. Most of the time they just wanted to talk through the problem with me and even give me more context. I felt like they cared about my opinions which only scared me more as I was sure I had nothing to contribute and that a prolonged conversation would only ruin their optimistic view of me.</p><p>The bigger havoc occurred in my work hours. Since I had to start at 7:30 am and had to be able to respond to pages within 15 min, I made sure to get into the office by 7:45 am each day. I lived a bit under 30 minutes away, but the risk of being unable to respond to a page had me stay until nearly 7:30 pm so that the escalation wouldn’t be relevant to me even if it did happen.</p><p>Wednesday afternoon was quiet and I decided to take a risk and leave at 7:10 pm knowing I could rush back to my desk if I got paged before getting on the bus. Just as the bus pulled up I felt the buzz of a page and checked my phone finding the corresponding text. I ran back to the office pulled out my laptop and learned that the paging text somehow came exactly 24 hours late. I’d run back for nothing.</p><p>The config checks were as nerve-wracking as I expected. I found incongruities but after consulting the config team, they ended up not really mattering, and yet the issues still led to regenerated config with minor tweaks leading to more of my time on config checks. On each deployment, I crossed my fingers and prayed that nothing would actually break and fortunately nothing did.</p><p>The weekend finally came by, and I felt trapped at home. I intended to leave my home only for food, but a friend convinced me to go to a meetup on Saturday. I pushed back that I needed to stay with my computer and he pointed out there’d be wifi. I went with him, the weekend had been relatively quiet, but my luck didn’t last. I got paged and had to pull my laptop out to work. Somebody made a remark about my rude behavior and I didn’t know how to react.</p><p>My friend defended me and tried to explain the situation, the other guy didn’t care, he felt I shouldn’t have come then. I felt a bit humiliated, but I’d never really felt like I fit in with the group and the event played more as an almost convenient justification to never return.</p><p>The next week my shift ended and I reflected on the experience. I’d been stressed more often and for longer than any other time so far at Amazon. I realized I’d worked over 60 hours and sat with that thought for a while. I’d been so sure about my 40 hours or under work weeks and not even 3 months into the job I’d already exceeded 60.</p><p>That wasn’t the worst of it though. The worst was something I had to do a couple of times the previous week. I’d been forced to call somebody in the middle of the night in India. Each time I heard a groggy voice greeting me I felt gut-wrenching pain. I hated that I was the reason somebody had to wake up. I couldn’t help but feel that if only I was just a little more competent I wouldn’t have to do that. And, I couldn’t help but feel the other person must hate me. For everything else that troubled me about the oncall, those wake-up calls were easily and by far the worst.</p><p>In the next couple of weeks, I had one last takeaway from the oncall. Engineers on other teams began greeting and talking to me. Bob had told the truth, oncall did integrate me into the department.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=247f27248ea7" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Imposter Syndrome: The norm]]></title>
            <link>https://medium.com/@arosenber/imposter-syndrome-the-norm-caa0de5a9b2?source=rss-82e708428d7b------2</link>
            <guid isPermaLink="false">https://medium.com/p/caa0de5a9b2</guid>
            <category><![CDATA[engineering]]></category>
            <category><![CDATA[imposter-syndrome]]></category>
            <dc:creator><![CDATA[Aaron Rosenberg]]></dc:creator>
            <pubDate>Sat, 11 Sep 2021 17:01:03 GMT</pubDate>
            <atom:updated>2021-09-11T17:01:03.323Z</atom:updated>
            <content:encoded><![CDATA[<h3>My Story</h3><p>When I started at Amazon out of college I felt like I snuck in. I didn’t think my interview went well and believed that they must have mixed me up with another candidate. I felt struck by guilt at the idea that I was taking somebody else’s job, but more so by the fear on each day that I’d get a call informing me about the mixup. That my offer would be rescinded.</p><p>Starting the job relieved me, though I still believed there was a mixup. I just also thought that since I started it would make more sense to see how I did and fire me if I performed badly. That was only a minor relief as I suspected that I was marked on some hidden file of workers on probation.</p><p>Every time I had any kind of struggle I worried that would be the situation I’d be fired over. And I did screw up. I caused an outage in my second month and spent the next week dreading each day would be my last. When the week passed I forced myself to fully understand how I’d caused the problem and to work out strategies that would prevent me from ever doing the same again.</p><p>Only a few weeks later, I caused an outage for an external partner. With so little time since the last problem, I knew I’d be fired. The manager that had yelled at me over the last problem, brought the new outage to my attention too. I felt like an idiot for not realizing I’d caused their services to be hammered, I’d effectively perpetrated a DDOS attack. I looked through the traffic I’d caused and how I could and should have recognized when they’d started to fail. The signs were all there, but I hadn’t put it together. I vowed to never repeat that mistake.</p><p>In my third month, my first major project launched, at least theoretically. Over the next month, problem after problem cropped up, the product didn’t work. They fired the project lead and I felt certain I’d be gone soon after. I couldn’t help but feel like I should have been able to make the project a success and that I would deserve my own impending firing. I dove deep into each and every aspect garnering as much I could about how the problems had gone unnoticed. I believed time pressure had caused us to cut corners, but I assumed all projects would have time limits that forced corner-cutting and I needed to know what was safe to cut.</p><p>My manager moved the project to a new owner and I got pushed away. I assumed he was taking the first step in managing me out.</p><p>I desperately tried to pick up what I could on my new project, one that’d been going on for a few months. I found the learnings from my first few months allowed me to make contributions from nearly the start.</p><p>Over the next few weeks, I felt a mental transition from a team liability to an asset. As I didn’t get fired I clung to hope that I’d still have a chance to prove myself and kept pushing myself to learn and contribute more.</p><p>A little over 6 months into the job I ended up in a conversation with two engineers I easily put into my top 5 most respected list. One of them asked me how I was doing after my first half-year at the company. After getting over my surprise that he knew how long I’d been there, I told him I felt like I was starting to get used to the job, which was true. Then he gave me an understanding nod and mentioned how in his first 6 months he often felt like he’d be fired at any time. Then the other engineer confirmed a similar experience.</p><p>That revelation stunned me, I never would have guessed either of them to have any self-doubt let alone that kind of fear. I’d only ever seen them as incredibly strong engineers even by Amazon standards. I also realized at that moment that I no longer had that fear of being fired. I mean I knew I could still screw something up bad enough to be fired, but that recurring fear that told me I didn’t belong there, that I’d be discovered and then fired, that had left me.</p><h3>Aftermath</h3><p>Much later I realized how much my thinking fell in with the description of imposter syndrome. I still don’t believe I earned that job, I think I lucked out with interviewers and that I grew fast enough to overwrite my bad hiring.</p><p>I can’t help but believe that those fears gave me incredibly vital motivation to push myself hard and accelerate my own growth as an engineer. At the same time, the stress of the job, and the fear that I didn’t belong were detrimental to me. I coped with food and gained 50lb in my first 3 months on the job. I still go back and forth on whether I find that tradeoff worthwhile.</p><p>That wasn’t the only time I experienced that kind of feeling of being an imposter. I’ve experienced similar, though not as strong, feelings almost every time my scope or role has expanded or changed. Over the years I’ve pushed myself to really dig into what gets me past those feelings.</p><p>I’ve realized that reassurance and positive feedback are great for a lot, but not for resolving my imposter feelings. My first manager gave me positive feedback even early on, but those comments only gave me the briefest respites from my anxiety.</p><p>I only really started to feel safe when my opinions became solicited. As my working pattern moved from getting responsibility and fulfilling it to discussing and considering what work made sense to do, I got more confident. When I felt like my opinions mattered, my fear that I shouldn’t be there dissipated.</p><p>More than ten years have passed, but I still often suffer from that feeling that I shouldn’t have the role I’m in and that I’m deceiving people. I push myself through with my time-tested toolbelt. I devour domain knowledge and push myself until I’ve formed an opinion on absolutely every piece of ongoing work relevant to me. I jump in on any opportunity to start adding value to my team. Most importantly I remember that I’ve had those feelings so many times and just as many times I’ve worked past them.</p><h3>Others</h3><p>I’ve learned that imposter feelings are incredibly common. I’ve also noticed that a significant portion of those afflicted are strong engineers. That caused a dilemma for me, for a number of these people I couldn’t help but wonder if their job, ironically, would be at risk if they lost that motivating fear pushing them to do more.</p><p>At the same time, I believe those feelings are neither healthy nor sustainable. Even if they are doing great soon after they join, it can catch up to them at a completely unexpected time, and then they fall apart or simply leave.</p><p>These experiences shaped my helping strategy over the years. Now, when somebody leaks these feelings to me I look for ways to bolster their hard skills so that even with a less constant self-need to prove themselves they’ll be effective contributors.</p><p>When they showcase that level of prowess, I move to a more open conversation. It’s not that I won’t acknowledge their anxiety beforehand, but my conversations will be targeted to solidifying skills as a source of self-confidence.</p><p>Once they’re solid I’ll take what I’ve garnered of their growth desires and push them to paint more of a picture of what they’d like to eventually do. I reinforce that they’re a strong engineer, something that I can do because I have plenty of examples to back up my words. The very examples that proved to me in the first place that they’re a strong engineer, can be used to bolster them as well.</p><p>If I see ambition, and there are many who both feel they’re inadequate and yet desire to grow into a high leadership role, I’ll push them to take advantage of those feelings. I’ll push that they need to learn what their limits are and push themselves into opportunities they’ll grow in, but that won’t kill them. I try to make myself an unbiased resource for what challenges they’d eventually succeed at.</p><p>If they’re not ambitious, which is completely fine, I’ll work with that as well and set them on a path towards stability with a sustainable growth rate.</p><p>I still spend time thinking about how I can best help people with imposter syndrome. I think about how to balance their growth needs with the very real stresses of the condition. I don’t expect to ever be perfect with it, but I can continue to believe I can do better and make progress in that direction.</p><p>I’d love to hear more of what has been successful for others.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=caa0de5a9b2" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Defining Moments: Code Style]]></title>
            <link>https://medium.com/@arosenber/defining-moments-code-style-faca169016d5?source=rss-82e708428d7b------2</link>
            <guid isPermaLink="false">https://medium.com/p/faca169016d5</guid>
            <category><![CDATA[memories]]></category>
            <category><![CDATA[engineering]]></category>
            <dc:creator><![CDATA[Aaron Rosenberg]]></dc:creator>
            <pubDate>Fri, 10 Sep 2021 17:43:11 GMT</pubDate>
            <atom:updated>2021-09-10T17:43:11.817Z</atom:updated>
            <content:encoded><![CDATA[<p>I had my first and only internship in my last summer of college. I didn’t apply for any during the year, a story for a different time, and only sought one out when I arrived home for the summer.</p><p>After a couple of weeks of rejections, I met Paul for a potential job at a cafe. A few minutes into the conversation he offered me a role at his startup, an unpaid one. As beggars can’t be choosers I accepted and found myself in his apartment only a few minutes later. Luckily there were a few other people working there which reassured me about my safety. I’d found him through Craigslist and on the walk up to his apartment I kept thinking <em>What kind of idiot follows a guy he met 2 minutes ago up to his apartment</em>, followed by <em>but it’d be kind of awkward to just leave.</em></p><p>Paul directed me to his couch and gave me the first of numerous assignments. I’d tackle them and once I gained Paul’s approval my code would get added to the solution. The first couple of times that thrilled me. Almost everything I’d done before became obsolete the moment I finished. That my code would live in a product people actually used felt great.</p><p>A few weeks into the summer, Paul gave me a feature to build. He wanted me to add concurrent support to the update feature of the product. The product itself generated diagrams that described a code repository. Part of that process involved transforming and reducing files into well-structured metadata. Transforming two files over one didn’t mean much, but transforming hundreds would take a significant and painful amount of time. The product would be that much more painless with this concurrent support.</p><p>I found myself drawn to the task. Drawn to the usefulness of the results, and the meatiness of it versus the bug fixes and tweaks I’d been doing previously. I dove into the code Paul pointed me at.</p><p>After a couple of hours of digging and thinking I picked a part of the code to add my new concurrent save to. Then I modified the code to use my concurrent strategy if there was more than one file to save.</p><p>Nervous about impending feedback I manually tested my code numerous times and reviewed it several times to make it as clean as possible. Finally, I asked Paul to take a look. Paul began reviewing the code and while he read his face looked pensive. I knew I must have done something wrong. Paul had been looking at the code difference but put it away to look directly at the code. He started navigating around while I watched.</p><p>Then he got my attention and told me we could do better. We didn’t need to switch save methods based on the number of files, the overhead of a concurrent save for one file didn’t matter, it wasn’t worth the extra complexity.</p><p>Then he noted we could still have the serial style and allow the calling method to decide whether to use the serial or concurrent solutions. We’d default to the concurrent though. Then he dug through my method and pointed out that we could rewrite the serial method in a way that would allow us to refactor out the concept of processing a single file.</p><p>I knew I shouldn’t repeat code, but in the old code saving a file had been combined with consequential updates. The actual pieces for concurrency were a few function calls interspersed throughout the overall method. I had considered pulling out common chunks of code but never had considered reworking the existing code to share structure and Paul amazed me with this idea.</p><p>I could see where it all led, it led to a place where the code would not only have more functionality than it previously had, but would be easier to follow as well. There’d been nothing wrong with the existing code, it looked entirely clean to me, and yet these changes made the code so much better.</p><p>A single word came to mind then: <em>Elegant. </em>It was so damn elegant. I’d always seen code as right or wrong and clean or not clean. Even though people always varied their approaches to code, the differences were rather superficial or based on performance considerations. Paul opened up the entire concept of code design to me and I loved it.</p><p>Filled with giddiness, a thought crossed my time for the first time in years, <em>programming is going to be cool to do for a living.</em> I knew Paul had worked at Microsoft, and he implied he gained his engineering prowess there. I’d always considered that people at high-profile companies like Microsoft, Google, or Amazon were smart, geniuses probably. But, until that conversation, I hadn’t considered that they had skills and techniques on another level. I wanted those skills, I wanted to work with people I could learn from like that.</p><p>At the end of the summer, Paul talked to me about coming back after graduation. He pushed me away from companies like Microsoft arguing that I’d have such a bigger impact at a startup. Unfortunately for Paul, it was the wrong argument, I didn’t care about impact. Instead, the idea that I could be surrounded by people like him, so many people I could learn from and garner skills from, now that intoxicated me.</p><p>I joined Amazon the next summer.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=faca169016d5" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Work-life Balance: Innocence Lost]]></title>
            <link>https://medium.com/@arosenber/work-life-balance-innocence-lost-aadcf9b7e820?source=rss-82e708428d7b------2</link>
            <guid isPermaLink="false">https://medium.com/p/aadcf9b7e820</guid>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[work-life-balance]]></category>
            <category><![CDATA[collaboration]]></category>
            <dc:creator><![CDATA[Aaron Rosenberg]]></dc:creator>
            <pubDate>Thu, 09 Sep 2021 18:15:28 GMT</pubDate>
            <atom:updated>2021-09-09T18:15:28.219Z</atom:updated>
            <content:encoded><![CDATA[<p>By the time I entered high school I looked forward to replacing school with work. I wanted the 9–5. The transactionality of such set hours was a perk and I only worried about the inevitable grind associated with a job making the work unbearable boring.</p><p>That promise didn’t even survive through my first day on the job as I learned about oncall shifts. Oncall could force me to work on nights and weekends. That didn’t scare me much, my manager and team made it clear we were rarely contacted during oncalls. Moreover, we had the ability to build quality software that would make that continue to be true.</p><p>A couple of weeks into the job, I got a new project assignment, one that involved another team for the first time. My mentor, Chris, wanted me to update service code that didn’t belong to us, a requirement for his project. I figured he’d step me through the code and give me a sense of what needed to be done. Instead, he gave me a high-level overview of his thinking. He informed me that we wanted to update the services responsible for storing relevant records. We wanted to add a new kind and I needed to figure out how to make that happen. We didn’t have the new kind ready and he didn’t have familiarity with any of the existing ones. Even if I could follow the high-level idea I had no idea where to even start in going about the work.</p><p>My mentor brought me to somebody on the team owning the code, I’d be able to get the knowledge from him. That engineer, Prateek, acted more nervous the more Chris explained what he wanted to do. Prateek cautioned anything he shared by reminding us that he personally was not so familiar with the services. Prateek wanted us to work with their team members in Hyderabad, India.</p><p>A number of teams at the time were split between the Seattle and Hyderabad offices, which I learned was meant to help ensure coverage for those domains through the full day. There was an 11.5-hour difference between us so we couldn’t really get a better spread than that.</p><p>In practice though, the engineers split the team responsibilities in half and effectively worked as two separate teams. I only figured out later that they were trying to minimize their own coordination requirements. What that meant for me, was that I needed to find someone in Hydrabad to work with.</p><p>I had no idea how I should go about that, even before considering my fear of frustrating whomever I needed help from. In the process of explaining how I should go about it, Chris went ahead and contacted the relevant team manager. Soon enough I had a contact, Rajesh.</p><p>I didn’t know what to ask Rajesh, I didn’t really understand what I was supposed to do, and only a couple of weeks into the job I was constantly running into trouble understanding the Amazon technology teams leveraged.</p><p>Chris, even if he wanted to, and I suspected he didn’t, couldn’t help. He had a three-week vacation and I needed to be able to progress without him. He advised me to leverage Prateek during the day and to try to build up a set of questions to email to Rajesh at the end of my day. That way I’d be able to get in the next day and jump into work. That’s what I did too.</p><p>The first day with Chris gone, I hit a confusion and went to Prateek. Prateek acted uncomfortable and I felt like a bother as he deflected my questions. When he did answer something he made sure to remind me it wasn’t his code. I gave up on him after my second attempt.</p><p>The email to Rajesh didn’t go much better. I was so lost I didn’t even know what question to ask. He’d give me answers to address my questions, but did little to solve the problems I faced. I gained enough info to progress another 15 minutes before hitting roadblocks. In the next few hours, I made almost no progress and I had barely any additional questions for Rajesh. That terrified me. I only had Rajesh willing to help me and my progress felt inexcusable, I knew I’d be fired.</p><p>I asked Rajesh in my second email if he’d be ok with having a series of phone calls. He affirmed which thrilled me. That emotion quickly replaced itself with frustration. I hadn’t offered any possible time, so it’d be at least another day before I’d be able to talk to him!</p><p>I thought about possible times, I needed his help, but he didn’t need to help me, I thought it was only fair to have the calls during his workday. That left me with a couple of options. First, late at night at 10 am his time or 9:30 pm my time, the latest I thought I could handle the call. The other, early in the morning 6:30 pm his time, but 6:00 am mine. I’d heard that people in the Hyderabad office worked long days, and figured he might still be working then. But, I couldn’t stomach being the reason he had to work longer hours and feared oversleeping and missing the meeting. I offered the first option and he agreed.</p><p>That first night, when the time for our call approached a thought hit me. I’d been so strong in my belief in a work-life balance and I’d given it up so easily. I hadn’t even been asked. I’d done it to myself! I realized at that moment for the first time, I hated my job.</p><p>The call went poorly, I had to force myself to concentrate, plus I hit a completely unforeseen problem. I couldn’t understand half of what Rajesh said. My unfamiliarity with his accent made me struggle to parse his words let alone the meaning he conveyed. I’d ask him to repeat often, particularly when I thought the info would be crucial to my work, but even then I didn’t get much more from it.</p><p>When the call ended I wondered if I could cancel the next ones. The conversation had helped even less than the email, but I couldn’t get myself to do it. I feared canceling them would make me look judgemental or worse and that I’d start a whole other set of problems and get me fired that way. <br> In that first week and a half, I got what seemed to be about an hour and a half’s worth of work done. Chris’s return was fast approaching and with it my impending job loss. That’s when I got lucky. Rajesh had rescheduled a call he couldn’t make, moving it to 10:00 pm his time, 9:30 am my time. That more than worked for me, After all that placed the call squarely into my normal working hours.</p><p>With my morning concentration, I could understand more of what Rajesh said and even extrapolate meanings. I could ask follow-up questions, at one point Rajesh asked me to hold on and then sent me a resource over the messenger app. He’d never done that before. Once we got through my questions, I couldn’t help but ask what his normal working hours were. He confirmed he worked 10+ hour days, but he also revealed something that I’d have never guessed, yet made complete sense. He, like many other engineers in their office, shifted to later hours to make it easier to work with Amazon HQ in Seattle. He typically got in close to noon and left around 10 at night. The whole time we could have been having the calls during mutual working hours!</p><p>I felt there was a lesson in there about asking and not making assumptions, but that wasn’t my main takeaway. My main concern centered on the atrocious work-life balance their office had and the pettiness of my frustrations in comparison.</p><p>Our nighttime calls ended, and a couple of days later even the morning ones did. We both thought it was easier if I simply messaged him with questions and he’d address them when he had the time. <br> Thus, my first work-life balance nightmare came to an end.</p><h3>Epilogue?</h3><p>Chris came back and checked my progress. I hadn’t finished yet and he told me I should have been several tasks further along or even been out of work and waiting for his return. He took me to a room to have a “heart to heart” conversation explaining to me that if I kept dithering around people would catch on and I would be fired. He hoped I saw he didn’t want that for me and that he wanted me to succeed.</p><p>I’d been terrified of the consequences when somebody realized my slow progress. Yet, finally faced with them, only one thought went through my mind, “screw you”.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=aadcf9b7e820" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Oncall Experiences: My first time]]></title>
            <link>https://medium.com/@arosenber/oncall-experiences-my-first-time-287aedf3e8a9?source=rss-82e708428d7b------2</link>
            <guid isPermaLink="false">https://medium.com/p/287aedf3e8a9</guid>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[on-call]]></category>
            <dc:creator><![CDATA[Aaron Rosenberg]]></dc:creator>
            <pubDate>Wed, 08 Sep 2021 18:13:09 GMT</pubDate>
            <atom:updated>2021-09-08T18:13:09.979Z</atom:updated>
            <content:encoded><![CDATA[<p>I’d never heard of oncall before starting at Amazon out of college. On my first day, my manager, Dan, let me know he was adding me to the team and department rotations.</p><p>Dan said it in a matter-of-fact tone that made me believe I should know what oncall was. So, I nodded along as if I did, unwilling to admit any more flaws that I inevitably would as he got to know me. My idea of oncall was doctors carrying pagers where they’d be forced to go to their hospital in an emergency. I’d learned that from sitcoms and didn’t really see what that had to do with programming. Dan let me know that my mentor would run me through the responsibilities and I relaxed with the realization that I wouldn’t have to look stupid by asking what it was.</p><p>My mentor did walk me through it later that week. He was the type that valued direct and honest communication, and he told me it sucked. It turned out that the idea was similar to doctors. While oncall we’d be contactable at any time to deal with problems and we’d have to resolve them.</p><p>My relief at understanding my responsibilities didn’t last long as they were replaced by the stress of wondering what I could possibly do if something went wrong with our software. I didn’t know any of the code, how could I possibly fix it?</p><p>I learned my first oncall would be during the long 4th of July weekend only 3 weeks into the job. That gave me only a couple of weeks to learn everything I needed to know, definitely not enough time. On the bright side, every page and its resolution was archived and accessible in tickets. I could see any previous event and make sure I knew how to handle it.</p><p>I looked at every event in the last 3 months that had caused the team to be paged and I learned a couple of things. First, fortunately, our team oncall was rarely paged, there were a number of weeks it didn’t happen at all. The second, unfortunately, was that I couldn’t have possibly handled any of the pages that had come through. At least not on my own.</p><p>The other members of the team made it clear that I could contact them if I was stuck. Yet, I knew I’d never do that if I didn’t have to. I’d been regularly struck by the fear that Amazon would realize they’d made a mistake and would rescind my offer. Giving the company any evidence of my incompetence felt like an insanely stupid thing to do.</p><p>I worked through the previous pages again and again until I felt I could take the same steps on my own, I kept at it forcing myself to understand not only what to do, but what caused the oncall to think of those solutions to try. But, there were a couple of pages where I couldn’t follow the why. I could see how they were resolved, but I didn’t understand how the person had known what steps they could take. Clearly, there could be other situations where I’d be completely lost. That terrified me and I prayed no such situation would happen to me.</p><p>Inevitably, my turn came up and I started my oncall shift. Nothing came up that Monday, nor Tuesday, and soon enough it was Thursday and I started to feel relief that nothing had happened, relief that I hadn’t had to deal with looking stupid. All that remained was the long holiday weekend.</p><p>My teammates assured me that the weekend ought to be fine. Our solutions were most used on Mondays and faded off as the week went on. Weekend problems were basically unheard of. I didn’t need to trust them on that, I’d seen months of pages to corroborate their story. Still, my mentor stressed to me that I needed to be within 15 minutes of my computer so that I could respond within the required time, just in case.</p><p>That weekend, just as the first July 4th fireworks exploded over my head, I got the page. There was a line of text for context, but it was incomprehensible to me, not that it would have made a difference. I had to respond right away no matter what. I darted off to get back home and to my laptop to answer in time.</p><p>I felt relieved when I took over the incident with a couple of minutes to spare. But then I had to actually resolve the problem. Our clients were having problems with our product, but that what the extend of detail I had. I panicked not knowing what I could even check to narrow down the problem. I pulled up the team dashboards desperate that there’d be something clearly broken there for me to look at.</p><p>I didn’t see anything and the minutes ticked by. I felt like an idiot, paralyzed in thought between not knowing what I could do except calling a coworker, but terrified I missed something obvious and that I’d be fired for incompetence on Monday.</p><p>After 15 minutes I felt I had no choice, the problem wouldn’t fix itself and I called a teammate. He didn’t pick up. I considered calling my mentor, but he had told me he wouldn’t be unavailable. I sat there in front of my computer wondering what I should do. I started to feel tears form. My fear of looking incompetent mixing with a sense of anger that I’d been stuck with weekend duty. My frustrations turned to despair as I contemplated how unfair it was to expect me to do this oncall so soon after college and joining the company.</p><p>I didn’t want to cry though and I forced myself to look back over the dashboards to distract my mind. That’s when I found an anomaly, and it wasn’t subtle. I should have seen it the first time. We were relying on an external company’s solution and they were degraded. I didn’t understand how I missed it the first time. Their solution was very clearly broken.</p><p>Still, I was relieved to have at least made some progress. I rushed to the issue’s correspondence and added what was broken and moved the page’s status from “investigating” to “fixing”. Next, I’d contact the partner company and ask them to take care of the problem.</p><p>While I hunted down the phone number I started to stress about the impending conversation. How could I tell them about the problem? What if they didn’t believe me? I was calling from my personal phone, what if they didn’t answer, or what if they didn’t believe I had anything to do with Amazon?</p><p>I felt that accompanying surge of anger that I was being unfairly forced into this situation. What did any of this have to do with programming? Nothing. Why were they making me do this? My mentor’s derision for the responsibility came back to me, and I fully agreed. Amazon was just being cheap and overloading their engineers.</p><p>It took me 5 minutes to build the willpower to be ready for the painful conversation ahead. I made the call and someone picked up after a couple of rings. I jumped into my explanation.</p><p>“Hey I’m Aaron from Amazon and we’re having a problem with your services.” I took a breath to jump into the details, but they spoke first.</p><p>“Yeah, we’re aware of the problem, it’s being handled now. We had a server problem and our fallback is having problems, we should be sorted out and back to normal in 40 minutes.”</p><p>“…thanks”</p><p>“Of course, anything else?”</p><p>“No.”</p><p>I hung up stunned, that had gone well, inexplicably well. I added the info to the ticket along with their estimate and sat back. I had done it! I handled the page without help!</p><p>That sense of achievement and relief lasted about 2 minutes. Then I started to worry, what if the problem wasn’t fixed in 40 minutes? What made them so sure about that time frame? What were they doing to fix their server? Who had I even talked to? Why hadn’t I asked them any questions?</p><p>I knew the last answer, my fixation on how to convince them there was a problem left me completely unprepared for anything to do with resolving the problem.</p><p>I tried to distract myself for the next 30 minutes, there wasn’t anything I could do, except maybe call back that partner for details, but I was too embarrassed to do that. My attempts to distract myself all failed. My mind came right back to the page and I’d refresh the dashboard hoping to see an improvement. No visible change occurred.</p><p>As I got closer and closer to the 40-minute mark my worry only deepened. I felt more and more sure that the problem wouldn’t be resolved in the given time and that there was something else I could have been doing to help, something I couldn’t think of, but that come Monday my manager would point out and that it would seem obvious once he did.</p><p>Thankfully, near the end of the estimate, the dashboard showed recovery and I closed out the page as resolved. I’d been at it for about an hour, but it was finally over. I’d survived my first page.</p><p>On Monday that teammate came over to me, the one I’d called who hadn’t answered. He apologized to me, he’d missed the call and when he checked in later he saw the problem was fixed. He praised me, saying I’d done a good job and clearly I had it under control. I thought he’d follow it up with an admonishment about calling him when I hadn’t needed to. But, he didn’t.</p><p>I thanked him and apologized for my phone call anyway. My first shift over he asked me how it went, and I looked at him considering whether I should tell him the truth, that it’d been a horrific experience, how I was terrified about the next one. Then I thought about how good an engineer he was and how he definitely didn’t have any problems with oncall and instead told him it was not so bad. He nodded, that nod that said he agreed about the difficulty, then he walked away.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=287aedf3e8a9" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[I don’t know SQL]]></title>
            <link>https://medium.com/@arosenber/i-dont-know-sql-92369a6ef0b9?source=rss-82e708428d7b------2</link>
            <guid isPermaLink="false">https://medium.com/p/92369a6ef0b9</guid>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[learning-and-development]]></category>
            <dc:creator><![CDATA[Aaron Rosenberg]]></dc:creator>
            <pubDate>Sun, 19 Aug 2018 20:03:12 GMT</pubDate>
            <atom:updated>2018-08-19T20:03:12.240Z</atom:updated>
            <content:encoded><![CDATA[<h3>The Setting</h3><p>I struggle with not knowing things. Sometimes I try to hide my ignorance. Other times I’ll shift it to a point of pride, like claiming to use my time more prudently.</p><p>I had a low level of SQL competency at the end of college. I could talk about it, but with barely more knowledge then you’d find in a couple paragraph overview.</p><p>I made cursory attempts to improve, but they were short-lived. A random 15 minutes maybe once in two weeks. Mostly I’d look at the same introductory query statements again and again. I was able to effectively demotivate myself by pointing out it took effort and I had no way of knowing I’d actually need that knowledge. I’d even be able to reason that job postings tend to overstate expectations. Maybe I really wouldn’t need it. Why would I want to invest all this effort into something I might not use?</p><p>When I was interviewing it came up occasionally. I reasoned there was some chance I’d be able to answer the questions. I technically had some knowledge so I decided to hide my ignorance if at all possible.</p><p>This didn’t make me feel comfortable though. I remember an interviewer asked a couple softball questions and my confidence soared. Then just a couple questions later, stumped, I admitted I lacked prowess. I think my face turned red.</p><p>I got a job offer. I had dreamed about working there in high school. I took the job.</p><p>My first project involved SQL. This seemed like atrocious luck. In reality pretty much every project worked with SQL.</p><p>It was my first project on my first job, I didn’t want to admit I didn’t know something. I worried I wasn’t up to the bar and I worried about anything that might reveal that to others.</p><p>The SQL in that work was managed by an object relational model (ORM). ORMs are frameworks that abstract away the complexities of a datastore behind typical language functionality. Basically, I didn’t need to know SQL to work with it. I was relieved.</p><h3>The Fall</h3><p>Eventually my charade blew up. I needed to do something the ORM didn’t handle. I updated the code and tests then deployed with approval.</p><p>That went smooth.</p><p>A few days later someone ran into an issue because of that work. Data was getting silently clobbered because of the lack of actual database changes. That concern eventually got raised to a manager who confronted me. That was not my manager.</p><p>In the confrontation I admitted I wasn’t that comfortable with SQL. I was told that I didn’t belong at the company if I didn’t know SQL.</p><p>I had been there for about a month at this point. Why hadn’t I addressed this weakness? I’d considered it for sure. Yet, I was worried that someone would see me reading a tutorial at my desk, and more convenience rationalizing made me never study at home.</p><p>In the moment I felt humiliated and was sure I’d be fired shortly. I stressed about this until my impending regular meeting with my manager. The issue wasn’t even brought up. I felt like I was back into imposter syndrome purgatory. It was just a matter of time until I was sent off for not meeting the bar.</p><h3>The Outcome</h3><p>I’d like to say I made damn sure to learn what I needed from SQL. I didn’t, it would be many months before I felt comfortable with any joins, and more before I felt comfortable with join types.</p><p>I took away that I needed to be better about how I made sure things worked.</p><p>I, like many others, built up strategies associated to success. That’s not something I could magically switch from. My strategy was pretend to have competence, and self-learn what was missing when I needed to. However stressful it felt, it also worked for me. Consequently I decided the issue was only that I hadn’t learned well enough in the moment.</p><p>Logically I knew the importance of asking for help when I don’t know something. When moments are critical though, I resort to my most comfortable strategy. Logic be damned.</p><p>I needed to get used to asking for help in a low-stakes environment. I needed to take opportunities to ask about matters I couldn’t possibly know about. For example, asking teammates to talk about their current projects. Or asking someone about a technology that excites them. Or asking someone to explain how they squashed a bug.</p><p>Basically get used to peers teaching me. There’s plenty of opportunities. For example, when waiting for everyone to show up to a meeting, right after a team sync, or even while eating lunch.</p><p>I stumbled into that. Curiosity eventually got me asking people about things and getting used to them teaching me. That comfort enabled me to ask for help in the moments where it would be most helpful.</p><p>That’s where I’m at today. I still hit stumbling blocks, but I’m assured by the progress I’ve made and the stress-reduced results from it.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=92369a6ef0b9" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Code Design Interviews]]></title>
            <link>https://medium.com/@arosenber/code-design-interviews-4cdedf3a2144?source=rss-82e708428d7b------2</link>
            <guid isPermaLink="false">https://medium.com/p/4cdedf3a2144</guid>
            <category><![CDATA[code-style]]></category>
            <category><![CDATA[design-patterns]]></category>
            <category><![CDATA[interview]]></category>
            <category><![CDATA[programming]]></category>
            <dc:creator><![CDATA[Aaron Rosenberg]]></dc:creator>
            <pubDate>Sun, 12 Aug 2018 17:00:53 GMT</pubDate>
            <atom:updated>2018-08-12T17:00:53.188Z</atom:updated>
            <content:encoded><![CDATA[<p>Code Design Interviews</p><p>My favorite programming subject for a 45–60 minute interview is code design.</p><p>Working through design is a window into how someone works day to day. We can talk about the weaknesses and strengths of a multitude of decisions and all from a perspective of what’s best for the current known state of the world. I want to evaluate this because maximizing code readability and maintainability is a key trait of the best engineers.</p><p>So code style interviews! I use a problem I stole almost a decade ago after experiencing it first-hand.</p><p>Here’s the problem. You write software for tracking durability of a wooden chair. The solution is responsible for the following.</p><ol><li>When will it burn? Given a temperature how long can the chair be at that heat before it starts to be damaged.</li><li>What will break it? Given a point on the chair (x,y,z coordinates) what weight can the chair handle before it’s damaged, will the chair be damaged?</li></ol><p>I’ll work together with the candidate to get us to a starting code base like the following.</p><pre>public class WoodenChair {<br>    <strong>public double </strong>whenWillItBurn(<strong>double </strong>celsius) {<br>        <strong>...</strong><br>    }<br><br>    <strong>public double </strong>breakWeight(<strong>double </strong>x, <strong>double </strong>y, <strong>double </strong>z) {<br>        <strong>...</strong><br>    }<br>}</pre><p>Now I can introduce the incremental feature. We want to support wooden tables. The functionality for whenWillItBurn is exactly the same, but the functionality for breakWeight is different. The whenWillItBurn is defined as f(x,y,z) * woodConstant where f is different for tables andchairs.</p><p>This should trigger for most OO people an inheritance impulse. And often we’ll get to some version of</p><pre>public abstract class Wood {<br>    <strong>public double </strong>whenWillItBurn(<strong>double </strong>celcius) {<br>        <strong>...</strong><br>    }<br>    <strong>public boolean </strong>breakWeight(<strong>double </strong>x, <strong>double </strong>y, <strong>double </strong>z) {<br>        return BREAK_FACTOR * shapeBasedBreak(x,y,z);<br>    }<br>    protected abstract double shapeBasedBreak(<strong>double </strong>x, <strong>double </strong>y, <strong>double </strong>z);</pre><pre>}</pre><pre>public class WoodenChair extends Wood {<br>      protected abstract double shapeBasedBreak(<strong>double </strong>x, <strong>double </strong>y, <strong>double </strong>z) {...}</pre><pre>}</pre><p>This gets the job done, with some quirks. First, we can talk about the exposed abstract method even though it’s not really part of the interface. The second is what it means to override whenWillItBurn/breakWeight something that doesn’t make sense in any of our discussed requirements.</p><p>These discussions are nit-picky, and there aren’t right answers, just a way to talk about consequences and options and see how the candidate thinks.</p><p>I’ll also see non-inheritance answers. These involve a common file of static functions and constants with no ties between the WoodenChair and WoodenTable. There’s still a question of tracking the common contract between pieces of furniture and that will lead to an idea like the following.</p><pre>public class Wood {<br>    public Wood(ShapeType shapeType){...}</pre><pre><strong>    public double </strong>whenWillItBurn(<strong>double </strong>celsius) {<br>        <strong>...</strong><br>    }<br>    <strong>public double </strong>breakWeight(<strong>double </strong>x, <strong>double </strong>y, <strong>double </strong>z) {<br>        switch(shapeType) {...}<br>    }<br>}</pre><p>Regardless of which solution I get, I can propose the other to the person. Then we can talk about comparisons and I start to see how much they care not just about getting from A to B, but <em>how</em> we get from A to B.</p><p>The candidate is more settled into what’s happening now and I’ll mess with their world again. I suggest that in addition to wooden chairs and tables there are steel chairs and tables with the same function requirements. The willItMelt functionality is the same for all steel objects. The willItBreak functionality though is f(x,y,z) * steelConstant where there is one value f’ for all tables and a different value f’’ for all chairs.</p><p>If someone is used to a language like python they’ll jump to mixins.</p><pre>class Material():<br>     def melt_func():<br>         raise<br>     def weight_factor():<br>         raise</pre><pre>class Wood(Material):<br>    def melt_func():<br>         ...<br>    def weight_factor():<br>         ...</pre><pre>class Steel(Material):<br>    pass</pre><pre>class Shape():<br>    def shape_break(x,y,z):<br>        raise</pre><pre>class Chair(Shape):<br>    def shape_break(x,y,z):<br>        ...</pre><pre>class Table(Shape):<br>    pass</pre><pre>class WoodenChair(Wood, Chair):<br>     def when_will_it_melt(temp_c): <br>         return super(WoodenChair, self).melt_func(temp_c):<br>     def weight_breaks(x, y, z, weight):<br>         return super(WoodenChair, self).weight_factor() * super(WoodenChair, self).shape_break(x,y,z)</pre><p>The solution works and doesn’t have repetition of code, plus it can easily satisfy linters. Yet, they introduced the fragility of the diamond problem. We’ll talk about that and a very natural response is that there doesn’t seem to be a reason that either superclass would start having the same functions as the other, so there isn’t a problem. It’s also fair of them to point out that worrying about issues that don’t exist is a pretty good way to waste a lot of time.</p><p>We can dive into many of the concerns of OO, ones that are nicely explained in <a href="https://medium.com/@cscalfani/goodbye-object-oriented-programming-a59cda4c0e53">https://medium.com/@cscalfani/goodbye-object-oriented-programming-a59cda4c0e53</a>.</p><p>In these situations I’m noting already their working style. How much do they care about the consequences of short term work, how much do they care about the experiences of their potential colleagues. How much do they care about code simplicity at all.</p><p>I will always take multiple inheritance away if they use it. Languages like Java don’t allow it, and languages like Golang don’t have inheritance at all.</p><p>We get to something like the following with the single inheritance.</p><pre>public interface Material {<br>      double whenWillItMelt(double tempC);<br>      double breakFactor();<br>}</pre><pre>public class Wood implements Material {<br>    double whenWillItMelt(double tempC) {...}<br>    double breakFactor() {...}<br>}</pre><pre>public abstract class Furniture {<br>     public abstract double whenWillItMelt(double tempC);<br>     public abstract double breakWeight(double x, double y, double z);<br>}</pre><pre>public class Table extends Furniture {<br>    public Table(Material m) {<br>          this.material = m;<br>    }<br>    public double whenWillItMelt(double tempC) {<br>       return this.material.whenWillItMelt(tempC);<br>    }<br>    public double breakWeight(double x, double y, double z) {<br>         return ... * this.material.breakFactor();<br>    }<br>}</pre><p>Now we can talk about the power of composition and how that compares to inheritance.</p><p>More junior candidates will generally need a lot of hand holding because this level of code design is not something they’re familiar with. The good ones express a lot of interest and will start putting together conclusions about why they’d like one thing over another. The worse ones show apathy and concern only with doing what they think you want them to do or will fight for poor solutions without being open to expanding their point of view.</p><p>Good senior candidates should be directing the conversation and flow a lot more and have strong opinions and reasoning on why one solution is more maintainable than another. In general senior candidates perform better on this interview than junior ones. And it makes sense that an apt interview should favor people who’ve done the job longer and therefore would typically be better at the job itself.</p><p>There’s one more level this design question can take. Though I only approach use it if candidates breeze through the previous. The next step is composite furniture. Rather than a pure wood/steel piece they can be combined. For simplicity the whenWillItMelt becomes the smallest time of any material and the break factor for breakWeight is based on whatever material the position input is touching. This opens up the idea that the construction of a furniture piece is non-trivial and we can start talking about builder and factory patterns.</p><p>Overall, the experiences I’ve had with this problem have been the best predictor of how well we’re going to work together in practice. People who have done well have been colleagues I’ve been able to quickly trust as independent owners of their projects and become great company multipliers.</p><p>Not doing code design interviews? Try them!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4cdedf3a2144" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Abstracting Methods]]></title>
            <link>https://medium.com/@arosenber/abstracting-methods-622eaa9bf09e?source=rss-82e708428d7b------2</link>
            <guid isPermaLink="false">https://medium.com/p/622eaa9bf09e</guid>
            <category><![CDATA[java]]></category>
            <category><![CDATA[code-style]]></category>
            <dc:creator><![CDATA[Aaron Rosenberg]]></dc:creator>
            <pubDate>Sun, 22 Jul 2018 19:58:49 GMT</pubDate>
            <atom:updated>2018-07-22T20:01:45.356Z</atom:updated>
            <content:encoded><![CDATA[<p>I’ve never been entirely sold that most of the linter concerns matter. Whether someone employs single quotes or double quotes for strings hasn’t seemed to affect my reading ability. Neither has the use of tabs or spaces. Nor whether indents are two or four spaces. In fact I admit I never really saw what was wrong with 3. It’s got the nice width clarity that fades at 2 while notably saving room over 4.</p><p>Still, linters help solve a lot of wasted philosophical arguments on pros/cons so I like that. Or use Golang where the style is built into the language with good auto-formatting.</p><p>What tends to be unfortunate is that the focus on these microdetails detracts from larger scale issues. I liken it to the explanation I once got for why Poland takes jaywalking so seriously.</p><p>Every jaywalking ticket is a solved crime. This compensates statistically for more serious, harder to solve, crimes.</p><p>That explanation is probably at least a little tongue-in-cheek. Still I parallel the concern of quantity over quality.</p><p>Style maximizes the ease of working with code. To me this means leveraging techniques that will making the code faster to ramp up on and and less prone to mistaken development.</p><p>Linters are particularly bad at identifying poor method abstracting. They warn for too many lines, for heavy nesting, and for number of branches. These indicate overly complex methods, but are too coarse to catch typical problems. Besides they often cause worse solutions, like simply chopping a method in half to pass the linter.</p><p>The poor abstraction problem stems from the single responsibility principle. The less a method does, the easier it is to understand. Consider the following answer to the typical interview question about returning the k most common words in a string.</p><pre><strong>public static </strong>List&lt;String&gt; mostCommonWords(String words, <strong>int </strong>k) {<br><br>    <em>// first get counts<br>    </em>Map&lt;String, Integer&gt; wordCounts = <strong>new </strong>HashMap&lt;&gt;();<br>    <strong>for </strong>(String word : words.split(<strong>&quot; &quot;</strong>)) {<br>        <strong>int </strong>currentCount = wordCounts.getOrDefault(word, 0);<br>        wordCounts.put(word, currentCount + 1);<br>    }<br><br>    <em>// sort in descending order<br>    </em>List&lt;String&gt; sortedWords = <strong>new </strong>ArrayList&lt;&gt;(wordCounts.keySet());<br>    sortedWords.sort( (String a , String b) -&gt; wordCounts.get(b).compareTo(wordCounts.get(a)));<br><br>    <em>// return first k<br>    </em><strong>return </strong>sortedWords.subList(0, k);<br>}</pre><p>I expect something like the above for a first pass. I honestly don’t care about more efficient solutions in practice either, but my issues with interviews is a concern for another time. The above solution is pretty typical to team code and no linter is going to complain about it. Consider the following refactoring of the solution.</p><pre><strong>public static </strong>List&lt;String&gt; mostCommonWords(String words, <strong>int </strong>k) {<br>    Map&lt;String, Integer&gt; wordCounts = <em>getWordCountMap</em>(words);<br>    List&lt;String&gt; sortedWords = <em>orderWordsByPopularity</em>(wordCounts);<br>    <strong>return </strong><em>getFirstK</em>(k, sortedWords);<br>}<br><br><strong>private static </strong>List&lt;String&gt; orderWordsByPopularity(Map&lt;String, Integer&gt; wordCounts) {<br>    List&lt;String&gt; sortedWords = <strong>new </strong>ArrayList&lt;&gt;(wordCounts.keySet());<br>    sortedWords.sort( (String a , String b) -&gt; wordCounts.get(b).compareTo(wordCounts.get(a)));<br>    <strong>return </strong>sortedWords;<br>}<br><br><strong>private static </strong>Map&lt;String, Integer&gt; getWordCountMap(String words) {<br>    Map&lt;String, Integer&gt; wordCounts = <strong>new </strong>HashMap&lt;&gt;();<br>    <strong>for </strong>(String word : words.split(<strong>&quot; &quot;</strong>)) {<br>        <strong>int </strong>currentCount = wordCounts.getOrDefault(word, 0);<br>        wordCounts.put(word, currentCount + 1);<br>    }<br>    <strong>return </strong>wordCounts;<br>}<br><br><strong>private static </strong>List&lt;String&gt; getFirstK(<strong>int </strong>k, List&lt;String&gt; words) {<br>    <strong>return </strong>words.subList(0, k);<br>}</pre><p>What happens here is the first method now reads out exactly like you’d describe to a human. First get the word counts, then sort in a descending order, then return the first k. In practice, I doubt I’d separate `getFirstK`, but I will do it for one liners that are a little less descriptive of the overall operation being done.</p><p>A couple concerns typically pop up with the second solution. First, why create methods that are only called once. Second, aren’t more lines bad.</p><p>It’s certainly good to create methods to reuse code. It’s not the only reason though. If you gain readability by splitting out a process from one method into another then why wouldn’t you?</p><p>Understandably the comments in the first solution solved the same problem. They described the steps the same way as the second one. Problematically though, comments aren’t code.</p><p>Code changes without comments getting updated. It happens a lot simply because when you already know what code is doing you don’t read the comments. When you change it, it’s easy to miss that there were even comments explaining what was happening. It’s also easy for reviewers to miss since comments aren’t indicated as changed.</p><p>This has led me to be mislead and waste significant time and I’ve certainly done the same to others. Now I won’t even read comments unless I’ve read the code and am sufficiently confused. Then I’m desperate a comment will help me. If the abstraction documentation is instead built into method names they’ll naturally update with code changes.</p><p>As for the length problem, the second solution style will create longer code. Length of code is an indicator of too much happening in one place, but it’s not something to be minimized. If adding lines will increase readability and therefore maintainability, why wouldn’t you do it?</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=622eaa9bf09e" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>