Program for easily coding websites/apps with code-snippets?

I would like to make some websites, or apps for iPhone/Android, with some fairly basic functionality. It never made sense to me why there are so few programs out there that utilize 'Triggers', like Blizzard does in their World Editors. Although not as powerful as coding, when utilized well with good logic, it can be pretty much be as good as coding.

Flash has some basic ones, but those are too basic.

I want a software that is designed around creating GUI, and making them functional with Triggers/Code-Snippets. There just has to be something like that…

Welcome.
Happy Codings is sample source code search engine.
Do you need sample source code? Do you search program code?
Do you want find example code? Do you want learning coding?
Everything is here. You can get code. You can search code, application sample, code project.
Various programming languages code examples, sample source codes is here.

What you can find at this place: c++ source code, visual basic code, open source code, asp source code,
php source code, vb source code, free source code, visual basic examples, c++ code, c++ coding,
php code, asp net code, programming code, c code, program sample, projects sample, java sample,
java vector, java iterator, hashtable, constructor, array list, plugin, java games, xml, xml sample,
java object, java method, java servlet, java thread, string applications, date applications,
free sample codes, database applications, image applications…

You mean like Visual Basic / .net which is aimed at creating a visual GUI and then attaching functionality to it using code.