Giving up control - Event-driven programming.
The GUI programming style is referred to as
event-driven programming. In this style of programming
you set up the graphical user interface and initialize things.
It appears that the program just stops and sits there doing nothing!
There is no input loop; your program isn't trying to read from the user.
You, the programmer, have to learn to give up control in two ways.
Your program gives control to the GUI system, and you only get control
back to when your listeners are called.
At an even higher level, your program has given control to the user.
It's the user who selects which of your methods to call by their choice
of buttons to click on, menu items to select, etc.
Listeners.
When the user clicks a button
(or uses another GUI component), an event is sent to listener method.
Your job as a programmer is to write a listener method for each
component.
It's the user, not the programmer, who has control, indirectly choosing methods in your program to execute
by interacting with graphical user interface components.
MIT Open Courseware - 0 views
Teaching kids how to write computer programs, by Marshall Brain - 3 views
-
"Let's say that you have children, and you would like to help them learn computer programming at a youngish age. As the father of four kids, I have tried to approach it from several different angles. What I would like to do here is collect some ideas for parents who are looking for different options."
How many Microsoft employees does it take to change a lightbulb? - Fabulous Adventures ... - 0 views
-
I'd always tell these people the same thing -- if it is only five lines of code then go write your own ActiveX object! Because yes, you are absolutely right -- it would take me approximately five minutes to add that feature to the VBScript runtime library. But how many Microsoft employees does it actually take to change a lightbulb?
Ansca Mobile's advanced mobile app development tool - 0 views
-
Corona has the only complete solution for developing across platforms, OS versions, and screen sizes. You can write once and build to iOS or Android at the touch of a button, and Corona will automatically scale your content from phones to tablets.
-
iPhone and Android development on OSX or Windows. Thanks Daniel B.
Eric Schmidt, chairman of Google, condemns British education system | Technology | The ... - 0 views
-
"Over the past century, the UK has stopped nurturing its polymaths. You need to bring art and science back together."
-
"It was a time when the same people wrote poetry and built bridges," he said. "Lewis Carroll didn't just write one of the classic fairytales of all time. He was also a mathematics tutor at Oxford. James Clerk Maxwell was described by Einstein as among the best physicists since Newton – but was also a published poet."
-
Schmidt said the country that invented the computer was "throwing away your great computer heritage" by failing to teach programming in schools. "I was flabbergasted to learn that today computer science isn't even taught as standard in UK schools," he said. "Your IT curriculum focuses on teaching how to use software, but gives no insight into how it's made."
‹ Previous
21 - 29 of 29
Showing 20▼ items per page