Matthew Lang

Freelance web developer specialising in Ruby on Rails

The not so fun weekend of debugging code problems

It's been a while since I last posted here. I've been getting my head down and working on my CMS product, which has left not much time for blogging.

Over the last few weeks, I've been putting in place a feature that should allow for more flexible page designs so that customers can use a series of widgets to build up pages. It's a three-level form with a page with many sections on it, and each section has a single widget. The thinking is that the sections can be re-ordered regardless of what type of widget it holds. It hasn't been without its issues, though. It took several attempts to get this overall widget design with the page in place.

Thankfully, that part of the feature is done, but I'm still working out some issues with this.

The main issue is when I add a new section and widget to the page, it clears any input elements that I have changed on any other sections widgets on that same page. The merry-go-round of possible sources of the problem includes the usual areas when things like this go wrong on the front-end—namely Turbolinks and Javascript.

The biggest problem just now is that of time, though. I don't get much more than a couple of hours at a time working on this, and when I do, I feel that I am problem-solving the same things over and over again. It's just as well that we're still in a national lockdown here in Scotland because it does afford me some extra time to work on this.

Hopefully, I can make progress with it this week.
Permalink / Tags: Rails, coding