Mastering Swift 3 - Linux

Mastering Swift 3 - Linux

Author: Jon Hoffman

Publisher: Packt Publishing Ltd

ISBN: 9781786460479

Category: Computers

Page: 380

View: 915

Learn to build fast and robust applications on the Linux platform with Swift About This Book Create robust applications by building a strong foundation in the Swift Language Utilize Swift 3 on the embedded Linux platform for IoT and Robotic projects Build more flexible and high-performing applications on desktop, server, and embedded Linux platforms Who This Book Is For This book is for Linux developers who are interested in quickly learning how to use Swift to create exciting applications on Linux platforms. What You Will Learn Install Swift on the Linux platform Explore the power of the Swift language Get to know the proper design techniques Understand Swift's new Core Library Implement popular design patterns with Swift Integrate C libraries with Swift Using Swift on Single-Board Computers Learn how to add concurrency to your application with Grand Central Dispatch Learn how to work with Swift Generics Learn how to use the Protocol-Oriented design paradigm In Detail Swift is a modern, fast, and safe programming language created by Apple. Writing Swift is interactive and fun, the syntax is concise yet expressive, and the code runs lightning-fast. Swift's move to open source has been embraced with open arms and has seen increased adoption in the Linux platform. Our book will introduce you to the Swift language, further delving into all the key concepts you need to create applications for desktop, server, and embedded Linux platforms. We will teach you the best practices to design an application with Swift 3 via design patterns and Protocol-Oriented Programming. Further on, you will learn how to catch and respond to errors within your application. When you have gained a strong knowledge of using Swift in Linux, we'll show you how to build IoT and robotic projects using Swift on single board computers. By the end of the book, you will have a solid understanding of the Swift Language with Linux and will be able to create your own applications with ease. Style and approach This easy-to-follow, code-rich guide is filled with examples that demonstrate how to put the concepts into practice. You'll also get design patterns and best practices to get you writing better applications on the Linux platform.

Mastering Swift 3

Mastering Swift 3

Author: Jon Hoffman

Publisher: Packt Publishing Ltd

ISBN: 9781786468635

Category: Computers

Page: 392

View: 532

Dive into the latest release of the Swift programming language with this advanced Apple development book About This Book Discover the new features and improvements to Swift 3 Get to grips with advanced design patterns and techniques to write smarter, cleaner Swift code Become a more fluent Swift developer and build powerful, impressive iOS and OS X applications. Who This Book Is For This book is for developers who want to dive into the newest version of Swift. If you are a developer that learns best by looking at, and working with code, then this book is for you. A basic understanding of Apple's tools is beneficial but not mandatory. What You Will Learn Dive into the core components of Swift 3.0, including operators, collections, control flow, and functions Create and use classes, structures, and enums Understand object-oriented Swift and see how to tackle inheritance, protocols, and extensions Develop a practical understanding of subscripts, optionals, and closures See how to use the new protocol extension and error handling features of Swift 3.0 Add concurrency to your applications using Grand Central Dispatch In Detail Swift is the definitive language of Apple development today. It's a vital part of any iOS and OS X developer's skillset, helping them to build the most impressive and popular apps on the App Store—the sort of apps that are essential to iPhone and iPad users every day. With version 3.0, the Swift team have added new features to improve the development experience—making it easier to get the results you want and customers expect. Inside, you'll find the key features of Swift 3.0 and quickly learn how to use the newest updates to your development advantage. From Objective-C interoperability to ARC, to closures and concurrency, this advanced Swift guide will develop your expertise and make you more fluent in this vital programming language. We give you in-depth knowledge of some of the most sophisticated elements of Swift development including protocol extensions, error-handling, design patterns, and concurrency, and guide you on how to use and apply them in your own projects. You'll see how even the most challenging design patterns and programming techniques can be used to write cleaner code and to build more performant iOS and OS X applications. By the end of this book, you'll have a handle on effective design patterns and techniques, which means you'll soon be writing better iOS and OS X applications with a new level of sophistication and control. Style and approach Packed with practical examples that show you how to put the concepts you learn into practice quickly, we'll takes you through some of the most advanced and sophisticated elements of the language in a practical and actionable way. You can also download the code to use yourself

