Tuesday, 30 September 2014

Raw Power


Elvis started to throw his weight around immediately, and since he only had two engineers to look after that meant me and Benjamin. We had a release due in a couple of weeks and Elvis decided he needed to be involved.

Most of the things he wanted were small. "Move that control two pixels to the left. "Change that word from "Edit" to "Modify". My favourite was his request that I make the toolbar show its icons in true colour. I explained that it was an out of the box control and it only supports 16 bit images, but Elvis was adamant. I explained that the images we used weren't in 24 bit colour anyway, and he went and had a designer in the marketing department spruce them up. Int he end it took me most of a week to get the damn icons on the toolbar displaying properly in true colour, at the expense of bug fixes and features that customers might actually benefit from. He didn't care, so I did what I was told. Putting a true colour toolbar on that horrible, hacked-up interface was like putting a ribbon around a turd.

Suddenly ATB was hiring. Elvis immediately started negotiating to bring in the team of contractors working for us from a nearby firm, and there was a procession of candidates through the doors as well. Benjamin was called upon to test all of them. When he was away, I did the testing.

It was my first time on the other side of the table in an interview situation and I didn't like it. The test I had to administer had been written by Benjamin, and it only covered C++ topics. I was asked to test programmers who had responded to job ads for Visual Basic or C#/.NET programming roles--topics I was bone ignorant about. One candidate in particular--a veteran programmer who was probably in his fifties--grew angry and belligerent about it. Elvis had left us alone in the room for the test and I felt like the lowest of weasels. In his place I would have been angry, too. Some punk kid half my age, asking me difficult questions in a language you never claimed to know. But the form of it was all that mattered to Elvis

Money was suddenly a sore point. Elvis had left papers lying around showing the salaries promised to the team we were poaching from the contracting company and their numbers were substantially higher than what what Benjamin and I were getting. (I didn't know Benjamin's salary, but that was what he said when he saw the papers.) The lowest salary on the sheet was almost fifty percent above mine, and these were all programmers with similar levels of experience to my own. Benjamin stormed into off to see the president of the company at least once a week to demand more money. I went with him once, but I just stood by and let Benjamin talk. I could see it was getting him nowhere. My own interest was academic: I didn't plan on staying there long.

Benjamin started pushing me. Doing less work, belittling my work in front of other people. I let him say what he wanted, but I wouldn't stand by and let his poor judgment compromise the quality of the work I was doing. He contested a database schema design that I came up with and his proposed alternative was leaky. It was going to lose crucial data. Benjamin got angrier and angrier as I refused to accept his design. Eventually, he pulled up his college transcripts to show me that he'd scored As in his database subjects. I told him he was still wrong. It was my feature and my responsibility and he could fuck off with his college transcript.

To this day it's the only time I've ever raised my voice in anger at work. When I realized I had shouted I turned and left the room. Elvis and Judd were nowhere to be seen, but afterwards Freddy, who witnessed the whole thing, came up to me with a smirk. "That was new," he said. "Not unexpected, but new." He reported the incident up the chain, as I knew he would. I liked Freddy but I knew he was a born gossip.

Benjamin and I didn't speak for days after that. I delivered the feature and the matter was never raised again.

When the first new engineer started we had an office move. There just wasn't space for one more desk in the dingy basement room Eric, Benjamin and I shared. Instead we moved upstairs, to the area formerly occupied by QA and technical support. It was quite a large area, and with only three desks in there it was a like working in a barn. A barn that dripped from the ceiling.

Elvis told there were plans to rent a floor in the 12 storey office block next door. I wasn't sure I believed him.

The new hires started arriving and before long they had to install partitions. Suddenly I had one square meter of desk space, with engineers on my left and my right. The floor in my spot wasn't  level, and I had to lean constantly to prevent my chair from rolling downhill. If I rolled my chair backwards more than a few inches I would run into the back of the guy who sat behind me--a grumpy old veteran named Ralph. I liked Ralph. He told you what he was thinking.

ATB had purchased a branch of the sourcecode for a Visual Basic application written by a couple of local entrepreneurs. The app itself was primitive, and was in fact a direct knockoff of a competitors product, but someone at ATB saw it as a strategic market. Ralph and Dennis, a baby-faced engineer five years my senior, were given the task of cleaning up that code and make it something that ATB could convincingly sell to man-on-the-street-with-laptop consumers.

