# \#book-programming-phoenix

**URL:** https://forum.elixirforum.com/tag/book-programming-phoenix/41.md

[Latest](https://forum.elixirforum.com/latest.md) · [Categories](https://forum.elixirforum.com/categories.md) · [Tags](https://forum.elixirforum.com/tags.md)

---

## [Trouble resetting a LiveView form programmatically](https://forum.elixirforum.com/t/trouble-resetting-a-liveview-form-programmatically/67532)

<div class="topic-metadata">

**Author:** [@axelson](https://forum.elixirforum.com/u/axelson)\
**Replies:** 9\
**Last updated:** [November 18, 2024, 5:09pm UTC](https://forum.elixirforum.com/t/trouble-resetting-a-liveview-form-programmatically/67532 "2024-11-18T17:09:42Z")

</div>

I’m trying to reset my LiveView form programmatically (on submit) but I’m having lots of trouble getting the form to reset programmatically in a way where my LiveView can trigger the reset. My form is driven by an Ecto …

---

## [Programming Phoenix (Pragprog)](https://forum.elixirforum.com/t/programming-phoenix-pragprog/5883)

<div class="topic-metadata">

**Author:** [@AstonJ](https://forum.elixirforum.com/u/AstonJ)\
**Replies:** 68\
**Last updated:** [September 22, 2024, 3:32pm UTC](https://forum.elixirforum.com/t/programming-phoenix-pragprog/5883 "2024-09-22T15:32:53Z")

</div>

Don’t forget you can get 35% off the ebook using the code ‘devtalk.com’ :023: Current: Search Original: Search For those looking for an update to this book, please see this post.

---

## [Best current comprehensive guide for entry into Phoenix?](https://forum.elixirforum.com/t/best-current-comprehensive-guide-for-entry-into-phoenix/65256)

<div class="topic-metadata">

**Author:** [@DidactMacros](https://forum.elixirforum.com/u/DidactMacros)\
**Replies:** 2\
**Last updated:** [July 31, 2024, 8:30pm UTC](https://forum.elixirforum.com/t/best-current-comprehensive-guide-for-entry-into-phoenix/65256 "2024-07-31T20:30:38Z")

</div>

Best current comprehensive guide for entry into Phoenix? Programming Phoenix seems a bit out of date, and though I am willing to read through the book and use the resources produced and shared on this forum to work thro…

---

## [A good book for learning Phoenix?](https://forum.elixirforum.com/t/a-good-book-for-learning-phoenix/60614)

<div class="topic-metadata">

**Author:** [@ariandanim](https://forum.elixirforum.com/u/ariandanim)\
**Replies:** 6\
**Last updated:** [December 29, 2023, 2:04am UTC](https://forum.elixirforum.com/t/a-good-book-for-learning-phoenix/60614 "2023-12-29T02:04:30Z")

</div>

Hello all, I am still learning Elixir, then go into Phoenix, i am try search in google but find the programming phoenix 1.4, another for 1.7 or latest still no where.. please perhaps another Member here could give me t…

---

## [Programming Phoenix 1.4 book examples updated to 1.7](https://forum.elixirforum.com/t/programming-phoenix-1-4-book-examples-updated-to-1-7/56828)

<div class="topic-metadata">

**Author:** [@jramnani](https://forum.elixirforum.com/u/jramnani)\
**Replies:** 3\
**Last updated:** [September 8, 2023, 8:18pm UTC](https://forum.elixirforum.com/t/programming-phoenix-1-4-book-examples-updated-to-1-7/56828 "2023-09-08T20:18:22Z")

</div>

Hello, I am almost done going through the book, Programming Phoenix 1.4, again after a hiatus from using Elixir for a few years. It seems that Phoenix has changed a lot since I last used it around version 1.2, especial…

---

## [I cannot import(alias) defstruct](https://forum.elixirforum.com/t/i-cannot-import-alias-defstruct/51852)

<div class="topic-metadata">

**Author:** [@h1d3r00t](https://forum.elixirforum.com/u/h1d3r00t)\
**Replies:** 6\
**Last updated:** [November 18, 2022, 2:35am UTC](https://forum.elixirforum.com/t/i-cannot-import-alias-defstruct/51852 "2022-11-18T02:35:37Z")

</div>

I’m learning Pheonix via programming Pheonix \> 1.4 book. The chapter 3 code cannot run. defmodule Rumbl.Accounts.User do defstruct \[:id, :name, :username\] end defmodule Rumbl.Accounts do alias Rumbl.Accounts.User…

---

## [Programming Phoenix - Test times much slower than the book](https://forum.elixirforum.com/t/programming-phoenix-test-times-much-slower-than-the-book/50057)

<div class="topic-metadata">

**Author:** [@matt-savvy](https://forum.elixirforum.com/u/matt-savvy)\
**Replies:** 4\
**Last updated:** [September 6, 2022, 2:08am UTC](https://forum.elixirforum.com/t/programming-phoenix-test-times-much-slower-than-the-book/50057 "2022-09-06T02:08:44Z")

</div>

Working through Programming Phoenix. In Chapter 8 Testing MVC, I’ve added the tests as listed in the book and they pass as expected, but I noticed a HUGE difference in the time it takes. The output from my tests Finish…

---

## [DBConnection.ConnectionError when testing channels with Phoenix Presence](https://forum.elixirforum.com/t/dbconnection-connectionerror-when-testing-channels-with-phoenix-presence/35715)

<div class="topic-metadata">

**Author:** [@timkonieczny](https://forum.elixirforum.com/u/timkonieczny)\
**Replies:** 3\
**Last updated:** [September 5, 2022, 8:07pm UTC](https://forum.elixirforum.com/t/dbconnection-connectionerror-when-testing-channels-with-phoenix-presence/35715 "2022-09-05T20:07:09Z")

</div>

I’ve been building the follow-along Rumbl app while reading the Programming Phoenix book and ran into some issues testing my channels. When running the tests I get the following output: 07:31:35.021 \[error\] Postgrex.Pro…

---

## [Programming Phoenix book: why limit the password length?](https://forum.elixirforum.com/t/programming-phoenix-book-why-limit-the-password-length/49985)

<div class="topic-metadata">

**Author:** [@benjamin-thomas](https://forum.elixirforum.com/u/benjamin-thomas)\
**Replies:** 5\
**Last updated:** [September 4, 2022, 9:28am UTC](https://forum.elixirforum.com/t/programming-phoenix-book-why-limit-the-password-length/49985 "2022-09-04T09:28:34Z")

</div>

Hello! I reading Programming Phoenix \>= 1.4 to get a full picture of the framework. Chapter 5 deals with authentication. In it, we implement validation as such: # The password rules are intentionally weak, as this i…

---

## [Why would you create two near-identical functions but one does not have a bang (!)?](https://forum.elixirforum.com/t/why-would-you-create-two-near-identical-functions-but-one-does-not-have-a-bang/49572)

<div class="topic-metadata">

**Author:** [@heatmiser](https://forum.elixirforum.com/u/heatmiser)\
**Replies:** 3\
**Last updated:** [August 15, 2022, 8:03am UTC](https://forum.elixirforum.com/t/why-would-you-create-two-near-identical-functions-but-one-does-not-have-a-bang/49572 "2022-08-15T08:03:40Z")

</div>

I am currently going through the Programming Phoenix book and noticed that the author has two get\_user functions: def get\_user(id), do: Repo.get(User, id) def get\_user!(id), do: Repo.get(User, id) From what I understan…

---

## [Do you rate the Programming Phoenix book?](https://forum.elixirforum.com/t/do-you-rate-the-programming-phoenix-book/46978)

<div class="topic-metadata">

**Author:** [@braindeaf](https://forum.elixirforum.com/u/braindeaf)\
**Replies:** 11\
**Last updated:** [April 2, 2022, 2:56pm UTC](https://forum.elixirforum.com/t/do-you-rate-the-programming-phoenix-book/46978 "2022-04-02T14:56:56Z")

</div>

By day I’m a Ruby dev, I’ve taken a few days off work to work through all the stacked up Elixir books I have and I’m really just hoping to deep dive into Elixir and to knock out an application. I’ve been working through …

---

## [String.char error - (Protocol.UndefinedError) protocol String.Chars not implemented](https://forum.elixirforum.com/t/string-char-error-protocol-undefinederror-protocol-string-chars-not-implemented/45167)

<div class="topic-metadata">

**Author:** [@lc0815](https://forum.elixirforum.com/u/lc0815)\
**Replies:** 6\
**Last updated:** [January 12, 2022, 3:43pm UTC](https://forum.elixirforum.com/t/string-char-error-protocol-undefinederror-protocol-string-chars-not-implemented/45167 "2022-01-12T15:43:52Z")

</div>

this code is from a course from pragmaticstudio def parse(request) do #TODO: parse the request string into a map: first\_line = request |\> String.split(“\\n”) |\> List.first \[method, path, \_\] = String.split(first\_line, …

---

## [Reading programming phoenix with phoenix 1.6](https://forum.elixirforum.com/t/reading-programming-phoenix-with-phoenix-1-6/42604)

<div class="topic-metadata">

**Author:** [@mario-mazo](https://forum.elixirforum.com/u/mario-mazo)\
**Replies:** 2\
**Last updated:** [October 1, 2021, 2:05pm UTC](https://forum.elixirforum.com/t/reading-programming-phoenix-with-phoenix-1-6/42604 "2021-10-01T14:05:47Z")

</div>

Hello people I began reading programming phoenix which is for phoenix 1.4 but Im using phoenix 1.6. I found in chapter 3 At this point, it’s worth emphasizing that a view in Phoenix is just a module, and templates ar…

---

## [Golang for NLP with Elixir Chat Server](https://forum.elixirforum.com/t/golang-for-nlp-with-elixir-chat-server/42546)

<div class="topic-metadata">

**Author:** [@sunilkelkar](https://forum.elixirforum.com/u/sunilkelkar)\
**Replies:** 4\
**Last updated:** [September 22, 2021, 5:23pm UTC](https://forum.elixirforum.com/t/golang-for-nlp-with-elixir-chat-server/42546 "2021-09-22T17:23:16Z")

</div>

Hello All, Greetings from India ! I am a newbie in Erlang/elixir world. I am working on an NLP application being developed in Golang. We have decided to develop the chat application as well as web app in elixir/phoeni…

---

## [Generating Fake Data in Elixir](https://forum.elixirforum.com/t/generating-fake-data-in-elixir/40901)

<div class="topic-metadata">

**Author:** [@grangerelixx](https://forum.elixirforum.com/u/grangerelixx)\
**Replies:** 3\
**Last updated:** [July 7, 2021, 10:02pm UTC](https://forum.elixirforum.com/t/generating-fake-data-in-elixir/40901 "2021-07-07T22:02:52Z")

</div>

Faker.Lorem.Paragraphs generates paragraphs with random words/sentences. I have a requirement where I am supposed to generate paragraphs with meaningful business related sentences and pass it as a value to a field in my …

---

## [Programming Phoenix 1.4, Writing Queries with Keyword Syntax](https://forum.elixirforum.com/t/programming-phoenix-1-4-writing-queries-with-keyword-syntax/38043)

<div class="topic-metadata">

**Author:** [@WestKeys](https://forum.elixirforum.com/u/WestKeys)\
**Replies:** 10\
**Last updated:** [March 8, 2021, 5:40pm UTC](https://forum.elixirforum.com/t/programming-phoenix-1-4-writing-queries-with-keyword-syntax/38043 "2021-03-08T17:40:01Z")

</div>

In Chapter 7 - Diving Deeper into Ecto Queries - Writing Queries with Keyword Syntax, we have: Repo.one from u in User, select: count(u.id), where: ilike(u.username, "j%") or ilike(u.us…

---

## [Programming Phoenix \>= 1.4](https://forum.elixirforum.com/t/programming-phoenix-1-4/19213)

<div class="topic-metadata">

**Author:** [@chriseyre](https://forum.elixirforum.com/u/chriseyre)\
**Replies:** 5\
**Last updated:** [January 10, 2019, 9:19am UTC](https://forum.elixirforum.com/t/programming-phoenix-1-4/19213 "2019-01-10T09:19:34Z")

</div>

I am working my way through B5.0 So far I am upto the unit testing chapter (chapter 8). I am getting errors in the tests. Has anyone got this chapter working on a public repo? I have posted where I have got to on: Gi…

---

## [(RuntimeError) environment variable WOLFRAM\_APP\_ID is missing](https://forum.elixirforum.com/t/runtimeerror-environment-variable-wolfram-app-id-is-missing/27073)

<div class="topic-metadata">

**Author:** [@romenigld](https://forum.elixirforum.com/u/romenigld)\
**Replies:** 14\
**Last updated:** [November 8, 2020, 11:11pm UTC](https://forum.elixirforum.com/t/runtimeerror-environment-variable-wolfram-app-id-is-missing/27073 "2020-11-08T23:11:35Z")

</div>

I’m reading the ebook Programming Phoenix 1.4 and in the page 268 when I try to execute the iex it complains for this: \*\* (RuntimeError) environment variable WOLFRAM\_APP\_ID is missing. (stdlib) erl\_eval.erl:680: :e…

---

## [Is there a plan for a Programming Phoenix for 1.5?](https://forum.elixirforum.com/t/is-there-a-plan-for-a-programming-phoenix-for-1-5/34415)

<div class="topic-metadata">

**Author:** [@mcintyre1994](https://forum.elixirforum.com/u/mcintyre1994)\
**Replies:** 4\
**Last updated:** [September 17, 2020, 6:42am UTC](https://forum.elixirforum.com/t/is-there-a-plan-for-a-programming-phoenix-for-1-5/34415 "2020-09-17T06:42:08Z")

</div>

Looking at the 1.4 book contents it doesn’t mention LiveView until right at the end, under “What’s Next?” It seems like with LiveView now stable a 1.5 book would potentially be quite different, so I’m wondering if there’…

---

## [\[programming phoenix\] could not fetch application environment :wolfram](https://forum.elixirforum.com/t/programming-phoenix-could-not-fetch-application-environment-wolfram/26584)

<div class="topic-metadata">

**Author:** [@AntonRich](https://forum.elixirforum.com/u/AntonRich)\
**Replies:** 7\
**Last updated:** [August 29, 2020, 5:23am UTC](https://forum.elixirforum.com/t/programming-phoenix-could-not-fetch-application-environment-wolfram/26584 "2020-08-29T05:23:42Z")

</div>

Error message from the iex: iex(2)\> \[error\] Task #PID\<0.385.0\> started from #PID\<0.382.0\> terminating \*\* (ArgumentError) could not fetch application environment :wolfram for application :rumbl because configuration :wol…

---

## [Programming Phoenix and Video Streaming](https://forum.elixirforum.com/t/programming-phoenix-and-video-streaming/33025)

<div class="topic-metadata">

**Author:** [@QNet](https://forum.elixirforum.com/u/QNet)\
**Replies:** 6\
**Last updated:** [July 12, 2020, 2:36pm UTC](https://forum.elixirforum.com/t/programming-phoenix-and-video-streaming/33025 "2020-07-12T14:36:50Z")

</div>

I have been reading the Programming Phoenix book by Chris McCord, I’m reading the chapter regarding the facilitation of youtube videos on the web application, but I was wondering if the book covers directly uploading vid…

---

## [How can I find the project and team for the contributing to the opensource?](https://forum.elixirforum.com/t/how-can-i-find-the-project-and-team-for-the-contributing-to-the-opensource/31635)

<div class="topic-metadata">

**Author:** [@sunndeath](https://forum.elixirforum.com/u/sunndeath)\
**Replies:** 6\
**Last updated:** [May 28, 2020, 7:22am UTC](https://forum.elixirforum.com/t/how-can-i-find-the-project-and-team-for-the-contributing-to-the-opensource/31635 "2020-05-28T07:22:40Z")

</div>

Hello, friends. I have a small experience in Elixir ecosystem, but I find this area very interesting for me. Also, I have strong experience in software development, mainly in front-end (TypeScript, React, Redux, MobX, …

---

## [Programming Phoenix, Ch. 5, Generated code does not match book](https://forum.elixirforum.com/t/programming-phoenix-ch-5-generated-code-does-not-match-book/31849)

<div class="topic-metadata">

**Author:** [@johnnyicon](https://forum.elixirforum.com/u/johnnyicon)\
**Replies:** 5\
**Last updated:** [May 27, 2020, 9:23am UTC](https://forum.elixirforum.com/t/programming-phoenix-ch-5-generated-code-does-not-match-book/31849 "2020-05-27T09:23:54Z")

</div>

Hi all, I’m going through the book (ebook) and I’m currently in Chapter 5, at the section titled “In-context Relationships.” Following the book, it tells me to use generators to create a context within another context.…

---

## [Default Phoenix assets without Node.js](https://forum.elixirforum.com/t/default-phoenix-assets-without-node-js/31424)

<div class="topic-metadata">

**Author:** [@Orzech](https://forum.elixirforum.com/u/Orzech)\
**Replies:** 4\
**Last updated:** [May 14, 2020, 12:14am UTC](https://forum.elixirforum.com/t/default-phoenix-assets-without-node-js/31424 "2020-05-14T00:14:34Z")

</div>

I’m learning Phoenix with “Programming Phoenix 1.4” book, but I want to avoid using Node.js altogether. I’d also like to track assets in my repo. The mix phx.new --no-webpack task not only skips setting webpack up, but …

---

## [Programming phoenix 1.4 chapter 8 page 151](https://forum.elixirforum.com/t/programming-phoenix-1-4-chapter-8-page-151/28389)

<div class="topic-metadata">

**Author:** [@wolfiton](https://forum.elixirforum.com/u/wolfiton)\
**Replies:** 10\
**Last updated:** [January 19, 2020, 4:24pm UTC](https://forum.elixirforum.com/t/programming-phoenix-1-4-chapter-8-page-151/28389 "2020-01-19T16:24:39Z")

</div>

Hi everyone, I don’t understand why this test is failing instead of going to the changeset and give an error and pass the test. Because that error was expected in that test. Expected result: To append an error to the …

---

## [Programming phoenix Chapter 3. Controllers page 54](https://forum.elixirforum.com/t/programming-phoenix-chapter-3-controllers-page-54/28337)

<div class="topic-metadata">

**Author:** [@wolfiton](https://forum.elixirforum.com/u/wolfiton)\
**Replies:** 14\
**Last updated:** [January 17, 2020, 2:54pm UTC](https://forum.elixirforum.com/t/programming-phoenix-chapter-3-controllers-page-54/28337 "2020-01-17T14:54:09Z")

</div>

Hi everyone, Problem in programming phoenix page 55 Error trace: \[info\] GET /users/ \[debug\] Processing with RumblWeb.UserController.index/2 Parameters: %{} Pipelines: \[:browser\] \[info\] Sent 500 in 53ms \[error\] #PI…

---

## [Please help with UndefinedFunctionError](https://forum.elixirforum.com/t/please-help-with-undefinedfunctionerror/27761)

<div class="topic-metadata">

**Author:** [@vuldan](https://forum.elixirforum.com/u/vuldan)\
**Replies:** 8\
**Last updated:** [December 23, 2019, 7:14pm UTC](https://forum.elixirforum.com/t/please-help-with-undefinedfunctionerror/27761 "2019-12-23T19:14:55Z")

</div>

Hello! I learning phoenix by book "Programmin Phoenix Productive \> Reliable \> Fast. And I can’t fix error “function Rumbl.Repo.get/2 is undefined or private”. I don’t understand what’s wrong, maybe you can help me? I t…

---

## [What is HelloWeb for in this Hello project?](https://forum.elixirforum.com/t/what-is-helloweb-for-in-this-hello-project/27469)

<div class="topic-metadata">

**Author:** [@jslearner](https://forum.elixirforum.com/u/jslearner)\
**Replies:** 9\
**Last updated:** [December 10, 2019, 4:40am UTC](https://forum.elixirforum.com/t/what-is-helloweb-for-in-this-hello-project/27469 "2019-12-10T04:40:58Z")

</div>

In the book Programming Phoenix the Hello project produces scope “/”, HelloWeb defmodule HelloWeb.HelloController defmodule HelloWeb.HelloView What are those HelloWeb for?

---

## [Programming Phoenix - two books?](https://forum.elixirforum.com/t/programming-phoenix-two-books/14342)

<div class="topic-metadata">

**Author:** [@zizheng](https://forum.elixirforum.com/u/zizheng)\
**Replies:** 6\
**Last updated:** [December 8, 2019, 9:00pm UTC](https://forum.elixirforum.com/t/programming-phoenix-two-books/14342 "2019-12-08T21:00:48Z")

</div>

I noticed there are two versions of Programming Phoenix on The Pragmatic Bookshelf. One just came out today and is titled “Programming Phoenix \>= 1.4” (Search), and the other (which I own) titled just “Programming Phoeni…

---

## [Is it possible to create topics dynamically in Phoenix](https://forum.elixirforum.com/t/is-it-possible-to-create-topics-dynamically-in-phoenix/10754)

<div class="topic-metadata">

**Author:** [@mazzie](https://forum.elixirforum.com/u/mazzie)\
**Replies:** 8\
**Last updated:** [November 11, 2019, 5:34pm UTC](https://forum.elixirforum.com/t/is-it-possible-to-create-topics-dynamically-in-phoenix/10754 "2019-11-11T17:34:24Z")

</div>

I am new to Phoenix. I was wondering if it is possible to create topics dynamically in Phoenix. From what I understood till now in Phoenix if a user joins a topic they get all the messages sent on that topic. What if I …

[Next page](https://forum.elixirforum.com/tag/book-programming-phoenix/41.md?match_all_tags=true&page=1&tags%5B%5D=book-programming-phoenix)
