anti-patterns
C#: Enum anti-patterns [closed]
Closed. This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this[详细]
2023-01-19 11:47 分类:问答What's this pattern called?
Some I\'m reviewing some code within my team\'s code base, where we traverse over one hierarchical data structure and build a new data structure from it. There are no nested loops -- every level of th[详细]
2023-01-08 19:37 分类:问答Is using D string mixins for code reuse an anti-pattern?
For those of you who are not familiar with D string mixins, they\'re basically compile-time evals.You can take any compile time string (whether a literal or generated by template metaprogramming or co[详细]
2023-01-08 01:27 分类:问答Creating custom events - Object Sender or Typed Sender?
I searched through the archives and I found lots of questions about what sender is and why you should use the pattern but I didn\'t see anything about a custom event and the type if sender.[详细]
2023-01-07 03:57 分类:问答Is this hardcoding? How can I avoid it?
I\'m creating a parser for a specific XML structure and I\'m facing a possible hardcoding issue. Here:[详细]
2023-01-06 04:58 分类:问答How to deal with null value in <select> HTML filter?
I have an user interface that print user, and I wan\'t to have a filter by country. I made a classic <select /> element.[详细]
2023-01-05 14:49 分类:问答Extending singletons in PHP
I\'m working in a web app framework, and part of it consists of a number of services, all implemented as singletons. They all extend a开发者_开发技巧 Service class, where the singleton behaviour is im[详细]
2023-01-05 01:19 分类:问答Methods calling other methods in the same class
In class design, is it a bad habit if one method calls another method in the same class (For example, 3 methods call 1 method in the same class).[详细]
2023-01-01 04:10 分类:问答Is there a case for parameterising using Abstract classes rather than Interfaces?
I\'m currently developing a component based API that is heavily stateful. The top level components implement aro开发者_如何学编程und a dozen interfaces each.[详细]
2022-12-29 12:52 分类:问答Aliasing a namespaced route in Rails
Given t开发者_如何学运维he following routes.rb file: # Add Admin section routes map.namespace :admin do |admin|[详细]
2022-12-29 01:23 分类:问答
加载中,请稍侯......