Название: Kotlin from Scratch: A Project-Based Introduction for the Intrepid Programmer Автор: Faisal Islam Издательство: No Starch Press Год: 2025 Страниц: 432 Язык: английский Формат: epub Размер: 17.7 MB
Learn Kotlin Through 37 Projects.
Kotlin isn’t just for building Android apps. As you’ll learn in Kotlin from Scratch, it’s also a general programming language for crafting both elegant and efficient code.
With the aid of 37 hands-on projects, you’ll move quickly through the language basics while building your problem-solving skills, even tackling advanced concepts like fractals, dynamic systems, and nature-inspired algorithms. You’ll explore the way Kotlin handles variables, control structures, functions, classes, and data structures, and you’ll learn to create visualizations using Kotlin and the JavaFX graphics library. Then you’ll build increasingly sophisticated apps to practice what you’ve learned while tackling challenges from math and science to algorithms and optimization.
This book will teach you to code from scratch using Kotlin, one of the most exciting programming languages used today. Along the way, you’ll learn to think like a problem solver and programmer. Through 37 hands-on projects, you’ll develop applications that can tackle a wide range of fun and challenging problems, from basic math and science to advanced applications in algorithms and optimization.
You’ll learn the most from this book if you have a curious mind. You embrace thinking systematically and are not hesitant to ask why things behave the way they do, challenge commonly held assumptions, and explore unique perspectives. This book will help you use those skills to uncover the inherent complexities of real-world problems and build simplified mathematical models to explore what-if scenarios. Kotlin, a simple, elegant, and powerful general-purpose language, is an excellent tool for these purposes.
Prepare for a journey where coding isn’t just a skill but a way to unlock your imagination and problem-solving capabilities. With code, you can tackle problems that would be intractable without a computer, conduct in-depth analysis, and generate fascinating and useful insights.
Kotlin runs on the same platform as Java, the Java Virtual Machine, and is fully compatible with Java. However, Kotlin is much more concise and expressive, with its own unique features. As a relatively new programming language, it has had the benefit of 20/20 hindsight, meaning it incorporates some of the best features from other popular languages that predate it. It provides many ways to reuse code between multiple platforms, and its clean language design and powerful features offer a pleasant developer experience. Kotlin is widely used for mobile applications (especially Android apps), but you can also use it to develop full-stack web and cross-platform applications that run on Windows, Mac, or Linux devices.
As you progress through the book, you will:
Simulate physical systems, like the intricate dance of binary stars Implement the classic Hill cipher for encryption and decryption Generate beautiful fractals with recursive algorithms Program classic computer science algorithms for sorting and searching Solve the infamous Berlin52 traveling salesman problem
Expand your language repertoire and improve your computational thinking with Kotlin from Scratch.
Introduction PART I: PROGRAMMING FUNDAMENTALS Chapter 1: Kotlin Basics Chapter 2: Arrays, Collections, and Classes Chapter 3: Visualizing with JavaFX PART II: APPLICATIONS IN MATH AND SCIENCE Chapter 4: Solving Mathematical Problems with Code Chapter 5: Modeling and Simulation PART III: RECURSION, SORTING, AND SEARCHING Chapter 6: Recursive Functions and Fractals Chapter 7: Sorting and Searching PART IV: OPTIMIZATION WITH NATURE-INSPIRED ALGORITHMS Chapter 8: The Genetic Algorithm Chapter 9: Agent-Based Algorithms Afterword Appendix Index
Скачать Kotlin from Scratch: A Project-Based Introduction for the Intrepid Programmer