HNHacker News
TopNewBestAskShowJobs

brian_cunnie

870 karma · joined September 8, 2015

submissionscomments
brian_cunnie··on How some good corporate engineering blogs are written
My experience at Pivotal (now VMware) echoes Dan Luu's point: the less friction to publish, the more posts on the engineering blog [0].

Our current set-up is simple: clone a repo, create a blog post (in Markdown) from a template, and when you're ready to publish, commit & push to the master branch. We put a lot of effort into making the process simple for engineers.

However, before that process was put in place, it was much more burdensome. I remember in 2014 I had written a blog post and it needed to go through Marketing: Branding was important, and formatting was a challenge. Also, I encountered feedback unrelated to engineering content: "You need a call to action," said the person in charge. I was baffled: "If they've found my post, it's because they're trying to fix a particular problem--they've already had their call to action." The process was discouraging, and I didn't write a blog post for a long time afterwards.

[0] http://engineering.pivotal.io/

brian_cunnie··on Commit messages are not titles (2015)
This.

Also, commit messages are sometimes the "documentation of last resort".

In my organization, putting comments in the code is frowned upon. "Comments are lies! The documentation is in the tests!"

But the tests don't lend themselves to _reasons_ behind why the code was written a certain way, why a given approach was taken (for example, we needed to re-write a Rails database migration in a somewhat contorted manner to avoid a deadlock that was occurring in production).

In such organizations, the git commit message are often the best place to warn future programmers of pitfalls: "don't even think of parallelizing these table updates—you'll get deadlocks!"

[edited for brevity]

brian_cunnie··on Google Gives Feds 1,500 Phone Locations in Unprecedented ‘Geofence’ Search
It's not that the police _won't_ investigate; it's that the punishment isn't enough deterrent.

"We can only give them a citation, and the thieves know that, so they don't care," said officer Pete McLaughlin (retired) to me.

Admittedly, this was in regards to stealing bikes and not into breaking cars, but I suspect the punishment is the same.

brian_cunnie··on My Year of Concussions
I've been playing rugby for 12 years, but I only got one concussion, when my teammate clipped my jaw during a passing drill, spinning my head around. Instant vertigo, fell down, and knew right away it was a concussion.

I felt euphoric. It was wonderful.

For the next 5 weeks, whenever I started warming up for practice (playing touch rugby), I'd get splitting headaches and have to stop. But after 5 weeks there were no headaches, so I resumed practice.

The other two concussions I had were from hide-and-seek when I was ten, a head-on collision in a pitch-black room (I saw stars), and another when I was skiing off trail when I was 23 and knocked my head against a tree (I saw double for 30 seconds).

brian_cunnie··on What it feels like to swim in sub-zero waters
His facts are a little off, but it is a good article. For example, he states, "When the water is cold (say under 50 degrees F) there are significant physiological reactions that occur, in order, almost always...You Can’t Breathe"

But he's painting with a too broad brush. In other words, some people experience those symptoms, others don't. For instance, my fellow swimmer Brenden Sullivan swam in Tahoe at 38º F (well below 50) and didn't experience the can't-breathe symptoms).

Few people in the open water swim club that experience the loss of breath: most people get in the water & start swimming without problems. I do experience the loss of breath when the water temperature drops below 52º F:. In fact, I have to do backstroke for the first 50 yards before my breath normalizes. But I'm the only one I know who suffers like that.

Also, body fat makes a big difference, but muscle, not as much. I've seen too many body builders shiver in the sauna after swimming in the Bay. Body fat makes a big difference; big-time open water swimmers are not svelte.

brian_cunnie··on How Command and Conquer: Tiberian Sun punished the computers of the day [video]
> ...and possibly also your ability to recognise something genuinely new.

I think we can still recognize something new: I found that playing "Vader Immortal" on Oculus Quest to be a genuinely new gaming experience. And I've been gaming on PC since 8/81 (when PCs were first released) and on Apple IIs before that, and IBM 5110s before that.

