Comments (3)
I agree with unix line-endings in the repository; after all, the window git clients can all be set to "checkout crlf, commit lf", which should be the default on everyone's machine.
As for tabs vs spaces, I've always used quite a strict rule, which I believe makes the most sense: indent by tabs, align by spaces, and don't mix both. Since I've authored quite a lot of code in MCServer, it would make sense to continue in this style.
What it means is that when it's a whitespace on the beginning of a line, it is a tab; when it's in the middle of a line, it's a space. The rationale behind is that everyone can set their tab width to whatever they want, and with that they'll adjust the indentation; but it won't break code alignment (sections of similar code aligned vertically, for example see the alignment in https://github.com/mc-server/MCServer/blob/master/source/BlockArea.cpp#L189 ).
For this to work, one needs to drop some bad habits, such as aligning multiline function calls to the parenthesis, and instead use indentation to show the levels (example in https://github.com/mc-server/MCServer/blob/master/source/BlockArea.cpp#L636 )
from cuberite.
Makes sense to me.
from cuberite.
I've changed the line endings, does everything seem good?
from cuberite.
Related Issues (20)
- 矿车的机制存在很多问题 HOT 5
- 内存回收的问题
- 是否有计划的添加基岩版协议的支持?【Are there plans to add support for the Bedrock Edition protocol?】 HOT 4
- Shift-clicking within a cLuaWindow does not resend player inventory if the OnClicked callback calls CloseWindow HOT 1
- If the player picks up armor while within a chest GUI, the armor won't be rendered
- Feature request: Lua hooks for clicks in the player inventory
- Can't craft a boat in client 1.8.9
- 无法下载服务端 HOT 1
- Players Become Invisible after Teleportation
- Add ARMel builds
- [Building] What's the first GCC version which supports C++17? HOT 1
- Mining bedrock with packetmine drops bedrock. HOT 4
- How offline players join the server HOT 1
- cRoot:ForEachPlayer does not report players that haven't been spawned yet HOT 2
- tnt无法设置为none
- Crash on startup (Segmentation fault) on OpenWRT mips HOT 7
- PPC64 server seems to be unable to handle player XYZ? HOT 2
- Website download page windows does not work HOT 2
- Taking damage on TP HOT 4
- Download Is Unavailable
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 cuberite.