问潜在员工的一个好的 C# ASP.NET MVC 问题是什么?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/865497/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-05 04:45:53  来源:igfitidea点击:

What is a good C# ASP.NET MVC question to ask a prospective employee?

c#asp.net-mvc

提问by Richard

I am about to employ a new programmer for our ASP.NET MVC projects. I put a lot of weight in an interview as to just how much I like a candidate's attitude and how I see them working with, talking to and enjoying being part of the team, but on a more practical note I need to weedle out those who talk a good game from those who actually have ability to adapt and overcome programming problems day to day.

我即将为我们的 ASP.NET MVC 项目雇用一名新程序员。我在面试中非常重视我有多喜欢候选人的态度以及我如何看待他们与团队合作、交谈和享受成为团队的一员,但在更实际的情况下,我需要淘汰那些从那些真正有能力适应和克服日常编程问题的人那里谈论一款好游戏。

Can anyone suggest any good short questions/exercises (preferably in C#) to separate the smart candidates from the good talkers?

任何人都可以提出任何好的简短问题/练习(最好是在 C# 中)来区分聪明的候选人和善于说话的人吗?

UPDATE - Many thanks to all who answered, I have chosen the most voted for in traditional StackOverlfow manner, but still thanks for all the other suggestions.

更新 - 非常感谢所有回答的人,我以传统的 StackOverlfow 方式选择了投票最多的人,但仍然感谢所有其他建议。

采纳答案by uriDium

First things first. Do they even know what MVC. Not just the TLA (three letter acronym) but can they describe it to you. Then what are the benefits. Also it doesn't hurt to ask them their opinion on it. It is good to know if they even like MVC frameworks.

先说第一件事。他们甚至知道什么是MVC。不仅是 TLA(三个字母的首字母缩写词),而且他们可以向您描述它。那么有什么好处。此外,询问他们对此的意见也无妨。很高兴知道他们是否甚至喜欢 MVC 框架。

Next, ask them if they have used any other MVC frameworks. Struts, Spring MVC, Zend or anything like that.

接下来,询问他们是否使用过任何其他 MVC 框架。Struts、Spring MVC、Zend 或类似的东西。

Ask them if they know when a session starts, the general state problem on the net etc etc.

询问他们是否知道会话何时开始、网络上的一般状态问题等。

Also a little bit of database. Ask them if they have any experience with database persistence layers.

还有一点点数据库。询问他们是否对数据库持久层有任何经验。

Then just because you can ask a hard technical question, ask them to write a function that compares two binary trees both in value and structure to see if they are identicial.

然后就因为你可以问一个很难的技术问题,让他们写一个函数来比较两个二叉树的值和结构,看看它们是否相同。

回答by TheTXI

What is MVC?

什么是MVC?

回答by Konstantinos

tell him to draw the flow of the ASP.NET MVC model on the writeboard

告诉他在写字板上画出ASP.NET MVC模型的流程

回答by bbmud

Which letter from MVC acronym should be responsible for performing the following features in online shop web application:

MVC 首字母缩写词应负责在网上商店 Web 应用程序中执行以下功能:

  • calculating the total amount to pay for items in cart (M)
  • build an html table of items to purchase (V)
  • redirecting not authenticated users to the page where they can enter billing information (C)
  • 计算购物车中商品的总金额 (M)
  • 建立一个要购买的物品的html表格(V)
  • 将未通过身份验证的用户重定向到他们可以输入账单信息的页面 (C)

etc.

等等。

回答by Serapth

Are you hiring a contractor for a short term project?

您是否正在为短期项目聘请承包商?

If the answer is no, I don't think MVC should really factor into the scenario. You should almost never expect a non hired-gun employee to just drop in and be productive. Truthfully, MVC isn't exactly a difficult learning curve. If you are hiring someone for the long term, and their first project just happens to be an MVC site, I think you are much better served judging their general aptitude, not so much a specific technology.

如果答案是否定的,我认为 MVC 不应该真正考虑到场景中。你几乎永远不应该指望一个非雇佣枪手的员工会来上班并提高工作效率。说实话,MVC 并不是一个很难的学习曲线。如果您长期雇用某人,而他们的第一个项目恰好是一个 MVC 站点,我认为您最好根据他们的一般才能而不是特定技术来判断。

Instead, see what they understand of design patterns. MVC isnt exactly a new methodology. If the person is able to comprehend SOC, they should easily be able to learn the specifics of MVC. Hell, they probably could learn it on the fly.

相反,看看他们对设计模式的理解。MVC 并不完全是一种新方法。如果此人能够理解 SOC,他们应该能够轻松了解 MVC 的具体细节。见鬼,他们可能可以即时学习。

回答by User

It is funny. I asked a close question just the other day. Check out if you find something useful there.

这很有趣。前几天我问了一个很接近的问题。看看你是否在那里找到了有用的东西。

Can asking a developer whether he prefers WebForms or MVC be a good indicator of his proficiency?

问一个开发人员他更喜欢 WebForms 还是 MVC 可以作为他熟练程度的一个很好的指标吗?

回答by Manish Kumar

You can ask them: How Asp.net MVC Is helpful in making Search Engine friendly websites? How Routings work in .net MVC?, What is the role of ViewEngine in asp.net, can we use customize viewengine if yes then how? How can we make controller classes without suffixing "Contrller" in the class name?

你可以问他们:Asp.net MVC 如何帮助创建对搜索引擎友好的网站?路由在.net MVC中如何工作?,视图引擎在asp.net中的作用是什么,如果是,我们可以使用自定义视图引擎,然后如何?我们如何制作控制器类而不在类名中添加“Contrller”后缀?

回答by Matt Sherman

Ask them to make a couple of substantial (but simple) changes to an existing MVC site.

要求他们对现有的 MVC 站点进行一些实质性(但简单)的更改。

This will allow you to watch how familiar they are with the organization of an MVC site. If you ask them to make an HTML change, do they go straight to the Views folder? If your change is in business logic, do they go straight to the controller action?

这将允许您观察他们对 MVC 站点的组织的熟悉程度。如果您要求他们进行 HTML 更改,他们会直接转到 Views 文件夹吗?如果您的更改是在业务逻辑中,它们会直接转到控制器操作吗?

Sounds a bit obvious, I realize. But if they hesitate with these things, it means they haven't actually spent much time in MVC. You're testing for speed, really.

听起来有点明显,我意识到。但是如果他们对这些事情犹豫不决,这意味着他们实际上并没有在 MVC 上花太多时间。你在测试速度,真的。

回答by pratik

I use timer in datalist for countdown and its value display in label.

我在数据列表中使用计时器进行倒计时,并将其值显示在标签中。

But my question is its not proper update time in datalist and when I refresh page so its get update

但我的问题是它在数据列表中的更新时间不正确,当我刷新页面时,它会得到更新

回答by TYRONEMICHAEL

I think the best option is not necessarily in a question, but in their portfolio. Take a look at an application they have built and question them directly on the application. Why this, why that? That way you can get a good understanding on the way they develop. Hopefully they understand the framework and the separation of concerns.

我认为最好的选择不一定在问题中,而是在他们的投资组合中。查看他们构建的应用程序并直接在应用程序上提问。为什么这个,为什么那个?这样你就可以很好地了解他们的发展方式。希望他们了解框架和关注点分离。