Mastering Swift

Mastering Swift

Author: Sufyan bin Uzayr

Publisher: CRC Press

ISBN: 9781000543391

Category: Computers

Page: 350

View: 783

If you want to become an iOS developer, you have made an excellent choice with this book. Swift holds a significant position in the iOS industry because of the long list of features it serves. It is user-friendly, has great community support, and offers a greater extent of customization. As a result, we can observe a sharp increase in the market demand for developing Apple mobile applications, and with that, companies search for smart developers with the right skill set. Mastering Swift introduces Apple’s excellent Swift standard library style and incorporates usage feedback across multiple Swift projects. However, it should be regarded as a living, changeable document and the basis upon which the programming language is implemented. Before going further into the details of the Swift programming language, the book briefly explains the basic information about the language. It is a high-level language created to develop multifaceted iOS applications that cater to diverse needs of different social and business domains. It is meant to develop high-end apps with multiple complexities. But since it is very close to Objective C, it is easy to code and understand. This feature also makes it incredibly friendly to beginners. Moreover, it is equally compatible with the iPhone, the iPad, Apple Watch, MacBook, and Apple TV, and it can be applied to develop equally efficient and scalable apps for them. This book in the Mastering series encircles all the essential aspects of Swift and explores why this programming language is the future for iOS app development. Different from other languages, it requires fewer lines to activate any feature. This paves the way for a shorter development cycle and saves a lot of precious resources. Further, as one of the most reliable iOS programming languages it supports dynamic libraries that indicate executable bits of code that you can link to an application. Because of such support, Swift apps can interoperate with the newest version of the language to make the app irreplaceable. Swift is a language that was not designed but deliberately made open source so as to invite community input, allowing the product to grow and to mature over the years. This could possibly be the most crucial aspect of Swift. As people become more aware of its potential to be used in servers, web frameworks were more willing to support the demand. Owing to its popularity and significance, its adoption rate in Apple’s rivals remains very high. Whether you are a beginner or an advanced learner, if you are planning for iOS app development through Swift, this book can help with the high-domain expertise and experienced resources. Without a doubt, the developers that create native apps are not going to abandon Swift anytime soon. However, it seems like something must evolve for it to keep growing constantly. We believe that Swift is indeed the future for iOS app developers. And if you are convinced and want to start learning the programming language right away, then this book is what you’re looking for. Learn more about our other Mastering titles at: https://www.routledge.com/Mastering-Computer-Science/book-series/MCS

Mastering Swift 3 - Linux

Mastering Swift 3 - Linux

Author: Jon Hoffman

Publisher:

ISBN: 1786461412

Category:

Page: 423

View: 909

Learn to build fast and robust applications on the Linux Platform with SwiftAbout This Book* Create robust applications by building a strong foundation in the Swift Language* Utilize Swift 3 on the embedded Linux platform for IoT and Robotic projects* Build more flexible and high-performing applications on desktop, server, and embedded Linux platformsWho This Book Is ForThis book is for Linux developers who are interested in quickly learning how to use Swift to create exciting applications on Linux platforms.What you will learn* Install Swift on the Linux platform* Explore the power of the Swift language* Get to know the proper design techniques* Understand Swift's new Core Library* Implement popular design patterns with Swift* Integrate C libraries with SwiftIn DetailSwift is a modern, fast, and safe programming language created by Apple. Writing Swift is interactive and fun, the syntax is concise yet expressive, and the code runs lightning-fast. Swift's move to open source has been embraced with open arms and has seen increased adoption in the Linux platform.Our book will introduce you to the Swift language, further delving into all the key concepts you need to create applications for desktop, server, and embedded Linux platforms. We will teach you the best practices to design an application with Swift 3 via design patterns and Protocol-Oriented Programming.Further on, you will learn how to catch and respond to errors within your application. When you have gained a strong knowledge of using Swift in Linux, we'll show you how to build IoT and robotic projects using Swift on single board computers. By the end of the book, you will have a solid understanding of the Swift Language with Linux and will be able to create your own applications with ease.

Mastering Swift 5.3

Mastering Swift 5.3

Author: Jon Hoffman