Within the space of about a month my workspace had gone from a tomb to a barn to a sardine can. It was bewildering.

I rebooked my cancelled holiday home to Australia for July. The lawyers advised me that I needed to go home and get a new visa stamp in my passport. I needed a new passport, too. The consulate in Melbourne would not say me how long that process would take--they advised me not to buy a return flight. I put my head down and decided to wait it out, see what happened. The situation at ATB continued to get weirder all the time.
 
Benjamin was becoming increasingly agitated. He would pose psychological challenges to everyone who sat within earshot. Unpleasant hypothetical situations. What would you do if...? I don't think even Benjamin enjoyed those conversations, but he kept introducing uncomfortable new topics.

The team of contractors came on as regular employees and suddenly they were the cool kids. They hung out together, they were always laughing, they had a good time despite the dingy work environment. It's rare in the software business that you feel like you're not popular enough to hang out with the pretty people, but suddenly there was a clique of engineers who were better paid and better treated and who were simply having a better time than the rest of us.

One Monday morning, when the new hires were announced at the staff meeting, Benjamin turned to me with an expression of shock.
"That guy."
"What?"
"That guy." The guy he indicated was a huge individual with cokebottle glasses and some kind of obvious social disorder. 
"I tested him on Friday and he got zero. ZERO. Couldn't answer a single question on the test. Elvis hired him anyway."

When Benjamin buttonholed Elvis about it he said "The guy was nervous.  He sent me some work samples from home and they were good."

That Guy lasted about one week, including the weekend. (Elvis made him work over his first weekend). Every single line of code he submitted had to be rewritten by somebody more competent. I think he quit before Elvis could fire him but I was never certain.

Benjamin decided that his chess game had improved sufficiently that he could take on Colin, and he challenged him to a best of fifteen tournament to see, once and for all, who was the best player in the building. Colin agreed to it in his usual laid back way. Benjamin then turned to me and said "I'll bet you five dollars I'll win."

I wasn't sure how to respond. He was my teammate, and he had had a sensitive ego, and now he wanted me to bet against him? I didn't care about his chess game. I just wanted to be able to get on with my job in peace.
"I bet you twenty," I said, hoping to price myself out of the proposition. I knew Benjamin was a cheapskate.
He thought long and hard about it, but in the end he decided to take the bet.

Benjamin  started playing chess. He kept score on the white board; game stats and a whole lot of bullshit analysis that made it look like he was doing better than he was. The truth was that Colin was thrashing him, no matter what he wrote on the board. His mistake had been telling Colin about the bet. Now that there was money on the line - even though it wasn't his own - Colin took a renewed interest in the game and Benjamin just couldn't compete.

Benjamin also started coming up with excuses to rewrite all of the external utilities our product needed in C#, because he wanted to be able to put the cool new language on his resume. I was scornful of the idea--more of Benjamin's paranoia about being left behind or turfed out by the tech business-- but I left him to do it. I was scornful of C#, even though it was clearly becoming more valued at ATB than the C++ we were writing. But I didn't say anything. I didn't want another fight; I just wanted to get my job done and get away on holiday.

July came around finally and I was ready for my holiday. The day before I was to leave, Judd called me into his office. "Here you go, Pike, we're paying you a bonus for all your good work." It was maybe $1000--well short of what was owed to me for the month of salary he'd earlier screwed me out of.
"Thanks, Judd."
"It's to make sure you come back," he said, grinning.
I just looked at him. "You really think I'd just leave like that?"
"Well, not really..."
Without taking the pleasure of slapping a resignation form down on his desk? Did he think I was stupid? 
I pocketed the cheque and left it at that. He knew I had good reason to walk, and he knew it was a lame gesture. I don't think it had occurred to him that I would be insulted.

I knew I'd be back, but I had a feeling it wouldn't be for long. I wanted to take my holiday, get my new visa, and get some perspective. I wasn't ready to call it quits with Donna but I wanted to get away from her for a bit, too. I had no real idea what would happen next.

Saturday, 13 September 2014

Skull Ring

Things at Across the Bay got weird very quickly.

Benjamin was the most obvious source of weirdness. Whenever his cellphone rang he would look around guiltily and answer it in an undertone. He would invariably say "I asked you not to call me at work." I tried not to listen in but his chair was less than two meters away from mine. I thought perhaps he was talking to a drug dealer, but he later told me it was his girlfriend.

