Home | Blog | Recent Changes | Page Index | Site Map

July 17, 2008

setAllAttributes (newProps);

Filed under: AbiWord, Code, Summer of Code 2008 — Ryan @ 10:20 am

or, How to Know When You Still Have Learning to Do

Yes, that is a line I recently patched out of my own code.  I was wondering why my simplifyProperties wasn’t working right, so I tried it then saved it to disk - and lo and behold, all the style properties had become XML attributes.  In learning the AbiWord piecetable, I’ve had to struggle a bit with the concept of attrprops - attributes and properties.  Specifically, I tend to mix them up - attributes are things like “name”, “label,” and “props”, while properties are things like “font-size: 12″ which can also be stored as the value of the aforementioned attribute.  So now that you know that attributes and properties are different, I’m sure you can spot the bug in my post title :)

My GSoC project is moving along now!  Just have to remember the difference between attributes and properties…

1 Comment »

  1. Awesome! I fondly remember all the countless times I fscked this up (and occasionally still do :)

    Comment by uwog — July 17, 2008 @ 10:58 am

RSS feed for comments on this post. TrackBack URL

Leave a comment

code art life - Ryan Pavlik on ClearDefinition is proudly powered by WordPress
Entries (RSS) and Comments (RSS).