LinkedIn principal author Doug Winnie explains how programmers and programming languages manage variable types. Some language dynamically type the variables, changing the type of the variable based on whatever is assigned to it, while others attempt automatic conversion, or a programmer has to explicitly convert a value in code.
- As you program, you'll be working with values…of all kinds, but often you'll find…that things won't match up,…and you'll need to juggle different…variable types to get your code to work.…There are different ways that programming languages…manage differences between value types.…Some are automatic, and some you have to do yourself.…Here are some common instances that might happen.…With some languages, the variables are dynamically typed,…meaning that they adjust to whatever is assigned to them.…
So a variable that at one time is typed…as an unsigned integer can become a string…if one is assigned to it.…Another instance is when a value…doesn't match the variable type.…Some languages may automatically convert that…to the best it can to match the variable type.…For instance, an integer is converted to a decimal,…a decimal is converted to a string,…or a string containing numbers is converted to a decimal.…But sometimes you as the programmer need…to make the conversion explicit.…
With some programming languages, you need to manually…
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.