Programming

Convert String to Char Array and Char Array to String in C++ — step-by-step Programming tutorial on Progressive Robot

Convert String to Char Array and Char Array to String in C++

In this article, we will be focusing on the different ways to convert String to char array and char array to String in [C++](/community/tutorials/c-plus-plus). While dealing with String data, we may need to convert the string data items to character array and vice-versa. This tutorial will help you solve exactly that. Convert String to Char […]

Read more
Decorator Design Pattern in Java Example — step-by-step Programming tutorial on Progressive Robot

Decorator Design Pattern in Java Example

Decorator design pattern is used to modify the functionality of an object at runtime. At the same time other instances of the same class will not be affected by this, so individual object gets the modified behavior. Decorator design pattern is one of the structural design pattern (such as [Adapter Pattern](/community/tutorials/adapter-design-pattern-java "Adapter Design Pattern in […]

Read more
Exception Handling in Java — step-by-step Programming tutorial on Progressive Robot

Exception Handling in Java

Introduction An _exception_ is an error event that can happen during the execution of a program and disrupts its normal flow. Java provides a robust and object-oriented way to handle exception scenarios known as Java Exception Handling. Exceptions in Java can arise from different kinds of situations such as wrong data entered by the user, […]

Read more
Google Guice Dependency Injection Example Tutorial — step-by-step Programming tutorial on Progressive Robot

Google Guice Dependency Injection Example Tutorial

Google Guice is the framework to automate the dependency injection in applications. If you have come across directly here, I would recommend you to check out [Dependency Injection Example](/community/tutorials/java-dependency-injection-design-pattern-example-tutorial "Dependency Injection Design Pattern in Java Example Tutorial") where we learned the problems with traditional approach of Object creation and implementation benefits of dependency injection. In […]

Read more
How To Construct For Loops in Go — step-by-step Programming tutorial on Progressive Robot

How To Construct For Loops in Go

In the Go programming language, a `for` loop implements the repeated execution of code based on a loop counter or loop variable. In this tutorial, you will learn how Go’s `for` loop works, including the three major variations of its use: ForClause, Condition, and RangeClause. We’ll start by showing how to create different types of `for` loops, followed by how to loop through sequential data types in Go. We’ll end by explaining how to use nested loops.

Read more
Cómo configurar y invocar funciones en Go — step-by-step Programming tutorial on Progressive Robot

Cómo configurar y invocar funciones en Go

Una función es una sección de código que, una vez definida, se puede volver a utilizar. Las funciones se utilizan para facilitar más la comprensión de su código mediante su división en tareas pequeñas y comprensibles que se pueden utilizar más de una vez en su…

Read more
How To Get Total Result Count in Laravel Eloquent — step-by-step Programming tutorial on Progressive Robot

How To Get Total Result Count in Laravel Eloquent

When working with database query results, it is often useful to obtain only the total number of rows in a result set, instead of pulling the full dataset content with a regular query. Eloquent offers a few different aggregate methods that return a scalar value instead of an Eloquent object, such as count(), max(), and sum(). In this part of the series, you’ll update the main application view to show the total number of links in each list, using the count() method.

Read more
How To Make an HTTP Server in Go — step-by-step Programming tutorial on Progressive Robot

How To Make an HTTP Server in Go

In this tutorial, you will create an HTTP server using Go’s standard library and then expand your server to read data from the request’s query string, the body, and form data. You’ll also update your program to respond to the request with your own HTTP headers and status codes.

Read more
How To Update Database Records in Laravel Eloquent — step-by-step Programming tutorial on Progressive Robot

How To Update Database Records in Laravel Eloquent

In a previous section of this series, you updated an existing Artisan command in order to support the new lists feature. Although there are commands to insert and delete links, the demo application currently doesn’t have a command to edit existing links. This can be useful to move links between lists, for instance, or update a link description. In this guide, you’ll create a new Artisan command to update existing links in the database.

Read more
CHAT