Recently doing a small project requires caching a batch of data and requiring persistence to disk. Using Ehcache is very simple and intuitive, generally only need to configure Ehcache.xml files, and then directly use @cacheable, @Cacheput,
Recommendation 148: Do not repeat codeIf duplicate code is found, it means we need to straighten it out and move on.Repetitive code makes our software behave inconsistent. For example, if there are two identical cryptographic codes. As a result, one
Recommendation 109: Use nested classes with cautionThe principle of using nested classes is that when a type needs to access a private member of another type, it is implemented as a nested class. A typical example is when implementing a collection
Recommendation 157: Automate testing from the start of writing the first interfaceIf unit testing is a white-box test, then automated testing is a black-box test. The black box test requires capturing the handle of the control on the interface and
Recommendation 136: Prioritize using suffixes to indicate new versions of existing typesAdding suffixes in some cases is a very strange form, and we are unwilling to see a type like OrderProcessor2. However, it is still necessary to do so at some
Recommendation 98: Reduce duplicate parameters with paramsIf a method has a variable number of arguments and the parameter type is the same, you can use the params keyword to reduce the duplicate parameter declaration. void Method1
This is a creation in
Article, where the information may have evolved or changed.
Go straight to the theme, first install INTELLJ idea 15 (other version also line), can be installed free community version, can also be installed to pay the ultimate
This is a creation in
Article, where the information may have evolved or changed.
Golang This emerging language, the most important thing is to Goroutine, and Goroutine Dispatch is Golang core. It can be said that without goroutine, the language
This is a creation in
Article, where the information may have evolved or changed.
In the Go language application, which involves sorting, usually implemented using the sort package, the sort package implements 3 basic sorting algorithms: Insert sort,
This is a creation in
Article, where the information may have evolved or changed.
import (_ "net/http/pprof")func main() {go func() {log.Println(http.ListenAndServe("localhost:6060", nil))}()}
This code should be familiar to everyone, the go tool
This is a creation in
Article, where the information may have evolved or changed.
Programming interface
Internal data structure
Listener and TcpListener
In simple terms, one is an interface, and the other is a concrete implementation. Because
This is a creation in
Article, where the information may have evolved or changed.
package testfuncimport("fmt")type Test struct{Name stringAge int}/*type Intio interface {Stringtest() string}*/func (this Test)
This is a creation in
Article, where the information may have evolved or changed.
Main Association initialization
The main association of Golang refers to the process of running the main function, while the Sub-association refers to the co-process
This is a creation in
Article, where the information may have evolved or changed.
Interface is the foundation of the abstract design of Golang, is the interface of the method collection, is a very powerful and canonical pointer, can refer to any of
This is a creation in
Article, where the information may have evolved or changed.
Determining Type Transformations
1234567891011121314151617181920212223242526272829303132333435
PackageMainImport("Encoding/json"
This is a creation in
Article, where the information may have evolved or changed.
Two-part method
Seeking Radical 5
Binary: 5/2=2.5
Squared checksum: 2.5*2.5=6.25>5, and gets the current limit of 2.5
Binary down again: 2.5/2=1.25
This is a creation in
Article, where the information may have evolved or changed.
PHP Version_compare is a version number string that compares two "php normalization".
mixed version_compare ( string $version1 , string $version2 [, string $operator ]
This is a creation in
Article, where the information may have evolved or changed.
Go 2.0 new features Outlook: detailed
What new features will go2.0 have? is a foreigner's ridicule, he does not want to happen such things (please don ' t make it
This is a created
article in which the information may have evolved or changed. Job Responsibilities: Responsible for system design and core code development (Go language development) to assist in the completion of some operations, DBA work.
This is a creation in
Article, where the information may have evolved or changed.
Objective
Value types: All types, such as int, float, bool, and string, are value types that use variables of these types to point directly to a value that exists in
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.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service