support some important future goals, such as functional programming elements. However, if you try to find a new language instead of Java, you are wrong.
Multi-language programming
Multi-language programming is a term that I have put forward and promoted in a blog post in 2006, and multi-language programming is based on the knowledge that a single language is not suitable for solving all problems. Some languages have intrinsic properties that are better suited to certain problems. For example,
a language that's better suited to building the UI, such as the Swingbuilder tool in groovy.The large number of programming languages running on the JVM has greatly stimulated the idea of multilingual programming, because you can mix numbering languages and use best-fit languages, while maintaining the same underlying bytecode and class libraries. For example, Swingbuilder is not an alternative to swing; i
easily support some important future syntax features, such as some features in functional programming. However, if you try to find a language to replace Java, you will be wrong.Multi-language programming
Multi-language programming-a blog in 2006 that I made this term dynamic and popular-is based on the understanding that no programming language can solve every problem. Some languages have some built-in features to better adapt to specific problems. For example, due to the complexity of swing, D
. For example, because of the complexity of swing, developers find it difficult to write a swing UI in Java because it requires declaring types in advance, defining annoying anonymous inner classes for UI actions, and other troubling things. It would be much better to build a swing application using a language that is more suitable for building the UI, such as the Swingbuilder tool in groovy.
The proliferation of programming languages running on the J
and inherent paradigm have some limitations. Although the Java language is making some seemingly beautiful changes, its syntax simply does not support some important future goals, such as functional programming elements. But if you try to find a new language instead of Java, you're wrong. Multi-language programmingMulti-language programming is a term I re-introduced and promoted in a 2006 blog post (see Resources), which is based on the perception that a single language is not suitable for all
groovy Shell
Groovy shell is an interactive command line program that allows developers to create, run, save, and load groovy scripts and classes. To start groovy shell, you only need to run groovysh. D: \ TMP \ groovy> policysh Groovy shell (2.1.2, JVM: 1.7.0 _ 09) Type 'help' or '\ H' for help. ------------------------------------------------------------ GROOVY: 000> Enter help in groovy shell to learn and use some shell commands,
3.3 groovy Console
The Groovy console is a groovy shell
language, not just a copy of Java. So in fact java++ can be used as a groovy alias, i.e. Java with dynamic characteristics.Finally, I would like to add: Groovy's features are far less than those listed, such as the Mixins,builder series: Markupbuilder,swingbuilder, many of which are in groovy and not in Java, so they are not listed, To continue in-depth learning groovy, visit the Groovy official website: http://groovy.codehaus.org, there are many exa
have 'nesting' in other closure, the value of the closure owner is this; otherwise, the closure owner references the closure that 'directly contains'
36. main Traversal method of the Set, each {...} traverse one by one, collect {...} returns the processed result of the traversal set to the corresponding item, find {...} return the first item found according to the condition, findAll {...} return all items found according to the condition, min/max {...} returns the smallest and largest items in
with dynamic characteristics. Finally, I would like to add: Groovy's features are far from the list of these, such as the Mixins, builder series: Markupbuilder,swingbuilder, many of which are groovy and not in Java, so they are not listed, To continue in-depth learning groovy, visit the Groovy official website:http://groovy.codehaus.org , which has many examples and tutorials for everyone to see, You can also refer to the following groovy high-effici
Contact Us
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.