Publisher: Packt Publishing Ltd

ISBN: 9781800569973

Category: Computers

Page: 418

View: 736

A comprehensive guide for programming enthusiasts who wish to gain a firm command of the fundamentals and advanced Swift concepts Key FeaturesSixth edition of this bestselling book, improved and updated to cover the latest version of the Swift 5.3 programming languageGet to grips with popular and modern design techniques to write easy-to-manage Swift codeUse core Swift features such as concurrency, generics, and copy-on-write in your codeBook Description Over the years, Mastering Swift has proven itself among developers as a popular choice for an in-depth and practical guide to the Swift programming language. This sixth edition comes with the latest features, an overall revision to align with Swift 5.3, and two new chapters on building swift from source and advanced operators. From the basics of the language to popular features such as concurrency, generics, and memory management, this in-depth guide will help you develop your expertise and mastery of the language. As you progress, you will gain practical insights into some of the most sophisticated elements in Swift development, including protocol extensions, error handling, and closures. The book will also show you how to use and apply them in your own projects. In later chapters, you will understand how to use the power of protocol-oriented programming to write flexible and easier-to-manage code in Swift. Finally, you will learn how to add the copy-on-write feature to your custom value types, along with understanding how to avoid memory management issues caused by strong reference cycles. By the end of this Swift book, you will have mastered the Swift 5.3 language and developed the skills you need to effectively use its features to build robust applications. What you will learnUnderstand core Swift components, such as operators, collections, control flows, and functionsIdentify how and when to use classes, structures, and enumerationsUse protocol-oriented design with extensions to write easy-to-manage codeLeverage design patterns with Swift to solve commonly occurring design problemsApply copy-on-write for your custom value types to improve performanceAdd concurrency to your applications using Grand Central Dispatch and operation queuesImplement generics to write flexible and reusable codeWho this book is for This book is for beginners with a basic understanding of programming and experienced developers looking to learn Swift programming. Familiarity with Apple's tools will be beneficial but not mandatory. All examples should also work on the Linux and Windows platforms

Mastering Swift 5

Mastering Swift 5

Author: Jon Hoffman

Publisher: Packt Publishing Ltd

ISBN: 9781789132731

Category: Computers

Page: 370

View: 387

Harness the power of the latest edition with this in-depth and comprehensive guide to the Swift language Key FeaturesFifth edition of this bestselling book, improved and updated to cover the latest version of the Swift 5 programming languageGet to grips with popular and modern design techniques to write easy-to-manage Swift codeLearn how to use core Swift features such as concurrency, generics, and copy-on-write in your codeBook Description Over the years, the Mastering Swift book has established itself amongst developers as a popular choice as an in-depth and practical guide to the Swift programming language. The latest edition is fully updated and revised to cover the new version: Swift 5. Inside this book, you'll find the key features of Swift 5 easily explained with complete sets of examples. From the basics of the language to popular features such as concurrency, generics, and memory management, this definitive guide will help you develop your expertise and mastery of the Swift language. Mastering Swift 5, Fifth Edition will give you an in-depth knowledge of some of the most sophisticated elements in Swift development, including protocol extensions, error handling, and closures. It will guide you on how to use and apply them in your own projects. Later, you'll see how to leverage the power of protocol-oriented programming to write flexible and easier-to-manage code. You will also see how to add the copy-on-write feature to your custom value types and how to avoid memory management issues caused by strong reference cycles. What you will learnUnderstand core Swift components, including operators, collections, control flows, and functionsLearn how and when to use classes, structures, and enumerationsUnderstand how to use protocol-oriented design with extensions to write easier-to-manage codeUse design patterns with Swift, to solve commonly occurring design problemsImplement copy-on-write for you custom value types to improve performanceAdd concurrency to your applications using Grand Central Dispatch and Operation QueuesImplement generics to write flexible and reusable codeWho this book is for This book is for developers who want to delve into the newest version of Swift. If you are a developer and learn best by looking at and working with code, then this book is for you. A basic understanding of Apple's tools would be beneficial but not mandatory. All examples should work on the Linux platform as well.

Mastering Linux Administration

Mastering Linux Administration

Author: Alexandru Calcatinge

