String formating
Language
Syntax Type
Example
Description
C#
Composite Formatting
string.Format("Hello {0}!", "World")
Uses index...
Some comments have been hidden by the post's author - find out more
For further actions, you may consider blocking this person and/or reporting abuse
Tell about those horrible newlines to 100% of C# code produced by MS: github.com/dotnet/efcore/blob/main...
Frankly I don't understand why something that subjective (e.g. tabs vs spaces, newline or same line starting bracket) can be presented as something definitive and solely right...
Besides, I don't understand the python sample you gave, it is invalid syntax and won't run...
The trend you mention has been in place for decades, ever since the inception of C# and is the de-facto standard for this language. That's not changing any time soon.
Guidelines for AI-assisted articles
It would also be nice to not artificially upvote articles. I'll never understand this practice.
"we care most that the author of the post is able to stand by the information they are sharing. " - go check my GitHub, those 4 languages are the ones I code a lot
It would also be nice to leave comments only after reading the article. I'll never understand this practice.
Why would it be relevant that you code a lot in those 4 languages? Does it change the fact that the guidelines for AI-assisted articles was not followed? How does one connect the dots here?
Also, why hide my comment?
I don't like troll-like comments with false assumptions stated as facts
What? No comeback? Just hide my comments. Follow the guidelines. It is not forbidden to use AI, you just need to disclose the fact.
Thank you for your write-up. One note on your OOP section – C# also has internal as a modifier for encapsulation.
Good point, updated! There're also
protected internalandprivate protectedaccess modifiers (but they are used less often).