tag:blogger.com,1999:blog-54760656493030814032019-10-31T03:02:40.397-07:00CloudhadoopTechnology blog about Java, Javascript, Linux tutorials and commandsUnknownnoreply@blogger.comBlogger375125tag:blogger.com,1999:blog-5476065649303081403.post-75473999718084830962019-07-31T10:41:00.000-07:002019-07-31T10:41:23.247-07:00Javascript - Array vs JSON vs Object basics with Examples
Array, JSON, Objects are valid objects used to interact and manipulate data in javascript applications. This post talks about the difference between an array, JSON and objects with examples.
Javascript Object Basics examples
Objects are the main building blocks of Object-oriented programming concepts. Objects can be used to carry the data in applications. There are predefined objects as well asUnknownnoreply@blogger.com0tag:blogger.com,1999:blog-5476065649303081403.post-5624254521693628532018-12-24T01:59:00.001-08:002019-01-15T20:49:30.905-08:00Golang Tutorials - Complex Types Numbers Guide With Examples
In this blog post, You will learn about Complex Numbers types in Go language with examples.
Golang Complex Type Numbers
Golang provides Inbuilt datatypes for numeric strings and other types Numeric strings are int, uint, float, and complex numbers. Complex Numbers contains two parts - real numbers and imaginary numbers, for example, a complex number is 12.8i
In Golang, Complex numbers are Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-5476065649303081403.post-49579760191953397762018-12-22T02:15:00.004-08:002018-12-28T01:30:32.078-08:00Golang Examples - remove/strp white spaces from a String
In this blog post, You will learn three programs using Strings package builtin functions
Delete all whitespaces from a string
Delete leading and trailing spaces of a string
Remove duplicate spaces/tabs/newlines from a given string
Example program to strip all whitespaces from a string
This program is to remove the all white or empty spaces from a given string, return the new string Standard Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-5476065649303081403.post-73684731893585061142018-12-21T03:12:00.003-08:002018-12-21T03:14:25.228-08:00Golang Tutorials - Comments in Go Language
In any programming language, Comments are useful statements describes code statements. Comments are part of the program contains statements used to place human-readable information. This will be helpful for developers to maintain the code, improves code quality and easier bug fixing.
In Golang, The comments are used to describe information about variables, control structures, functions or Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-5476065649303081403.post-68822147075941428992018-12-20T22:51:00.003-08:002018-12-20T23:09:34.727-08:00Golang Example - Convert(cast) Hexadecimal to Decimal Integer Number vice versa
In this blog post, You will learn two programs in Go language, The first program is to convert Hexadecimal to Decimal Integer. Second program to convert Decimal to Hexadecimal Number.
Golang Hexadecimal Number System
Hexadecimal number is also called hexa number which contains 16 digits ie numbers start from 0,1,2,3,4,5,6,7,8,9,A,B,C,D,E,F. It is based on Base 16 ie Hexa number system. So Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-5476065649303081403.post-33492708224160627432018-12-20T03:55:00.002-08:002018-12-20T03:55:33.784-08:00Learn Haskell - Tutorial for Beginners
This post is an index page for Complete Haskell beginner Guide.
Haskell Beginner Guide
Haskell is a Strong functional programming language with features like strong static typing and semantics.
Features
Pure Functional Programming language
The code is compatible on semantics not on syntax
Lazy computations
Full type inference
First class functions support
Opensource
Haskell Tutorials
Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-5476065649303081403.post-24864381078786458052018-12-20T01:51:00.003-08:002018-12-20T01:51:41.298-08:00Golang Example - Convert(cast) Octal to Decimal Number
In this blog post, You will learn two programs in Go language
The first program is to convert Octal to Decimal Number
Second program to convert Decimal to Octal Number.
An Octal number is a number based on the base 8 number system. It contains digits from 0 to 7. In Golang, Octal numbers are always prefixed with zero Example octal numbers is 0879. Decimal Number are numbers which contain Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-5476065649303081403.post-16343039230529455842018-12-20T00:42:00.002-08:002018-12-20T01:54:55.539-08:00Golang Example - Convert(cast) Binary to Decimal or Decimal to Binary Number
In these posts, You will learn two programs in Go language
The first program is to convert Binary Number to Decimal Number
Second program to convert Decimal Number to Binary Number.
A binary number is a number based on base 2. It contains either zero or one digits. Each digit is called a bit, Example binary numbers are 1011
Decimal Number are numbers which contain numbers based on base 10
Unknownnoreply@blogger.com1tag:blogger.com,1999:blog-5476065649303081403.post-20386296334508368302018-12-19T04:01:00.001-08:002018-12-19T05:43:48.531-08:00Golang Example - Calculate power or exponents of a Number
In this posts, You will learn Three programs to calculate a power of a number
First program is to calculate power of a number
Second program to find exponent of a number using Math pow function
Third program is to find power of a number using recursive function
Power of m with exponent n is also called m n which is product of number n with m times.
For example, 4 3 is called as 4 to a Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-5476065649303081403.post-25868458927629431372018-12-18T23:55:00.000-08:002018-12-18T23:55:06.021-08:00Golang Example - 3 ways to check Length of a String with output
In this blog post, You will learn three programs
First program is Length or count of Character/bytes of a String
Second program is Length of runes in a String
Third Program is to find the length of string using pointer
String is sequence of characters which contains one or more words. In Golang, String is read only of arbitary bytes.String length is number of characters in a string, For Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-5476065649303081403.post-10165481214232067272018-12-18T21:09:00.004-08:002018-12-18T23:53:50.419-08:00Golang Example - Calculate Sum of digits of a integer number
In this post, You will learn different ways to addition of digits of a number in Golanguage
Using Iterative Function
Using Recursive Function
Sum of digits of a number is to retrieve each digit of a number and add these numbers to result. For example, if given number is 154, The sum of digits of a number is 1+5+4=10.
To understand this example, You should have following features in Go Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-5476065649303081403.post-24233331366469092082018-12-18T09:49:00.002-08:002018-12-19T04:02:41.026-08:00Golang Example - Find Factorial of a Number
This blog post covers two programs to calculate factorial of a number
Using Recursion function
Using Iterative Function
Factorial of a number n is called n! which is equal to product of all integers less than or equal to number n. This will be always calculated for positive numbers and factorial of negative numbers not exists. Factorial of a number=0 is 1.
For example Factorial of 5 is Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-5476065649303081403.post-26318257602699439672018-12-18T02:52:00.002-08:002018-12-18T02:52:23.396-08:00Golang Example - Check if a number/integer is positive or negative
In this Example, you will learn programs to check number is positive or negative, First is using if else statement. Second is using standard library Math Signbit function.
Positive number are whole number which are greater than zero ie 1,2,3...
Negative numbers are number which are lesser than zero , -1,-2
Each positive number has a corresponding negative number
To understanding the below Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-5476065649303081403.post-68657674866839787252018-12-18T02:21:00.000-08:002018-12-18T02:21:22.281-08:00Golang Example - Print values of Array or slice
In thsi examples, You will learn different ways to print/display array or slice elements to console in Go Language. Following programs are covered
Print Array using For Loop with range
Display Slice using PrintF function format
Array slice console print without Squarebrackets
Print Address or pointer of array
Print Slice of bytes in Binary Form
To understand this example, You should have Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-5476065649303081403.post-61812315020399815412018-12-17T22:45:00.003-08:002018-12-17T22:45:35.789-08:00Golang Example - Program Simple arithmetic Calculator Using switch...case
This blog post covers an example for Arithmetic Simple Calculator using Switch case in Golang.
To understand this example, You should have following features in Go language
Golang read input from user
Golang Switch case Guide
Golang Operators Guide with examples
Example program - Arthematic Calculator using switch case
The below example is to write Simple Calculator which supports Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-5476065649303081403.post-74951902776071195312018-12-17T22:20:00.001-08:002018-12-17T22:20:18.547-08:00Golang Example - Print/Display Lower/Upper Characters using rune and ASCII
This post covers two programs, the First program is to print lowercase a to z using for loop, the Second program is to display uppercase A to Z using for loop.
To understand this example, You should have following features in Go language
Golang For Loop control structure
Golang For Loop Range form
Golang Rune Datatype Beginner Guide
Like other programming languages, There is no specific Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-5476065649303081403.post-36824539771333452352018-12-17T21:41:00.002-08:002018-12-17T21:41:29.289-08:00Golang Example - Program to count number of digits in an integer
This example covers two programs to count the number of digits in an integer, the first program is using the iterative function, the Second program is using the Recursive function.
To understand this example, You should have following features in Go language
Golang For Loop control structure
Golang For Loop Range form
Golang read input from user
Golang Recursion Function Guide
Both programsUnknownnoreply@blogger.com0tag:blogger.com,1999:blog-5476065649303081403.post-54290235650414077732018-12-17T10:21:00.002-08:002018-12-24T09:28:16.646-08:00Haskell tutorials - Hello World Example Program
This blog post covers learning how to write Hello world Example program with an explanation in Haskell language.
To learn any new programming language, Hello world is a sample program to learn and understand the basic program components. hello World is a First Sample program which prints Hello World to the console
Before you start writing the hello world program, Please make sureUnknownnoreply@blogger.com0tag:blogger.com,1999:blog-5476065649303081403.post-86266860020610710372018-12-17T04:05:00.002-08:002018-12-17T04:05:39.603-08:00Golang Example - Program to find Smallest/Minimum number of array or sliceIn this examples, You will learn how to find the minimum/smallest element of an array or slice from input from the user in Go Language
To understanding the below programs, You have following features understanding in Go Language.
Golang For Loop control structure
Golang For Loop Range form
Golang read input from user
Array/Slice Tutorials
The algorithm for this program is as followsAt first, Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-5476065649303081403.post-47400926684724360462018-12-17T03:00:00.000-08:002018-12-17T03:34:34.099-08:00Golang Example - Reverse of a number or integerIn this program, You will see a three program First is to reverse of a number or integer, the second program is the reverse number entered by user , thrid is reverse number using a recursive function in Go Language.
To understanding the below programs, You have following features understanding in Go Language.Golang For Loop control structure
Golang For Loop Range form
Golang read input from userUnknownnoreply@blogger.com0tag:blogger.com,1999:blog-5476065649303081403.post-54891384462760152502018-12-17T02:16:00.001-08:002018-12-17T02:16:05.428-08:00Golang Example - Program to find larger/Maximum number of array or slice
In this blog post, We are going to learn to Find larger/maximum number of array or slice, reading input fro an user
array or slice holds the collection of elements. The array is fixed in size, Slice is dynamic in nature.
Golang program is to find the maximum or largest element in an array or slice.
The logic of the below program, Initially, Array first element will be assumed as the Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-5476065649303081403.post-6857334816278290492018-12-17T01:42:00.000-08:002018-12-17T01:42:12.977-08:00Golang Example - Program to check Largest,Smallet of three numbers
This post covers two programs, the First program to check largest of three numbers, the second program is to check the smallest of three numbers.
To understand this programs, You should have understood the following features
if else statements
Read input from user
Example Program to check largest/biggest of three numbers using if else statement
In the below program, Read the three input Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-5476065649303081403.post-32077049277605157232018-12-16T22:57:00.004-08:002018-12-16T22:57:43.304-08:00Golang Example - Program to check number is prime number or not
This post covers the three programs to check Prime numbers,
One is prime number check for a fixed number, Second is to check prime number read input from user console, Third to check prime number check for bigint types.
The prime number in mathematics is a whole or positive number greater than 1 which divides itself and one
For example, Number can be divided with remainder is zero. number Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-5476065649303081403.post-35589604123349764462018-12-16T21:56:00.004-08:002018-12-17T02:16:11.028-08:00Golang example - program to sum the elements of an array/slice
This post covers sum of elements of an array/slice using below approaches
sum array elements using for range form
using variadic Functions
Sum of elements entered by user input
To understanding the below programs, You have following features understanding in Go Language.
Golang functions guide
Golang For Loop control structure
Golang For Loop Range form
Golang read input from user
Array/Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-5476065649303081403.post-55270728516923065642018-12-16T09:04:00.002-08:002018-12-16T09:04:48.336-08:00Golang example - Program to calculate Sum of natural numbers
This post we will cover three programs to find the sum of natural numbers
Sum of first n natural numbers entered by the user
Sum of first n natural numbers using for loop
Sum of first n natural numbers Recursive function
Natural numbers are positive integers or whole numbers which starts from 0,1, 2 .... n. These also called nonpositive numbers. This post is about calculating the sum of Unknownnoreply@blogger.com0