Publisher: Packt Publishing Ltd

ISBN: 9781789953602

Category: Computers

Page: 772

View: 732

Develop advanced skills for working with Linux systems on-premises and in the cloud Key FeaturesBecome proficient in everyday Linux administration tasks by mastering the Linux command line and using automationWork with the Linux filesystem, packages, users, processes, and daemonsDeploy Linux to the cloud with AWS, Azure, and KubernetesBook Description Linux plays a significant role in modern data center management and provides great versatility in deploying and managing your workloads on-premises and in the cloud. This book covers the important topics you need to know about for your everyday Linux administration tasks. The book starts by helping you understand the Linux command line and how to work with files, packages, and filesystems. You'll then begin administering network services and hardening security, and learn about cloud computing, containers, and orchestration. Once you've learned how to work with the command line, you'll explore the essential Linux commands for managing users, processes, and daemons and discover how to secure your Linux environment using application security frameworks and firewall managers. As you advance through the chapters, you'll work with containers, hypervisors, virtual machines, Ansible, and Kubernetes. You'll also learn how to deploy Linux to the cloud using AWS and Azure. By the end of this Linux book, you'll be well-versed with Linux and have mastered everyday administrative tasks using workflows spanning from on-premises to the cloud. If you also find yourself adopting DevOps practices in the process, we'll consider our mission accomplished. What you will learnUnderstand how Linux works and learn basic to advanced Linux administration skillsExplore the most widely used commands for managing the Linux filesystem, network, security, and moreGet to grips with different networking and messaging protocolsFind out how Linux security works and how to configure SELinux, AppArmor, and Linux iptablesWork with virtual machines and containers and understand container orchestration with KubernetesWork with containerized workflows using Docker and KubernetesAutomate your configuration management workloads with AnsibleWho this book is for If you are a Linux administrator who wants to understand the fundamentals and as well as modern concepts of Linux system administration, this book is for you. Windows System Administrators looking to extend their knowledge to the Linux OS will also benefit from this book.

Mastering CentOS 7 Linux Server

Mastering CentOS 7 Linux Server

Author: Mohamed Alibi

Publisher: Packt Publishing Ltd

ISBN: 9781785285103

Category: Computers

Page: 298

View: 448

Configure, manage, and secure a CentOS 7 Linux server to serve a variety of services provided in a sustainable computer's infrastructure. About This Book Learn how to efficiently set up and manage a Linux server using one of the best suited technologies for this purpose, CentOS 7 Personalize your Linux server and familiarize yourself with the latest tools and utilities setup provided by the new CentOS distribution Follow a step-by-step tutorial through the configuration of the requested services with the capacity to personalize them as per your needs Who This Book Is For If you are a Linux system administrator with an intermediate administration level, this is your opportunity to master the brand new distribution of CentOS. If you wish to possess a fully sustainable Linux server, with all its new tools and tweaks, that serves a variety of services to your users and customers, this book is ideal for you. It is your ticket to easily adapt to all the changes made in the latest shift. What You Will Learn Manage CentOS 7 users, groups, and root access privileges Enhance the server's security through its firewall and prevent the most common attacks from penetrating or disabling the server Explore and implement the common, useful services that a CentOS 7 server can provide Monitor your server infrastructure for system or hardware issues Create and configure a virtual machine using virtualization technologies Implement a cloud computing solution on a single node system Get an introduction to the configuration management tools and their usage Discover the importance of the tools that provide remote connection, server service security, and system and process monitoring tools In Detail Most server infrastructures are equipped with at least one Linux server that provides many essential services, both for a user's demands and for the infrastructure itself. Setting up a sustainable Linux server is one of the most demanding tasks for a system administrator to perform. However, learning multiple, new technologies to meet all of their needs is time-consuming. CentOS 7 is the brand new version of the CentOS Linux system under the RPM (Red Hat) family. It is one of the most widely-used operating systems, being the choice of many organizations across the world. With the help of this book, you will explore the best practices and administration tools of CentOS 7 Linux server along with implementing some of the most common Linux services. We start by explaining the initial steps you need to carry out after installing CentOS 7 by briefly explaining the concepts related to users, groups, and right management, along with some basic system security measures. Next, you will be introduced to the most commonly used services and shown in detail how to implement and deploy them so they can be used by internal or external users. Soon enough, you will be shown how to monitor the server. We will then move on to master the virtualization and cloud computing techniques. Finally, the book wraps up by explaining configuration management and some security tweaks. All these topics and more are covered in this comprehensive guide, which briefly demonstrates the latest changes to all of the services and tools with the recent shift from CentOS 6 to CentOS 7. Style and approach This is a detailed and in-depth guide to help you administrate CentOS 7 for the usage of your server's infrastructure and also for personal network security. Each section shows a list of tools and utilities that are useful to perform the required task, in an easy to understand manner.

