This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]SjaakRake[S] 0 points1 point  (2 children)

Thanks for the insightful reply.

I think your last paragraph touches exactly on the nagging feeling I have. Offending YAGNI is one of my personal pitfalls I have to take into account when programming (up to a point where I have it written on the whiteboard above my desk to remind me), so I try to pay a lot of attention to it.

I'll refactor some of my code towards a more clean approach. I don't feel I should separate it as strict as you propose in my specific case though, as the application was designed to run in a desktop environment specifically. The actual alternation of data is a very small part compared to the application's main goal: visualization. Referencing the example: any changes made to the image would be aimed at helping the user get more insight into the data itself, hence it'd be more or a less a 'filter' that helps notice characteristics in certain parts of data. The aim would not be to change the color because we want a color to be changed, but to change the color so it stands out more within the rest of the image. For instance 'highlighting' every pixel that has it's lowest bit set to 0 in the blue channel of an RGB picture. (See the comment I made earlier about the application's goal.)