Techniki programowania

65
Loading...
EBOOK

Asynchronous Android Programming. Unlock the power of multi-core mobile devices to build responsive and reactive Android applications - Second Edition

Helder Vasconcelos, Steve Liles

Asynchronous programming has acquired immense importance in Android programming, especially when we want to make use of the number of independent processing units (cores) available on the most recent Android devices. With this guide in your hands you’ll be able to bring the power of Asynchronous programming to your own projects, and make your Android apps more powerful than ever before!To start with, we will discuss the details of the Android Process model and the Java Low Level Concurrent Framework, delivered by Android SDK. We will also guide you through the high-level Android-specific constructs available on the SDK: Handler, AsyncTask, and Loader. Next, we will discuss the creation of IntentServices, Bound Services and External Services, which can run in the background even when the user is not interacting with it. You will also discover AlarmManager and JobScheduler APIs, which are used to schedule and defer work without sacrificing the battery life. In a more advanced phase, you will create background tasks that are able to execute CPU-intensive tasks in a native code-making use of the Android NDK. You will be then guided through the process of interacting with remote services asynchronously using the HTTP protocol or Google GCM Platform. Using the EventBus library, we will also show how to use the Publish-Subscribe software pattern to simplify communication between the different Android application components by decoupling the event producer from event consumer.Finally, we will introduce RxJava, a popular asynchronous Java framework used to compose work in a concise and reactive way. Asynchronous Android will help you to build well-behaved applications with smooth responsive user interfaces that delight the users with speedy results and data that’s always fresh.

66
Loading...
EBOOK

Asynchronous Programming in Python. Apply asyncio in Python to build scalable, high-performance apps across multiple scenarios

Nicolas Bohorquez

Asynchronous programming is one of the most effective but often misunderstood techniques for building fast, scalable, and responsive systems in Python. While it can significantly improve performance, efficiency, and sustainability, using async without a clear understanding of its trade-offs can lead to fragile designs and hard-to-debug issues.This book offers a structured approach to applying asynchronous programming in Python. It begins with a conceptual framework to help you distinguish between synchronous and asynchronous execution models, and shows how async relates to other concurrency strategies such as multithreading and multiprocessing. From there, you will explore the core tools available for building async applications in Python.You will also learn how to measure the impact of async programming in practical scenarios, profile and debug asynchronous code, and evaluate performance improvements using real-world metrics. The final chapters focus on applying async techniques to common cloud-based systems, such as web frameworks, database interactions, and data-pipelines tools.Designed for developers looking to apply async programming with confidence, this book blends real-world examples with core concepts to help you write efficient, maintainable Python code.

67
Loading...
EBOOK

Augmented Reality using Appcelerator Titanium Starter. Learn to create Augmented Reality applications in no time using the Appcelerator Titanium Framework with this book and

Trevor Ward

Titanium Mobile has quickly become the platform of choice for many mobile developers and is growing and changing at a rapid rate. From the implementation of CommonJS, Cloud Services, MVC design patterns and more, the last year in Titanium development has been a roller coaster of change for the better. Augmented Reality is a hot area for mobile applications and this book along with the augmentedTi open source application will give a great start to all augmented applications. This book will show you how to build an Augmented Reality application, which is clean, efficient and usable. It shows how to hide the processing from the user and build a display which updates and rotates smoothly.Mobile devices have got more powerful, but they still have limitations. Augmented Reality applications test these devices to breaking point and without the correct coding techniques make the applications unresponsive and cumbersome.This book gives a solution, which will enable you to build an effective application, and is accompanied by a complete working application and source code. It's essential for anybody who is creating a multiple points of interest augmented reality application. It shows how to build this type of application efficiently and takes into consideration the devices limitations and processing capabilities.

68
Loading...
EBOOK

Automated Code Refactoring and Modernization with OpenRewrite. Build reusable recipes for scalable migrations, technical debt reduction, and code transformation

Ansgar Schulte

Automate repetitive refactoring and make large-scale code changes consistent and scalable with OpenRewrite. This book shows you how to use existing recipes and create your own transformations, helping you modernize codebases while significantly reducing the time and errors associated with manual changes.You’ll begin with lossless semantic trees (LSTs), recipes, visitors, and styles to understand how OpenRewrite represents and transforms source code. You’ll then learn to find, configure, compose, and run recipes, add recipe sources, and integrate transformations with your build pipeline.Next, you’ll create declarative recipes and Refaster templates before progressing to imperative recipes. You’ll work with visitors, cursors, shared data, non-isomorphic transformations, configuration options, testing, validation, and multiple visitors. All examples are visualized using Java as a programming language.Written by freelance software engineer Ansgar Schulte, who brings many years of project experience and has taught more than 15,000 students, this book connects OpenRewrite concepts with techniques you can apply to real projects. By the end, you’ll be able to automate recurring refactoring tasks and build reusable recipes for your own codebases.

