code-readability
Code structure: should I use lots of functions to increase readability?
My question has Bash and PowerShell scripts in mind, but I suppose it applies to other languages as well.[详细]
2023-02-02 16:18 分类:问答How can I implement NotOfType<T> in LINQ that has a nice calling syntax?
I\'m trying to come up with an implementation for NotOfType, which has a readable call syntax. NotOfType should be the complement to OfType<T> and would consequently yield all elements that are[详细]
2023-02-01 22:34 分类:问答Eclipse format question
When I format in eclipse long lines become from this : 开发者_JAVA技巧 String str = instance.someMethod(\"jhdajhajsha\").someOtherMethod(\"sakjsaksja\");[详细]
2023-01-31 14:37 分类:问答Should I include files included in another header?
Most often when creating multiple classes inside a program that use each other, I 开发者_运维知识库like to include only the minimum number of header files I need to reduce clutter.[详细]
2023-01-29 20:18 分类:问答How do I find methods?
Here\'s a somewhat general computer question. I\'ve always been able to follow the LOGIC of programming, but when I go to code something, 开发者_如何学GoI always find that I don\'t know some method or[详细]
2023-01-24 03:24 分类:问答Using { } to segment large blocks of code to improve code-readability - Good practice?
I\'m considering the option of using anonymous { } code blocks to logically distinguish \"code blocks\" inside the same method call, something that (theoretically) should improve readability of the co[详细]
2023-01-22 02:50 分类:问答Better way to structure an "If" statement
Which of the following is a better way to structure nesting of If statments. if (x && y) doXY();[详细]
2023-01-18 19:38 分类:问答Challenges of refactoring unit-tests to be maintainable and readable when dealing with List<T> objects
In the book The Art of Unit Testing it talks about wanting to create maintainable and readable unit tests. Around page 204 it mentions that one should try to avoid multiple asserts in one test and, pe[详细]
2023-01-17 10:00 分类:问答Don't you sometimes hate the way the "m" character looks in your code?
Most of us write code using monospaced fonts and the \"m\" character often (depending on the character combination) looks awful in monospaced fonts. It uses too many pixels in too little space.[详细]
2023-01-11 08:25 分类:问答What C# language features help you to reduce lines of code and improve readability? [closed]
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references,or expertise, but this question will likely solicit debate, a[详细]
2023-01-10 05:05 分类:问答