News for hackers. Stuff that matters.
Re:Ask HN: Why do you make class members private? by CoolGuySteve on Monday July 25, 2022 @02:48PM (#32229142)
It's been a decade since I used C# but the corporate design pattern culture of that language back then turned me off of it forever.

Everything looked like this: https://github.com/EnterpriseQualityCoding/FizzBuzzEnterpris...

Maybe it's better now but the Java/C# practice of shoveling largely empty classes around with an IDE isn't something I'd point to as a good example.

Re:Ask HN: Why do you make class members private? by Jtsummers on Monday July 25, 2022 @02:55PM (#32229242)
I've worked with C# off and on for over a decade, and never encountered anything close to that. Maybe the trick was that I was working with competent people.

Now the Fortran code I've encountered, that's the stuff of nightmares (to be fair to Fortran I've also encountered good code, but there seems to be a generation of embedded developers who have no formal programming training that all adopted a style of Fortran inspired by Cthulhu).

Re:Ask HN: Why do you make class members private? by schmookeeg on Monday July 25, 2022 @03:55PM (#32230080)
Wow, what a repo. I can't even tell if the author is serious or this is some tinderbox-dry satire, bravo either way.

I'm sad that I've worked with plenty of codebases that look exactly like that and I twitched a little bit browsing around. :)

Re:Ask HN: Why do you make class members private? by bathtub365 on Monday July 25, 2022 @07:03PM (#32232107)
From the readme: > Although this project is intended as satire, we take openness and inclusivity very seriously. To that end we have adopted the following code of conduct.
Re:Ask HN: Why do you make class members private? by jacquesm on Monday July 25, 2022 @04:00PM (#32230148)
You can see the exact equivalent in the Java world.
Re:Ask HN: Why do you make class members private? by 300bps on Monday July 25, 2022 @04:40PM (#32230615)
It's been a decade since I used C#

Well the last time I regularly used C++ was Borland C++ 3.1 from 1992. I'm not sure you'd be interested in my opinions on the language from 30 years ago.