jhaungs

jhaungs

Regular Expressions Machinery: Confusing/inconsistent diagram and text (pages 10, 11)

In the diagram, the transition images across the top and down the right are: heads then heads, but the text says “accept state … if we first get a tails, then another tails.”

Also, the use of two images in each Coin in the alphabet is confusing, as a coin has only one face at a time.

Most Liked

jhaungs

jhaungs

Hi Staffan,

Happy to spot things like this. Your book is excellent; I’m really enjoying it.

I had another one, more a refinement than an error. I’ve been a programmer for 50+ years, so I was around when ASCII was invented. Your description of the “pillow” character on page 34 (of the PDF) is not precise. ASCII is generally considered to be 0-127. The “upper” ASCII plane (where the pillow is at 164) is considered “Extended ASCII” as it requires an 8th bit. There were many names for this extended plane over the years, but to call it unqualified ASCII is imprecise and confused me at first. I’m sensitive to confusion, because if it confuses me, it’ll confuse others. A better way to describe it would be as Extended ASCII, or even better, as Unicode, where it was introduced in 1993.

But honestly, as writers and editors like to say, “kill your darlings.” You could throw this side note away; it has only minor historical curiosity as the currency idea experienced only sporadic adoption, but more importantly, the side note adds nothing to the discussion of the pillow designating the empty set.

Jim

Where Next?

Popular Pragmatic Bookshelf topics Top

jimschubert
In Chapter 3, the source for index introduces Config on page 31, followed by more code including tests; Config isn’t introduced until pag...
New
lirux
Hi Jamis, I think there’s an issue with a test on chapter 6. I own the ebook, version P1.0 Feb. 2019. This test doesn’t pass for me: ...
New
Mmm
Hi, build fails on: bracket-lib = “~0.8.1” when running on Mac Mini M1 Rust version 1.5.0: Compiling winit v0.22.2 error[E0308]: mi...
New
joepstender
The generated iex result below should list products instead of product for the metadata. (page 67) iex> product = %Product{} %Pento....
New
New
swlaschin
The book has the same “Problem space/Solution space” diagram on page 18 as is on page 17. The correct Problem/Solution space diagrams ar...
New
jskubick
I found an issue in Chapter 7 regarding android:backgroundTint vs app:backgroundTint. How to replicate: load chapter-7 from zipfile i...
New
rainforest
Hi, I’ve got a question about the implementation of PubSub when using a Phoenix.Socket.Transport behaviour rather than channels. Before ...
New
New
ggerico
I got this error when executing the plot files on macOS Ventura 13.0.1 with Python 3.10.8 and matplotlib 3.6.1: programming_ML/code/03_...
New

Other popular topics Top

Devtalk
Hello Devtalk World! Please let us know a little about who you are and where you’re from :nerd_face:
New
AstonJ
Curious to know which languages and frameworks you’re all thinking about learning next :upside_down_face: Perhaps if there’s enough peop...
New
AstonJ
There’s a whole world of custom keycaps out there that I didn’t know existed! Check out all of our Keycaps threads here: https://forum....
New
AstonJ
I ended up cancelling my Moonlander order as I think it’s just going to be a bit too bulky for me. I think the Planck and the Preonic (o...
New
New
foxtrottwist
A few weeks ago I started using Warp a terminal written in rust. Though in it’s current state of development there are a few caveats (tab...
New
PragmaticBookshelf
Rails 7 completely redefines what it means to produce fantastic user experiences and provides a way to achieve all the benefits of single...
New
PragmaticBookshelf
Author Spotlight Mike Riley @mriley This month, we turn the spotlight on Mike Riley, author of Portable Python Projects. Mike’s book ...
New
First poster: bot
Large Language Models like ChatGPT say The Darnedest Things. The Errors They MakeWhy We Need to Document Them, and What We Have Decided ...
New
PragmaticBookshelf
Author Spotlight: Tammy Coron @Paradox927 Gaming, and writing games in particular, is about passion, vision, experience, and immersio...
New

Sub Categories: