Get Even More Visitors To Your Blog, Upgrade To A Business Listing >>

Blog Directory  >  Software Blogs  >  Programming Blogs  >  Grails Cookbook programming Blog  > 

Grails Cookbook Blog


grails.asia
Grails Cookbook is a website that provides tutorials and useful information aboout web development using the Grails framework - one of the most popular framework that runs on the Java platform.
2019-09-14 21:05
Groovy is one of the most fun language I ever tried to use. Maybe Ruby is equally fun but I have never tried it. Because I came from the Java line of programming, Groovy is more natural to… Read More
2019-09-14 16:01
Java developers will just love using Groovy. it is a natural transition because every library that can be used in Java can be used in Groovy, plus we get to use a wonderful programming lang… Read More
2019-09-14 16:00
The Groovy language provides many convenience method to do cool stuff, specially on String manipulation. In this post, we will check a special way to have a substring of a string using the… Read More
2019-09-13 18:02
Java String is a data structure that's very essential because of it's capability to adapt in many cases. Many programmers do highly recommend utilizing this type of structure alternatively… Read More
2019-09-13 17:02
Assuming that we are familiar in the process of converting Java String to Double, String to Float, and String to Long. We will now be discussing the conversion of Java String To Java Intege… Read More
2019-09-13 17:01
Converting Java String To Double is one of the important topic in creating convenient systems in the world of Java. This tutorial will help you find different ways to come up with our desire… Read More
2019-09-13 16:01
String is sometimes used in storing data such as date, numeric, alpha numeric, or other type of data. It's become a versatile data structure primarily because it's capable of handling rando… Read More
2019-09-13 16:00
In some cases, we use a dot or period as delimeters in order to split a string. This topic will teach the programmers on how to split a string using a dot symbol. Observe the given examples… Read More
2019-04-01 16:40
What if you want to pad String With Zeroes in it? This is also possible. A lot of programmers see the efficiency of the Left Pad String with either zeroes or spaces in it. Study and learn th… Read More
2019-04-01 16:30
In this post, we will discuss the Java Left Pad String. If you want to attain a specific target length, you will have to learn and understand the written example codes below in order to pa… Read More
2019-04-01 16:20
One of the necessary inclusion of your tool in controlling String is the substring method. Java Substring is a valuable method in Core Java Programming. It's job is to remove or take out a… Read More
2019-04-01 16:10
When you work on a program or create a system that requires you to pad a String using spaces, all you need to do is to consider the width of a String. If the width is less than the target l… Read More
2019-04-01 16:00
There are situations where you want to convert a Java Integer to Fixed Length String. This is typical when we want to align Strings for visual effects, or some formatting required by the ne… Read More
2019-03-30 19:03
There is a method that splits a String into an array of substrings given a specific delimiter, and this is the Java split() method. Converting a Java String into ArrayList using this method… Read More
2019-03-30 18:02
Remember that the String.split() method splits a String into an array of substrings given a specific delimter. Each susbtring represents a number, which can be converted into an array of int… Read More
2019-03-29 16:01
Just a reminder that the Java String.split() method is used to split a String to make an array of substrings through a specific delimeter. This topic will discuss on how the system will cou… Read More
2019-03-29 16:00
There are cases in which new line is used as a delimiter to split a java string. An example would be, when it is used to load the contents of a text document to a String if you want to break… Read More
2019-03-15 16:02
We've discussed in the previous post that an integer is a data type in Java, and we've determined that it's one of the main tools to use in calculations. Although with this information, it's… Read More
2019-03-15 16:01
In Java, the data type integer is commonly used to calculate numbers. An integer with bigger range of values is efficient for some programs. Which will bring us to bits, an integer can onl… Read More
2019-03-15 16:00
In Java, we can confirm if one String holds a specific substring. For example, we would like to check if the substring "rhapsody" is in the String "Bohemian rhapsody movie". Check out the… Read More
2019-02-19 18:00
When we are programming, we typically face the scenario where we need to read text files. For example, reading data from a file or reading configuration. There are some long methods, and t… Read More
2019-02-19 17:00
For most cases, we wish to work with Float than Integers because floats gives more precision and larger range of values. But sometimes there are reasons why we would want to work with integ… Read More
2019-02-19 16:20
Now we use double for it's conviency on calculations and flexibility in precision. Like most of the time, some of us wants to take out the integral part of the output once we are finished w… Read More
2019-02-19 16:10
The Java String Replace is a method which can be applied if there's a new value of character or a String sequence that needs replacement. This method is valuable when you decide changes in… Read More
2017-10-29 16:01
The java.lang.Math class contains many static method for performing various math related functions. One useful utility is the Round() method, which is used to round a float or double number… Read More
2017-09-27 16:01
No matter how advanced programming will be in the future, the basics will always be important. Cornerstone are basic data structure such as String Array, which is very simple to understand… Read More
2017-09-27 16:00
It is a common scenario that we need to manipulate multiple String values. String Array is always a good choice because it is very simple to work with. The first thing we wish to do when w… Read More
2017-07-03 16:50
When we wish to work with multiple values of the same type, the most tempting data structure to use is Array. This provide a simple and fast way to create and manage multiple instances of a… Read More
2017-07-02 17:02
String Array is a very useful data structure when we need to hold multiple String values. It is very simple to understand for programmers with background in some other language. It is also… Read More
2017-06-28 17:05
Working with arrays in Java is common because this data structure is simple to use and very efficient. Most programming language supports arrays, so many developers may have idea on how to… Read More
2017-06-28 16:00
One-dimensional arrays in Java are commonly used in everyday programming. However, there are instances where we need two-dimensional array. An example is holding data for a table listing w… Read More
2017-06-27 18:00
A String Array is a data structure that holds several String values. The number of String elements is fixed and can't be changed throughout the lifetime of the array object. One common thin… Read More
2017-06-27 17:00
String Array is a commonly used data structure when programming in Java. Although we can generally use List for greater flexibility, but sometimes using String Array is more suitable for a… Read More
2017-06-27 16:00
There are programming scenarios where we have a data in byte array that represents a String. This could be a case when we use a third party library to load data somewhere and the result is… Read More
2017-06-26 16:00
An array is a basic and essential data structure in Java. It holds a fix number of values that can be easily manipulated. It is common to use an array of immutable objects in Java, such as… Read More
2017-05-18 16:00
With all the popular JavaScript framework, I believe that Vue.js stands out as a powerful yet easy to learn framework. Other popular JavaScript framework have high learning curve. It takes… Read More
2017-05-17 16:00
The release of Grails 3 coincide with the growing popularity of more modern Javascript frameworks. Gone are the days where we mostly write code in gsp and jQuery. Frameworks like AngularJS… Read More
2017-05-11 02:10
It is more convenient that we use Enums in our domain classes rather than String, when we are really sure that Enum is the best representation of a property. Maintaining Strings and constan… Read More
2017-05-10 16:00
When programming in Grails, sometimes we get a String value that we wish to transform to an Enum. For example, when usually get String value from data passed from form or url parameters. S… Read More
2016-11-10 02:40
When a record in a database table is not needed anymore then we may want to delete it. There are two ways of deleting a record. One is called logical delete where the record is still in th… Read More
2016-11-10 02:36
There are instances when data on a record should be modified. SQL provides update statements for this purpose. Below are examples on how to perform update operation using Groovy SQL Read More
2016-11-10 02:35
Reading data from database tables is one of the most common task in programming. For RDBMS servers that supports SQL, we can use SELECT statements for this purpose. Below are some examples… Read More
2016-11-10 02:32
Another common operation when working with database is inserting data. This is simple to achieve using SQL's insert statements. Below are some examples on how to insert data to a database… Read More
2016-11-10 02:31
One of the first things we do to a database is to create tables. SQL supports data definition language or data description language (DDL). Using SQL "Create" statements, we can create tabl… Read More
2016-11-10 02:30
When working with database in Groovy, the first thing we want to do is to connect to a database server. We will not be able to read or manipulate data unless we have a connection. Below wi… Read More
2016-10-18 16:00
The String class in Groovy has the tokenize() method as a convenient way to tokenize a String or character sequence and return the result as List of String. The given String or character se… Read More
2016-10-13 16:00
Enum was introduced in Java to represent a fixed set of constants. Since Groovy is a superset of Java, Enums are also supported in the Groovy programming language. Groovy also adds some en… Read More
2016-10-11 16:00
Groovy supports a quick way of declaring a list of sequential values using Ranges. In Groovy, a Range can be defined using the .. or ..< notation to declare a list of sequential values… Read More
2016-10-11 04:00
Groovy String has a split() method as a convenience method to split a String or character sequence and return the result as Array of String. The given String or character sequence is split… Read More
2016-09-27 06:00
A Set is a collection of objects where all elements are unique and with no duplicates. The elements are not ordered and there are no repeating values. This is a very important data struct… Read More
Groovy Compare String
2016-06-29 07:00
We explore different examples of how String comparison behaves in Groovy. Below are some observations on Groovy compare String operations Read More
Groovy IDE Setup
2016-06-29 06:00
One of the biggest technical hurdle when learning a new language is setting up your programming environment. This is a short guide on how to install a Groovy IDE to your Windows Workstation… Read More
Groovy Date Remove Or Clear Time Component
2016-06-20 00:30
When we are comparing Date instances, we usually just care about the date part and not the time component. For more accurate comparison, it is sometimes desirable to remove the time compone… Read More
Groovy Assert Examples
2016-06-15 06:00
Assertions are important for checking some conditions are met. This post will show examples on how to perform assertion in Groovy language Read More
Groovy GString Examples
2016-06-14 10:45
GString represents a String that may be used for template like functionality. It contains embedded values that can be evaluated lazily. For example, the GString "Hi ${name}" can be evaluat… Read More
Grails 3 Project Structure Tutorial
2016-06-13 10:45
If you are new to Grails development, this tutorial will discuss the structure of a Grails 3 application. There has been changes in the underlying technology behind Grails 3 and it would be… Read More

Share the post

Grails Cookbook

×

Subscribe to Grails Cookbook

Get updates delivered right to your inbox!

Thank you for your subscription

×