Benjamin was also a bit on the paranoid side. He was terrified that he would be fired, and he told me that he was worried the black stain of that would prevent him from finding work again and he would end up on the street.

Benjamin had lost a lot of weight, he said, due to a strenuous diet and exercise program and he was also paranoid that he would get fat again. He would very rarely eat anything besides the occasional powerbar. But that never stopped him tagging along when I went in search of lunch. During one such lunch he told me that during the interview process there was only one other candidate who had passed the test. This candidate was more experienced than either of us and Benjamin had somehow vetoed the hire because he did not want Judd to put anyone above him, and the guy was 'management.' I was never clear on exactly how that went down but I suppose int he end they decided that they didn't need a development manager to look after a team of two, and I was definitely cheaper--and they definitely had me and Benjamin cheap. The CEO of the company joked about it in my hearing: "We  pay our programmers peanuts." I would later hear him use the phrase "Arbeit Mach Frei" when describing our workload.

One of the tech support engineers, Colin, was a chess enthusiast. Benjamin was convinced that he was the smarter of the two, since Colin was 'only' in support, and that he would prove this by becoming a better chess player. The only problem was that Colin held an Expert ranking and Benjamin was a novice. Benjamin kept a tally of how many games he had won in order to track his progress. He did start to win more and more often, as Colin became less and less interested.

There were only a couple of testers working at Across the Bay, and only one was assigned to the product Benjamin and I were writing. Igor was a huge, soft-spoken Bulgarian guy with a sarcastic smile. On my first day, he indicated the work Benjamin and I were doing, and said "This software is shit. It's the worst software I've ever seen." He smiled his little smile and went away, leaving Benjamin fuming.

Freddy, on the other hand, quickly proved my initial feelings about him wrong. He had a strange, self-deprecating sense of humour but he was a good guy. We were the only two people int he office who drank coffee, so he brought in a little two cup percolator which we both enjoyed.

Benjamin and I were the only programmers ATB employed in house, but they had a team of six or so team they'd outsourced from a nearby contracting house who wrote ATB's flagship product. ATB was primarily a software reseller but I think the outsourced product sold better than any of the tools they were distributing, and the margins were much higher. We heard a lot of talk about the other team, and word was that ATB was going to move into software development in a big way. In the meantime, though, there were some problems... such as the fact that Benjamin and I were the only two employees who had ever worked for a proper software development outfit before.

One Friday at the end of the day, Judd asked us for a development build of the product, saying he wanted to play around with it. We cut him him a build and went home for the weekend. Benjamin and I returned on Monday to a furious email about release procedure from the CEO. Judd had published the build as a release candidate and the denizens of the Beta forums had torn it to shreds.

Judd started to feed us odd technical questions that seemed to be from the outsourced team. For example, he showed us a magazine article about how string parsing in Microsoft's new language, C#, performed just as well as it did in C++ and asked us to assess its accuracy. (We debunked it pretty thoroughly). Something strange was going on. We started to hear the names of the engineers on the other team bandied about. The team lead, Mark, seemed to get a particularly good amount of airtime. They were contracted through the consulting company to which Vlad from my old job had recommended me, where the manager had been so rude to me. I heard his name mentioned a lot, too. Michael.

But we had other things to worry about. Judd asked us to estimate how much time we needed to get the product ready for Beta. Benjamin and I spent a day figuring it out and decided that the bare minimum was four weeks, if every single thing went to plan.

"Well, you've got two," Judd told us. I don't know if he thought we were slacking, or if he thought he could make us work harder, or if there was a reason for that deadline, but whatever the case, Benjamin and I just stared at him slack jawed. Then we went back to our desks and got to work.

Things didn't go perfectly. Igor logged a huge number of defects, which provoked Benjamin into storming upstairs in a rage. I followed him int he hope of talking him down, but he had to have his say. Benjamin screamed for probably five solid minutes. The gist of his argument had nothing to do with the defects: he was convinced that Igor was trying to ruin his career. Igor just sat there and smiled his little smile.

While all of this was going on, I was actually learning some new things about programming. I learned more in my first couple of months at ATB than I had in the two years prior. Specifically, I was learning about threaded programming.

Benjamin called himself the "Thread Master" and he was very proud of his work in that arena. He showed me some online articles on the topic and I devoured them avidly. The skills were necessary for the software we were building and I soon found that I needed to use them. My first asynchronous project was to write a threadpool. I wrote a generic class that would take a queue of jobs, which the threadpool would consume until the queue was empty. Jobs could be safely added to the queue during processing. It worked pretty well and the class  proved useful in several places, and Benjamin declared it a success. This is a solution I wound up implementing at a number of different jobs after I left ATB.

