GithubHelp home page GithubHelp logo

idea4coding's Introduction

idea4coding

idea4coding

需求决定输出

idea1:

  • 编写代码时,作用是应该思考的最为基础的问题。大到整个工程,小到一个函数,提供怎样的黑盒是值得认真考虑的。

  • 变量常量

    • how u wanna it perform

      • 被调用而不断改变
      • 被调用而不改变
      • 一直不改变
      • 只被一部分函数调用之后保留这个值而再也不改变
    • and where

      • 函数体内
      • 函数体外
        • 注意:main函数也是一个函数体
      • 整个文件
      • 整个工程
    • and what

      • 数据类型影响参数传入的形式,这一点非常重要
    • 一个经典的题目(现在忘了,之后补上,一个是java python,一个是js)

  • 先验概率,后验概率

  • 之前的模型(无反馈),自己学习的模型(反馈影响输出)

python

  • 字符串操作:
    • 非数组:
      • 切片

idea2:

  • 是什么,也就是数据类型。程序所做的无非如此,输入是什么,对它做什么,输出去什么。输入、输出可以看做黑盒的接口,数据类型就是接口的标准,函数的重载也就是一个黑盒所提供的不同类型的接口,就像PC作为一个黑盒,提供网口、USB口、耳机口、充电口等等。但是接口是有标准的,不是任何一个插口都能使用PC的接口,因此,作为PC首先是判断接口能否接入,接入的是否符合标准,同样接口也会有升级更新。

idea3

  • 对搭建工具的依赖性。程序的编写是基于平台的,如jdk c++版本等等,另外还有别的如库、包的平台,这些结合起来就是程序的版本,也叫总平台。当然,一个黑盒最好是不依赖平台,因此,有两种解决方案,一种是为每一个总平台都搭建一个黑盒,测试黑盒运行成功即可发行;一种是为使用黑盒的设备搭建一个通用平台接口,像现实世界的英文一样,这个接口可以理解很多输入、输出,从而称为二者通信的翻译。另外,正是由于平台的繁复性,黑盒要注意向下兼容。

免驱

  • OS预安装驱动:
    • 从网口转USB来理解。
    • 从USB即插即用来理解。
  • 设备如打印机等,接口标准如USB等,处理器等之间的关系。称为:处理器通过某某接口与设备通信。

idea4coding's People

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.