I'm asking this question purely from an ease-of-development standpoint.
Performance is not a consideration, because we will have a build process that combines and compresses all our CSS files into a single file for release and then compresses it.
But which will be easier for a team of front-end developers to work with? Multiple files o...
Does anybody know of a tool that I could use with a C# application to find possible Law of Demeter violations? I know that it would give a lot of false positives, but I think it could still be useful. Especially during the early design process.
...
Hello,
Class could have static, private, protected, public methods. Each method is made for modifying, adding, removing etc.
How do you group functions in class's code to make it clean to read? What is the best practices?
Thank you.
...
Where I work, I often see code like that :
public void Test(Models.User.UserInfo userInfo, Models.User.UserParameter param)
{ ... }
Personally, I prefer to see something like that :
public void Test(UserInfo userInfo, UserParameter param) { ... }
And have an import at top.
What you think about this ? What the best practices ? W...
what in your opinion more standard / readable / efficient code of array declaration :
one way :
$days = array(1=>'Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat');
then use : $days[$value]
or the second way :
$days = array('Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat');
then use : $days[$value-1]
update : i cant sure that the...
I am wondering if there is a tool, that will parse a PHP project and fix a bad code style.
That is a double quoted string that has no variables should be changed to single quote.
$var1="change enclosing to single quote"."here too";
$var2="change enclosing in this string but keep $i"."change it here";
I would like to rewrite automati...
I was having a discussion with a co-worker over whether it is better to use a Dictionary and repopulate it whenever a result set changes or to just use linq loop over all elements in the list each time.
We're trying to map a parent / child relationship, and I suggested using the ParentID as the dictionary key, and the dictionary value a...