Then Igor logged a bug that looked thread-related. Benjamin made a big show of telling Judd that normally this was something that he, the Threadmaster, would handle, but he thought I was ready to step up and take it on. Judd, of course, said "How long will it take?"
"Maybe a week. It looks nasty," I said. I didn't like the way that Benjamin was makign a big deal of this. It looked like he was talking me up, but really the point was to show Judd how much better than me he was.
"I think you'll nail it in three days," said Benjamin.

I had nailed it by lunchtime. Once I had actually looked at the code I found that it wasn't a threading issue; it was an blatantly obvious error that Benjamin had introduced a few days prior. I fixed it quietly and got on with things.

The next morning, Judd sidled over and said "So, how's that monster problem going, Pike?"
"Oh, I took care of it."
"Wow, that was quick. What was it, in the end?"
"Oh, just a bug." Benjamin was still my teammate and I wanted to look out for him, although he was increasingly volatile and he was screwing up more and more often. He was int he CEO's office at least once a week, complaining about conditions and pay.

I figured that Judd and the rest of the office could see what was going on. They could see that I was quietly and competently getting the job done without any big show and without talking myself up. Surely they could see that Benjamin was a little bit unhinged.It wasn't for a couple of years that I realized they didn't know or care.

Benjamin and I continued to work on our product, and it was getting close to being releasable. ATB started hiring again: they brought in an engineer who was a little older than me and had Benjamin test him, as he had earlier tested me. I wasn't in the room, but the new guy, Elvis, did well, and was duly hired...

... into the position of Development Manager. Benjamin was furious. In particular, he was galled that he'd been the one to test Elvis--he thought that meant  he would later be singled out for special vengeance.

But whatever his faults, Elvis was a laid-back guy with little concern for such trifling matters. I doubt he gave the test another thought.

Elvis was an entirely new kind of manager, quite different to the ones I'd served under in the past. But his presence signaled something I'd never seen before: rapid expansion. ATB had big plans and they were only just beginning.

Wednesday, 27 August 2014

Funhouse

The company Across the Bay offered wanted me to start immediately, although my visa transfer had not yet gone through. My lawyer told me it was illegal; their lawyer said that it was.

The offer that they made me on paper was for a salary equivalent to the one I had been earning, to be increased by a few grand after a three month trial period. Perhaps they didn't realize that I had seen a copy of the paperwork they provided to the Immigration Department, which listed the higher salary.

They were adamant that I start work for them. They claimed that they would call it 'training', if questioned, and I would be paid my salary for the duration as a signing 'bonus'. I reluctantly agreed.

When I arrived at work on my first day I found Benjamin frantically checking code into Source Safe. He had not been practising any kind of version control before I arrived on the project and my arrival had prompted a sudden massive code cleanup, which went as far as a renaming of the product.

The code was still a mess. The product was halfway functional, but there was no design; no object model. It was built on top of another product, which in fact did all of the work. Our product was intended to be a GUI that would exercise their command-line interface. Our only selling point was cheaper licensing terms than the base product, which had its own superior GUI.

The problem was that the other product came with a database, which was updated every month--and which was partially encrypted. We needed to apply those database updates to our own product and we needed to display some the encrypted information for our product to be of any use to end-users... but the company we had licensed the product from was a military-industrial provider and would not give us an API to decrypt.

For this purpose Benjamin had written a screen scraper, which would open the other product and automatically press buttons in order navigate through its database. It would then scrape the decrypted text out of the other product's GUI and save it into a new table int he database. It was a clever bit of work, but slow and not very robust.

The database in question, I was dismayed to discover, was MS Access. Our product installed its own tables into the same database and read our data out of there willy-nilly.

My first task was to help build out the views through which the GUI would display information present in the database, most of which revolved around jobs the user created and the results of their execution. This on the surface was an easy enough task, but Benjamin had bastardized the MFC Model-View framework and getting it to behave like a proper application required a lot of hacking.

On my first day a guy called Freddy slouched into the office and introduced himself.
"Good to meet you, Freddy."
"I don't feel so good. I only got to be the new guy for about three days before you arrived."
He laughed. I didn't like his smile. "Just kidding."
I smiled and nodded.
"You're going to learn to hate me," said Freddy, still grinning. "I'm the Product Manager."

