I always wondered what was going on in the song, “MacArthur Park.” When I was very young I remember Donna Summer singing it, and I used to think, “Just make another cake. Why won’t you have that recipe again? Shoot, just buy a cake if cooking makes you that upset.”
Scala, Java, Unix, MacOS tutorials (page 214)
In this image, Peyton Manning, Mindfulness Master, talks about staying in the moment.
Due to a health problem, I’ve passed out several times over the last few years, and in the moments before losing consciousness I always told myself the same thing, “Just breathe ... stay in this moment.” *lights out*
(Image from this espn.com page.)
Facebook tells me that I posted this image there a year ago today. Zen koans are often like this, like Abbott and Costello routines.
As a quick note, I was just reminded that when you have a Scala tuple instance, you can assign the tuple fields to Scala values. This tends to be more readable than accessing the tuple elements using the underscore syntax.
For example, if you have a Scala function like this that returns a tuple:
def getUserInfo = {
// do some stuff here, then return a tuple (a Tuple3 in this case)
("Al", 42, 200.0)
}
you can assign the tuple fields to Scala val fields like this:
Business Insider and others are reporting that uninstalling Facebook makes Android faster, and improves battery life by up to 20%.
When you first start working with immutable values and functional programming (FP), you quickly wonder, “If I can’t mutate a variable value, how do I, well, mutate it? (What can I do?)”
The answer is that you don’t mutate it; you update the fields you need to modify as you copy the old value to a new value. This is okay for simple objects, but when you have deeply nested objects, i.e., cases classes inside of case classes inside of case classes, your code will look like the second part of this image.
Without getting too much into the problem, the solution is something that FP devs call a lens. This image comes from this article that discusses scalaz lenses (and I show a Quicklens example at this URL).
If you want to share your life with that someone special, the Android Wear “Together Watch Face” is pretty cool.
When it comes to mobile apps, 60% of app users in a 2014 Forrester survey chose performance/speed over features and functionality. Of course that’s not the same as 99.9%, and a big problem is that for most mobile apps, the network is the bottleneck.
A cool thing about Scala for loops — what I’ll more-accurately call for expressions in this article — is that you can have multiple generators. What’s also very cool about them is how they work.
For example, imagine that you have these two values:
val nums = Seq(1,2,3)
val letters = Seq('a', 'b', 'c')
An interesting question then becomes, “What is the type of res in this expression?”:
“Death is just a change in lifestyles.” ~ Stephen Levine. (The image and quote come from this Twitter page.)
Mr. Levine passed away about ten days, and as I just learned, he lived in northern New Mexico, which is where I am at this moment.
I like to think that my meditation practice is pretty good, that I can go pretty deep any time I want to, or almost any time I want to. But I can’t claim to have this understanding.
Though this quote does remind me of seeing Luke Skywalker on whatever planet he was on, and thinking initially that he must be lonely, but then remembering that he can hang with his dad, Obi-Wan, or Yoda any time he wants. :)
You could tell that Tom Brady was under a lot of pressure by watching the game, but espn.com shared this statistic that he was hit 23 times today, 11 times more than in any other game this season. The Broncos continue to struggle on offense, but their defense was great again today.
Folks in the Kenai Peninsula in Alaska — just southwest of Anchorage — got a 1:30am wake-up call this morning. The earthquake magnitude is reported at 7.1, with the epicenter 60 miles west of Homer and 160 miles southwest of Anchorage. The image comes from this Alaska Dispatch News Twitter page.