The custom CMS package is now displaying text to the browser. I got the text editor working so now updates to said pages can be made easily. But at the same time, the more I work on this, I realize there are more and more components that pop up that need to be coded. There are going to be a lot of late nights trying to get this functioning before I leave for Cambodia in 19 days. That self-imposed deadline is looming large in front of me.
But despite all the stress of feature creep and deadlines, I did have some victories. I have spent the last few weeks trying to develop a module that will allow the end user to reorder pages in their menu structure. I also want the module to allow users to move pages into a hierarchy if they want. And for several weeks, I would write equations and draw diagrams to no avail. The solutions functioned but were incomplete. That was until yesterday. I was taking a break and thinking about the problem. It was almost as if the heavens opened and the answer came forth. It was a simpler solution, yet worked in all situations.
It is moments like that which make me remember why I love programming. The struggles, the puzzles, the late nights trying to debug code are all worth it. And yes even the moments where I realize my complete incompetence. Many times after hours of struggling with something, the solution presents itself. Most times it was staring me in the face the whole time. Yet the next time, I do not make the same mistake or I diagnosis the problem in minutes as opposed to hours.