Click here to Skip to main content
15,887,827 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralRe: I hate recent C# versions! PinPopular
Richard MacCutchan6-Sep-22 0:52
mveRichard MacCutchan6-Sep-22 0:52 
GeneralRe: I hate recent C# versions! Pin
harold aptroot6-Sep-22 1:13
harold aptroot6-Sep-22 1:13 
GeneralRe: I hate recent C# versions! PinPopular
den2k886-Sep-22 4:04
professionalden2k886-Sep-22 4:04 
GeneralRe: I hate recent C# versions! Pin
DRHuff6-Sep-22 5:13
DRHuff6-Sep-22 5:13 
GeneralRe: I hate recent C# versions! PinPopular
Richard Deeming6-Sep-22 1:18
mveRichard Deeming6-Sep-22 1:18 
GeneralRe: I hate recent C# versions! Pin
Kate-X2576-Sep-22 22:08
Kate-X2576-Sep-22 22:08 
GeneralRe: I hate recent C# versions! Pin
Mateusz Jakub6-Sep-22 23:47
Mateusz Jakub6-Sep-22 23:47 
GeneralRe: I hate recent C# versions! Pin
Chris Maunder7-Sep-22 3:14
cofounderChris Maunder7-Sep-22 3:14 
No one is forcing you to use those new features unless you're working on a codebase that uses those new features.

Things like
C#
public readonly double Distance => Math.Sqrt(X * X + Y * Y);
are, for me, a matter of taste. Things like
C#
public static bool IsLetterOrSeparator(this char c) =>
    c is (>= 'a' and <= 'z') or (>= 'A' and <= 'Z') or '.' or ',';
give me stomach acid. A dev has saved a few keystrokes at the expense of structure.

This
C#
static Quadrant GetQuadrant(Point point) => point switch
{
    (0, 0) => Quadrant.Origin,
    var (x, y) when x > 0 && y > 0 => Quadrant.One,
    var (x, y) when x < 0 && y > 0 => Quadrant.Two,
    var (x, y) when x < 0 && y < 0 => Quadrant.Three,
    var (x, y) when x > 0 && y < 0 => Quadrant.Four,
    var (_, _) => Quadrant.OnBorder,
    _ => Quadrant.Unknown
};
is meant to provide neat, compact code but I worry that for someone new to C# it becomes a stumbling block.

My feeling is that it should be easy to switch between languages. Truly I wish there were only one language, but us humans are tribal and so that will never happen (and of course situations where a language needs to have specifics for the platform, hardware, compiler or programming methodology).

Even so, making a language simpler is better, and adding syntactic sugar for the sake of it simply diverges the language.

In many instances adding new features can converge languages. Javascript gaining the coalesce operator, C# getting the null-check. This is All Good. But like good art, they should add what they need and no more.
cheers
Chris Maunder

GeneralRe: I hate recent C# versions! Pin
Richard Deeming7-Sep-22 3:36
mveRichard Deeming7-Sep-22 3:36 
GeneralRe: I hate recent C# versions! Pin
Chris Maunder7-Sep-22 4:20
cofounderChris Maunder7-Sep-22 4:20 
GeneralRe: I hate recent C# versions! Pin
William Rummler7-Sep-22 5:40
William Rummler7-Sep-22 5:40 
GeneralRe: I hate recent C# versions! Pin
Philippe Verdy8-Sep-22 12:01
Philippe Verdy8-Sep-22 12:01 
GeneralRe: I hate recent C# versions! PinPopular
Kornfeld Eliyahu Peter6-Sep-22 1:26
professionalKornfeld Eliyahu Peter6-Sep-22 1:26 
GeneralRe: I hate recent C# versions! Pin
Gerry Schmitz6-Sep-22 5:47
mveGerry Schmitz6-Sep-22 5:47 
GeneralRe: I hate recent C# versions! PinPopular
BryanFazekas7-Sep-22 1:10
BryanFazekas7-Sep-22 1:10 
GeneralRe: I hate recent C# versions! PinPopular
OriginalGriff6-Sep-22 1:39
mveOriginalGriff6-Sep-22 1:39 
GeneralRe: I hate recent C# versions! Pin
PIEBALDconsult6-Sep-22 4:54
mvePIEBALDconsult6-Sep-22 4:54 
GeneralRe: I hate recent C# versions! Pin
harold aptroot6-Sep-22 5:04
harold aptroot6-Sep-22 5:04 
GeneralRe: I hate recent C# versions! Pin
PIEBALDconsult6-Sep-22 5:07
mvePIEBALDconsult6-Sep-22 5:07 
GeneralRe: I hate recent C# versions! Pin
harold aptroot6-Sep-22 5:10
harold aptroot6-Sep-22 5:10 
GeneralRe: I hate recent C# versions! Pin
PIEBALDconsult6-Sep-22 5:26
mvePIEBALDconsult6-Sep-22 5:26 
GeneralRe: I hate recent C# versions! Pin
harold aptroot6-Sep-22 5:38
harold aptroot6-Sep-22 5:38 
GeneralRe: I hate recent C# versions! Pin
PIEBALDconsult6-Sep-22 5:51
mvePIEBALDconsult6-Sep-22 5:51 
GeneralRe: I hate recent C# versions! Pin
NiL^6-Sep-22 21:43
NiL^6-Sep-22 21:43 
GeneralRe: I hate recent C# versions! Pin
PIEBALDconsult7-Sep-22 2:31
mvePIEBALDconsult7-Sep-22 2:31 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.