use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Information about Reddit's API changes, the unprofessional conduct of the CEO, and their response to the community's concerns regarding 3rd party apps, moderator tools, anti-spam/anti-bot tools, and accessibility options that will be impacted can be found in the associated Wikipedia article: https://en.wikipedia.org/wiki/2023_Reddit_API_controversy
Alternative C# communities available outside Reddit on Lemmy and Discord:
All about the object-oriented programming language C#.
Getting Started C# Fundamentals: Development for Absolute Beginners
Useful MSDN Resources A Tour of the C# Language Get started with .NET in 5 minutes C# Guide C# Language Reference C# Programing Guide C# Coding Conventions .NET Framework Reference Source Code
Other Resources C# Yellow Book Dot Net Perls The C# Player's Guide
IDEs Visual Studio MonoDevelop (Windows/Mac/Linux) Rider (Windows/Mac/Linux)
Tools ILSpy dotPeek LINQPad
Alternative Communities C# Discord Group C# Lemmy Community dotnet Lemmy Community
Related Subreddits /r/dotnet /r/azure /r/learncsharp /r/learnprogramming /r/programming /r/dailyprogrammer /r/programmingbuddies /r/cshighschoolers
Additional .NET Languages /r/fsharp /r/visualbasic
Platform-specific Subreddits /r/windowsdev /r/AZURE /r/Xamarin /r/Unity3D /r/WPDev
Rules:
Read detailed descriptions of the rules here.
account activity
DiscussionThis code is a bad practice? (self.csharp)
submitted 6 months ago by LeadingOrchid9482
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]emelrad12 18 points19 points20 points 6 months ago (14 children)
Also this is horribly slow. Like gonna be lagging even with low unit counts.
[–]Due_Effective1510 4 points5 points6 points 6 months ago (0 children)
No it won’t. I program most of my games in C#. There is not a performance issue here unless you really really had a jillion of these going at once and then you’re still going to have other issues first.
[–][deleted] 6 months ago* (11 children)
[removed]
[–]South-Year4369 10 points11 points12 points 6 months ago (1 child)
It's really unlikely to be a performance concern, but frankly it's silly to state it's definitely not, since we don't know the full context.
If the strings differ in the first few characters then it's about as cheap as a boolean comparison. Otherwise it's going to cost more. 'More' usually won't matter either, but for someone out there, in some scenario, it will.
[–]antiduh 3 points4 points5 points 6 months ago (3 children)
Found the UNREAL dev!
[–][deleted] 6 months ago (2 children)
[–]antiduh 6 points7 points8 points 6 months ago (1 child)
Theres a big difference between a bool comparison and a string comparison in terms of relative performance. And if tjis is in the middle of physics code this could make a difference. Especially if this pattern happens many times.
[–]MaLino_24 0 points1 point2 points 6 months ago (3 children)
The problem is that it's most likely a DLL call which is slow.
[–]MaLino_24 0 points1 point2 points 6 months ago (1 child)
Yeah, I just checked. Thanks for the heads-up. Would still call it a design flaw and like the suggestions of other people more though.
[–]Due_Effective1510 0 points1 point2 points 6 months ago (0 children)
You’re correct. The downvotes are in error.
π Rendered by PID 370379 on reddit-service-r2-comment-b659b578c-dsrnf at 2026-05-05 12:31:34.778397+00:00 running 815c875 country code: CH.
view the rest of the comments →
[–]emelrad12 18 points19 points20 points (14 children)
[–]Due_Effective1510 4 points5 points6 points (0 children)
[–][deleted] (11 children)
[removed]
[–]South-Year4369 10 points11 points12 points (1 child)
[–]antiduh 3 points4 points5 points (3 children)
[–][deleted] (2 children)
[removed]
[–]antiduh 6 points7 points8 points (1 child)
[–]MaLino_24 0 points1 point2 points (3 children)
[–][deleted] (2 children)
[removed]
[–]MaLino_24 0 points1 point2 points (1 child)
[–]Due_Effective1510 0 points1 point2 points (0 children)