Paperback: 321 pages
Publisher: Packt Publishing - ebooks Account (June 24, 2014)
Product Dimensions: 7.5 x 0.8 x 9.2 inches
Shipping Weight: 1.7 pounds (View shipping rates and policies)
Average Customer Review: 4.6 out of 5 stars See all reviews (18 customer reviews)
Best Sellers Rank: #758,427 in Books (See Top 100 in Books) #168 in Books > Computers & Technology > Computer Science > Computer Simulation #314 in Books > Computers & Technology > Software > Design & Graphics #321 in Books > Computers & Technology > Digital Audio, Video & Photography > Video Production
There is a very interesting and insightful comment made in the book about .ui files. These were first used in Maya for Qt Designer, which makes WYSIWIG [what you see is what you get] for constructing GUIs. This was in itself an IDE or GUI, where via various buttons and menus, you could visually make a given interface for your needs. Then by saving into a .ui file and bringing it into Python, you got your GUI. Wow! This approach has been followed in other graphical contexts. Notably in circuit and chip design. In the 80s, we went from a text file to define a circuit in SPICE to a WYSIWIG and far simpler, faster, less error prone method. A big boost in productivity. In general, you would indeed expect this in other fields.But the book argues otherwise for Maya and Python. It says WYSISWIG generated code is 'poorly designed from a technical and aesthetic standpoint'. The code is bloated. Objects in it are auto-named, which might not be as semantically useful. And unnecessary attributes are inserted into the code. This makes sense, so far. The text goes on to suggest that using Python and Qt means you can drop a lot of boilerplate. The claim is that with enough experience on your part, you can manually write better, faster GUI code. So much so that the book recommends never to use Qt Designer for production code. Perhaps in part this is due to Python being a scripting language? So that the interpreter has less chance to optimise the source code, compared to a compiler.Or maybe that the graphics in a GUI layout for Maya applications are often simpler than the cases of circuit and chip design. There, the complexity of the connections between circuit elements can be overwhelming. And today's circuits often have thousands of elements.