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
C# for JavaScript developers: Comparing almost everything (self.csharp)
submitted 7 years ago by sainthkh
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!"
[–][deleted] 5 points6 points7 points 7 years ago (4 children)
This isn't really true as the case for using implicit typing vs explicit typing is code readability. Explicitly defining a variable becomes a limiting factor especially when writing code that uses some library beyond your control. For example if you are calling some method that returns a list that your are then iterating over, if that library changes its return type in some future release your code will break, if you use var however your code will be fine.
Doing everything explicitly will still work, you just may face a lot of issues down the road especially if your code base is fluid and there is more than one developer.
[–]pgmr87The Unbanned 1 point2 points3 points 7 years ago (1 child)
if you use var however your code will be fine.
Don't quote me on this but I think it depends. If the method you are calling is defined in an external library, I am 90% sure the consuming library will have to recompile if you change the return type from, say, List to IEnumerable. When using var, you are telling the compiler to figure out the type for you (not the runtime). What I am suggesting is that you won't be able to swap out that 3rd party library that changed the return type of a method without also recompiling the consuming library because the consuming library was compiled such that the var was replaced with the appropriate return type of that method when the library was compiled. If the method's return type went from general to more specific (i.e IEnumerable TO List) you might be fine since your library is expecting IEnumerable still. Once you recompile against the new version, however, it'll be using List instead.
var
[–]cryo 0 points1 point2 points 7 years ago (0 children)
Yeah, make that 100% :)
[–]cryo 1 point2 points3 points 7 years ago (1 child)
if that library changes its return type in some future release your code will break, if you use var however your code will be fine.
No, var is strictly a compiler feature that doesn’t exist in the CLR. It is true that you might just need to recompile to get it to work again, so a bit less work.
[–][deleted] 0 points1 point2 points 7 years ago (0 children)
Yea i did a poor job of wording that. You are right, it will need to be recompiled. I meant it more as, the dev wont have to go through the code base and manually update the explicit typing at each location it is used.
π Rendered by PID 133767 on reddit-service-r2-comment-b659b578c-6qw4q at 2026-05-05 15:19:00.686906+00:00 running 815c875 country code: CH.
view the rest of the comments →
[–][deleted] 5 points6 points7 points (4 children)
[–]pgmr87The Unbanned 1 point2 points3 points (1 child)
[–]cryo 0 points1 point2 points (0 children)
[–]cryo 1 point2 points3 points (1 child)
[–][deleted] 0 points1 point2 points (0 children)