Java Code Skills to Improve Performance

Preface Program performance is directly affected by code quality. This time, I will introduce some tips and practices in coding. Although some seemingly insignificant programming skills can bring about multiple improvements in system performance, it is worth noting. Use caution exceptions In Java development, try-catch is often used for erro ...

Posted by shahab03 on Thu, 30 May 2019 19:56:13 +0200

Write Makefile for small projects

This article takes one of my small projects as an example to illustrate the basic writing of Makefile files for GNU Make.Since I haven't read the GNU Make documentation carefully and don't know about the POSIX-compliant Makefile format, I may not be writing a Makefile very seriously, so don't hesitate to ask someone who is good at it. My small ...

Posted by lingo5 on Thu, 30 May 2019 19:03:07 +0200

AOP Face Oriented Programming

1. Generation of Aspect Oriented Programming Requirements Code clutter: With more and more non-business requirements (logs, validation, etc.) added, the original business approach has expanded dramatically.Each approach must take into account multiple other concerns while handling core logic. Code Distribution: For example, log requirements, ...

Posted by khendar on Wed, 29 May 2019 18:27:59 +0200

Design Patterns (Builder Patterns) - Builder Patterns

1. definition Separating the construction of a complex object from its representation enables the same construction process to create different representations. 2. introduction The builder model belongs to the creation model. Builder mode is mainly used to create complex objects, users can not care about its construction proce ...

Posted by deception54 on Wed, 29 May 2019 12:23:40 +0200

Comparison of Swift 3.0 and Swift 2

I. API changes in String classes Apart from the extensive modifications to the API in the Swift version of the Cocoa framework, some of Swift's core libraries have also undergone considerable changes.   String, the string type in Swift 3.0, is more concise on the method API, and the method associated with subscripts varies gr ...

Posted by spellbinder on Tue, 28 May 2019 00:52:48 +0200

Three layouts of CSS+DIV

After learning the concepts of box models, block-level elements and in-line elements, let's talk about one of the more important uses of CSS: layout. Previously, we learned that tables can be used to lay out pages, such as layout forms, but the actual layout of worksheets is usually only used to lay out forms. Most of the mould work is accompl ...

Posted by backslash on Sun, 26 May 2019 19:47:29 +0200

C#Asynchronous Programming 1 APM Mode Asynchronous Programming Development

C#has more than 10 years of history. From the update progress of Microsoft version 1 of 2 years alone, it is extremely vigorous. Asynchronous programming in C#has also undergone several versions of evolution. From today on, a series of blogs have been written to record the development of asynchronous programming in C#Advertisement for a friend ...

Posted by JeremyTiki on Sun, 26 May 2019 19:15:08 +0200

Process Dynamic Interception Injection API HOOK

Recently, I met a problem in my work. I need to judge the running state of the program through the program interface. At first, I thought it was very simple. It was not just a form control to get Button's status and Text. It happened that I did it last year. As the project delivery time approached, I was ready to start solving the problem. Sudd ...

Posted by ac1dsp3ctrum on Sat, 25 May 2019 23:55:16 +0200

Metal series of tutorials (2) - Metal implementation of LUT filters

Simple filter In our usual image processing process, the longest thing to do is to change the overall image of a certain color. Let's take an example. If we change the R value of all RGB to 0.5 times the original value, according to the previous wiki, the process of drawing a graph is vertex and fragment, and fragment is responsible for drawing ...

Posted by eazyefolife on Sat, 25 May 2019 22:41:02 +0200

2019-05-25 Java Learning Diary day15

aggregate Overview of object arrays, using import java.security.acl.Permission; import tan.jung.bean.Student; public class demo1_Array { public static void main(String[] args) { //int arr=new int[5]; //Create basic data type numbers Student [] arr=new Student[5]; //Create reference data type numbers ...

Posted by tc48 on Sat, 25 May 2019 21:50:36 +0200