Swift: Developing iOS Applications

Swift: Developing iOS Applications

Author: Andrew J Wagner

Publisher: Packt Publishing Ltd

ISBN: 9781787122666

Category: Computers

Page: 1027

View: 662

Unleash the power of Swift and discover the skills required to build incredible robust iOS applications About This Book Write expressive, understandable, and maintainable Swift 2 code with this hands-on course Unveil the complex underpinnings of Swift to turn your app ideas into reality Specialize in developing real iOS apps, and 2D and 3D video games using Swift and Cocoapods Dive deep into protocol extensions, learn new error handling model and use featured Swift design patterns to write more efficient code Who This Book Is For This course would be for app developers who are new to developing for iOS or OSX and are trying to get grips with Swift for the first time. What You Will Learn From a solid understanding of the Swift 2 language Get to know the practical aspects of how a computer program actually works Understand the paradigms used by Apple's frameworks, so you are not intimidated by them Create a server in Swift to deliver JSON data to an iOS app Take advantage of Cocoapods to use third-party libraries Build games with SpriteKit and SceneKit Develop an app running on the cloud to act as an API server for your client's apps Dive into the core components of Swift 2 including operators, collections, control flow, and functions Create and use classes, structures, and enums including object-oriented topics such as inheritance, protocols, and extensions Develop a practical understanding of subscripts, optionals, and closures Master Objective-C interoperability with mix and match Access network resources using Swift Implement various standard design patterns in the Swift language In Detail The Swift––Developing iOS Applications course will take you on a journey to become an efficient iOS and OS X developer, with the latest trending topic in town. Right from the basics to the advanced level topics, this course would cover everything in detail. We'll embark our journey by dividing the learning path into four modules. Each of these modules are a mini course in their own right; and as you complete each one, you'll gain key skills and be ready for the material in the next module. The first module is like a step-by-step guide to programming in Swift 2. Each topic is separated into compressible sections that are full of practical examples and easy-to-understand explanations. Each section builds on the previous topics, so you can develop a proficient and comprehensive understanding of app development in Swift 2. By the end of this module, you'll have a basic understanding of Swift 2 and its functionalities. The second module will be the an easy-to-follow guide filled with tutorials to show you how to build real-world apps. The difficulty and complexity level increases chapter by chapter. Each chapter is dedicated to build a new app, beginning from a basic and unstyled app through to a full 3D game. The last two chapters show you how to build a complete client-server e-commerce app right from scratch. You'll be able to build well-designed apps, effectively use AutoLayout, develop videogames, and build server apps. The third and the last module of our course will take an example-based approach where each concept covered is supported by example code to not only give you a good understanding of the concept, but also to demonstrate how to properly implement it. Style and approach This course includes all the resources that will help you jump into the app development .This course covers all the important aspects Swift application development and is divided into individual modules so that you develop your skill after the completion of a module and get ready for the next. Through this comprehensive course, you'll learn how to use Swift programming with hands-on examples from scratch to finish!

Hands-On Full-Stack Development with Swift

Hands-On Full-Stack Development with Swift

Author: Ankur Patel

Publisher: Packt Publishing Ltd

ISBN: 9781788626279

Category: Computers

Page: 356

View: 999