During my first week Judd let it be known that the pressure was on for a release, although the software was nowhere close to being ready. Benjamin sighed and said we were going to have to work through the weekend.

"No way," I said. "I don't have a visa and right now I'm only here in the office out of the goodness of my heart. No way am I coming in on the weekend."

Freddy gave me a narrow look. "This one's trouble," he said loudly. "Better keep an eye on him."

I shrugged him off and got back to work. He had no idea about my work status and I did not feel like filling him in. Freddy had already advised me that I should hate him and I decided to take him at his word. Rarely have I misjudged anybody as badly as I did Freddy.

About a month into my trial period my visa transfer arrived. Marge came to me to get my bank details and to set up with health insurance.

Then Judd came to me and said "So, man, this signing bonus is going to be a problem."
"Oh, really?"
"Yes, well, the thing is, we've never paid one before, and we don't think it sets a good example to pay one now."
"But you know it's not really a signing bonus. It's my salary."
He looked away. "Well, yes, that's right. Hey, tell you what. I'll make it up to you by paying you the at the rate that you're not supposed to get until after your trial period."

I did some mental calculations. I was out one month's pay and the difference in salary for the remaining two months of my trial period was not even close to covering it. In any case, they were legally obliged to pay me the higher rate.

ATB had decided not to pay me for the month during which I had worked for them illegally, against my lawyer's advice, risking deportation. They were clearly doing it because they knew they could.

They had me over a barrel. I was cheap, the economy was terrible, and I had two options: quit and go home to Australia or suck it up and stay.

I'd worked hard to be there and my self-esteem had taken a beating through the redundancy. Donna put pressure on me and I decided I would stay.

The fun was just beginning.

Wednesday, 28 November 2012

The Once and Future Programmer

I must have sent out twenty resumes before I landed in North America.

Starting in Ontario I traveled up and down the East Coast, traveling as far south as Florida visiting friends a looking for jobs. I probably sent out sixty or eighty more resumes while I was doing this. I sent one out to the then-struggling Amazon.com in Seattle but that was the only job I looked at on the West Coast. I did not receive a single reply.

(Ten years later, Amazon recruiters would actually contact me and ask if I was interested in moving back to the States. I assume that this was due to a more current resume of mine leaking into their channels.)

It wasn't easy. These were the days when pre-paid mobile phones did not have 'roaming' capabilities. I struggled to acquire a phone that would allow me to roam across the USA without having an address or a local credit card.

I sent resumes ahead of myself to companies at every major destination I was heading to and once I arrived in a city I spent a lot of time combing the local newspapers for ads, although even then most of the jobs I applied for were through online ads.

In Boston I went through the phone book, looking for tech companies to cold call. After getting blasted over the line by one such company ("How can you come here and ask me for a job when I just let twenty engineers go?!") I gave up on that approach. Some friends of mine in introduced me to some of their friends in the industry as 'the once and future programmer' but I left Boston with nothing.

In Florida I replied to a newspaper ad that explicitly welcomed applications from foreigners. Nothing.

I lit out for the Pacific Northwest. This was the end of my trip. Next I was going to head down to LA and them back to Australia. I told myself I was on holiday and I tried to enjoy it. I was in Vancouver when the Florida company called me up for a phone interview.

I did the interview but they didn't invite me to an in-person interview at the end of it, so I went on to Seattle, and then to LA, as planned. I was in the Getty Museum with about two days until my flight home when they called me and invited me to an interview.

I moved my flight home out and got on a plane back to Florida. I was running out of time and funds; it was probably my last and only chance to find employment in America.

The interview went well. There was a coding paper-test, but it was blindingly easy. "Write a stack class," it said. They did not tell me what kind of objects they wanted to stack. They gave me half an hour.

I wrote this:

class StackableObject;

std::stack< std::vector< StackableObject > > stackOfStackableObjects;

After contemplating my handiwork for about twenty seconds I decided that perhaps they would construe that as a smart-arse answer, so I sat down again and wrote out a template-based stack class based on a linked list. If I thought my efforts would impress anybody, I was mistaken.

"Oh," said the Abhiraj, the most senior engineer at the company. "You used a template."

I would later learn that his apathy was due to the fact that Abhiraj himself did not understand templates. But I passed the test, because another thing that I would later learn was that all he had wanted to see in my answer was that I provided a constructor and a destructor. To this day I believe that this was the extent of Abhiraj's knowledge of Object Oriented programming practices.

