Explore the basics of the three most popular programming languages: C#, Java, and Python and see what it's like to function in today's world from the perspective of a programmer. This book's uses is highly practical approach with numerous code listings aimed at bringing generations together through
Programming Basics: Getting Started with Java, C#, and Python
â Scribed by Robert Ciesla
- Publisher
- Apress
- Year
- 2021
- Tongue
- English
- Leaves
- 172
- Edition
- 1
- Category
- Library
No coin nor oath required. For personal study only.
⌠Synopsis
Explore the basics of the three most popular programming languages: C#, Java, and Python and see what it's like to function in today's world from the perspective of a programmer. This book's uses is highly practical approach with numerous code listings aimed at bringing generations together through the intricacies of technology.Â
- Think and read code-listings like a programmer
- Gain a basic working proficiency in three popular programming languages
- Communicate more efficiently with programmers of all experience levels in a work-based environment
- Review advanced OOP concepts such as exceptions and error handling
- Set up your programming environments for Windows, MacOS, and Linux
⌠Table of Contents
Contents
About the Author
Chapter 1: Wet Toes: The Very Basics of Programming
What Is Programming Anyway?
Basic Hardware Rundown
1. Central Processing Unit (CPU)
2. Hard Drives (a.k.a. Hard Disks)
3. Video Card
4. Random Access Memory (RAM)
5. Motherboard
The Three Requirements of Becoming a Decent Programmer
A Novice Programmerâs Glossary
Input/Output
Algorithm
Flowchart
Source Code
Syntax
Routine
File Formats
ASCII
Boilerplate Code
Software Framework
Full Stack
In Closing
Chapter 2: Java, C#, and Python 101
Java
C#
Python
Ones, Zeros, and You
Compiling and Interpreting Code
The Magic of Variables
Variables in Python
Trying Out Python
Manipulating Variables
Typecasting in Python
Variable Comparisons
Variable Declarations in Java and C#
Trying Out Java and C#
On Curly Brackets, Variable Scope, and Code Blocks
First Adventures in Java
Once More with C#
On Classes and Object-Oriented Programming
The Basics of Flow Control: Loops
The While-Loop
The For-Loop in Detail
Looping in Python
In Closing
Chapter 3: Setting Up Your Programming Environments
On Computing Architecture
Bit-Derived Units Explained
Multitasking in 64 Bits
Identifying Your Operating System Architecture
Installing Eclipse for Java Development
Installing Eclipse for Linux
Eclipse First Launch
Great IDEs for C# Development
Setting Up Visual Studio for Windows and Mac
Starting a New Project in Visual Studio
Console vs. GUI Applications
C# in Linux: Introducing MonoDevelop
PyCharm for Python Development
Installing PyCharm for Linux
Software Vermin: Bugs
On Debugging and Testing
Debugging: Essential Approaches
In Closing
Chapter 4: Object-Oriented Programming (OOP)
Procedural vs. Object-Oriented Paradigms
Classes, Inheritance, and UML
Encapsulation
Your (Potentially) First Java Object
Java Alphabet Soup: JDK, JVM, and JRE
Objects in C#
Static and Public Methods in Java and OOP
Constructor Methods
Overloading Methods
Access Modifiers in More Detail
Why Access Modifiers Matter
The C# Assembly and Access Modifiers
Accessing Classes with C#
Once More, with UML
Protected Access: Java vs. C#
Python and OOP
Inheritance in Python
Attribute Binding in Python
In Closing
Chapter 5: File Operations, Multithreading, and Other Wonders of Java
Multithreading: Cores and Threads
Implementing Multithreading in Java
Thread Synchronization
Synchronizing Blocks
On Fairness and Starvation
Locks in Java
Some Essential Thread Methods at a Glance
The Try-Catch Block
Finally: More Fun with Try-Catch Blocks
Throw: Your Custom Error Message
Checked and Unchecked Exceptions
Basic File Operations in Java
Creating Text Files in Java
More Adventures in Java File Operations
Java Dating
More on Dating: Leap Years and Time Travel
Calendars in Java
Customizing Your Calendar
Internationalization and Localization in Java
In Closing
Chapter 6: And Now for Something Completely Different: Advanced Python
Python File Operations
File Attributes in Python
Practical File Access
Directory Operations in Python
File Name Pattern Matching
File Searching with Glob?
Dates in Python
The Majesty of Regular Expressions
Metacharacters
More Merriment with Regular Expressions
Concurrency and Parallelism in Python
Multiprocessing vs. Multithreading
Implementing Multithreading in Python
Implementing Multiprocessing in Python
Iterators, Generators, and Coroutines
Asyncio: The Odd One Out?
The Asynchronous Event Loop
Concurrency in Python: A Recap
Python Lambda Functions
Zipping in Python
More on Zipping
Working with the Other ZIP
In Closing
Chapter 7: Calendars, Culture, and Multithreading in C#
Dates in C#
The System.Globalization Namespace
Working with World Calendars
The CultureInfo Class
The File Class in C#
The FileInfo Class
File vs. FileInfo: Whatâs the Difference?
Garbage Collection in C#
Native vs. Managed Heap
Multithreading in C#
Locks and Attributes in C# Threads
Sleep vs. Yield
Join
Going Asynchronous in C#
In Closing
Chapter 8: Graduation Day: Slightly Larger Programming Projects
The Universal Chatting Simulator for Python
Part One: Setting Up the Project
Part Two: Displaying Highscores
Part Three: The Indomitable Main Loop
Capitalization and Delays
Part Four: Game Over
Thread Racer for C#
Jolly Quiz for C#
A Recipe Book in Java
A Stopwatch in Java
In Closing
Chapter 9: UML Class Diagrams
Visualizing the Object-Oriented Paradigm
The Categories of UML Diagrams
Getting Back to UML: Class Diagrams
Tree-Based Inheritance in UML
Figure 9-2 in Java
Figure 9-2 in C#
Figure 9-2 in Python
A UML Bicycle
A Bicycle in Python
A Personal Computer in UML
Realization and Dependency in UML
Reflexive Association
UML Class Diagrams: The Basic Elements
The UML Use Case
More on Use Cases
Tools for UML
UMLet and UMLetino by UMLet Team
Diagrams.net by Diagrams.net Team
Umbrello by Paul Hensgen and Umbrello UML Modeler Authors
In Closing
Afterword
Index
đ SIMILAR VOLUMES
<b>Publisher's Note: Products purchased from Third Party sellers are not guaranteed by the publisher for quality, authenticity, or access to any online entitlements included with the product.</b><b> <i></i> </b> <b> </b> <b>Learn To Easily Create Robotic, IoT, and Wearable Electronic
<div><b>Learn To Easily Create Robotic, IoT, and Wearable Electronic Gadgets!</b></div><div><br></div><div>Get up-and-running building cutting-edge Edison devices with help from this DIY guide. <i>Programming the Intel Edison: Getting Started with Processing and Python </i>lays out the Edisonâs powe
Create innovative programs and fun games on your tiny yet powerful Raspberry Pi. In this book, electronics guru Simon Monk explains the basics of Raspberry Pi application development, while providing hands-on examples and ready-to-use scripts. See how to set up hardware and software, write and debug