Programming Phoenix LiveView: P156

“…With this function, we name the concept of a base query and we provide one common way to build the foundation for all Demographic queries. This type of function is called a constructor. We’ll rely on it to create an initial query for demographics…”

I struggle to understand this paragraph

  1. “with this function “ - which function is being referred to? Query? base? for_user?.

  2. “we name the concept of…” do you mean something like “we introduce the concept of…?”

  3. “…we provide one common way to build the foundation for all Demographic queries…” It’s not clear how we do this.

Given that there are at least three new concepts being introduced here, it would be useful to expand the discussion, and/or provide a diagram or pseudocode to assist.