LinkedIn principal author Doug Winnie explains how programs and programmers work with user input. Users can input information into programs in many ways, including keyboards, multi-touch, mouse, cameras, voice, and other sensors that are part of the hardware and software of the device. To use input, your program must listen for the input from the user in order to recognize the input and perform actions based on it.
- It is entirely possible to create programs…that run on their own with no input from users,…but most programs require a user to provide…some input, even if it's a simple tap.…Capturing input from users can come in many forms,…but it generally requires two things.…The first is that the app needs…to be listening for the user.…It needs to know to be on the lookout…for the user to do something.…It's like shouting in the woods, if no one is there…to listen, what you say isn't communicated.…
With user events like providing input,…the same has to happen.…User interaction can take many forms.…A keyboard is used to enter text and numbers…into a program to create new data…that is managed by the program.…Certain keys or key combinations…can initiate certain functions in a program.…A mouse is used to point and select items…in a graphical user interface.…Mouse gestures such as dragging and dropping…manipulate objects on the screen.…
In addition, the path of the mouse…can be used to draw and perform actions…based on the shapes that are created.…
Join Doug Winnie as he explains the principles of programming and helps you connect to core concepts by exploring three ways that programmers perform their jobs. Doug starts by sharing the history of coding and then dives into functions, values, variables, and parameters used to define actions. He covers capturing input from users, creating conditional tests, using loops with arrays, and object-oriented programming basics. He also takes you beyond programming, into processes like debugging, refactoring, and building iteratively.
- Working with values and variables
- Breaking down tasks
- Customizing functions and parameters
- Building conditional tests
- Creating and changing arrays
- Working with objects and classes
- Debugging and refactoring code
- Going beyond the code as a programmer
Skill Level Beginner
1. Control Computers with Code
2. Define Actions Using Code
3. Repeat Actions and Test for Conditions
4. Objects and OOP
5. Beyond Programming
Debug problems2m 50s
Next steps1m 19s
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.