Objective-C Memory Management Essentials


Book Description

If you are new to Objective-C or a veteran in iOS application development, this is the book for you. This book will ensure that you can actively learn the methods and concepts in relation to memory management in a more engaging way. Basic knowledge of iOS development is required for this book.




Boost.Asio C++ Network Programming Cookbook


Book Description

Over 25 hands-on recipes to create robust and highly-efficient cross-platform distributed applications with the Boost.Asio library About This Book Build highly efficient distributed applications with ease Enhance your cross-platform network programming skills with one of the most reputable C++ libraries Find solutions to real-world problems related to network programming with ready-to-use recipes using this detailed and practical handbook Who This Book Is For If you want to enhance your C++ network programming skills using the Boost.Asio library and understand the theory behind development of distributed applications, this book is just what you need. The prerequisite for this book is experience with general C++11. To get the most from the book and comprehend advanced topics, you will need some background experience in multithreading. What You Will Learn Boost your working knowledge of one of the most reputable C++ networking libraries—Boost.Asio Familiarize yourself with the basics of TCP and UDP protocols Create scalable and highly-efficient client and server applications Understand the theory behind development of distributed applications Increase the security of your distributed applications by adding SSL support Implement a HTTP client easily Use iostreams, scatter-gather buffers, and timers In Detail Starting with recipes demonstrating the execution of basic Boost.Asio operations, the book goes on to provide ready-to-use implementations of client and server applications from simple synchronous ones to powerful multithreaded scalable solutions. Finally, you are presented with advanced topics such as implementing a chat application, implementing an HTTP client, and adding SSL support. All the samples presented in the book are ready to be used in real projects just out of the box. As well as excellent practical examples, the book also includes extended supportive theoretical material on distributed application design and construction. Style and approach This book is a set of recipes, each containing the statement and description of a particular practical problem followed by code sample providing the solution to the problem and detailed step-by-step explanation. Recipes are grouped by topic into chapters and ordered by the level of complexity from basic to advanced.




Learning D


Book Description

Leverage the modern convenience and modelling power of the D programming language to develop software with native efficiency About This Book Acquire the skills to understand the fundamentals of D through its support for imperative and object-oriented programming Take advantage of D's powerful compile-time features, templates and ranges to apply generative, generic, and functional style A systematic guide that will help you become familiar with the concepts in D with the help of simple and easy-to-understand examples Who This Book Is For This book is intended for those with some background in a C-family language who want to learn how to apply their knowledge and experience to D. Perhaps you're a college student looking to use D for hobby projects, or a career programmer interested in expanding your skillset. This book will help you get up to speed with the language and avoid common pitfalls that arise when translating C-family experience to D. What You Will Learn Compile programs with DMD and manage projects with DUB Work efficiently by binding your D programs with new and existing C libraries Generate code at compile-time to enhance runtime performance Implement complex templates for more powerful generic code Write idiomatic D with range-based functional pipelines Use the DUB repository to find a link with a variety of D libraries Implement a web-app in D from the ground up In Detail D is a modern programming language that is both powerful and efficient. It combines multiple paradigms in a way that opens up a whole new world of software design. It is used to develop both desktop and web applications, with future targets including mobile, and is available on multiple platforms. It is familiar to anyone with some experience in one or more of the C-family languages. However, hidden in the similarities are several differences that can be surprising when trying to apply common idioms from other languages. When learning D on your own, this can make it more time-consuming to master. In order to make the most of the language and become an idiomatic D programmer, it's necessary to learn how to think in D. This book familiarizes you with D from the ground up, with a heavy focus on helping you to avoid surprises so that you can take your D knowledge to the next level more quickly and painlessly. Your journey begins with a taste of the language and the basics of compiling D programs with DMD, the reference D compiler developed by Digital Mars, and DUB, a community-developed build utility and package manager. You then set out on an exploration of major language features. This begins with the fundamentals of D, including built-in types, conditionals, loops and all of the basic building-blocks of a D program, followed by an examination of D's object-oriented programming support. You'll learn how these features differ from languages you may already be familiar with. Next up are D's compile-time features, such as Compile-Time Function Evaluation and conditional compilation, then generic programming with templates. After that, you'll learn the more advanced features of ranges and functional pipeline programming. To enhance your D experience, you are next taken on a tour of the D ecosystem and learn how to make D interact with C. Finally, you get a look at D web development using the vibe.d project and the book closes with some handy advice on where to go next. Style and approach A friendly guide to the D programming language and its ecosystem that walks programmers through all they need to know for a painless experience in learning D.




