OpenLaszlo is XML, and XML is case-sensitive. Because of history (HTML, case-insensitive, but usually written lowercase), we chose to use lower-case for the OpenLaszlo core API's. I don't see this changing as it would be a massive, mostly gratuitous API change. The existing components suite follows this model for the most part. We are planning on revising our components and could revisit this decision, but I don't see any compelling reason to do so. Personally, I find the all lower-case style in LZX to be easy on the eye. Even more so when compare to the namespace "screech" names in Flex (:P).
Obviously, OpenLaszlo applications can choose any naming scheme that works well for them. Personally, I would be concerned that it would be an impediment to development if I have to remember whether an attribute is a core attribute, a component attribute, or one of my own attributes to decide the proper casing. Perhaps with the right IDE this is not a problem. My 2p. On 2010-01-23, at 03:33, Raju Bitter wrote: > Right, camelCase is the preferred way for me as well, but it would be good to > keep things consistent. What is the OpenLaszlo team going to do, are they > going to switch to the Laszlo Webtop coding standard? > > - Raju > On Jan 23, 2010, at 1:53 AM, Rami Ojares wrote: > >> I also use camelCase in my code (java developer as I am). >> I quess this issue will never be settled... >> Since the events are generated mostly by the compiler out of attribute names >> that also seem to be all lowercase >> then the rationale has been that keeping it all lowercase reduces confusion >> and increases simplicity. >> Of course camelCase is better for readability. >> >> Be that as it may the current standard is all lowercase. >> >> - rami >> >> 23.1.2010 2:47, Antun Karlovac kirjoitti: >>> >>> This brings up a good question: For new OpenLaszlo classes (and changes >>> moving forward) is the coding standard for attributes and events still all >>> lowercase? I only ask because for our projects (including Webtop) at Laszlo >>> Systems, we now do camel case for attributes and events, and camel case >>> with a capital first letter for class names. We implement this on all *new* >>> classes. I'm happy to follow whatever the official recommendation is for >>> OpenLaszlo though. >> >
