与教授有不同的解决方案但是相同的结果是错的吗? [英] Is it wrong having different solution from the professor but SAME result?

查看:67
本文介绍了与教授有不同的解决方案但是相同的结果是错的吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我正在使用Microsoft的Bob Tabor在learnvisualstudio.net上进行在线教程,以提高我的c#和asp.net编码能力(因为我喜欢两者)。在练习中我们得到,很多时候我制作了一个完全不同的解决方案(比教授的解决方案),练习需要相同的结果。没有记忆差异但逻辑不同。这是错的还是这是编程的魔力?



谢谢。

Hi everybody,
I' m doing online tutorials in learnvisualstudio.net with Bob Tabor of Microsoft to improve my c# and asp.net coding abilities(since I like both) .At the excercises we get, a lot of times I make a totally different solution(than the professor's solution) with the same results the excercise needs.No memory difference but different logic.Is this wrong or this is the magic of programming?

Thank you.

推荐答案

关于编程的一个好处是,通常有很多方法可以解决同样的问题。有些人比其他人好,但往往只是风格差异。



唯一一次,你和你的导师的不同解决方案都很重要,其他条件相同,就是那里是一种特殊的技术,你应该应用而你却没有 - 即使你的解决方案更优越,也不会解决问题,因为技术本身就是问题解决方案的一部分。



One of the neat things about programming is that there are usually many ways to solve the same problem. Some are better than others, but often it's just a stylistic difference.

The only time you and your instructor's different solutions would matter, all else being equal, is that there is a particular technique which you were expected to apply and you didn't - even if your solutions is superior it would not be solving the problem as the technique, itself, was part of the problem's solution.


这篇关于与教授有不同的解决方案但是相同的结果是错的吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