15,905,322 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View Python questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by RuthWa (Top 13 by date)
RuthWa
7-Mar-24 5:35am
View
Okay. Thank you for the clarification an for the answer.
RuthWa
7-Mar-24 2:24am
View
I understand the "services.RegisterSingleton<IDog, Dog>();" line. But on the other side it is not clear for me what the line "services.RegisterSingleton<Dog>();" is supposed to do. Why can't we just use Dog class without registering it?
RuthWa
6-Mar-24 14:47pm
View
I know that files must be structured according to content logic. I'm talking about the case where further grouping is not possible. And even in that case, I still feel bad when I see different or even chaotic order of files.
But anyway, thanks for the answer. I appreciate it.
RuthWa
6-Mar-24 14:37pm
View
I thought it is necessary to use interfaces for "Tight Coupling between classes" avoiding. Especially since I encountered many articles which state how decoupling is vital.
At least, I can see now the approach "ICat -> Cat; IDog -> Dog" is disputed. As an inexperienced beginner before, I asked myself, why do I really need the Interfaces here. Now I came to the same point.
RuthWa
12-Feb-24 18:50pm
View
Perhaps I nitpicked to those rules a little bit and overrated their importance as extremely vital. Thanks. I'll reconsider my approach to using rules.
RuthWa
12-Feb-24 18:12pm
View
Okay. I made this code myself. The thing is, I find default implementations very useful. So I don't understand why lots of people hate this feature, especially if there are no alternatives to add some additional functionalities to any class, even if it is derived from another one. Actually, those alternatives exist, but no one that doesn't break rules such as DRY principle or CA1040 which says "Avoid empty interfaces".
"So the empty interface with an extension method would be the likely solution." - Maybe, but it is a violation of CA1040 rule.
Anyway, thanks for the answer.
RuthWa
6-Oct-22 20:10pm
View
Thanks a lot. I didn't know that unlike multiple classes I really can use multiple interfaces as constraint.
RuthWa
6-Oct-22 4:27am
View
The thing is i don't like the fact the negation consists in a single thin stick with a dot (i.e. one character named 'exclamation mark'). For me it is difficult to notice, especially when it stands right before 'I' character which has similar form. So it doesn't matter in what direction to read either right to left or left to right or whatever. This way doesn't help me with both code reading and code looking.
RuthWa
5-Oct-21 7:11am
View
That's incredible. Thanks a lot!
RuthWa
4-Oct-21 22:02pm
View
Cool, I've never seen that before. But is it right? Can you shortly explain what is it? Does it allowed to use such thing not only for nullable boolean, but both "bool" and "bool?" ?
It is probably the best answer.
RuthWa
4-Oct-21 21:31pm
View
Maybe it is acceptable, but
https://rules.sonarsource.com/csharp/RSPEC-1125
So yes, the second option would be appreciated.
RuthWa
4-Oct-21 21:28pm
View
I agree, it does (at least for me). But most of people will not, because https://rules.sonarsource.com/csharp/RSPEC-1125.
RuthWa
12-Jan-20 20:48pm
View
Interesting solution. It will help. Thank you for answer!
Show More