brian_cunnie··on Blood sugar patterns to master as a type 2 diabetic
> make one addicted ...

I think you're on to something. I think the large portion of people have an addiction to certain foods.

My first inkling was when my friend, Dr. Ross, said to me, "None of my type II diabetic patients are able to control it with diet. They all need medication." (His patients are all upper-middle class, well-adjusted for the most part).

I've seen it with my dad (type II), an ex-marine (type II), a marketing executive (type II). In all cases they were eating french toast with maple syrup (the crack cocaine of type II diabetics). It was something they knew they should not be eating, and yet they were.

These are people with discipline and strength, and yet they are unable to stick to a diet. What gives? Rather than blaming them, we should ask, "Why is this so hard for them? Why can these people who can do so many things, not eat properly?"

brian_cunnie··on Blood sugar patterns to master as a type 2 diabetic
Agreed. And I'd like to expand on the term "reverse 100% of cases."

Other than gestational diabetes, there is no cure for type II diabetes: once your insulin response is broken, it stays broken.

In the medical literature, when they use terms such as "improved", they often mean that "the subject no longer needs to take medication to control their type II diabetes." But it's understood that the subject must maintain a very strict diet regimen.

brian_cunnie··on Blood sugar patterns to master as a type 2 diabetic
> not knowing what hunger feels like

True. I found that when I switched to a low-carb diet, my relationship with hunger changed.

For one thing, I was always hungry: nothing makes you feel full like a good batch of carbs. But the hunger was similar to a low-grade background noise; it was fundamentally different than the I-gotta-eat-right-now hunger of the carbolicious diet.

The other thing I noticed is that since I switched diets (7 years ago), I have never "bonked" (run into a wall because I was so hungry). I simply get more hungry, but again, it's more like the background noise gets louder.

That begs the question, "Why not eat more if you're hungry?" The truth is that eating gets tiresome after a while. I remember spending over and hour shoving salad into my mouth and finally saying, "I need to get stuff done; I can't sit here all day eating salad."

Yes, meat can fill me up if I eat enough of it (20 oz. prime rib), but I tire of meat after a while.

brian_cunnie··on Blood sugar patterns to master as a type 2 diabetic
Type II diabetic here.

I can personally attest that fasting is not necessary to control type II diabetes without medication.

I'm strict about my diet, but I never fast. My numbers? My A1c was 8.7 when I was diagnosed, and now, seven years later, it hovers around 5.8 - 6.0 (high normal).

I find fasting difficult, and I suspect that fasting comes more easy to some than to others. If it works for you, great, but if it doesn't, don't push it. I suspect that part of the difficulty is that I'm thin, so I don't have much in the way of reserves when I stop eating.

brian_cunnie··on Blood sugar patterns to master as a type 2 diabetic
Type II diabetic here.

I think "permanent remission" is a misleading phrase. I think a better phrasing would be along the lines of "...cutting out nearly all carbohydrates ... allows the diabetic to have 'normal' results for standard blood tests such as fasting glucose and hemoglobin A1c."

My doctor said to me my last check-up, "These numbers are great! If a doctor were to see these, they wouldn't be able to tell you were a type II diabetic."

Me: "I'm cured?"

She looked at me: "Make no mistake: you CANNOT afford to gain ten pounds or to go back to your old way of eating. Those days are gone. If you go back, your symptoms will return in full bloom."

My insulin response is permanently broken, diet notwithstanding. As long as I don't slam my body with too much glucose, my impaired system can manage.

brian_cunnie··on Why I Don't Like Golang (2016)
I took that course, too! I loved it. Learned more about computers than any other of the many courses I took.
brian_cunnie··on How Exercise Affects Our Memory
I have the same experience after rugby matches and open water swimming — my short-term memory is shot for the next few hours, but then it recovers. I have no evidence for the long-term effects.
brian_cunnie··on Udacity restructures operations, lays off 20 percent of its workforce
VMware (Stanford)
brian_cunnie··on Vanishing Violence
My experience with the SFPD was very different — I'm sorry you had such disappointing experiences.

