|
ewan wrote: we want them to talk about Finalize vs Dispose
Then ask them to.
|
|
|
|
|
They don't seem too hard to me, I'd probably need much more time to explain GC though
But ArrayList? I'd rather not even acknowledge its existence..
Shouldn't you also ask about starting a new thread vs threadpool and what else the threadpool is used for?
Or something like: give a short list of at least 5 synchronization primitives available in C#
|
|
|
|
|
Thanks for your reply.
Absolutely - there are a lot more where they came from! We have specific questions around all of the things you mention.
Just to be clear though the point of my post was however not to ask for more questions but rather to ask are these unfair or unrealistic things to expect someone to know who wants $600+ a day?
|
|
|
|
|
Oh, yea, sorry
How much is $600/day these days ? Is that considered to be a lot?
|
|
|
|
|
Translated to yearly salary that's about $150,000 which I don't think is exactly bad?
|
|
|
|
|
I don't know, if you say so, I don't live in the US so I never really bothered to take a look at what a normal salary is there
|
|
|
|
|
ewan wrote: 3) Give a two minute overview of how the garbage collector works?
Do you have a stopwatch? What if they take 1.5 minutes
This is discussion more fit for the Lounge than a programming forum.
only two letters away from being an asset
|
|
|
|
|
Some of that is like asking a race car driver what compound his tires are made of or the viscosity of his oil. Sure, some may know it, but it won't be an indication of how well he can drive. Plus, some may memorize the answers in order to make up for a deficiency of driving skill.
First, see if the candidate can drive, then try to determine the depth of his knowledge.
1) A fairly pointless question. Object, but I never think about its members, I only override them when necessary -- so at most I might say ToString.
2) Not too bad a question. I use delegates, but I don't recall ever using Invoke or BeginInvoke on them. If you want to ask about synchronous/asynchronous, then just ask.
3) I certainly couldn't fill two minutes with that, because I just don't need to know, that's the whole point of the GC.
4) Polymorphism is a good topic, but pondering some of Microsoft's decisions is best left to others.
5) Right, they're not, but there's nothing I can do about it; all I can do is make my classes thread-safe -- when needed.
|
|
|
|
|
PIEBALDconsult wrote: 1) A fairly pointless question. Object, but I never think about its members, I only override them when necessary -- so at most I might say ToString.
Hehe - ok ok. This is clearly a very divisive question! Despite the howls of protest around this so far I still like this as a question. Maybe I'm just evil....
PIEBALDconsult wrote: 2) Not too bad a question. I use delegates, but I don't recall ever using Invoke or BeginInvoke on them. If you want to ask about synchronous/asynchronous, then just ask.
I agree we could ask directly something along the lines of how would you run a delegate asynchronously but really its just the same question posed another way. I suspect you have used Invoke even if you don't realise it
PIEBALDconsult wrote: 3) I certainly couldn't fill two minutes with that, because I just don't need to know, that's the whole point of the GC.
I think this is an interesting statement. Maybe you are right and its why so many people struggle with it. I naturally assumed that since I have been asked this at every .NET interview this was a totally standard question. Maybe its specific though to the industry I'm in and the type of application we are generally developing where memory and cpu time are at a premium. Food for thought for me.
PIEBALDconsult wrote: 5) Right, they're not, but there's nothing I can do about it; all I can do is make my classes thread-safe -- when needed.
But the point is you know - a hell of a lot of candidates don't!
|
|
|
|
|
ewan wrote: Maybe its specific though to the industry
I'm curious, what is the industry you are in.
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
Agree. A fairly large UK bank here been doing the phone question for screening. After a while the candidates know what are the questions to be asked and look for standard answers. Sometimes the job agents even give the candidates the answers.
|
|
|
|
|
Hi
I would like to use WCF to implement a named pipe, and what I would like to do is to implement it on a similar basis as you would a normal web service, i.e. using [servicecontract], configuring the app.config file, etc. Scouring the internet I can't seem to find a good example that does just that and the one found in: http://www.omegacoder.com/?p=101 is not the solution I am looking for.
Does anyone have a good example I could follow?
Thanks
|
|
|
|
|
Dear Sirs,
So if the last hour or two has served me properly, there is no standard multi-column treeview control offered by Microsoft like the one at
Advanced TreeView for .NET by Andrey Gliznetsov,
right? (which by the way seems to be an excellent piece of work. I've just started looking at it and it looks well-written).
Does this seem crazy to anyone else? They have obviously developed probably dozens of them (the locals window, for instance, where when perusing a class, you see the class and members' names on the left, each potentially expandable, and their value and type ond the right -- or the stinkin Windows Explorer of Win95, right? with filename on left and details on right)!! This blows me away! It should be a standard, out-of-the-box control! I worked on one with Java recently, and I'm remaking my projects in C# and thought to myself, "Surely I won't have to deal with that crap again, I'm in Microsoft land where they take care of everything you want FOR you ... and so much more," but no.
Anyway, if I'm misinformed and there's some property on the Treeview control that is like Collection(TreeViewColumn) Columns or something, let me know, but until then, I'll muddle through somehow.
Thanks for listening, it means a lot.
In Christ,
Aaron Laws
|
|
|
|
|
LimitedAtonement wrote: Does this seem crazy to anyone else?
Crazy, no. Vaguely disappointing, yes. But, all for the better if I can find a contorl that exactly matches my needs instead of one that only approximates what I need.
LimitedAtonement wrote: I'm in Microsoft land where they take care of everything you want FOR you ... and so much more,"
Which bloody idiot told you that?
|
|
|
|
|
Dave Kreskowiak wrote: Which bloody idiot told you that?
|
|
|
|
|
Dear Mr. Kreskowaik,
I think the control that I described shouldn't be one that would be much different from implementation to implementation. To me, it would be like saying, ``the ListView is useless: it only approximates my needs,'' or something like that, when really it's plenty generic enough to meet my needs just fine in every circumstance (if I have to finagle my classes to fit into it sometimes). That to say, I would much rather Microsoft give me an in-box multicolumn treeview control which would be MUCH easier to do the finagling rather than creating a whole new one! Oh well, I'll keep working on the one from the website.
In Christ,
Aaron Laws
Dave Kreskowiak wrote: But, all for the better if I can find a contorl that exactly matches my needs instead of one that only approximates what I need.
|
|
|
|
|
LimitedAtonement wrote: the ListView is useless: it only approximates my needs,''
I didn't say that. I said that I would rather find a 3rd party control that comes as close as possible to my needs and not rely on Microsofts implementation which only generally does what I need. You use the correct tool in the draw for the job at hand. If you want to go through all the pain of hanging additional functionality on a general MS control, more power to you. But, I'll use the one that is already pretty close if not dead on to what I need without spending the extra money on developing my own. Trust me, I do that enough already. When it costs me, say, $395 to get a control that does what I need, why should I spend 100 hours at, say, $40 an hour ($4,000) developing a control to do the same thing?
|
|
|
|
|
LimitedAtonement wrote: I'm in Microsoft land
You're giving them (MS) delusions of competence, you are going to have to buy or roll your own. Infragistics do a nice one but their object model is a little overwhelming.
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
Hello,
I'd like to know if it's possible to "wrap" a running process, and get all it's Outgoing network traffic? E.g when I'm playing a game, trap its network traffic and send it to a different server?
PS: This is not used for any form of hacking.
Thanks in advance,
Zaegra
Motivation is the key to software development.
|
|
|
|
|
for redirecting it is possible if it doesn't use direct IP accsess
C:\WINDOWS\system32\drivers\etc
inside there is a file named host (Without extension).
You can redirect a specific DNS name to specific IP
If you type www.google.com it will automatlcly go to 209.85.129.147, because it is on DNS server.
If you put in host file
127.0.0.1 www.google.com
and then you save that file.
After that all links that try to use www.google.com will look only on your machine. (127.0.0.1 is localhost)
For monitoring look at Packet Monitor C#[^]
|
|
|
|
|
Thanks! I will try this
Motivation is the key to software development.
|
|
|
|
|
How can I do it? I have a custom borderless form that I want to not overlap the taskbar when maximized, and I was told that it is possibly to prevent that through the use of WM_GETMINMAXINFO + WndProc. Is it really possible, and if so, how?
Thanks.
|
|
|
|
|
Are you coding in C#?
As i see your question, it shoud belong into c/c++/mfc board
|
|
|
|
|
Yes, I'm very much coding in C#.
|
|
|
|
|
I would do this whay:
this.FormBorderStyle = FormBorderStyle.Sizable;
this.WindowState = FormWindowState.Maximized;
this.MaximumSize = this.Size;
this.FormBorderStyle = FormBorderStyle.None;
This whay it can be seen with a border with less than a second. If you want to avoid and get the screen size, you need to use PInvoke of SystemParametersInfo with Constant SPI_GETWORKERAREA
and you could get the size of worker area. Also there can be problems when you have AutoHide enabled for taskbar. If you have then i suggest using PInvoke to constantly monitor changes when it apears or dissapears
|
|
|
|