iOS 4 Developer's Cookbook, The: Core Concepts and Essential Recipes for iOS Programmers


Book Description

Want to get started building applications for iPhone or iPad with Apple's newest iOS 4 development tools? Erica Sadun's The iOS 4 Developer's Cookbook brings together all the expert guidance and proven code you'll need. Completely updated through iOS 4.3, it covers the tools (Xcode 4 and Interface Builder), the language (Objective-C 2.0), and all elements common to typical iOS apps. Sadun presents single-task recipes for common iOS development tasks, including designing and organizing effective user interfaces, responding to users, supporting gestures and multitouch, working with images, accessing local data with Core Data, managing table views, and connecting to the Internet. You get cut-and-paste convenience: freely reuse any of her source code in your own applications and tweak as needed--everything's fully documented to make it easy. Each chapter groups related tasks together, so you can jump straight to your solution, without having to identify the right class or framework first. You'll find everything you need to jumpstart any iOS 4 project--and create high-value apps fast!




Learn Mac OS X Snow Leopard


Book Description

You're smart and savvy, but also busy. This comprehensive guide to Apple's Mac OS X 10.6, Snow Leopard, gives you everything you need to know to live a happy, productive Mac life. Learn Mac OS X Snow Leopard will have you up and connected lickity–split. With a minimum of overhead and a maximum of useful information, you'll cover a lot of ground in the time it takes other books to get you plugged in. If this isn't your first experience with Mac OS X, skip right to the "What's New in Snow Leopard" sections. You may also find yourself using this book as a quick refresher course or a way to learn new Mac skills you've never tried before.




IPad IOS 5 Development Essentials


Book Description

This iOS 5 edtion of iPad Development Essentials contains 58 chapters of in-depth information on the development of apps for the iPad fully updated for use with the iOS 5 SDK. The aim of this book is to teach you the skills necessary to build your own apps for the iPad. Beginning with the basics, this book provides an overview of the iPad hardware and the architecture of iOS 5. An introduction to programming in Objective-C is provided followed by an in-depth look at the design of iPad applications and user interfaces. More advanced topics such as file handling, database management, graphics drawing and animation are also covered, as are touch screen handling, gesture recognition, multitasking, iAds integration, location management, local notifications, maps, split views, camera access and video playback support. New iOS 5 specific features are also covered in detail including page view controller implementation, the UIDocument class, iCloud based storage, Storyboard user interface design, automatic reference counting, Twitter integration and image filtering with Core Image. iPad iOS 5 Development Essentials takes a modular approach to the subject of iPad application development with each chapter covering a self contained topic area. This makes the book both an easy to follow learning aid and an excellent reference resource.




IPhone IOS 5 Development Essentials


Book Description

Now updated with five new chapters dedicated to Xcode Storyboards, the aim of iPhone iOS 5 Development Essentials is to teach you the skills necessary to build your own applications for the iPhone. Beginning with the basics, this book provides an overview of the iPhone hardware and the architecture of iOS 5. An introduction to programming in Objective-C is provided followed by an in-depth look at the design of iPhone applications and user interfaces. More advanced topics such as user interface layout and resizing, file handling, database management, graphics drawing and animation are also covered, as are touch screen handling, gesture recognition, multitasking, iAds integration, location and map management, camera access and video playback support. New iOS 5 specific features are also covered in detail including page view controller implementation, the UIDocument class, iCloud based storage, Storyboard user interface design, automatic reference counting, Twitter integration and image filtering with Core Image. iPhone iOS 5 Development Essentials takes a modular approach to the subject of iPhone application development with each chapter covering a self contained topic area. This makes the book both an easy to follow learning aid and an excellent reference resource.




Learning the iOS 4 SDK for JavaScript Programmers


Book Description