The first time I called 911 was when a man coming down from drugs tried to kick in my fire escape window. Four police were in my apartment within five minutes; they arrested and handcuffed the man. I couldn't have been more thankful.

My second interaction with the police occurred when I was punched in the face a couple of times while riding a Muni bus (San Francisco Mass Transit). The driver pulled the bus over while me & two other passengers held the guy until the police showed up (within minutes). Again, the police detained the gentleman who had punched me in the face.

Whenever I've needed the police, they've been there.

brian_cunnie··on APL – A Glimpse of Heaven (2006)
Although the "glorified Excel" statement makes me cringe, I would agree that APL's strong point is numerical work on data. I wouldn't use APL to write, for example, an operating system.

When Ken Iverson wrote APL in the sixties, numerical work was one of the big uses of computers (after the typical finance applications such as billing, inventory, accounts payable/receivable, general ledger), and APL filled that niche quite well. When I was working at IBM in the nineties investment banks were still using APL for some of their modeling.

APL also took a different evolutionary path than many of today's languages, operator precedence for example. APL's rule was simple: evaluate left-to-right. I didn't need to remember that exponentiation has a higher precedence than multiplication which in turn has a higher precedence than addition (those were the easy ones to remember; the hard ones were bit operations, logical operations — some languages had both high-precedence logical operations ("&&" and "||") as well as low-precedence ("and" and "or"), which further muddied the waters). I found Reverse Polish Notation (RPN) the most elegant when determining operator precedence, with APL's a close second.

Another difference was the way that the code was maintained. For example, my father, who was also an APL developer, often said, "APL is write-only code". Rarely would one modify someone else's code; instead, you'd re-write the function entirely. Thus the most important aspect of writing APL code was documenting what the function took as input and what it spat out.

But I'm glossing over one of the most important aspects of APL: it made you think about the problem space differently: instead of nested for-loops, you'd think of vectors and matrices. The manner in which you thought about the problem was incredibly succinct, similar to APL's vocabulary.

brian_cunnie··on When Does Intelligence Peak?
Similarly, I turned 55 last month, but I have noticed a definite decline in some aspects of my intelligence with regard to software development.

I work in a company that's committed to pair programming: two of us working together on one computer to develop. In some ways it's like a footrace, me against a twenty-five-year-old, except it's software development, not a footrace.

I marvel at my twenty-something pair's ability to hold a complex model in their head. I can do it, but it takes me longer, and usually I need to scratch notes on a piece of paper to help.

Their memory has better retention than mine. "Remember we ran into that problem in November?" I'll have absolutely no recollection.

And sometimes it takes me longer to figure something out. I remember last week waking up and realizing the reason why we hadn't been able to recreate a certain failure was that we were using a layer 4 load balancer instead of a layer 7 with a redirect — something I was confident I would have figured out sooner ten years ago.

I also notice that, in respect to programming languages that I've picked up in the last ten years, I tend to rely on stackoverflow for syntax, even simple things like, "How do a write a for loop in {Ruby,Python,Golang,JS}?" whereas I know the syntax cold for my earlier languages (Perl, C++, C, Pascal).

On the plus side I have 35 years of experience to draw upon, both from a development side as well as from a managing-expectations side. When I'm on a project with little oversight the project managers don't worry about it going off the rails. Still, I envy the elasticity of the minds of my younger fellow developers.

brian_cunnie··on Pee, Not Chlorine, Causes Red Eyes from Swimming Pools: CDC (2015)
"Gross" doesn't necessarily mean unhealthy.

