Blog Post: SQLAlchemists Have Verbose Relationships

Fred and Loathing on The Internet

Welcome to the public web log of Fred Lambuth



SQLAlchemists Have Verbose Relationships

2023-May-24

Today’s update is brought to you by the very, very, declarative rhetoric of SQLAlchemy. I went along with Flask bringing in SQLAlchemy because I heard good things about it. I wanted to sink my teeth deeper into ORM, especially on the model creation side. It would be lying if I said I have no regrets by going along this path. In my troubleshooting I have found that Flask is super accepting of my cheap sqlite.cursor method calls. I could have gotten the frontend to my Spotify listening data work up and running smoothly… or maybe not. I do have some extra libraries and I do not remember their dependencies. Maybe I boxed myself in by wanting to use some third party libraries I cannot forsake now. Oh well. I am done with mixing my Flask models inside the routes files. There are now images from one model joined to the results of another model that references the one with images. It was not as easy as just table1.join(table2).

Another of today’s updates is brought to you by some changes recommended by chat_GPT. Normally I use google and search for keywords of what computer solution I am trying to reach or problem to solve. In the past week I have instead crafted thorough conversational questions to chat_GPT in one continued session history. It gives back results that are easier for me to parse than the ad laden HTML page with web links I get back from Google. Rarely do I get the exact copy and paste answer I am looking for from chat_GPT, but it gets me three quarters of the way in the right direction or immediately reveals to me I framed my question wrong.

That Tastes Like War book was expeditiously finished once I read a few reviews after reaching the midpoint. I had discovered that this very family driven memoir was not condoned by the other members of the family, namely the ones who took care of the author’s mother in her end of life period, which is the meat of on that book’s bones. There is likely a gray truth in between the lengthy review by the author’s brother that points out several factual discrepancies in the book that undermine themes related to them; namely the author’s father not actually being a member of the US military that was occupying Korea.

I very much enjoyed Hello Darkness by William Manchester despite finding out the author did not have war experience where he could have had the killing scene he vividly wrote in his WW2 memoir. That author had a way with words that made me keep my high esteem for it even after learning of its half-truth. I feel the same about Grace Cho’s story-driven deception.


Add Comment