什么是给准雇主提供好的示例代码块

什么是给准雇主提供好的示例代码块

本文介绍了什么是给准雇主提供好的示例代码块?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

最近有位雇主要求我提供我的代码示例..

除了有效的方法外,什么构成了可以给潜在雇主的示例代码的很好的组成部分?P?

应该是叔...< 1M吗?

例如,解决未知问题的解决方案应该具有创造性吗? :laugh:

它是否需要优雅,评论,独立等...

1.正确的命名约定<-取决于一个人在哪里工作.
2.处理的异常<-好的代码不应引发异常..否则我是否认为错误
3.坚持单一责任原则<-谁说一个责任范围比另一个责任范围更好/更合适?
4.处理错误的数据<-参见上述第二点

我最大的问题是:我处理过的所有代码都是其他人的知识产权.因此,我需要提供一个代码示例...我没有想法...

I was recently asked for a sample of my code.. by a prospective employer...

What constitutes a good block of Sample Code to give a prospective employer, other than something that works ;P ?

Should it be tert... <1M?

Should it be inventive, say a solution for solving unknown problems? :laugh:

Does it need to be elegant, commented, stand alone, etc...

1. Proper naming conventions <- dependant on where one works.
2. Exceptions handled <- Good code shouldn''t throw exceptions.. or Am i wrong in that assumption
3. Single responsibility principle held <- who says one scope of responsibility is better/more appropriate than another?
4. Bad data handled <- See point two above

My biggest issue is this: All of the code i''ve worked on is intelecual property of someone else.. as such I need to come up with a code sample... I am without ideas...

推荐答案




这篇关于什么是给准雇主提供好的示例代码块?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-15 21:46