Skip to navigation Skip to content
Simon Technology Blog
  • Architecture
  • Cloud
  • Database
  • Develop
  • Hardware
  • Industry
  • Language
  • Mobile
  • Opensource
  • OS
  • Web
Main Navigation

Category: Design Pattern

Design pattern (Design pattern) is a set of code design experience that has been used repeatedly and is known to most people. The use of design patterns is to reusable code, make it easier for others to understand, and ensure code reliability. There is no doubt that design patterns are win-win for others and systems; design patterns make code preparation truly engineering; design patterns are the cornerstone of software engineering, just like the structure of a building.

Create a set of interdependent Lua files without affecting global namespaces

tl; dr: What design pattern allows you to split Lua code into multiple files that need to share certain information without affecting the global table?

Background

The need for libraries

September 30, 2021By Simo Design Pattern a set of, create, dependence, file, Global, influence, lua, mutual, naming, no, spaceLeave a Comment

Repository – domain driver design – repository and polymeric roots

I have a domain model that includes forums.

I have forums, posts, and post entities.

The forum is a Independent entity. That is, it does not contain threads as part of the aggregation.

September 30, 2021By Simo Design Pattern aggregation, design, Domain, Drive, Library, Root, storageLeave a Comment

Returns a Data.Table aggregation of the vector, such as scale ()

I recently used a larger data set, and started to learn and migrate to data.table to improve the performance of aggregation/grouping​​. I can’t convert certain expressions or Function grouping. The

September 30, 2021By Simo Design Pattern aggregation, data, Data.Table, for example, return, SCALE, table, vectorLeave a Comment

OOP – What is the example of a single responsibility?

Can someone give me an example of the single responsibility principle? I am trying to understand that in practice, a class has a single responsibility because I am worried that I may violate this r

September 30, 2021By Simo Design Pattern example, OOP, principle, responsibility, single, whatLeave a Comment

Reference polymerization Mysql alias

Continue my question summarizing-two-conditions-on-the-same-sql-table, I added a RATIO column, it is just a SUM(…) column divided by the second SUM(…) columns:

SELECT
COMPANY_ID,
SUM(CASE W

September 30, 2021By Simo Design Pattern alias, Column, mysql, polymerization, QuoteLeave a Comment

Unit test – unit test SitemapNode

Does anyone know how to unit test SiteMapNode? We are building some custom navigation controls that use custom attributes to render an unordered html list from the site map.

I am trying to fo

September 30, 2021By Simo Design Pattern site, SitemapNode, test, UnitLeave a Comment

Multiple aggregation and expansion – Spring Data MongoDB

I have a mongo query to expand four object arrays and filter data based on matching conditions. How do I perform the same operation in Spring Data mongodb

db.generator.aggregate([
{ $unwind :

September 30, 2021By Simo Design Pattern aggregation, data, Expand, MongoDB, multiple, springLeave a Comment

Extract the public dependency module to existing entrance CHUNK, or extract a newly generated chunk

The official document uses a plug-in:

new webpack.optimize.CommonsChunkPlugin({ name:’common’ // Specify the name of the common bundle. })
but an error: webpack .optimize.CommonsChunkPlugin

September 30, 2021By Simo Design PatternLeave a Comment

In R, how to use “aggregation” or “pass” when not all factors combinations

This is a small example to illustrate my data:

> df <- data.frame(subgroup =rep(paste("s",1:3, sep=""), times=3), feature=c(rep("a",6), rep("b",3)) , var=rep(1:3, each=3), data=c(rnorm(3,1

September 30, 2021By Simo Design Pattern aggregate, all, combinations, factors, How, in, Medium, not, pass, useLeave a Comment

Polymerization multiplex UML

My colleague and I cannot reach an agreement. In UML, when performing aggregation, the multiplicity of the diamond edge is 1, or it can be 0.. *? Or does it depend on a point of view?
Thank you in

September 30, 2021By Simo Design Pattern multiplex, polymerization, UMLLeave a Comment

Posts navigation

Page 1 Page 2 Page 3 … Page 10
Recent Posts
  • Sencha-Touch-2 – Sencha Touch 2, Nested XML Analysis NodeValue
  • Add a separation line and format XML content
  • Is there a norm of simplified XML subsets?
  • Look at it when you write React
  • ReactJS – Present React Redux React-Router App to add the server to the Firebase hosted by the Firebase
Categories
  • Android
  • Apache
  • Apache Kafka
  • Asp
  • Auto-Test
  • Automated Build
  • Aws
  • Bitcoin
  • Browser
  • C & C++
  • C#
  • Centos
  • Cgi
  • Character
  • Cloud Service
  • Cocos2dx
  • Cordova
  • CSS
  • Data Structure
  • Delphi
  • Design Pattern
  • Dojo
  • Dubbo
  • ELK
  • Flex
  • football
  • Game
  • Hadoop
  • Hibernate
  • HTML
  • Hybrid
  • Intel
  • IOS
  • Ipad
  • iPhone
  • Java
  • Javascript
  • Jetty
  • JQuery
  • Jsp
  • Linux
  • Load Balance
  • Lua
  • Macbook
  • Macos
  • Mathematics
  • Micro Services
  • Monitoring
  • Motherboard
  • Mysql
  • Network Hardware
  • Network Marketing
  • Nginx
  • NodeJs
  • Nosql
  • Oracle
  • Os Theory
  • Performance
  • PHP
  • Postgresql
  • Power Designer
  • React
  • Redis
  • Regexp
  • Rom
  • Rss
  • Ruby
  • Search Engines
  • Shell Script
  • Silicon Valley
  • Silverlight
  • Software Design
  • Spring
  • Sql
  • Sqlite
  • Sqlserver
  • Storage
  • Storm
  • Surface
  • SVN
  • Swift
  • System Architecture
  • Tablet
  • Uncategorized
  • Unix
  • Visual Basic
  • Visual Studio
  • Web Crawler
  • WebService
  • Windows
  • Wireless
  • XML
  • ZooKeeper
Archives
  • October 2021
  • September 2021
  • August 2021
  • May 2021
  • April 2021
  • September 2020
  • September 2019
  • August 2019
  • June 2019
  • May 2019
  • April 2019
  • March 2019
© Simon Technology Blog 2025 • ThemeCountry Powered by WordPress