LinkedIn principal author Doug Winnie explains how to do different things based on changing conditions in your program and code. Using Boolean values of true or false, you can use literals, variables, evaluations and functions and create tests that branch your code in different ways based on the results.
- Computers process in binary,…ones and zeros, true and false.…In programming, you need to think in binary as well.…When you create code that does different things…based on data, you are creating a conditional.…You create the condition, or the test,…and you find out if the test is true or false.…If it is true, you do one thing.…If it is false, you do another.…The idea of true and false…is the basic building block of computers,…so in programming there is a special data type…designed exactly for this, a Boolean value.…
A Boolean variable can be assigned…one of two possible values, true or false.…I can also create a function…that returns a Boolean value type as well.…I can also create an evaluation,…but I need to use a different set of operators…to do the evaluation.…Regular math operators, like addition and multiplication,…don't give me a true or false answer.…Instead, I need to use equality operators.…
In programming, there are six to choose from.…I can ask if one value is equal to another.…I can see if one value is not equal to another.…
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.