jQuery is often injected into web applications and libraries without any real thought, seemingly out of habit or fear. Many web developers don't seem to know exactly when they need to use jQuery, and when they don't - it has become a standard step for many when setting up a new library or web application. But relying solely on jQuery as your window to the web leaves large gaps in your knowledge. This in turn results in frustration when the abstraction that jQuery provides "leaks" and exposes you to the native aspects of the browser.
Check out the comprehensive web application at github.com/Beyond-jQuery/exercise which was developed for "Beyond jQuery" readers that covers many of the concepts discussed in this book. « less
About the Book
* All the basics — objects, functions, responding to users, and more
* Think like a coder and design your own programs
* Create a text-based adventure game
* Run your programs in a web browser
* Four bonus chapters available online
About the Reader
No experience required! All you need is a web browser and an internet connection.
About the Author
John Larsen is a mathematics and computing teacher with an interest in educational research. He has an MA in mathematics and an MSc in information technology. He started programming in 1982, writing simple programs for teaching mathematics in 1993, building websites in 2001, and developing data-driven web-based applications for education in 2006.
Table of Contents
1. PART 1 CORE CONCEPTS ON THE CONSOLE
3. Variables: storing data in your program
4. Objects: grouping your data
5. Functions: code on demand
6. Arguments: passing data to functions
7. Return values: getting data from functions
8. Object arguments: functions working with objects
9. Arrays: putting data into lists
10. Constructors: building objects with functions
11. Bracket notation: flexible property names
12. PART 2 ORGANIZING YOUR PROGRAMS
13. Scope: hiding information
14. Conditions: choosing code to run
15. Modules: breaking a program into pieces
16. Models: working with data
17. Views: displaying data
18. Controllers: linking models and views
20. HTML: building web pages
21. Controls: getting user input
22. Templates: filling placeholders with data
23. XHR: loading data
25. BONUS ONLINE CHAPTERS
27. Express: building an API
28. Polling: repeating requests with XHR
29. Socket.IO: real-time messaging « less
Designing web APIs that developers will love
A Web API is a platform with a web-style interface developers can use to implement functionality. Well-designed APIs feel like a natural extension of the application, rather than just a new interface into the backend database. Designing Web APIs based on use cases allows an organization to more » develop irresistible APIs, which developers can consume easily and which support the business values of that organization.
About the Technology
It takes a village to deliver an irresistible web API. Business stakeholders look for an API that works side-by-side with the main product to enhance the experience for customers. Project managers require easy integration with other products or ways for customers to interact with your system. And, developers need APIs to consistently interoperate with external systems. The trick is getting the whole village together. This book shows you how.
About the Book
Irresistible APIspresents a process to create APIs that succeed for all members of the team. In it, you'll learn how to capture an application's core business value and extend it with an API that will delight the developers who use it. Thinking about APIs from the business point of view, while also considering the end-user experience, encourages you to explore both sides of the design process and learn some successful biz-to-dev communication patterns. Along the way, you'll start to view your APIs as part of your product's core value instead of just an add-on.
* Design-driven development
* Developing meaningful use cases
* API guiding principles
* How to recognize successful APIs
About the Reader
Written for all members of an API design team, regardless of technical level.
About the Author
Kirsten Hunter is an API evangelist who helps developers and business stakeholders understand, design, and deliver amazing APIs.
Table of Contents
1. UNDERSTANDING WEB APIs
2. What makes an API irresistible?
3. Working with web APIs
4. API First
5. Web services explained
6. DESIGNING WEB APIs
7. Guiding principles for API design
8. Defining the value for your API
9. Creating your schema model
10. Design-driven development
11. Empowering your developers « less
Getting paid using Stripe or PayPal is only the beginning of creating a fully-functional e-commerce application. You also need to handle failure cases, inventory management, administration, security, reporting, and be compliant with legal issues. Manage one-time transactions and recurring subscriptions, more » handle inventory management, issue discounts and refunds, mitigate administration and compliance issues, and test your code to ensure your customers have a smooth, hassle-free experience.
An e-commerce payment application is literally rewarding to build--you can see the return on investment as genuine money is added to your account. But it can be stressful to manage, with security and compliance concerns and administration issues. And your entire business may depend on these features working smoothly.
Let Noel Rappin guide you through the setup and complications of dealing with online financial transactions.
Go beyond just the interaction with the gateway service and build an application that will be robust and useful over time. Set up a Stripe and PayPal payment gateway and accept credit card payments. Use the Stripe API to improve security by validating credit card data without sending it through your own server. Design your application for maximum flexibility against the inevitable complexities of business logic, including handling discounts. Manage the multiple failure points of dealing with payment gateways and test for failure cases. Use background jobs to simplify third-party interactions. Handle administrative tasks such as issuing refunds and discounts while maintaining data integrity and security. Create subscription plans and manage recurring payments, and stay on top of legal issues regarding taxes, reporting, and compliance. Pay affiliates or contributors from your application.
By the end, you will know how to create a fully-functional web payment-taking machine.
What You Need:
The code in this book works with Ruby 2.3.1 and Rails 5, though nearly all of the code will run with earlier versions of Ruby and Rails. « less
Rapid, Confident, Maintainable Code
Start by learning when and why to do manual testing vs. automated verification. Focus tests on the important things, like the pre-conditions, the invariants, complex logic, and gnarly edge cases. Then begin to design asynchronous functions using automated tests. Carefully decouple and mock out intricate dependencies such as the DOM, geolocation API, file and database access, and Ajax calls to remote servers.
Step by step, test code that uses Node.js, Express, MongoDB, jQuery, and AngularJS. Know when and how to use tools such as Chai, Istanbul, Karma, Mocha, Protractor, and Sinon. Create tests with minimum effort and run them fast without having to spin up web servers or manually edit HTML pages to run in browsers. Then explore end-to-end testing to ensure all parts are wired and working well together.
Don't just imagine creating testable code, write it.
What You Need:
A computer with a text editor and your favorite browser. The book provides instructions to install the necessary automated testing-related tools. « less
A practical hands-on guide to implementing secure API authorization flow scenarios with OAuth 2.0
OAuth 2.0 has become the most widely used authorization framework. It provides an easy-to-use sign-in mechanism and allows users to quickly and efficiently secure service APIs. It also provides a protection layer for assets so that various third-party applications cannot have direct access to them. From more » service providers like Amazon and social media platforms like Facebook and Twitter to various internal enterprise solutions, OAuth 2.0 is the preferred standard for authorization.
OAuth 2.0 Identity and Access Management Patterns is a step-by-step guide to build web, client-side, desktop, and server-side secure OAuth 2.0 client applications by utilizing the appropriate authorization techniques.. This book will help you handle and implement various authorization flows for your chosen type of application. Furthermore, you will understand when and how OAuth 2.0 is used in enterprises for trusted and first-party applications. You will gain knowledge about the Resource Owner Password Credentials grant and the Client Credentials grant, and more importantly, you will understand how to implement them yourself with the help of practical code examples.
You will start by making various client applications step-by-step before moving on to client registration and implementing various OAuth 2.0 authorization flows. Furthermore, you will also be handling server responses with access tokens and errors. By the end of this book, you should understand precisely what it takes for these client applications to be secured.
This book helps you cover each type of application: web, client-side, desktop, and trusted applications. In addition, you are also shown how to implement various authorization grant flows for each of these applications. You will uncover the security features that are a part of OAuth 2.0. More importantly, the book demonstrates what information is transmitted during the execution of a flow, and which precautions can be made. With OAuth 2.0 Identity and Access Management Patterns, you will be able to build a secure OAuth 2.0 client application with full confidence and will completely understand what data is exchanged when performing an authorization grant flow. « less
HTTP Web Services in ASP.NET
Pro ASP.NET Web API shows you how to build flexible, extensible web services that run seamlessly on a range of operating systems and devices, from desktops to tablets to smart phones—even the ones we don’t know today.
ASP.NET Web API is a new framework designed to simplify web service architecture. more » So if you're tired of interoperability issues between inflexible web services and clients tied to specific platforms or programming languages, or if you've ever struggled with WCF, this book is for you.
To start with, you'll get up to speed on Web API's modern HTTP programming model, REST and your hosting options. You'll then dive into building a real application over a series of three chapters, so you can get an immediate feel for how this technology works in practice. The second half of the book features dedicated chapters on topics like routing, controllers, validation and tracing, and the authors close with discussions on performance, hosting and an all-important look at unit testing to help you prepare your application for the real world.
ASP.NET Web API makes HTTP a first-class citizen of .NET. With Pro ASP.NET Web API, you can build HTTP-based web services for your company or business, expose your data to the world across different formats and devices and gain the best possible global reach for your application. « less
Over 90 recipes to create your own exciting Facebook applications at an incredibly fast pace with Facebook Graph API book and ebook
With a user base of nearly 800 million people, Facebook is the number one social networking platform. Applications can be created to interact with this huge user base in various ways both inside and outside Facebook. These applications, if developed effectively and efficiently, offer a free medium more » for promotion and publicity of a product or an organization.
Facebook Application Development with Graph API Cookbook covers both the concepts and implementations necessary to develop Facebook applications and provides ready to use code for common scenarios faced by a developer while creating these applications. It incorporates the newly launched Facebook Graph API and also presents the reader with some intuitive ready to use applications.
This book guides the reader step by step, from start to finish, through various stages of Facebook application development. It begins by exploring the Facebook application registration and discussing the verification and authentication technique. It then takes you through the various ways in which you can use Facebook Graph API for interacting with users such as posting on a user’s wall, tagging a user in a picture, etc. Accessing complex Facebook user data by formulating a series of queries, doing client side scripting and incorporating Facebook Dialog interface are some other features that have been incorporated in this book. Integration of various Facebook Social Plugins such as the like box in your web page has also been discussed. Further you will get to know the concept of virtual currency and how to programmatically derive Facebook analytics data. As the book progresses, you will learn to use and integrate many more advanced features in Facebook application development. The book contains ready to use code that can be deployed instantly. Towards the end, the book houses a variety of ready to use Facebook applications so as to help readers derive their own applications from them. « less
The Definitive Guide to Developing Applications Using Microsoft Excel, VBA, and .NET
“As Excel applications become more complex and the Windows development platform more powerful, Excel developers need books like this to help them evolve their solutions to the next level of sophistication. Professional Excel Development is a book for developers who want to build powerful, state-of-the-art more » Excel applications using the latest Microsoft technologies.”
–Gabhan Berry, Program Manager, Excel Programmability, Microsoft
“The first edition of Professional Excel Development is my most-consulted and most-recommended book on Office development. The second edition expands both the depth and range. It shines because it takes every issue one step further than you expect. The book relies on the authors’ current, real-world experience to cover not only how a feature works, but also the practical implications of using it in professional work.”
–Shauna Kelly, Director, Thendara Green
“This book illustrates techniques that will result in well-designed, robust, and maintainable Excel-based applications. The authors’ advice comes from decades of solid experience of designing and building applications. The practicality of the methods is well illustrated by the example timesheet application that is developed step-by-step through the book. Every serious Excel developer should read this and learn from it. I did.”
– Bill Manville, Application Developer, Bill Manville Associates
The Start-to-Finish Guide to Building State-of-the-Art Solutions with Excel 2007
In this book, four world-class Microsoft® Excel developers offer start-to-finish guidance for building powerful, robust, and secure applications with Excel. The authors—three of whom have been honored by Microsoft as Excel Most Valuable Professionals (MVPs)—show how to consistently make the right design decisions and make the most of Excel’s most powerful new features. Using their techniques,you can reduce development costs, time to market, and hassle—and build more effective, successful solutions.
Fully updated for Excel 2007, this book starts where other books on Excel programming leave off. Through a hands-on case study project, you’ll discover best practices for planning, architecting, and building Excel applications that are robust, secure, easy to maintain, and highly usable. If you’re a working developer, no other book on Excel programming offers you this much depth, insight, or value.
• Design worksheets that will be more useful and reliable
• Leverage built-in and application-specific add-ins
• Construct applications that behave like independent Windows programs
• Make the most of the new Ribbon user interface
• Create cross-version applications that work with legacy versions of Excel
• Utilize XML within Excel applications
• Understand and use Windows API calls
• Master VBA error handling, debugging, and performance optimization
• Develop applications based on data stored in Access, SQL Server, and other databases
• Build powerful visualization solutions with Excel charting engine
• Learn how to work with VB.NET and leverage its IDE
• Automate Microsoft Excel with VB.NET
• Create managed COM add-ins for Microsoft Excel with VB.NET
• Develop Excel solutions with Visual Studio Tools for Office (VSTO)
• Integrate Excel with Web Services
• Deploy applications more securely and efficiently « less
TCP/IP Illustrated, an ongoing series covering the many facets of TCP/IP, brings a highly-effective visual approach to learning about this networking protocol suite.
TCP/IP Illustrated, Volume 2 contains a thorough explanation of how TCP/IP protocols are implemented. There isn't a more practical or more » up-to-date bookothis volume is the only one to cover the de facto standard implementation from the 4.4BSD-Lite release, the foundation for TCP/IP implementations run daily on hundreds of thousands of systems worldwide.
Combining 500 illustrations with 15,000 lines of real, working code, TCP/IP Illustrated, Volume 2 uses a teach-by-example approach to help you master TCP/IP implementation. You will learn about such topics as the relationship between the sockets API and the protocol suite, and the differences between a host implementation and a router. In addition, the book covers the newest features of the 4.4BSD-Lite release, including multicasting, long fat pipe support, window scale, timestamp options, and protection against wrapped sequence numbers, and many other topics.
Comprehensive in scope, based on a working standard, and thoroughly illustrated, this book is an indispensable resource for anyone working with TCP/IP. « less