Comments (7)
Some arguments for this Style Guide:
https://google.github.io/styleguide/cppguide.html#Goals
from mars.
I tend (in all my projects) to follow this convention:
uses
,
<Standard libraries (i.e. FireDAC) units>
<Current framework (i.e. MARS) units>
;
In some situations where this makes sense I tend to separate even units in the same "group", according to some specific characteristic: i.e. all FB related units of FireDAC all on the same line...
from mars.
It look difficult to follow if those rules are not described precisely. For that moment can we start StyleGuide.md with only Uses section and describe it.
What about Code Formatter?
from mars.
I am not a huge fan of code formatters as, even if I try to stay consistent, sometimes I want to keep a custom formatting to improve readability...
But I totally agree I can describe my style in the Style Guide.
Thanks for pointing this out!
from mars.
clang-format
does support a wide variety of formatting but I don't now if it's useful for Pascal code.
from mars.
@baka0815 I’m afraid that it could be too little powerful. Even pure Object Pascal formaters can’t manage with new Delphi syntax like anonymous methods and generic types, but it’s good to know about such tool, thanks
from mars.
@andrea-magni OK then no code formatters with MARS. My heart is crying, but let it be.
By the way ... Maybe that should be mention in the Style Guide that code has too be formatted manually according to the rules
from mars.
Related Issues (20)
- Understanding "DefaultMARSJSONSerializationOptions.DateIsUTC" HOT 3
- Rate limiter HOT 1
- Issue with TObject and TArray<TObject> deserialization
- GET method to upload a file HOT 2
- Memory leak in TJSONObjectHelper.WriteStringValue HOT 1
- OpenAPI 3 schema serialization: property serialization order HOT 1
- Installation fails HOT 3
- OpenApi 3: no bodyparams exported HOT 1
- OpenAPI 3 broken if " DefaultMARSJSONSerializationOptions.SkipEmptyValues := False; "
- on Linux64: TJSONObjectHelper.ReadBoolValue can't get right value
- Multiple problems on Linux platform.
- Special use case of NULL field value HOT 2
- If CORS is enabled, the Access-Control-Allow-Methods are missing the PATCH method
- ThreadPoolSize HOT 1
- MARS change the request url if it finish with a slash
- [DCC Fatal Error] Net.CrossSocket.pas(21): F2613 Unit 'Net.CrossSocket.Epoll' not found. HOT 1
- Compilation fail if you use MARS.Utils.ReqRespLogger.Memory HOT 1
- Error compile in Delphi 12 HOT 1
- Memory Leak found HOT 2
- New resource for document API in StopLight format
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 mars.