Welcome to my blog !

Difference between String and str in Rust example

December 31, 2022 ·  1 min read

In Rust, We have different below string objects. Let’s see the difference between String and Str types in Rust. What is the difference between String and Str in Rust? String: It is std::String, String data type, and data stored on Heap str: It is a primitive String type in Rust used as a String slice or literal that point to a Fixed UTF-8 byte array, Represents as *Char. str accessed using &str The string has capacity and length...

Difference between put and println in Ruby with examples

December 31, 2022 ·  1 min read

As you know print and puts are used to display data to console. put and print are functions defined in io class in Ruby. These objects print the arguments to console and return nil What is difference between puts and print, when to use print and puts? Difference between put and print puts and prints function used to print an object to console. In case of Singe arguments to this two functions, it adds the same output....

Difference between pureComponent and component in React

December 31, 2022 ·  2 min read

This is a short tutorial that explains the difference between PureComponent and Component. Normal Component example Normal components are created in every application by extending React. component for Class components. Created a component using the class keyword Extends React.component It has callback lifecycle methods like componentWillMount etc. Also can add event handler methods, For example, Adding a button and its event handler click event The state can be Scalar types like Integer, String, and nested data structures....

Difference between ngx-bootstrap and ng-bootstrap

December 31, 2022 ·  2 min read

This tutorial compares the bootstrap framework libraries in the Angular library. Bootstrap is a UI library with mobile responsiveness with inbuilt UI components. If you want to integrate Bootstrap into the Angular application. We have the following ways to integrate into Bootstrap npm library ngx-bootstrap ng-bootstrap There is any library or any other not sure about it ngx-bootstrap and ng-bootstrap are wrappers on regular bootstrap to support UI components in Angular applications....

Difference between iter, iter_mut, and into_iter in Rust example

December 31, 2022 ·  2 min read

Rust provides different iterators to iterate an element in a Collection. It provides three types of methods to iterate a vector or array. iter() iter_mut() into_iter() The above three provide an iterator to navigate each element of a collection of objects. Then, What is the difference between those? Difference between iter, into_iter, and iter_mut? iter() function These functions iterate elements using reference or pointer. Let’s see an example of how to iterate a vector v...

You'll get a notification every time a post gets published here.