We can concatenate Strings in any programming language, including Rust, and we do it a lot. No programming language does not deal with string concatenation. However, Rust is different as it has two types of strings – String and str.
Difference Between String and str in Rust
Rust has two (type of) string values – String and str. The difference between them is huge because Rust ships with functions that cater to both string types. Rust String and str Rust String is a dynamic string type from the
Mock Method To Return Different Values in Mockito
This post shows how to mock a method that returns unique values for different arguments in Mockito. For example, the return values vary according to the method argument. Sample Codes To Mock Suppose we have the following Java classes. The
Grow with Google PSM I discount – for PSM II instead?
I have completed the Google Project Management certificate at Coursera and got a PSM I discount. But there is one problem – I am already a Professional Scrum Master I certified, courtesy of my employer. Anyway, I still availed of
Rust Ownership is Easy! Don’t Panic!
The Ownership concept in Rust is easy to grasp! Wait until you get to Rust lifetimes! When we talk about ownership in Rust, we generally mean – a variable owns a value. Seemingly nothing special, right? But the unique part
Rust HashMap Examples
This post shows Rust HashMap basic examples, particularly for beginners. A map is a type of data structure that allows us to store key-value pair data. We may have learned it from other programming languages like Java. In Rust, the
How To Update Rust On Windows
It is very easy to update Rust on Windows to the latest version. You could install either the stable or nightly release and update from it. For those new to Rust, I would recommend installing the stable release. Install Rust
JSqlServerBulkInsert with Spring JDBC Connection is Closed
When we use JSqlServerBulkInsert, we provide a database connection from the pool to bulk insert data even in Spring JDBC. As a result, it might not work well with Spring. Either we could get “Connection is Closed” errors or cause
How To Use WebFlux with Spring Boot
Using WebFlux with Spring Boot is straightforward and may not require changes when moving from Spring MVC. We will still use the same set of annotations like RestController and RequestMapping, to name a few. However, we use WebFlux to tap
Start Up Activiti 6.0 In Localhost – Quick Start
Although we already have the Activiti Cloud, Activiti 6.0 is still not that old. We can still use Activiti 6.0 in localhost for learning purposes. However, we should consider migrating to Activiti Cloud for real projects. This post will help