24. Interpreter

Interpreter Pattern: Define the grammar of a language and create an interpreter to interpret sentences in that language, where "language" refers to code that uses prescribed formats and grammars. The Interpreter pattern is a kind of behavioral pattern. The Interpreter pattern consists of the following roles: Abstract Expression: An Ab ...

Posted on Thu, 10 Oct 2019 02:59:13 -0700 by gerry123

junit unit testing

Use of junit: white box testing Steps: 1. Define a test class (test case) * Test Class Name: The Class Name under Test, e.g.Calculator * Package name: xxx.xxx.xx.test 2. Define test methods: they can run independently * Method Name: Method Name of test Test test, e.g. testAdd() * Return value: ...

Posted on Sun, 06 Oct 2019 12:53:00 -0700 by Bluelove

30 Python Practical Codes for Instant Use

Python is one of the most popular languages. It is widely used in data science, machine learning, web development, scripting and automation. Its simplicity and ease of use make it so popular. In this article, we will introduce 30 short code snippets that you can understand and learn in 30 seconds or less. 1. Check duplicate elements The followi ...

Posted on Sat, 21 Sep 2019 03:46:55 -0700 by BVis

Realization of UE4_WindField Ares Wind Field Field Wind Injection

In the first few parts of the engine, from the object definition of rendering threads and logical threads to the fluid simulation of wind force in the algorithm, the basic wind simulation framework is built, and the preliminary debugging method i ...

Posted on Thu, 12 Sep 2019 07:15:52 -0700 by ViperSBT

3D Game-Foundation of Discrete Simulation Engine

3D Game-Foundation of Discrete Simulation Engine GitHub blog address Short Answer Questions Explain the differences and connections between Game Objects and Assets. GameObject: The game object is a component that can accommodate the actual func ...

Posted on Tue, 10 Sep 2019 20:44:49 -0700 by PHPFEEDER

C# keyword: static

1. static keyword Next, I designed a floating class of mortgage interest rate (to calculate how much the mortgage interest rate has risen): 1 public class InterestRateGoUp 2 { 3 public InterestRateGoUp() 4 { 5 Rate = 4.9m; 6 } 7 8 /// <summary> 9 /// benchmark interest rate 10 /// &lt ...

Posted on Tue, 10 Sep 2019 04:44:35 -0700 by Trs2988

Lua implements alternative calculators

Lua's use is now essentially a necessary skill in the game industry. Because it is not used in the project, I have seen several tutorials, experimented several times, and I haven't written something systematically, so I forget how long I have rea ...

Posted on Thu, 29 Aug 2019 02:05:08 -0700 by rharter

Qt--The concept of process and thread, Qt multithreaded programming, synchronization between multiple threads

1. The concept of processes and threads A. Concepts of processesa. Programs are data files in computer storage systemsSource code programs--text files that describe program behavior and functionalityExecutable program--binary file, load and execute directlyThe concept of a process has two layers, broadly speaking, it refers to a running activi ...

Posted on Tue, 20 Aug 2019 18:11:39 -0700 by cvincent

Spring-AOP Source Parsing (Case+Parsing)

1.AOP Interpretation From Baidu Encyclopedia AOP is the abbreviation of Aspect Oriented Programming, which means: facet-oriented programming, a technology for unified maintenance of program functions through precompilation and run-time dynamic agents.AOP is the continuation of OOP, a hot spot in soft ...

Posted on Thu, 08 Aug 2019 18:41:32 -0700 by electricblue

Look! Idle Fish Open Source Another Flutter Development Tool

Ali Mei Guide: With the rapid development of Flutter framework, more and more businesses begin to use Flutter to reconstruct or build new products. But in our practice, we found that on the one hand, Flutter has high development efficiency, excellent performance and good cross-platform performance, on the other hand, Flutter is also facing ...

Posted on Mon, 05 Aug 2019 20:54:22 -0700 by daydreamer