192 points · by jasonlbaptiste · 17y ago · 73 comments
The usual criticism is that they generate awful code, but that's not necessarily the case. The problem is really that these tools ask you to keep clicking on lots of little sliders and lines and bars and shapes and then click over there in that text box to enter a name and then select this or that from a list or menu, wait until that three pixel graphic changes its shape into a handle so you can drag that line over here, etc, and there's no way to automate this.
It's a matter of taste whether you like to do it that way when you create _one_ form, but once you create an application or two or three you have to abstract from the repeating patterns and you can't do that with the GUI builder.
GUI builders make you stay on the same level of abstraction forever because they don't have the equivalent of meta programming or even just plain procedural programming.
The reason why code built with GUI builders is so awful is not so much that they necessarily generate bad code. It's that developers who can put up with repeating the same clicks and drags on the same level of abstraction for years and years are in the wrong profession and create bad code regardless of the tools.
Programming is all about abstracting and automating stuff. The pinnacle of GUI builder based abstraction is what Microsoft calls "user controls". All they abstract is a bunch of widgets statically glued together on a panel. Great, but that's like 5% of what you want to do.
I'm afraid GUI builders are hopeless for any serious programming.
You can also define UI things in code in Cappuccino (as well as Obj-C).
IB is optional with Obj-C, and I imagine Atlas will be optional with Cappuccino.
I didn't say anything about IB generating code.
There are a few fundamental requirements for a language to allow for powerful abstractions. I think self-referentiality and closure (in the maths sense not in the CS sense: http://en.wikipedia.org/wiki/Closure_(mathematics) ) are among those requirements.
GUI tools are ages behind what today's programming languages can do in terms of abstraction. So I don't see why it should be a good idea to limit the expressiveness of my toolset by inserting static blobs or nibs of visual somethings everywhere.
To make it perfectly clear: I want to be able to insert a function in place of any static structure, anywhere! I don't want barriers that make this process more difficult. And that's what GUI builders do.
You say I can define UI things in code as well. Great, I'll gladly take that offer, thank you very much ;-)
People in this culture don't tend to build the kind of endless, mindless forms you're talking about. They build real apps.
And they don't generate code--they generate linked objects (freeze-dried in .nib/.xib and now .cib? files) that are unfrozen at runtime.
If you had to generate a whole bunch of mindless forms, you're right--metaprogramming solutions would be a big win.
Also, I think Atlas allows for the sort of abstractions you're looking for. It comes with a bunch of built in widgets which are great, certainly for prototypes and simple UIs, but even fairly advanced ones too. But if they're not good enough, or you have some custom widget/layout you can easily add it to Atlas as a plugin and treat it as if it were a built in component.
But I'm certainly interested in hearing more about the problems people have with these sort of tools.
Challenge: how could one make a visual version of abstraction? Would you say that there is no abstraction in templates?
Yes there is abstraction in templates. Templates typically let you indicate (visually or otherwise) what the static parts look like and where the dynamic parts go. That's it. We have done that forever. There's no progress. Templates don't describe interaction and that's what UIs are there for and it's the growing part of UI design.
Tool vendors have tried for many years to describe the interaction parts visually as well. But interaction is not inherently visual. A condition is not visual. A data transformation is not visual. Even the difference between two visual states is not visual itself.
It's a logical abstraction that manipulates visual objects. Mixing logic that manipulates visuals with the visuals themselves is not useful, and in terms of established software design principles it violates the separation of concerns.
Painting logic with a GUI builder is like entering a sine function by drawing squiggly lines on the screen.
Maybe we could create a better visual version of abstraction, but I don't feel it's the most promising direction to take in order to make abstraction more powerful.
I agree that visual programming seems to be one of the great failed dreams - lots of academics and practitioners tried it, and it just doesn't seem to work. Although, the crop of XML-mappers (mapforce, biztalk mapper) do represent simple functions in a visual language, and seem to own that market. I agree it's not serious programming, but more "coding for non-coders" (and it's marketed as such). Yet, it has a place - this time, for business analysts. There are non-programmers everywhere who need to do some kind of coding - and creating a safe, useful tool for them is worthwhile. And maybe even for coders sometimes, if (and only if) the task really doesn't need serious programming. Examples: make; regular expressions; paths; printf/scanf; JSON; HTML (though these mini-languages aren't visual, they also aren't suitable for serious programming). I'd add SQL, bash, sed and awk, but they are powerful enough; just awkward.
I was intrigued by your suggestion that one can't abstract a visual language. While there are templates, maybe one can do better. The anchors and widgets changing the placement on resize are a kind of abstraction - but you're right, you can't make your own abstractions. No one's done it - it doesn't mean there isn't a way to do it. Maybe there is.
However, for interaction, I think you're pretty right. Although some standard styles of interaction, and standard ways of generalizing/abstracting them could be captured, you can't have create new styles or generalizations using this system. It isn't powerful enough.
> Maybe we could create a better visual version of abstraction, but I don't feel it's the most promising direction to take in order to make abstraction more powerful.
The thing about visual programming is that it helps people. I agree it's unlikely to make abstraction more powerful (though with pure research you don't know what you'll find). I think it would be really cool to create visual abstraction, that is usable and intuitive, when it seemed impossible.
PS: just a thought: if an "interaction" a kind of mapping where by if you do X, then Y happens, could that not be represented in the same visual way that XML mappers use (above)? Functional abstraction could also be represented as a visual mapping - but it certainly is not a natural or intuitive form for it.
The aim, of course, is for the designer to generate the exact look and feel for the wireframes and render them (using Catalyst) to MXML for the Adobe Flash/Flex developer to code in the behavior/functionality. Catalyst will require Flex Builder 4 (which will not be out until 2nd half of 2009).
http://labs.adobe.com/technologies/flashcatalyst/
FXG (the interchange format spec):
http://opensource.adobe.com/wiki/display/flexsdk/FXG+1.0+Spe...
As an aside, I work on a large project (at least 10 UI developers) that uses Flex. We don't even use the GUI builder.
OTOH, there's an argument that standard interaction is a good thing, so maybe a lack of customization/abstraction isn't so bad?
(That goes for any other Flex developers here as well. Seems that the intersection between HN readers and Flex developers is pretty small!)
I'm not sure how Atlas works, but on the mac code is not Generated in the way you are thinking. You should really check it out.
I can't believe how awesome these guys are, I hope Apple acquires them and starts using their technology for MobileMe + iWork.
I know that Apple pushed WebObjects to the back burner when they acquired NeXT in the mid 90s but I'm not sure why it would be bad for them to buy 280 North today.
Heh. Serious power, terrible polish. They blew off all the NeXT veterans when they destroyed it as an objective-c development platform, but didn't finish the job of porting it to Java for five years so you ended up working on this platform that feels like a developed-in-isolation mainframe monster. Dev tools looked nice but made you want to slit your wrists from random crashes and other strangeness. There were a couple of periods where they looked like they would kill it which was stressful for people with codebases on it. All efforts at documentation did a very poor job of selling its incredible patterns and features.
But everyone I know who stuck at it has done well - many ended up at Apple working on very cool projects. I'd love to read a history of whoever wrote it one day - it was so far ahead of its time - I've got a theory that they had some people on it who had done serious research and practical time on some sort of web-like thin-client platform that pre-dated the web. Culture in Apple is different now too.
This could be huge.
The funny thing is, it actually looks quicker and easier than IB - probably because Objective-J is interpreted and runs in the browser, and it has the controllers in Atlas.
Use it to build management guis, customized to the user. "Ohh, you want sales per hour, but don't care about inventory?" Here you are.
Like any other tool, in order to use it effectively you have to master the tool just like you'd master a language. Hopefully what's under the hood here and the code it generates makes it easy to do that.
But being able to do it visually ala Interface Builder with similar semantics around delegates, subclassing, IBAction and Outlet concepts will rock - speeding up development time tremendously.
I don't know how y'all plan to make money, but don't get too caught up in dev tools! They're fun, and might be good marketing, but be sure they're actually saving time against making the thing that people with money actually want.
Postscript imaging model == HTML5 Canvas, Postscript == Javascript.
Hmm...
What percentage of the computer population knows what X Windows is, much less has any idea how to use it?
Seems like there is a good text editor being used in Atlas, hopefully this will make its way into Cappuccino soon!!
Atlas is going to save me a lot of time.
Sure you can still edit the plist by hand or programatically but I don’t find it more efficient neither easier.
Is it fast/responsive enough to not be annoying? No demo yet.
And I wish they had a one-line pitch.