Is it possible for JavaScript programmers to learn Apple's iOS 4 SDK and live to tell the tale? Technology guru Danny Goodman did, and with this book he leaves a well-marked trail for you to follow. An authority on JavaScript since its inception, Goodman understands the challenges you might face in creating native iOS apps with this SDK, and introduces Xcode, Objective-C, and Cocoa Touch in a context you'll readily understand. Why bother with the SDK when you can simply build web apps for Apple's iOS devices? Web apps can't access an iPhone's music library, camera, or iOS system software for maps, audio, and more. Nor can you sell web apps in the App Store. If you want to take full advantage of the iPhone and iPad, iOS 4 SDK is your tool -- and this is your book. Includes full coverage of iOS SDK 4.2. Learn the distinction between web app and iOS native app programming Create a workbench app to test code snippets throughout the learning process Get a structural view of an iOS app, and compare the process of building objects in Objective-C versus JavaScipt Discover how your code launches iOS apps and makes them user-ready Learn about iOS memory management details that are different from JavaScript, including pointers and data types Use Objective-C and Cocoa Touch to implement common JavaScript tasks




Android High Performance Programming


Book Description

Build fast and efficient Android apps that run as reliably as clockwork in a multi-device world About This Book Wide coverage of various topics that help in developing optimal applications Explore the concepts of Advanced Native Coding in depth A must-have for professional-standard Android developers for whom performance failures and the sloppy use of resources are simply unacceptable Who This Book Is For This book is aimed at developers with an advanced knowledge of Android and who want to test their skills and learn new techniques to increase the performance of their applications. We assume they are comfortable working with the entire Android SDK, and have been doing it for a few years. They need to be familiar with frameworks such as NDK to use native code, which is crucial for app performance What You Will Learn Create Android applications that squeeze the most from the limited resource capacity of devices Swap code that isn't performing Efficient memory management by identifying problems such as leaks Reap the benefits of multithreaded and asynchronous programming Maximize the security and encryption mechanisms natively provided by Android Perform efficient network operations and techniques to retrieve data from servers Master the NDK to write native code that can perform faster operations In Detail Performant applications are one of the key drivers of success in the mobile world. Users may abandon an app if it runs slowly. Learning how to build applications that balance speed and performance with functionality and UX can be a challenge; however, it's now more important than ever to get that balance right. Android High Performance will start you thinking about how to wring the most from any hardware your app is installed on, so you can increase your reach and engagement. The book begins by providing an introduction to state–of-the-art Android techniques and the importance of performance in an Android application. Then, we will explain the Android SDK tools regularly used to debug and profile Android applications. We will also learn about some advanced topics such as building layouts, multithreading, networking, and security. Battery life is one of the biggest bottlenecks in applications; and this book will show typical examples of code that exhausts battery life, how to prevent this, and how to measure battery consumption from an application in every kind of situation to ensure your apps don't drain more than they should. This book explains techniques for building optimized and efficient systems that do not drain the battery, cause memory leaks, or slow down with time. Style and approach The book follows a tutorial-based approach to take the reader from the basic fundamentals of debugging to advanced performance-improvement concepts.




Objective-C Pocket Reference


Book Description

Objective-C is an exciting and dynamic approach to C-based object-oriented programming; it's the approach adopted by Apple as the foundation for programming under Mac OS X, a Unix-based operating system gaining wide acceptance among programmers and other technologists. Objective-C is easy to learn and has a simple elegance that is a welcome breath of fresh air after the abstruse and confusing C++. To help you master the fundamentals of this language, you'll want to keep the Objective-C Pocket Reference close at hand. This small book contains a wealth of valuable information to speed you over the learning curve.In this pocket reference, author Andrew Duncan provides a quick and concise introduction to Objective-C for the experienced programmer. In addition to covering the essentials of Objective-C syntax, Andrew also covers important faces of the language such as memory management, the Objective-C runtime, dynamic loading, distributed objects, and exception handling.O'Reilly's Pocket References have become a favorite among programmers everywhere. By providing important details in a succinct, well-organized format, these handy books deliver just what you need to complete the task at hand. When you've reached a sticking point in your work and need to get to a solution quickly, the new Objective-C Pocket Reference is the book you'll want to have.