Learning .NET practices by reading Effective Java, 2nd Edition
Should I read Effective Java, 2nd Edition to learn .Net CLR 2.0 practices? If so, what sections of the book are not well suited for .Net? Note: My preferred language is C#3. ...
Should I read Effective Java, 2nd Edition to learn .Net CLR 2.0 practices? If so, what sections of the book are not well suited for .Net? Note: My preferred language is C#3. ...
Are there any formal recommendations on element casing in XML? I know XHTML uses lowercase element names (as opposed to HTML which canonically uses uppercase but is case-insensitive.) But I'm talking about XML for generic content. lowercase: <customer> <accountnumber>619</accountnumber> <name>Shelby Lake</name> </customer> c...
I generally like to think of myself as a patterns and practices guy. I like the structure and guidelines that they give me, my teams, and my projects. In general I find that developing against best practices and current patterns helps my projects to live longer and be more easily developed against and maintained. However, I have been ...
I remember using Configuration Application Block in Enterprise Library 1.0. What is the equivalent of it in 4.0 or 4.1 version? ...
Say I have a class that implements IEnumerable<T>. It currently uses the yield keyword in the GetEnumerator() method. But now I need to do a bit more, for example I would like to clean up after myself. To do this, unless I have overlooked anything, I need to implement the IEnumerator<T> interface. But where would you say I should do that...
I have a few software developers working for my projects and I would like to provide them a way to register time they spent on real development. There is good will to register development hours, no force, but we try to avoid techniques like excel sheets register because this is so uncomfortable. I can track svn commits, but this is unr...
How important are coupling and cohesion within a component of an application? Here, I am talking about all those classes in a component that are not published. How important is it for them to have high cohesion and low coupling? The reason I am asking is that I used an eclipse plugin to find out the design defects for a fairly simple pr...
I wrote a perl script a while ago which logged into my online banking and emailed me my balance and a mini-statement every day. I found it very useful for keeping track of my finances. The only problem is that I wrote it just using perl and curl and it was quite complicated and hard to maintain. After a few instances of my bank changi...
Have you ever restricted yourself to using a subset of language features, and more importantly, why? I'm curious to find out who choose to use only certain language features and avoid others in order to win big in areas such as, but not limited to, memory usage, execution speed or plain old readability and maintainability. And by doing ...
Can anyone tell me what I'm doing wrong here? #!/bin/sh if [ $# = 0 ] then echo "Usage: $0 <filename>" exit 1 fi sum=0 count=0 while [ $0 != 0 ] do sum="$sum"+"$2" count="$count"+ 1 done if [ "$count" != 0 ] then avg="$sum"/"$count" printf "Sum= $sum \n Count= $count \n Avg= $avg" exi...
Searching for input about UI design patterns regarding the use of hyperlinks vs buttons. A screen in a web application should/could have a mix of buttons and hyperlinks on it. It seems that the 'look' is the major governing factor as to which is used, but I want something more logical than that. Does anyone know of any hard and fast ru...
hi How do I start using patterns and practices efficiently for developing .net applications? ...
Hello everyone, Maven is very impressive tool, I've used it for few weeks now and almost every day I learn something new about maven. What do you think are the best practices? I found this relevant on the google http://www.sonatype.com/people/2009/01/maven-continuous-integration-best-practices/ , others are not relevant at all, and maven...
I'm working on my first very complex JQuery based application. A single web page can contain hundreds of JQuery related code for example to JQueryUI dialogs. Now I want to organize code in separated files. For example I'm moving all initialization dialogs code $("#dialog-xxx").dialog({...}) in separated files and due to reuse I wrap t...
Does Grails static 'mapping' property in Domain classes violate DRY? Let's take a look at the canonical domain class: class Book { Long id String title String isbn Date published Author author static mapping = { id generator:'hilo', params:[table:'hi_value',column:'n...
I have a 3rd party control which among other things performs loading of some data. I want my viewmodel to keep track of this load operation and adjust its own state accordingly. If it were up to me, I'd do the data loading far away from the view, but it is not. So, I seem to be in the situation where my viewmodel depends on my view. How...
Hi guys, Just want to hear some opinion on adding App_Code in Web Client Software Factory (WCSF) project. The main purpose is to put reusable UI rendering codes which can be use by various pages. For WCSF, I guess only controller can share across pages within a module which does not seems to be a good place for UI stuff. Suggestions?...
How to approach unit testing of private methods? I have a class that loads Employee data into a database. Here is a sample: > public class EmployeeFacade { public Employees EmployeeRepository = new Employees(); public TaxDatas TaxRepository = new TaxDatas(); public Accounts AccountRepository = new Accounts(); ...
Hello everyone.... I'm curious what are some good open source projects written in c# to learn about project architecture? ...
I was in Unity 1.2, use the following code: UnityConfigurationSection UnitySection = (UnityConfigurationSection)ConfigurationManager.GetSection("Unity"); Dictionary<string, IUnityContainer> Containers = new Dictionary<string, IUnityContainer>(); foreach (UnityContainerElement element in UnitySection.Containers) { IUnityContainer co...