What Needs to Go

3 views
Skip to first unread message

Andy Matuschak

unread,
Sep 6, 2009, 12:41:12 PM9/6/09
to pixe...@googlegroups.com
A thread wherein we discuss some of the more hideous bits of Pixen's
codebase, often due to 10.1-era code, often due to our high-school
noobness. Here's a few to kick us off.

Most file I/O is done by hand and not very well. GIF is particularly
hideous. This is part of our color loss, certainly. ImageIO didn't
exist at the time, you see.

There's this "manual" palette mode which restricts all drawing to
colors in the palette. Integrated into this is quantization, which is
done very poorly. This needs to be rethought along with the rest of
the palette: people don't really care about 8-bit because of device
restrictions. They need to manage their palette just because they're
not using many colors.

Image scaling (Edit -> Scale Canvas…) is done in the most complicated
way possible.

The tool properties system does not really respect MVC; it should use
NSViewController.

The backgrounds system and its UI are about 50 times more complicated
than they need to be.

More when I think of them!

—Andy

Jon

unread,
Sep 7, 2009, 9:34:02 PM9/7/09
to pixen-dev
In addition, moving to more modern Obj-C syntax should be a priority.
Using properties, a more modern init idiom, and general refactoring
should help us move forward into modern MacOS X APIs.
Reply all
Reply to author
Forward
0 new messages