Comments (3)
"Target" can be a verb or noun hence the ambiguity. OnTargetting or OnBeginTarget would eliminate the ambiguity.
from ue5-style-guide.
Think of a function named "OnJumping". Does that happen when jump started, or when it ended, or every frame while jumping? Of course, we could write "OnBeginJump", at which point we've landed on shortening it to simply "OnJump", which we can all agree follows the established guidelines.
The two first "good examples" are also nouns:
OnDeath
OnPickup
This leads me to believe that "OnTarget" is mistakenly listed as a "bad example", not that the whole category is incorrect.
from ue5-style-guide.
Jump is an action, Target is not.
I agree that it's a bad "bad example" but only the fact that we have this conversation illustrate that function names don't have to be ambiguous.
from ue5-style-guide.
Related Issues (20)
- Virtual Production Naming Conventions and Best Practices
- Open Call for All Proposals
- UI / UMG / Slate Naming Conventions and Best Practices HOT 3
- MM_ for Master Materials, and new name for Master Materials HOT 5
- Modular Gameplay Best Practices HOT 2
- PC_ for LiDAR point cloud data
- UE5 Installation HOT 2
- SM instead of S for static meshes for some, um, logical reasons... HOT 1
- Style guidelines for postprocessing buffers
- Section 0.3 - Broken Link
- Title cheat me with Gamemakin UE4 Style Guide HOT 2
- Struct prefix clashes with Static Mesh HOT 1
- Update UE5 style guide with respect to "Lyra example project" HOT 1
- Work files?
- How should I handle name collisions from class variables to function variables and locals? HOT 1
- Data Validations
- Lack of direction around Data Asset naming HOT 1
- MetaSound Prefix? MS_ or A_? HOT 2
- Would Love More Directory Structure Examples HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ue5-style-guide.