Skip to Main Content
C# 10.0 All-in-One For Dummies
book

C# 10.0 All-in-One For Dummies

by John Paul Mueller
March 2022
Intermediate to advanced content levelIntermediate to advanced
864 pages
19h 46m
English
For Dummies
Content preview from C# 10.0 All-in-One For Dummies

Chapter 6

Programming Dynamically!

IN THIS CHAPTER

Bullet Understanding dynamic typing

Bullet Defining variables

Bullet Staying flexible by being dynamic

Bullet Making static operations dynamic

Dynamic programming is another one of those buzzwords that really doesn’t have a clear definition. At its loosest, it means developing something in such a way that the program makes more decisions about the way it runs while running, rather than when you compile it.

Scripting languages are a great example of this type of programming. When you write something in JavaScript (https://developer.mozilla.org/docs/Web/JavaScript/Reference), you don’t compile it at all — all the decisions are made at runtime. Ruby (https://www.ruby-lang.org/) is another good example: Most of the time, an entire program can just be typed into a command prompt and run right from there.

Remember When you declare a variable in a dynamically typed language, you don't have to say what type you are making that variable. The compiler will just figure it out ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

C# Cookbook

C# Cookbook

Joe Mayo
Head First C#, 4th Edition

Head First C#, 4th Edition

Andrew Stellman, Jennifer Greene

Publisher Resources

ISBN: 9781119839071Purchase Link