Home / Companies / Vonage / Blog / November 2021

November 2021 Summaries

14 posts from Vonage

Filter
Month: Year:
Post Summaries Back to Blog
PHPStan is a static analysis tool designed to help developers write better, more maintainable code in PHP. It achieves this by analyzing the code's syntax, structure, and type hints, providing feedback on potential issues such as bugs, security vulnerabilities, and performance optimization opportunities. With its release of version 1.0, PHPStan offers improved features and capabilities, including support for multiple rule levels, baseline configuration, and integration with CI/CD pipelines. By using PHPStan, developers can identify and address tech debt, improve code quality, and reduce the risk of introducing bugs or security vulnerabilities into their applications.
Nov 29, 2021 1,898 words in the original blog post.
The Vonage Dev YouTube channel hosts a video series called One Dev Minute, which aims to share knowledge in small, bite-sized chunks. This particular episode demonstrates how to create an SMS message log and response using Firebase Cloud Functions and the Real Time Database alongside the Vonage SMS API. To start, users need to create two accounts: a Firebase account and a Vonage API account. They then set up their Firebase project, install the necessary tools, and authenticate with their account. The code is structured in the index.js file, where functions are created for logging incoming SMS messages and sending responses. Once deployed, the function can be tested by sending an SMS message from a phone number associated with the Vonage application, resulting in a response SMS message and updates to the Firebase Real-Time Database.
Nov 25, 2021 302 words in the original blog post.
The Swift 5.5 language feature async/await is used to improve the readability of concurrent code by removing the need for completion handlers, allowing developers to create more efficient and easier-to-understand asynchronous code. This tutorial demonstrates how to send an SMS message using the Vonage Messages API with Vapor, a server-side web framework built on Swift. The tutorial covers creating a new project, setting up the necessary dependencies, defining routes, parsing form data, making HTTP calls to the Vonage API, and rendering the response in a view.
Nov 19, 2021 1,111 words in the original blog post.
Automated testing has long been an integral part of the software development and deployment process. Writing automated tests is essential to ensure code quality, prevent regression, and improve overall development efficiency. However, when working with external APIs, writing tests can be challenging due to issues such as slow test execution times and unpredictability in response rates. In this context, mocking and stubbing techniques can help mitigate these challenges by isolating the API dependency and providing a controlled environment for testing. The `VCR` library offers an alternative approach by recording and replaying HTTP interactions, allowing developers to create deterministic tests with minimal setup. By leveraging mocking and VCR, developers can write faster, more reliable tests that improve overall development productivity.
Nov 18, 2021 2,981 words in the original blog post.
The text discusses the concept of spatial audio and its applications in various fields, including video conferencing, augmented reality (AR), and virtual reality (VR). It explains how spatial audio can recreate a real-life listening experience by positioning audio sources in 3D space. The article then provides a step-by-step guide on building a spatial audio experience using Vonage Video APIs and Resonance SDK on web browsers. The guide covers topics such as creating an AudioContext, defining a 3D room and its wall materials, connecting subscribers to the resonance audio scene, and switching between spatial and mono modes. Additionally, it addresses browser compatibility issues and provides a workaround for Chrome's echo cancellation bug.
Nov 16, 2021 1,292 words in the original blog post.
WSGI and ASGI are two interfaces that sit between web servers and Python web applications or frameworks, handling incoming requests. WSGI processes requests synchronously, sequentially, which can hinder performance, whereas ASGI processes requests asynchronously, allowing them to run concurrently without waiting for each other to finish. This difference in approach makes ASGI more suitable for modern web development, as seen in the example of baking a cake and making frosting, where ASGI allows for simultaneous processing of tasks, resulting in faster overall performance. The Python framework FastAPI is an example of a micro web framework that uses ASGI, which provides out-of-the-box support for asynchronous code and has gained traction due to its speed and excellent documentation.
Nov 16, 2021 771 words in the original blog post.
The Vonage Messages API has reached version 1, featuring a cleaner and flatter API design compared to the previous version, with significant improvements in simplifying interactions with the API and adding new features such as Reply Context, Profile Name, and Provider Messages. The WhatsApp channel now supports Interactive Messages, including List Messages and Reply Buttons, allowing for more interactive experiences. A migration guide is available for users of version 0.1 who wish to migrate to version 1.
Nov 15, 2021 246 words in the original blog post.
The Vonage Video API allows developers to create a video chat application with minimal code, utilizing the OpenTok Layout JS library for auto-layout functionality. The application's layout is dynamically adjusted based on screen size and participant additions/removals, achieving a responsive design similar to popular video conferencing apps like Zoom and Teams.
Nov 11, 2021 717 words in the original blog post.
Accessibility is a fundamental social issue that requires organizations to prioritize creating applications that can be used by everyone, regardless of disabilities. To achieve this, companies should educate their teams, recruit in-house experts, and consider hiring third-party services to support accessibility efforts. Prioritizing accessibility involves setting clear targets, using automated tools to identify errors, and manually testing code to ensure compliance with web content accessibility guidelines (WCAG). A well-designed accessibility strategy can improve the experience for users with disabilities and demonstrate a company's commitment to social responsibility. Effective communication through an accessibility statement and open channels for user feedback are also crucial in promoting accessibility and inclusivity. By adopting this mindset, organizations can shift their focus from treating accessibility as a feature to prioritizing it as a necessity, ultimately leading to improved development workflows and consistency.
Nov 08, 2021 627 words in the original blog post.
The text discusses asynchronous PHP programming using fibers, introduced in PHP 8.1. It highlights the benefits of using fibers for non-blocking I/O operations and showcases an example project called RevoltPhp that demonstrates how to use RevoltPhp's Event Loop to execute asynchronous code. The project uses Vonage's Voice API to send outbound calls to a large number of phone numbers, simulating an emergency scenario where park employees need to be notified quickly. The code uses PHP 8.1, Slim Framework, ngrok, and RevoltPhp to create a secure tunnel for the calls and handle the incoming webhooks from Vonage. The project demonstrates how fibers can be used to execute asynchronous code without relying on traditional synchronous operations or external libraries like Laravel Job/Queue worker or Serverless architectures.
Nov 08, 2021 2,227 words in the original blog post.
The new .NET 6 Minimal APIs feature is an exciting addition to the ASP.NET Core framework, allowing for a more lightweight and entry-friendly approach to building web applications. The author of this tutorial demonstrates how to use Minimal APIs to send SMS messages using the Vonage API. The project starts with creating a new Minimal API project using the `dotnet new` command, then adds the necessary NuGet packages and configuration settings. The author shows how to create a simple endpoint that accepts an SMS model, uses the VonageClient to send an SMS message, and implements validation using FluentValidation. The final version of the code can be found on GitHub, along with additional resources for learning more about Minimal APIs.
Nov 06, 2021 1,355 words in the original blog post.
As a developer advocate, I can attest to the diverse paths into this field, which includes meeting people from various backgrounds and interests. Many developers transition into devrel after writing books or creating communities, such as Cory Althoff's book "The Self-Taught Programmer" and his Facebook group for self-taught programmers. Others, like Tonya Sims, join from their expertise in sports and community building. The role involves a mix of coding, marketing, and business, with responsibilities including maintaining SDKs, creating content, speaking at conferences, and engaging with developer communities. To succeed as a devrel engineer, one must have technical skills, empathy for developers, and comfort with public speaking. This field offers valuable skills and career advancement opportunities, making it an attractive option for programmers looking to diversify their careers.
Nov 04, 2021 981 words in the original blog post.
The author reflects on the challenges of navigating a global pandemic with their family, including stockpiling essentials, adjusting to lockdowns, and managing virtual learning. The experience was particularly difficult for their children, missing out on traditional school events and struggling with stress and anxiety. As the year progressed, the family adapted to new routines, including working from home and balancing schedules. Despite the challenges, they found ways to cope and even grew more resilient as a family unit, learning to appreciate the quiet and chaos that came with it. The author credits this experience with helping them develop new skills and priorities, particularly in their role as a developer advocate for Nexmo.
Nov 02, 2021 1,055 words in the original blog post.
Brybe, Inc., an online marketplace platform, connects freelancers and influencers with buyers worldwide for digital creation and promotion services. Founded in 2019, the startup initially focused on influencer marketing, addressing issues such as brand-influencer fraud, finding influencers, and high costs associated with existing platforms. The pandemic accelerated the growth of the gig economy, and Brybe expanded its platform to accommodate freelancers, offering a one-stop shop for digital creative services. With a user-centered approach, Brybe aims to automate and simplify processes, providing a comprehensive marketplace that sets global business flow standards for the Digital Creator industry. The company has raised funding from institutional investors and angel investors, with plans to scale and become a top 5 global provider of Digital Creator Services in three years.
Nov 01, 2021 2,130 words in the original blog post.