Alvin Alexander | Java, Scala, Unix, Perl, Mac OS X
March 24, 2014: Woo-hoo, I got my cool see-thru Japanese highlighter today. It's like Christmas for a highlighter nerd.
“The harder you work, the harder it is to surrender.”
~ Vince Lombardi
March 24, 2013: After yesterday's snowstorm, about 5" locally, I woke up to completely white mountains. Twenty minutes later they looked like the top photo, and twenty minutes after that they looked like the bottom photo. Between the thin air (my apartment is at 5,800') and the sun, the snow disappears fast here, either by melting or ablation.
“So you’re a glass half-empty kind of guy?”
“Depends what’s in the glass.”
Sorry I haven’t written much this week, I’ve been working on designs for the cover of a new book. But I can share one thing, my favorite song of the week, We Said Hello, Goodbye (Don’t Look Back), by Phil Collins. Some of the lyrics:
Well it really don’t matter much where you are
’cause home is in your heart
It’s a feeling that you wake with one day
Some people keep running all of their life
And still find they haven’t gone too far
They don’t see it's the feeling inside
The feeling inside.
contributors.scala-lang.org has become my favorite website this past week. It’s very interesting to read through the debates about new language features for Scala 3 (Dotty). For instance, in the Make concrete classes final by default discussion I think everyone agrees they wish they had gone that way with Scala 2, but it would cause too many problems if they tried to make this a new standard in Scala 3. The discussion — in addition to reading Effective Java — makes me wish I had used
final before all of my classes.
In another discussion titled, Why does Scala need its own build tool (SBT), someone makes a claim that Martin Odersky and his team created SBT as a build tool solution, and Mr. Odersky replies, “Definitely not my answer. I was always very skeptical of SBT’s approach and remain so.”
I had read that Bloop was faster than Scala compiler tools like
fsc, so I wondered if it was faster than SBT, and if so, how much faster. So I downloaded Eric Torreborre’s specs2 source code, which has 880 source code files, and compiled the entire project with both SBT and Bloop.
To test SBT’s speed, I ran all the commands from inside the SBT command prompt, which I usually do anyway to avoid the SBT/JVM startup lag time. I also ran
compile several times before recording SBT’s speed, because I thought that would be a better reflection of real-world usage and performance. I ran the tests four times, and the average time with SBT was 49 seconds, and that was very consistent, always coming in between 48 and 50 seconds.
I saw this “SQL joins as Venn diagrams” image on this Twitter page. To give attribution to the original author, it appears to have been created by C.L. Moffatt and documented in this Visual Representation of SQL Joins article. However, this article makes the case that Venn diagrams are not an accurate description of SQL joins.
[Dateline: The evening of May 5, 2007, On The Border restaurant, Louisville, Kentucky, after several pitchers of margaritas and beer, and three days before I would leave for Alaska.]
Brother-in-Law: Seriously man, I want to thank you.
Me: For what?
Brother-in-Law: You inspired me to start my business.
Me: That’s great, how did I do that? (Now I’m all geared up to hear a motivational story of how I inspired him.)
Brother-in-Law: I figured if you can start a business, anyone can.
A funny thing about mast cell disease is when a 60+ year old doctor who is considered one of the best in his profession says to you, “I’ve only seen that once before in my life.” With MCAS, you get used to statements like that.
(This happened in 2016, but I was reminded of it again today.)
“The sooner you start to code, the longer the program will take.”
~ Roy Carlson (which I saw in this tweet)
In general, I’m a fan of that quote, meaning that the harder the problem is, the more I like to find a whiteboard or some index cards to work through the problem that way before I start coding.
The postal code in Stewart, British Columbia, is “VOT 1WO,” which the locals tell me stands for Very Old Town, One Way Out.
“They don’t wash off easily, do they?”
“The sins of the father.”
~ from The Good Cop
The minute I heard my first love story
I started looking for you, not knowing how blind that was.
Lovers don't finally meet somewhere;
They are in each other all along.
Lesley Stahl, a 60 Minutes news correspondent, once had this interaction with Donald Trump:
“I said, you know that it’s getting tired, why are you doing this (discrediting the media) — you’re doing it over and over and it’s boring,” Stahl said. “He said you know why I do it? I do it to discredit you all and demean you all, so when you write negative stories about me no one will believe you.”
I read that in this Washington Post story, and it’s also available from many other news sources.
I recently went through a period where my blood pressure (BP) went up to 150/100 and stayed there. My normal BP is ~115/70, so I monitored it for a few days, and when it stayed there I made an appointment with my primary care physician (PCP). I explained everything to her, how I eat almost exclusively organic foods that I prepare at home, and I exercise harder than I have since 2011. I told her that I started feeling a little sick about two weeks ago, and that I was now feeling worse. I suggested that I probably had an infection, because that had been a recurring problem before we knew about the mast cell disease, and I had also just had a surgery in December. To me there was no logical reason that my BP should be that high unless I’m having an infection or some sort of heart issue.
Nonetheless, without doing any tests, her recommendation was that I should increase my Lisinopril dosage from 20mg to 40mg — which is the max you can take, and also has potentially severe side effects. My response was along the lines of, “Okay, whatev,” and after I left her office I made an appointment to see a specialist. I felt like she was just medicating the effect, and had little interest in understanding the cause.
I found this Warren Buffett quote in this Inc. Magazine article back in 2018:
“If you could invest in only one of your fellow classmates, who would you choose? If you could buy, say, 10% of the future earnings of just one classmate, who would you choose? What would you look for?”
The idea is that you won’t just necessarily look at raw IQ, you’ll look at other personality attributes, such as drive, ambition, and hopefully other attributes like honesty and integrity.