They offered me a job. The salary was nearly 20% less than the one offered to me by the job I had refused in Silicon Valley. I made a small attempt to negotiate, but they very well knew that I didn't have any other options. I took the job.

The process dragged on. They told me that they had expedited my work visa and that it would be two weeks, but soon four weeks had elapsed. I into a cheap motel where the AC didn't work near the office and lived off the groceries I could keep in the bar fridge.

Eventually the company called me up again. Somebody had stuffed something up and instead of flitting up to Mexico or Canada to get processed I would have to fly home to Australia to get my visa stamp--at my own expense.

So I went home. I duly took all of my paperwork to the American consulate and the visa was granted. I left them my passport they told me that I could collect it on September the 12th. The year was 2001.

Sunday, 25 December 2011

Dude, Where's My Car?


I needed a new job. The IT business was booming over in the US and relatives were beginning to ask me when I would be opening my own startup and raking in those easy VC millions. This was December of the year 2000. I didn't want to start up on my own, but I'd been to the US a couple of times and I wanted to go there. The US was the real world.

I was bored with Tigerland. I was bored with database programming; I felt like I'd been there and done that. What I really wanted to do was graphics programming, so I bought an OpenGL textbook and started to teach myself some new tools. 3D was a lot easier with real libraries than it had been at University. I took my 3D projects with me to work and I worked on them at lunch time, much to Meggs' chargrin. It was quite obvious that the code I was playing with had nothing to do with Tigerland's business.

I had also started looking into what it would take to get me over to the US. An H1B skilled worker visa seemed to be the trick. I found an ad in the IT section of the Age newspaper (in a few years' time this section would be discontinued, and IT jobs would vanish almost entirely from Melbourne's biggest broadsheet newspaper). They were looking for programmers who wanted to work in the USA, so I sent in a resume. A couple of days later I received a phonecall inviting me to interview.

I called in sick on the scheduled day, put on my suit, and went in to the temporary office from which the Americans were conducting interviews.

The receptionist gave me a questionnaire to fill out. The only question I remember from it was "What is the minimum salary you are prepared to work for?" I knew roughly what that should be, so I answered it truthfully. Stupidly.

The Americans turned out to be a pair of Indians. The interview turned out to be piss easy. A C++ test that was much easier than the Tigerland test and some verbal long-answer questions about broader topics, like multiple inheritance. I breezed through it.

The company was a big contracting firm based in Silicon Valley. The Americans sold it to me pretty hard--the lifestyle, the location. "Oh, you like SCUBA diving? There's amazing diving in California." They told me all about the benefits: medical, dental, a relocation bonus... I was pleased, but in the back of my mind, there was doubt. There was a used car salesman vibe to the whole thing. I just didn't trust them.

The Americans' offer letter went into the mail the next day. A complete package: contracts, visa paperwork, the whole nine yards. The offer was for that minimum salary I had indicated. There was no relocation bonus in the contract and a few other promises were also missing. The Americans called me and asked me if I would accept it. Salary was not negotiable. They claimed that the missing contract items were in fact there. I told them I was thinking about it.

I rechecked the contract. The missing clauses were definitely not there. I had, meanwhile, been reading about the cost of living in Silicon Valley and I was becoming worried about it. One article spoke of a how the mayor of one of the municipalities there had had to resign because he couldn't afford to live there any longer. A friend of mine who lived in the States who and had some experience with budgeting crunched some numbers for me, and it looked as if I could scrape by on my non-negotiable salary... barely.

I wanted to go, but I didn't trust the company and I really couldn't afford Silicon Valley. I told them no. They tried hard to change my mind, but not so hard that they offered me more money. I walked away from the table... (my willingness to do this has been at various times an asset and a liability, across the intervening span of my career)... but now I had a plan.

It had been  ridiculously easy to get that job offer, I reasoned, and I hadn't even left home. How many more opportunities would I find if I actually went over there in person?

I was going to do it, early in the new year. I figured how much money I thought I would need to go over there prospecting and calculated a departure date based on that. I remember doing that quite vividly. I was by myself, walking down the street at lunch time. The sky was blue and I would soon be free.

Amos was back in town and the talk was that he was thinking about coming back, if there was room for him. I went to the technical director and I said told him that I was planning to leave, in case it had any bearing on whether he would hire Amos back or not. He did not seem surprised.

