Dashboard and ChartingA key part of a business application in my opinion is providing the users with a quick, easily understandable overview of what is happening in that application. In my case, I want to provide some statistics about the data and some gentle nudges about...Dec 15, 2022 · 3 min readandrewfoster.hashnode.dev
A technique for avoiding Callbacks in RailsI have a requirement for my application where I need to make changes to one record if another record that is "shadowing" the original is updated. In this context I have a shadow product where users can make fixes such as spelling mistakes and so on, ...Nov 18, 2022 · 3 min readandrewfoster.hashnode.dev
Query ObjectsFor my application I have some data display requirements that will necessitate querying some statistics about products. In this particular case I want to know how "popular" a product is in comparison to all other products. One way I can do this is to...Nov 5, 2022 · 4 min readandrewfoster.hashnode.dev
N+1s and PerformanceIn 1974 Donald Knuth wrote: "Programmers waste enormous amounts of time thinking about, or worrying about, the speed of noncritical parts of their programs, and these attempts at efficiency actually have a strong negative impact when debugging and m...Oct 10, 2022 · 13 min readandrewfoster.hashnode.dev
Dropdown/Select component using ViewComponent and HotwireTailwindUI has something they call a Select Menu component which will be the basis for what I am calling a Dropdown component. Here is my Storybook entry for the finished component: And here is the component in action for two different types of drop...Oct 3, 2022 · 11 min readandrewfoster.hashnode.dev