1. 程式人生 > 遊戲 >DICE將移除《戰地2042》128人突破模式 稱64人“更具戰術性”

DICE將移除《戰地2042》128人突破模式 稱64人“更具戰術性”

在寫面向物件程式程式碼時有時想不起來應該用什麼單詞給類命名,以下把一些經常使用單詞列出來,供以後敲程式碼時參考:

獲取器或查詢器:

Getter

Finder

Accessor

驗證器或比較器:

Checker

Matcher

Validator

Comparator

Sorter

改動器或編輯器:

Modifier

Updater

Adjuster

Editor

傳送器或接收器:

Emitter

Sender / Receiver

Broadcaster / Multicaster

訪問器或迭代器:

Visitor

Iterator

生命週期相關:

Loader

Parser

Constructor / Maker / Creator / Generator

Initializer

Register

Activator

Starter

Stopper

Destroyer

事件相關:

Listener

Producer / Consumer

Observer / Observable

Timer

封裝或容納:

Adapter

Wrapper

Container

Server

過濾器或攔截器:

Filter

Interceptor

使用者角色相關:

Signer

Owner

User

Member

Operator

Authenticator

代理類:

Proxy

Broker

Delegate

Gateway

監控,跟蹤或探查器:

Detector

Profiler

Monitor

Tracker

Introspector  

多執行緒相關:

Synchronizer

Blocker

Holder

Worker

輔助類或工具類:

Helper

Supporter

Util

Utility

Kit

Tool

Toolkit

建立或生成器:

Maker

Creator

Generator

Constructor

Builder

Supplier

Provider

Factory

選擇器或決策器:

Chooser

Selector

Mediator

Arbitrator

Decider

Allocator

Scheduler

處理器:

Resolver

Processor

Handler

Executor

管理或控制器:

Ruler

Controller

Manager

Ordinator

Leader

Master

單一功能:

Loader

Parser

Register

Descriptor

Formatter

Marshaller / Unmarshaller

Encoder / Decoder

Counter

Viewer

Locator

Accumulator

Recognizer

Scroller

Printer

Compiler

Cleaner

Reader / Writer

Buffer

Transformer

Collector

Converter

Connector

Packer / Extractor

Scanner

Linker

Mapper

Streamer

Scheduler

Enhancer

Renderer

Painter

Weaver