I went back to work. The days passed. I worked hard to close off everything that was assigned to me. Meggs didn't talk to me any more than he had to, and that was fine.

A few weeks later the MD invited me to the pub at lunch time and told me that Meggs had instructed him to dissuade me from leaving. He offered me money. I told him that my decision was made. I was going to the US. I also mentioned that the money he had offered wouldn't have been enough, either. He was shocked when I told him what the going rate for a developer with a couple of years experience was, but I knew what I was talking about and I had statistics to back me up.

We had drinks down the pub on my last day. I got monstrously drunk and Guthrie told me I could crash at his house, which was a lot nearer to the pub than my own. I threw up in the taxi. The following morning Guthrie offered to drive me home... whereupon we discovered that his car had been stolen. The film "Dude, Where's My Car?" was then playing in the cinemas and I thought he was playing a joke on me.

Still, Guthrie told me that despite all of the trouble, it was a very good week for him indeed: the directors had paid attention when I told them what kind of money we were worth and he found himself on the receiving end of a very large payrise once I was out the door.

As for me, I was bound for the United States. By then, of course, there was a new phrase in the air: dotcom bubble. One of our own ministers boasted that we hadn't been wiped out because we'd failed to catch the wave in the first place. But I was already on my way.

I would find out for myself just how much blood was in the water.

Monday, 7 November 2011

Riding the Tiger

Amos left at the start of my second year at Tigerland and Meggs took over his role, as well as continuing with his own duties. The first thing that he needed to do was to replace Amos.

Meggs decided that he needed someone pretty serious to replace his compadre; somebody both skilled and experienced. And so he set about interviewing candidates for the role of a senior developer.

I was not present for any of the interviews, but I heard about what had happened from the technical director and from Meggs himself. Meggs reduced at least one candidate to tears during the interview process. For other candidates, if they were not doing well enough in the testing, he would get up and leave the room without saying a word.

Eventually, Meggs settled on a developer named Ivan. He didn't particularly like Ivan, but he was the only candidate who had actually passed Meggs' testing and soon enough Ivan joined us in the fishbowl. Ivan was very pleased to be in the role, and he expressed to me his delight about how much he was learning from Meggs, about how great a pleasure it was to be exposed to an intellect like that. No matter how badly Meggs treated him, Ivan seemed to be okay with it. I have never seen anything like it before or since.

Every day, for a solid half an hour just prior to lunchtime, Meggs would stand over Ivan and bellow at him;  insulting his work, his integrity, his experience and his intelligence. I remember Ivan's work being clean and tight and clear. He met all of Meggs' style guidelines and everything I ever saw of it looked good. Ivan was the only candidate who passed Meggs' screening; I'm pretty sure the problem was not actually in his court. Meggs liked to be feared, and without his friend Amos to snicker about it with he was probably lonely as well.

I started having my own problems with Meggs. His desk was abotu a meter and a half from my own and he started watching me over my shoulder. Meggs decided that I was compiling the source code a bit too often, which was costing me a valuable half minute or two each time I pressed F9. "Jared. You only need to recompile the module you're working in. Be more productive." Meggs' own productivity was tailing off, because, for one thing, he was spending so much time watching me when he wasn't yelling at Ivan.

Meggs assigned me a fairly complicated piece of logic to do involving persistent locking. My first attempt was a failure; I hadn't understood the idea of it properly and it didn't work when there was more than one client connected (which defeated the purpose of the exercise). Barely controlling his impatience, Meggs explained it in more detail, and even drew  me a picture on a scrap of paper and told me to build it. This was the first time I'd ever been shown a design drawing for anything at Tigerland... and, let me be honest, through the rest of my career, I've rarely seen a design drawing for anything that I didn't author myself. I any case, it made an impression on me.

This time I understood what was going on properly. I looked at the design carefully and I noticed what looked like a bad side effect. "No, that's the behaviour I want," said Meggs.
"Well, okay, then," I said.

I went and set up the locking the way he had asked. When the task was done he code reviewed it and I checked it in... and then I threw away the drawing.

About two weeks later, I found myself on the receiving end of a tongue-lashing on the same scale as the ones Ivan was subjected to. "Pikeman! This locking system you built is rubbish! Have you seen this side effect?"
"Meggs, I told you that was going to happen."
"I would never have agreed to that!"
"But... it was your design! I built it exactly the way you asked me to! You even drew me a picture!"
"Where's this picture, then?"
I've never thrown away a design drawing since.