I swim in the San Francisco Bay 3 times a week, 25 minutes at a time, no goggles, just a cap and a bathing suit. I've swum near gross things like dead seagulls & dead seals, and I'm sure a lot of gross stuff drains into the Bay, but as long as the sewage treatment plant doesn't overflow I'm not worried.

brian_cunnie··on The habit of habit engineering
> ...habit creation should be easy and not test your willpower.

I couldn't agree more. I tried going to the gym to stay in shape, but it was touch-and-go.

Then I discovered that I enjoyed rugby and open water swimming, and that changed everything: exercise was no longer a chore, it was fun! And that makes a world of difference.

brian_cunnie··on How the Valley treats experienced people
I'm 54 and have been working in Silicon Valley/SF since '96.

Ageism: One way to combat it is to have a good network. Of the 7 jobs I've had in the last 20 years, 6 of them were from personal reference (schoolmate, co-worker, friend). You don't need to be a badass, just dependable.

Work around your limitations: I'm not as sharp as I was in my forties, and this is especially apparent when I pair-program with someone half my age. Younger developers have an astounding short-term memory (or, as my brother likes to phrase it, "they have a much larger register set"). As a simple example, we have 3 environments at work, and at any given moment they're being used for different purposes. I write their purposes down on a scrap of paper to keep it straight, but my twenty-six-year-old pair keeps it in his head.

Stay fresh: I know a 69-year-old developer/contractor say to me, "2000 was pretty good but after that the work dried up — I guess they didn't need COBOL programmers anymore". He had never bothered to stay current.

Make no mistake: picking up new skills can be hard. I remember in '86 when a developer in his 50's turned to me and said, "Brian, I'm tired of learning new things." He really liked to bartend though, so I hope that career worked out for him.

And some developers aren't interested in working anymore (I think this can strike at any age). I remember five years ago pair-programming with a developer my age who wanted to reminisce ("Remember when 640kB was a lot of memory?") and show pictures of his grandkids. I felt bad when they let him go, but it was hard getting work done while I was pairing with him.

brian_cunnie··on AWS Outperforms GCP in the 2018 Cloud Report
I've also benchmarked GCP vs. AWS [0], and, for the tests that I ran, found that GCP outperformed AWS by a factor of 3:1. Specifically, a GCP instance n1-highcpu-8 with a 256GB pd-ssd disk, clocked in at 11,728 IOPS vs an AWS c4.xlarge with a 256GB gp2 disk, clocking in at 3,634 IOPS.

To put that in context of the blog post, it means your setup can drastically affect your results. Using local NVMe disk, for example, yields excellent results at the expense of increased risk. Also, AWS's io1 disk is very expensive—after my first io1 bill from AWS, I never used that disk type again.

[0] http://engineering.pivotal.io/post/gobonniego_results/

brian_cunnie··on Successful second round of fusion experiments with Wendelstein 7-X
Agreed — the problem is that, from an energy perspective, it "doesn't break even".

Zach Hartwig of MIT has an excellent video [0] of how to evaluate announcements of nuclear fusion advances. The big problem is breaking even. There are other problem, too: plasma containment, etc.

[0] https://www.youtube.com/watch?v=L0KuAx1COEk

brian_cunnie··on What Car Thieves Think of the Club (2010)
I have a pink laptop cover for the same reason.
brian_cunnie··on At Netflix, Radical Transparency and Blunt Firings Unsettle the Ranks
Let's not overlook someone's effectiveness as an influence on likability.

I hired a grumpy, cynical systems administrator who often spoke his mind at inopportune times, but I'll admit he was head and shoulders above every other candidate in terms of technical ability. And he was diligent.

I liked him. I liked him in spite of his shortcomings.

In general I tend to make large allowances for people of strong technical ability. It's not a conscious thing -- they do good work, and they're effective. Sure, they may be brusque: yesterday one said to me, "No, you're wrong, that's not who it works." He couldn't be bothered to sugarcoat what he was saying. But I like him -- he's good.