Build full-stack shopping list applications from scratch for web and mobile platforms using Xcode, Vapor, and Swift Key Features Build, package, and deploy an end-to-end app solution for mobile and web with Swift 4 Increase developer productivity by creating reusable client and server components Develop backend services for your apps and websites using Vapor framework Book Description Making Swift an open-source language enabled it to share code between a native app and a server. Building a scalable and secure server backend opens up new possibilities, such as building an entire application written in one language—Swift. This book gives you a detailed walk-through of tasks such as developing a native shopping list app with Swift and creating a full-stack backend using Vapor (which serves as an API server for the mobile app). You'll also discover how to build a web server to support dynamic web pages in browsers, thereby creating a rich application experience. You’ll begin by planning and then building a native iOS app using Swift. Then, you'll get to grips with building web pages and creating web views of your native app using Vapor. To put things into perspective, you'll learn how to build an entire full-stack web application and an API server for your native mobile app, followed by learning how to deploy the app to the cloud, and add registration and authentication to it. Once you get acquainted with creating applications, you'll build a tvOS version of the shopping list app and explore how easy is it to create an app for a different platform with maximum code shareability. Towards the end, you’ll also learn how to create an entire app for different platforms in Swift, thus enhancing your productivity. What you will learn Get accustomed to server-side programming as well as the Vapor framework Learn how to build a RESTful API Make network requests from your app and handle error states when a network request fails Deploy your app to Heroku using the CLI command Write a test for the Vapor backend Create a tvOS version of your shopping list app and explore code-sharing with an iOS platform Add registration and authentication so that users can have their own shopping lists Who this book is for This book is for developers who are looking to build full-stack web and native mobile applications using Swift. An understanding of HTML, CSS, and JavaScript would be beneficial when building server-rendered pages with Vapor.

Mastering OpenStack

Mastering OpenStack

Author: Omar Khedher

Publisher: Packt Publishing Ltd

ISBN: 9781784397210

Category: Computers

Page: 400

View: 423

This comprehensive guide will help you to choose the right practical option and make strategic decisions about the OpenStack cloud environment to fit your infrastructure in production. At the start, this book will explain the OpenStack core architecture. You will soon be shown how to create your own OpenStack private cloud. Next, you will move on to cover the key security layer and network troubleshooting skills, along with some advanced networking features. Finally, you will gain experience of centralizing and logging OpenStack. The book will show you how to carry out performance tuning based on OpenStack service logs. By the end of this book, you will be ready to take steps to deploy and manage an OpenStack cloud with the latest open source technologies.

Mastering iOS 12 Programming

Mastering iOS 12 Programming

Author: Donny Wals

Publisher: Packt Publishing Ltd

ISBN: 9781789132014

Category: Computers

Page: 750

View: 923

Become a professional iOS developer with the most in-depth and advanced guide to Swift, Xcode 10, ARKit, and Core ML Key FeaturesExplore the extensive world of iOS development through practical examplesGain detailed insights into core iOS programming concepts such as app extensions and performanceExtend your iOS apps by adding augmented reality and machine learning capabilitiesBook Description The iOS development environment has significantly matured, and with Apple users spending more money in the App Store, there are plenty of development opportunities for professional iOS developers. However, the journey to mastering iOS development and the new features of iOS 12 is not straightforward. This book will help you make that transition smoothly and easily. With the help of Swift 4.2, you’ll not only learn how to program for iOS 12, but also how to write efficient, readable, and maintainable Swift code that maintains industry best practices. Mastering iOS 12 Programming will help you build real-world applications and reflect the real-world development flow. You will also find a mix of thorough background information and practical examples, teaching you how to start implementing your newly gained knowledge. By the end of this book, you will have got to grips with building iOS applications that harness advanced techniques and make best use of the latest and greatest features available in iOS 12. What you will learnBuild a professional iOS application using Xcode 10 and Swift 4.2Use AutoLayout to create complex layouts that look great on every deviceDelve into advanced animations with UIViewPropertyAnimator and UIKit DynamicsEnhance your app by using instruments and building your own profiling toolsIntegrate iMessage, Siri, and more in your app through app extensionsTrain and use machine learning models with Core ML 2 and Create MLCreate engaging augmented reality experiences with ARKit 2Who this book is for If you’re a developer with some experience in iOS programming and want to enhance your skills by unlocking the full potential of the latest iOS version with Swift to build great applications, this book is for you.