By now Meggs had stopped contributing any code to the product. Ivan was building a special new feature, but it was Guthrie and I doing 80% of the work fixing bugs and migrating across to the new design. But it wasn't just the architecture changing. Meggs was making ad hoc changes to the feature set and functionality as  we went.

Meanwhile, I was becoming more and more interested in the design of the new infrastructure. I suggested to Meggs that it would be really nice if you could tell the framework what the cardinal relationship between different kinds of entities was and have it generate queries based on that. Meggs agreed that it was a good idea and he added some code that did indeed identify the relationships... but it was cosmetic only. None of the smarts I wanted to build were present. In hindsight, I think this actually half-assed attempt at an apology. I didn't criticize it but he could see I was disappointed.

The technical director could see that things were going badly. We'd barely enough money to cover costs during the year and the software was badly behind schedule. This latter problem was entirely due to the fact that Meggs kept moving the goalposts; making the design more and more elaborate and forcing us to constantly rework what we had done. He hadn't stopped coding himself, but he was coding a hobbyhorse project that had nothing to do with the work we were putting to market. Aware that something was amiss, the technical director instituted weekly development meetings.

These only made it worse. Meggs began to use the forums to taking credit for other people's ideas. Most usually, those ideas were mine. Sometimes Meggs would get the ideas wrong and miss the point... and if I would pipe up to correct him he would repeat what I said back to me, in front of the whole room, as if I was too dense to understand them.

Suddenly I was no longer afraid of Meggs anymore. I had learned a lot from him, but I knew that he was no longer this infallible font of technical wisdom. He had taught me that the design was the most important part of an engineer's job and I was going to stand by that principal, regardless of his sensitive ego.

Meggs' new design ideas were all to do with preventing programmers from making mistakes where his framework became unintuitive or failed to handle errors well, and I was assigned the task of making the little classes that would enforce this... classes that soon be scattered through the codebase like a bucket full or rabbit pellets. I didn't complain, but I became sly about it, and I started making these turd classes more and more elaborate; decorating them with superfluous template parameters and inheritance hierarchies. These exquisitely-polished turds passed through Meggs' formerly-rigorous code reviews without comment. I turned one of these projects (a particularly bad mixed-metaphor turd class) into a three-week-long project which to this day is one of the most conceptually-complicated and difficult pieces of technology I've ever worked on.

Meggs was even less attentive than ever, and Ivan was copping worse and worse abuse every day. In a bid to get me out of his hair, Meggs assigned me to port one of the biggest modules in the product across to his new framework, with a number or revisions to the functionality that he laid out in an email.

It was a disaster. If we'd ported the module as it was that would all have been fine, but the functionality changes were going to take a module that was compact and well featured and useful and turn it into something no customer would ever have a use for. Usually I wouldn't have known or cared about the customer's end of the experience, but we used that module internally to manage our development database, so, unlike some other areas of the application, I knew it inside out. The development team used that module on a daily basis in the same way that our customers did.

I told Meggs it was a bad idea. We argued loudly about it for a full day, but I refused to give ground. We left it over the weekend and took it to the development meeting the following monday morning.

Words got heated, but there was no yelling. Eventually the technical director threw up his hands and said "Pike, just do it the way Meggs wants it."

I went back to my desk and went to it like a man possessed. I was determined to get the work done as quickly as possible so that Meggs could see what a disaster it was before he forgot the arguments and blamed me for it. I didn't speak a word, I don't think I took a lunch break. I don't think I have ever produced as much code as I did in the following forty eight hours.

Once I had written most of the code and fallen once more into the sleepy cycles that followed which involved running the regression test suite and writing new tests... but mostly staring at the screen while the tests executed... once the anger started to fade... I realized that it was a futile exercise.

I have a vivid memory of going to a camera store with my mother when I was a boy. There had been some problem in developing a roll of holiday snaps and my mother was furious. The man in the camera store was an old Indian man. He stayed calm and my mother settled down. Once they had reached a peaceable agreement, he told her that he was glad. "You came in here riding the tiger," he said. "But don't you feel better now that you have climbed off?"

That was what I had to do. It was time to climb down from the tiger.


Thursday, 13 October 2011

Sugar Fixed

... and we're back. Sorry for the disruption, folks.

I've begun working on the next entry now and it should be up over the weekend or early next week.

-- Pike