LinkedIn principal author Doug Winnie explains how values are stored in variables. Variables are named containers that can store certain types of values like integers, decimals, and strings. With a variable, the programmer is reserving space in memory to store the value and can then access the value later, manipulate it, and use the value in other places.
- Computers store, process, and access data and information.…In a computer program,…a programmer does this with variables.…Variables have two sides to them.…For the programmer, it is a name that you use…to refer to a value throughout your program.…The computer then reserves an amount of space…in memory to store that value and make it…available to you as a programmer.…The easiest value to think of is a number,…like the number three.…Three is a number of things, like three paperclips.…
The number three is called an integer.…An integer is a whole number that counts…the number of objects or things.…With an integer, I can add to it or subtract from it.…There are two types of integers, however:…unsigned and signed.…When you think of three paperclips,…you don't think in terms of positive or negative.…You just simply have three paperclips.…But if I used to have five paperclips, and now I have three,…how would I represent the change in value?…I would use a negative number to indicate…that I have a difference of negative two.…
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.