
- 566 pages
- English
- ePUB (mobile friendly)
- Available on iOS & Android
About this book
Anyone Can Code: The Art and Science of Logical Creativity introduces computer programming as a way of problem-solving through logical thinking. It uses the notion of modularization as a central lens through which we can make sense of many software concepts. This book takes the reader through fundamental concepts in programming by illustrating them in three different and distinct languages: C/C++, Python, and Javascript. Key features: Focuses on problem-solving and algorithmic thinking instead of programming functions, syntax, and libraries; Includes engaging examples, including video games and visual effects; Provides exercises and reflective questions. This book gives beginner and intermediate learners a strong understanding of what they are doing so that they can do it better and with any other tool or language that they may end up using later.
Frequently asked questions
- Essential is ideal for learners and professionals who enjoy exploring a wide range of subjects. Access the Essential Library with 800,000+ trusted titles and best-sellers across business, personal growth, and the humanities. Includes unlimited reading time and Standard Read Aloud voice.
- Complete: Perfect for advanced learners and researchers needing full, unrestricted access. Unlock 1.4M+ books across hundreds of subjects, including academic and specialized titles. The Complete Plan also includes advanced features like Premium Read Aloud and Research Assistant.
Please note we cannot support devices running on iOS 13 and Android 7 or earlier. Learn more about using the app.
Information
PART 1
A good programmer is someone who always looks both ways before crossing a one-way street.
Goal
Introduction
- Getting started with programs and programming
- Software development process
- Describe the main phases of a typical software development process
- Define the concept of modularization
Hello, World!
- C:
printf(“Hello, World!”); - C++:
cout << “Hello, World!”; - C#:
Console.WriteLine("Hello, World!"); - Python:
print(“Hello, World!”) - Java:
System.out.println("Hello, World!"); - Javascript:
document.write(“Hello, World!”); - HTML:
<p>Hello, World!</p>
<p>Hello, World!</p>

<p id="demo">?</p>
" " (double quote).<script> demo.innerHTML = “What’s up?”; </script>
<script> and </script>, just like a paragraph was identified with <p> and </p>. The Javascript code itself tells the computer to modify the text (called innerHTML) for the paragraph named demo. Save the file and refresh your browser to see both paragraphs. <script> demo.innerHTML = “What’s up?”; document.write("My name is Ali."); </script> 

<p>Hello, World!</p> <p id="demo">0</p> <input id="userdata"> <button onclick="demo.innerHTML = userdata.value * 2;">Double</ button>
script element has been replaced with two new lines. They add an input box and a button to the web page. The input has an id, so we can refer to it later. We give names to things if we want to refer to them later. Keep that in mind. The button, on the other hand, has an operation defined fo...Table of contents
- Cover
- Half Title
- Title Page
- Copyright Page
- Table of Contents
- List of Sidebars
- List of Tables
- List of Exhibits
- Preface
- Acknowledgments
- Definition of Key Terms
- Abbreviation
- Companion Website
- Part 1 Getting Started
- Part 2 Understanding Programs
- Part 3 Structured Programming
- Part 4 Object-Oriented Programming
- Part 5 More about Objects and Classes
- Part 6 Moving Forward
- Bibliography
- Index