分享
分享赚钱 收藏 举报 版权申诉 / 8

类型软硬件系统编程PPT (38).pdf

  • 上传人:职教中国
  • 文档编号:14170668
  • 上传时间:2022-12-22
  • 格式:PDF
  • 页数:8
  • 大小:514.25KB
  • 配套讲稿:

    如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。

    特殊限制:

    部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。

    关 键  词:
    软硬件系统编程PPT (38).pdf
    资源描述:

    1、Write a good program Correctness Good program,first is a correct program Wrong knowledge Judgment of leap year:Being divisible by 4 is a leap year(wrong)Algorithm is wrong Robustness Does the code work well in various situations?Example(copy memory)The address given is incorrect(empty address?)Copy

    2、the code to modify the address?Not enough memory space?Does the memory overlap between source and distance?Easy to understand Dont be too addicted to skills Typical Case:Use design patterns?Class factory?So,in a script that can be written in 80 lines,you end up using 10 classes,15 interfaces,plus a

    3、lot of paradigms and tags,97%of the code does nothing.Choice easy to understand or code efficient?Keep it simple Code length control A method is printed in one A4 paper Split into multiple functions A small module(5-20 lines)Comments and naming Comments are important!The proportion of comments and c

    4、ode is recommended(50%,50%)You can know the meaning when you see the name,try not to abbreviate src source pos position Code style Each language has its own different conventions Java The method name should start with a lowercase letter followed by a capital letter(veryLongVariableName)The class nam

    5、es should all be connected using capitalized words Constant names should be all capitalized,connected by underscores(MY_CONSTANT)The left brace should be on the same line as the if statement Generally abide by,do not go against the routine Language feature Java for(int i=0;i 5;i+)Ruby Python print(*5)

    提示  道客多多所有资源均是用户自行上传分享,仅供网友学习交流,未经上传用户书面授权,请勿作他用。
    关于本文
    本文标题:软硬件系统编程PPT (38).pdf
    链接地址:https://www.docduoduo.com/p-14170668.html
    关于我们 - 网站声明 - 网站地图 - 资源地图 - 友情链接 - 网站客服 - 联系我们

    道客多多用户QQ群:832276834  微博官方号:道客多多官方   知乎号:道客多多

    Copyright© 2025 道客多多 docduoduo.com 网站版权所有世界地图

    经营许可证编号:粤ICP备2021046453号    营业执照商标

    1.png 2.png 3.png 4.png 5.png 6.png 7.png 8.png 9.png 10.png



    收起
    展开