69
Loading...
EBOOK

Automating DevOps with GitLab CI/CD Pipelines. Build efficient CI/CD pipelines to verify, secure, and deploy your code using real-life examples

Christopher Cowell, Nicholas Lotz, Chris Timberlake

Developers and release engineers understand the high stakes of building, packaging, and deploying code efficiently. Ensuring that your code is fast, secure, and functionally correct can be a time-consuming and complex task. GitLab CI/CD pipelines simplify these tasks, enabling automation and seamless deployment.Automating DevOps with GitLab CI/CD Pipelines starts with the fundamentals of Git and GitLab, guiding you through committing and reviewing code. You'll learn how to set up GitLab Runners to execute and autoscale CI/CD pipelines, configure pipelines for different stages of the software development lifecycle, and analyze pipeline results in GitLab. As you progress, you'll gain expertise in deploying code across environments, integrating GitLab with Kubernetes and Terraform, triggering pipelines, and improving pipeline performance. This book also includes troubleshooting techniques, best practices, real-world use cases, and self-assessments to reinforce key CI/CD concepts and help you prepare for GitLab-related interviews and certifications.By the end of this book, you'll have the skills to build and automate CI/CD pipelines in GitLab, streamline DevOps workflows, and deploy high-quality, secure code with confidence.

70
Loading...
EBOOK

AWS DevOps Simplified. Build a solid foundation in AWS to deliver enterprise-grade software solutions at scale

Akshay Kapoor

DevOps and AWS are the two key enablers for the success of any modern software-run business. DevOps accelerates software delivery, while AWS offers a plethora of services, allowing developers to prioritize business outcomes without worrying about undifferentiated heavy lifting. This book focuses on the synergy between them, equipping you with strong foundations, hands-on examples, and a strategy to accelerate your DevOps journey on AWS.AWS DevOps Simplified is a practical guide that starts with an introduction to AWS DevOps offerings and aids you in choosing a cloud service that fits your company's operating model. Following this, it provides hands-on tutorials on the GitOps approach to software delivery, covering immutable infrastructure and pipelines, using tools such as Packer, CDK, and CodeBuild/CodeDeploy. Additionally, it provides you with a deep understanding of AWS container services and how to implement observability and DevSecOps best practices to build and operate your multi-account, multi-Region AWS environments.By the end of this book, you’ll be equipped with solutions and ready-to-deploy code samples that address common DevOps challenges faced by enterprises hosting workloads in the cloud.

71
Loading...
EBOOK

Azure Containers Explained. Leverage Azure container technologies for effective application migration and deployment

Wesley Haakman , Richard Hooper

Whether you’re working with a start-up or an enterprise, making decisions related to using different container technologies on Azure has a notable impact your app migration and modernization strategies. This is where companies face challenges, while choosing the right solutions and deciding when to move on to the next technology. Azure Containers Explained helps you make the right architectural choices for your solutions and get well-versed with the migration path to other platforms using practical examples.You’ll begin with a recap of containers as technology and where you can store them within Azure. Next, you’ll explore the different Microsoft Azure container technologies and understand how each platform, namely Azure Container Apps, Azure Kubernetes Service (AKS), Azure Container Instances (ACI), Azure Functions, and Azure App Services, work – you’ll learn to implement them by grasping their respective characteristics and use cases. Finally, you’ll build upon your own container solution on Azure using best practices from real-world examples and successfully transform your business from a start-up to a full-fledged enterprise.By the end of this book, you’ll be able to effectively cater to your business and application needs by selecting and modernizing your apps using various Microsoft Azure container services.

72
Loading...
EBOOK

BBC Micro:bit in Practice. A hands-on guide to building creative real-life projects with MicroPython and the BBC Micro:bit

Ashwin Pajankar, Abhishek Sharma, Sandeep Saini

This book is a one-stop guide for learning BBC Micro:bit with MicroPython, exploring many hardware components and programming techniques to provide detailed insights into developing practical applications with the Micro:bit. It will also show you how hardware components can be manipulated using a combination of Micro:bit and MicroPython for developing practical projects. BBC Micro:bit in Practice will help you gain a holistic understanding of the BBC Micro:bit platform and MicroPython programming, guiding you through mini projects aimed at developing practical knowledge of circuit design and writing programs. You’ll learn how to write programs for working with built-in LEDs and buttons, interfacing external LEDs, buttons, motors, buzzers, and much more. You’ll also work with built-in radio, speakers, accelerometer, and a compass. You’ll dive into concepts related to the Micro:bit filesystem, interfacing external displays, and working with libraries in detail before exploring sewable circuits and wearable technology.After reading this Micro:bit book, you’ll understand how to apply principles in electronics and MicroPython to create interesting real-life projects from scratch.