ISBN-13: 9781484241813 / Angielski / Miękka / 2018 / 371 str.
Get the most out of Swift 4 with this carefully compiled collection of useful hand-picked code snippets, all tried and tested, that solve everyday coding problems. This book is designed in the Apress easy-to-use recipe format, with step-by-step instructions, and a no-fuss approach. Each "recipe" consists of a short explanation of the solution, and the recipe (code snippet) itself, with abundant-at times, playful-comments within the code. If you're looking for a specific solution for a specific problem when you're developing with the Swift 4 programming language, all you have to do is look it up, without having to go through paragraphs of text.The book covers a wide array of topics, all neatly organized according to the language's own core elements and building blocks: Conditionals, Loops, Functions, Classes, Closures, Strings, Arrays, Sets, Dictionaries, Numbers, Dates, Exceptions. Plus, some more advanced recipes including, but not limited to: Files, System Programming, Web and Algorithms.There is also a brief introduction where the reader can learn how to run a Swift program, or use Swift as a scripting language. Finally, there is also a glossary, at the end of the book, where one can find concise definitions of commonly-used programming terms, used throughout the book. What You'll Learn Create if-switch statements, ternary operator, and nil-coalescingWork with numbers, conversions, mathematical functionsAccess the command line and retrieving system info Who This Book Is For Mac and iOS developers either looking for a quick problem-solution manual to get started or in search of a quick reference for everyday problems in a dictionary-like fashion.