brian_cunnie··on In Praise of Mediocrity
The two sports I love, rugby and open water swimming, share a common trait: I do them badly. Don't get me wrong -- I wish I did them well -- but I don't.

When I was younger I fenced, but I was ambitious, and wanted to be a better fencer, so I worked out in a gym, had regular lessons from my coach, went to competitions. And somewhere along the line it transformed from being fun to being work. And then I stopped fencing.

These days I try my best to accept not being very good.

brian_cunnie··on Nuclear pasta in neutron stars may be the strongest material in the universe
One of my favorite PBS Space Time [0] videos discusses the nature of the matter of neutron stars, and although he doesn't discuss the different pasta types, he does discuss the theoretical possibilities of "strange" stars (where the some of the quarks flip to strange to get around the Pauli Exclusion Principle) and also some larger neutron stars may have an electro-weak core, an apple-sized core where the electromagnetic & weak nuclear forces have merged (similar to 1/1,000,000,000 after the big bang) with the mass of 2 earths.

[0] https://www.youtube.com/watch?v=u4RNGRyzt10

brian_cunnie··on eBay Is Conducting a 'Mass Layoff' in the Bay Area
I beg to differ. In my experience (a small sample set of 1), Ebay sided with me, the seller, and not the buyer.

A gentleman from Italy purchased an old book I was selling. He disputed the transaction, saying the book had never arrived; however, the Italian post said they had delivered the book.

eBay sided with me. I kept the seller's money.

brian_cunnie··on A Beginner's Guide to Firewalling with pf
I have always found Linux's iptables particularly baroque when compared with OpenBSD's pf -- the different chains (INPUT, FORWARD, OUTPUT), the different tables ("Oh, it's the _NAT_ table you're looking for"), they seemed unnecessary complexities.

My current firewall [0] has two physical interfaces, 3 additional "virtual" (VLAN-tagged) interfaces, three RFC-1918 subnets, four IPv6 subnets (dual-stack of course, except for an IPv6-only subnet) with varying degrees of security between the subnets -- and I could not imagine maintaining it with anything but pf.

[0] https://github.com/cunnie/vain.nono.io-etc/blob/master/pf.co...

brian_cunnie··on There are real reasons for Linux to replace ifconfig, netstat, etc
The Golang flag [0] package uses a single dash for long options.

The flags that a UNIX command uses can sometimes used to carbon-date that command. For example, dd(1) doesn't use a dash at all, uses long args, and uses an equals-sign to connect a flag with its argument (e.g. `dd if=/dev/null`). It's because dd(1) was written in the dawn of UNIX, before a convention was established for flags.

I believe the first step in creating a convention was the introduction of the getopt(3) library, which introduced single dash, single character options (e.g. `tar -x`). Commands that only have short options tend to be old commands.

Later, GNU introduced getopt_long(3), which allowed for long options and double-dashes to distinguish them from the short ones. This made commands more readable.

There have also been cases where the `-` is optional. `tar xvf` for example. And with the `ps` command, the `-` is used to distinguish BSD flags from System V flags (e.g. `ps auxwww` vs. `ps -elf`).

There has also been a movement for subcommands rather than options (which bring to mind the Cisco CLI), of which `ip` is an excellent example: `ip route show`. But subcommands are not a substitute for options; sometimes you need both (e.g. `ip -6 route show`).

All this goes to show that, although long options are quite common, they are not only game in town, and UNIX commands have a rich and varied set of conventions.

[0] https://golang.org/pkg/flag/

brian_cunnie··on EC2 Instance Update – C5 Instances with Local NVMe Storage
I did some benchmarks of AWS vs GCP storage [0] (NOT including local storage), and the short version is that Google's slow storage is slower than AWS's, and Google's fast storage is faster than AWS's. And I tested NVMe, but on vSphere, and it was very, very fast.

0: http://engineering.pivotal.io/post/gobonniego_results/

← PreviousPage 6 of 7Next →