@# Quotes DB     useful, funny, interesting





Google
 
Web www.quotesdb.info
Undernet  |  EFnet  |  Quakenet  |  Freenode  |  Dalnet  |  Ircnet  |  Galaxynet
Page: 1 2



Comments:

<0> just did the brainbench test on c#... there is actually a number of things I didnt really know about c# .. or, more so, have never actually needed/used
<1> of all the tests I have taken for C#, ASP.NET, oracle whatever the actual useful information I learned was like 10%
<2> FuzyLogic: like ?
<0> ki9a, just lots of little things like structs, which I've never had any use for
<1> maybe more on the oracle one
<0> I knew they existed
<0> but when asked Q's on it.. I had to make some good guesses (multiple choice)
<2> heh
<2> structs are there
<2> datetime is a struct
<2> but then again it's immutable
<2> so that doesn't matter much.
<3> FuzyLogic: No kidding. I hated making the transition between academic and real code.
<3> It's a shame that there's a difference.



<2> sure
<2> but do you want to?
<0> no.. but it was one of those m/c questions I had :P
<0> things you normally never come across, but they quiz you on it :P
<4> can you create new operators in C# ? obviously operator "overloading" implies overloading existing operators. I'm just curious, if for my objects I could make a ^ operator or a := operator.
<2> only existing ones
<4> I thought soz
<5> um why does this really matter?
<5> "A local variable named 'MT' cannot be declared in this scope because it would give a different meaning to 'MT', which is already used in a 'child' scope to denote something else"
<5> if its another scope, its not even available
<5> and its not the same var
<2> scopes are nested
<5> yes but um. still, why? :P
<2> like { int MT=15; if (x == 1) { double MT=1.4; } }
<5> no its not even that
<5> this was like: { int MT = 1; } int MT = 4;
<2> you shouldn't use vars like that
<5> with more inside the {} obviously
<2> it's for your own safety
<5> ok so it's kindergarten
<2> y4es
<2> be glad though
<5> bleh. playmobil language
<5> :)
<2> delphi can be worse
<0> just like delegates and events.. for our own safety? :)
<2> the implementation of a deprecated method
<2> is "deprecated"
<2> (you'll get a warning)
<5> but this is really not invalid code
<5> its just stupid babysitting
<2> it works in chrome ;)
<5> **** on my chrome :P
<2> var mt: Integer := 1; begin var mt: integer <<< won't work
<2> but the other way around works fine
<5> no well, i could understand that
<5> but i dont understand the other way
<5> but i know why now, mktx
<0> well hopefully I've caught up enough on C# and learnt enough ASP.NET to get through my 'job' quiz easily enough
<0> I'm going to have to presume they wont ask anything too complex
<0> this is what the email said: "1 hour coding test. (Its a pretty simple C# / ASP.NET task )"
<0> so I presume it'll be a simple login/display db/logout ASP.NET app
<2> Write an asp.net interface that compiles and executes the C# code you enter in a memo.
<2> ;)
<2> using security permissions
<0> yeah yeah
<2> Security logic is quite difficult.
<0> what's the interface to compile and execute C#?
<2> CodeDom compile
<2> then loading in a seperate app domain is easy
<2> but setting up security is difficult
<0> domain is just another name for the namespace?
<2> app domain
<2> nothing like it
<2> it's a seperate "address space"
<2> even though they're technically the same
<2> they're completely seperated from a .net POV
<0> POV?
<2> point of view
<2> even talks between the both is done by marshal by ref or logic alike
<0> well I dont quite understand what a domain is then.. other than the address space of the application? so in an address space you can house multiple namespaces?



<2> App Domain
<2> a namespace is something different
<2> App Domain is sorta like a seperate address spaces yes
<2> though instead of windows, .net manages the seperation
<0> ah ok.. just read up on it
<0> pretty straight forward
<2> yes
<2> for app domains (in v2.0) you can easily setup security
<2> but you have to be careful with the interface between the both
<2> one bright side to all of this
<2> nobody will ask you about security.
<2> since nobody really knows.
<0> yeah.. but what makes a excellent coder from an average one is knowing all the in's and out's :)
<2> hehe
<2> well it's like the NT security tokens
<2> nobody really knows all of it
<2> since it's huge
<0> cool... AppDomain.CurrentDomain.CreateInstanceAndUnwrap(..) to dynamically load ***emblies
<0> I did something similar in a Java project last year
<2> or just ***embly.Load? :)
<0> what does the UnWrap thingy do that's better/worse?
<2> well this one is for marshalbyref types
<2> ***embly.load loads always in the current ***embly
<2> via a marshalbyref type all calls will be slow
<2> since they have to be marshal'd
<2> you'd call the above if you want to load another type in an appdomain
<0> so unwrap() is slower?
<2> well marshalbyref is just slower
<2> since it's meant to transfer accross ***emblies
<2> or even network
<0> the unwrap() was on an article about doing plugin support
<2> yes
<2> well problem is
<2> you can't unload an ***embly
<2> but you can unload a domain
<2> if you want unloadable plugins
<2> you have to use appdomains
<0> so much catching up to do..
<2> :)
<5> um, what was the .net way of concatenating path elements without manually adding '\\' etc yourself?
<2> Path.Combine
<5> tx
<5> was looking in File. and Directory. :p
<5> ki9a: pardon my probably bad dutch interpretation, but i bet you have that bootlegged "ik heb en heelemoie splinter niuewe booooot" tune running on loop now, right? :P
<5> it had to come to that.. dutch people bootlegging an already horrible tune ;)
<2> well
<2> I never heard it
<2> And it's spelled wrong
<5> yes probably :P
<2> in multiple places.
<5> http://www.tastelikepizza.com/index.php?itemid=538
<5> i was trying to sing it out also, so probably too many vowels
<2> hehe
<2> hele mooie spinter nieuwe boot
<2> very nice brand new boat.
<5> but in other words, dutch people dont understand bot != boat ? :P
<5> i think the only way of destroying that tune is if everyone makes their own bootleg and plays it to death
<2> bot = bone
<2> boot = boat
<5> yes, but the original is about a bot, so ..
<5> dont tell me you've been spared of it ? =)
<5> oh well hehe
<2> I have.
<2> Then again we do have Paris Hilton now
<2> on the radio
<2> all day.
<5> oh right
<5> any time i turn on the tv here, shakira is on
<5> and the remote stops working
<5> so im trapped
<5> its a curse
<2> heh
<2> I don't have any channels yet
<2> on my tv.


Name:

Comments:

Please enter the result of the sum 63 + 46 (to avoid spam):






Return to #csharp
or
Go to some related logs:

#politics
#debian
docland porn
#gentoo
on tv last night
#freebsd
#windows
Can't connect to spamd on port 8026: Connection refused
#computers
#linuxhelp



Home  |  disclaimer  |  contact  |  submit quotes