A
Alvin Bruney [MVP]
Consider this:
Data.Biz.User user = new
Data.Biz.User(Logic.Biz.User.connectionstring,Logic.Biz.User.Lib);
//returns a datatable
DataTable dt = user.UserInfoSearch(buffer.ToString());
DataSet ds = new DataSet();
ds.Tables.Add(dt);
return ds;
can be turned into this peice of poetry
System.Data.DataSet ds = new System.Data.DataSet();
ds.Tables.Add(new
Data.Biz.User(Logic.Biz.User.connectionstring,Logic.Biz.User.Lib).GetAgents());
return ds;
I find it very sexy that i can do everything in one line of code. Anybody
see readability problems with that? I'm thinking if you can't read this code
you shouldn't be working on the project anyway. Any recommended patterns and
practices against this approach?
Data.Biz.User user = new
Data.Biz.User(Logic.Biz.User.connectionstring,Logic.Biz.User.Lib);
//returns a datatable
DataTable dt = user.UserInfoSearch(buffer.ToString());
DataSet ds = new DataSet();
ds.Tables.Add(dt);
return ds;
can be turned into this peice of poetry
System.Data.DataSet ds = new System.Data.DataSet();
ds.Tables.Add(new
Data.Biz.User(Logic.Biz.User.connectionstring,Logic.Biz.User.Lib).GetAgents());
return ds;
I find it very sexy that i can do everything in one line of code. Anybody
see readability problems with that? I'm thinking if you can't read this code
you shouldn't be working on the project anyway. Any recommended patterns and
practices against this approach?