IRC Networks
Irc Logs Stats
Start date: 2007-09-27 02:48:27
Last update: 2008-10-24 20:19:38
Channels: 41
Logged Lines: 6230436
Size: 1825.66 MB
Powered by
Channel Info
Network: freenodeChannel: #csharp |
Search in www.irclog.org
Log from #csharp at freenode 2006-07-24
[15:58]<zyccus>oh so you want different behaviour if your object is created from the same assembly or different?
[15:58]<sdnffdxdlld>private is generally used to implicitly say no construction
[15:59]<sdnffdxdlld>yer
[15:59]<zyccus>I use private ctors myself
[16:00]<zyccus>I was just wondering how you could have a ctor that worked differently (apart from visibility)
[16:00]<zyccus>now I see
[16:01]<sdnffdxdlld>I can kind of see the reason why its not allowed for preventing ambiguity ... but damn it
[16:03]<zyccus>well, I think it could be useful for some stuff
[16:03]<zyccus>not day to day stuff though ;)
[16:03]<sdnffdxdlld>aye
[16:15]<gjrvcxnne>whats up yall
[16:17]<cjmgrug>cheez!
[16:23]<cjmgrug>man.. i still have a LOT to learn in c#... :(
[16:23]<mjzymygo>C# or .NET?
[16:23]<cjmgrug>c#
[16:23]<mjzymygo>wow... it's not hard...
[16:23]<mjzymygo>whats the problem?
[16:24]<cjmgrug>like.. i have understood all the syntax and stuff
[16:24]<cjmgrug>and i can also code up things...
[16:25]<cjmgrug>but then , nowadays, i go crazy thinking whether this is a good way to do it or not..
[16:26]<cjmgrug>you know those 'techniques' you invent and keep wondering that perhaps someone somewhere must have found a better way :p
[16:27]<cjmgrug>ok, these books on C# .. which have sample code in them. Are they based on good programming practices?
[16:27]<mjzymygo>not always no
[16:27]<mjzymygo>some of them are just shit actually.
[16:28]<cjmgrug>then why do these friggin authors put it there in the first place.. its like you have to unlearn thier crap to make things work.
[16:28]<mjzymygo>this is a good intro for n00b's http://www.oreilly.com/catalog/hfdesignpat/
[16:28]<mjzymygo>CodeRun: they are just showing the basics
[16:28]<mjzymygo>enough to show a working example.
[16:30]<mjzymygo>if you need something more indepth then see: http://www.amazon.com/gp/product/0321247140/ref=pd_lpo_k2_dp_k2a_2_img/102-9387916-6025717?ie=UTF8
[16:30]<cjmgrug>so, this book is generalized for all languages?
[16:30]<mjzymygo>CodeRun: yeh.
[16:30]<cjmgrug>ok
[16:31]<mjzymygo>well, any OOP ones anyway
[16:31]<cjmgrug>right.
[16:31]<mjzymygo>it's all well and good knowing syntax and how to get functional feature X to work
[16:31]<mjzymygo>but unless you knowhow to piece it together, it can get messy
[16:31]<mjzymygo>it's a BIG problem out there
[16:33]<cjmgrug>exactly.. till yesterday i was making my form do all sorts of processing. And yesterday someone told me about the 'worker' class and its benefits of keeping form logic separate. And now it will be a daunting task to go back to my current miniprojects and change all that :p
[16:34]<mjzymygo>thats a tiering process. more an architectural thing than a 'code design' thing.
[16:34]<cjmgrug>yea
[16:34]<cjmgrug>i see
[16:34]<mjzymygo>http://www.google.co.uk/search?hl=en&q=n-tier&meta= <--
[16:35]<mjzymygo>also look into SOA (kinda a formalised view on tiering)
[16:35]<cjmgrug>but my point was that these sort of things werent mentioned in the few C# books i was referring to
[16:35]<mjzymygo>no, they aren't
[16:35]<mjzymygo>the subject is so broad, wide and subjective that the books would be stupidly big
[16:36]<mjzymygo>unfortunately you either need a good Uni course to point you in the right direction, or a competent company or people on this kind of resource
[16:36]<mjzymygo>(this room)
[16:36]<mjzymygo>with the experience
[16:36]<cjmgrug>yea
[16:38]<cjmgrug>hey, seems like those books are worth it. I'll probably order them now.
[16:38]<mjzymygo>the first one yes
[16:38]<mjzymygo>the second book AFTER the first one ;)
[16:38]<mjzymygo>the first book is a good intro with basic business cases
[16:39]<mjzymygo>the second one goes further and addresses the more in depth issues involved
[16:39]<cjmgrug>right
[16:39]<cjmgrug>ok
[16:39]<mjzymygo>;)
[16:46]<rwyfcygs>"Holub on Patterns" is good too
[16:46]<cjmgrug>i see
[16:46]<rwyfcygs>He runs through two full applications in Java and uses every Pattern from the first book on the way
[16:46]<cjmgrug>but i dont know Java..
[16:46]<rwyfcygs>Java is very like C#
[16:46]<cjmgrug>wont that confuse me?
[16:47]<mjzymygo>CodeRun: it shouldn't
[16:47]<cjmgrug>oh ok
[16:47]<mjzymygo>the principles where necessary are the same
[16:47]<rwyfcygs>You could make it an exercise ; port his code to C# while learning the Patterns
[16:47]<rwyfcygs>You learn more from doing than reading.
[16:48]<mjzymygo>^^^ agrees totally
[16:48]<cjmgrug>okay..
[16:49]<rwyfcygs>Also good is taking OO code you wrote a while ago, and picking through it to see where you unconsciously used patterns without knowing what you were doing.
[16:50]<wmrmmgnss>anyone know how I view a stored procedure's code via query analyzer
[16:50]<rwyfcygs>Bring up the object browser and ask to edit it?
[16:51]<mjzymygo>xmaddness: open the object window, navigate the DB tree until you find an SP
[16:51]<mjzymygo>then right click and select script as alter (or something like it)
[16:52]<wmrmmgnss>well see there lies the problem
[16:52]<wmrmmgnss>I do bot have distinct select privlidges on that table
[16:52]<wmrmmgnss>i use sp_help to list them
[16:52]<wmrmmgnss>and can do selects via code only
[16:52]<wmrmmgnss>I don't have access to the tables explorer object
[16:52]<wmrmmgnss>make any sence?
[16:52]<mjzymygo>xmaddness, then you need to talk to the DB's admin
[16:53]<wmrmmgnss>k
[16:53]<wmrmmgnss>there is nothing like VIEW sp
[16:53]<wmrmmgnss>?
[16:53]<mjzymygo>and maybe (just maybe) he will tell you if A) you can do it B) if you should do it
[16:53]<mjzymygo>xmaddness: yes there is, but it is subject to the same permissions
[16:53]<mjzymygo>so just as useless
[16:53]<wmrmmgnss>hrmm
[16:54]<wmrmmgnss>could you humor me with the code please so I can try it?
[16:54]<mjzymygo>no
[16:54]<wmrmmgnss>hrmm
[16:54]<wmrmmgnss>k thnx
[16:54]<mjzymygo>sorry bud. If the DB is owned by a DBA, then it's up to you to talk to him
[16:54]<mjzymygo>professionally I can't intervene
[16:54]<wmrmmgnss>well I am the one doing dev on this
[16:55]<mjzymygo>xmaddness: yeh, but it's the DBA's who are resposible for the data
[16:55]<wmrmmgnss>true
[16:55]<mjzymygo>they are king of the hill in this area, and their word is law







