state

Mutable state is fine but ... alvin August 14, 2019 - 7:19am

“Mutable state is fine but needs to be contained and non-observable.” A quote from Jonas Bonér, which I saw in this tweet.

What I know about deep meditation states

The following is a (long) discussion of some things you might run into during deep meditation.

Fake Absolute Silence

These days in meditation I spend a lot of time in a place I call “Fake Absolute Silence.” In this state you might be fooled into thinking that you’re in the real state of Absolute Silence, but that’s part of the problem — you’re still thinking. Things are definitely quiet in this state; there aren’t many thoughts, and your concentration is focused on your breathing without distraction. However, I find that I’m still very aware of my body and outside noises. But despite that, it’s generally a mentally quiet place.

In regards to “Workplace Compliance Services” letters/forms

In November, 2018, I received a letter from an entity named Workplace Compliance Services, and the letter was in regards to filing a Colorado “Periodic Report” form. I initially thought the letter was from a government agency, but after research that ended up spanning many days, I learned that Workplace Compliance Services is a private business entity — not a government agency. After that, in an effort to save other people from having to spend the same time and energy to perform that research, I wrote about what I learned on the previous version of this web page.

This is a page from my book, Functional Programming, Simplified

Goals, Part 2: Concrete Goals of This Book

After I released Version 0.1.2 of this book, I realized that I should state my goals for it more clearly. I don’t want you to buy or read a book that doesn’t match what you’re looking for. More accurately, I don’t want you to be disappointed in the book because your expectations are different than what I deliver. Therefore, I want to state some very clear and measurable goals by which you can judge whether or not you want to buy this book.

This is a page from my book, Functional Programming, Simplified

A Quick Review of Scala’s ‘for’ Expressions

“The owls are not what they seem.”

The “Log Lady” in Twin Peaks

Goals

The goal of this lesson is to review at a high level how for loops work in Scala. This is necessary because Scala/FP developers take advantage of advanced Scala for loop features.

As an example of what I mean, the goal of the next few lessons is to explain what’s happening in this for loop:

This is a page from my book, Functional Programming, Simplified

A Functional Game (With a Little Bit of State)

“In theory, theory and practice are the same. In practice, they’re not.”

Yogi Berra

Introduction

Now that I’ve given you a little background about what I think “state” is, let’s build a simple game that requires us to use state. I’ll build the game using recursion, and also immutable state — something I had never heard of when I first starting writing the Scala Cookbook.