DEV Community

C#, Dart, TypeScript , Python: side-by-side

Maxim Saplin on January 14, 2024

String formating Language Syntax Type Example Description C# Composite Formatting string.Format("Hello {0}!", "World") Uses index...
Collapse
 
Sloan, the sloth mascot
Comment deleted
Collapse
 
maximsaplin profile image
Maxim Saplin • Edited

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...

Collapse
 
webjose profile image
José Pablo Ramírez Vargas

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.

Collapse
 
webjose profile image
Info Comment hidden by post author - thread only accessible via permalink
José Pablo Ramírez Vargas • Edited

Guidelines for AI-assisted articles

It would also be nice to not artificially upvote articles. I'll never understand this practice.

Collapse
 
maximsaplin profile image
Maxim Saplin • Edited

"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.

Collapse
 
webjose profile image
Info Comment hidden by post author - thread only accessible via permalink
José Pablo Ramírez Vargas

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?

 
maximsaplin profile image
Info Comment hidden by post author - thread only accessible via permalink
Maxim Saplin

I don't like troll-like comments with false assumptions stated as facts

Collapse
 
webjose profile image
José Pablo Ramírez Vargas

What? No comeback? Just hide my comments. Follow the guidelines. It is not forbidden to use AI, you just need to disclose the fact.

Collapse
 
mjamesharmon profile image
M. James Harmon • Edited

Thank you for your write-up. One note on your OOP section – C# also has internal as a modifier for encapsulation.

Collapse
 
maximsaplin profile image
Maxim Saplin

Good point, updated! There're also protected internal and private protected access modifiers (but they are used less often).

Some comments have been hidden by the post's author - find out more