🤔 如何实现落地一个想法
涉及到需求工程和系统设计 需求用来定义问题并说明“要开发什么”; 而系统设计用来定义解决方案并说明”系统应如何开发出来 Requirements Engineering 其实将一个模糊的抽象的功能需求,描述成一个一个更详细的需求,就一定在定义怎么做了 比如, 先定义问题,想要做什么: 导航系统应该方便的让司机输入行程的目的地 更详细的需求描述: 当司机开始一个新的行...
涉及到需求工程和系统设计 需求用来定义问题并说明“要开发什么”; 而系统设计用来定义解决方案并说明”系统应如何开发出来 Requirements Engineering 其实将一个模糊的抽象的功能需求,描述成一个一个更详细的需求,就一定在定义怎么做了 比如, 先定义问题,想要做什么: 导航系统应该方便的让司机输入行程的目的地 更详细的需求描述: 当司机开始一个新的行...
use std::thread; fn main(){ let v = vec![1,2,3]; let handle = thread::spawn(||{ println!("here's a vector:{:?}",v); }); handle.join().unwrap(); } 这里因为 println!()函数只需要 v 的引用,如果只是单线程的话,完全没...
昨天看 RefCell<T> 文档的时候, #[derive(Debug)] enum List { Cons(Rc<RefCell<i32>>, Rc<List>), Nil, } use crate::List::{Cons, Nil}; use std::cell::RefCell; use std::rc::Rc; ...
reference cycle rustlings到了 Rc<T> 这块, 就看了一下官方资料 看到 This function is named strong_count rather than count because the Rc type also has a weak_count; we’ll see what weak_count is used for ...
Table of Contents 所有权是解决什么问题的? 内存安全问题 answer 之前的解决方式 Rust是怎么解决这个问题的? 什么是所有权呢? 所有者是什么意思? 释放值什么意思?它们本来在哪? ...
&String==&str??? fn test(v: &str)->{ println!("{}",v); } fn main(){ let a = String::from("hello"); assert_eq!("hello",a); test(&a); } 因为在Rust中,我们知道 hello 是 str 类型 那这里 ...
I’m doing the exercise, rustingls iterators5 fn count_iterator(map: &HashMap<String, Progress>, value: Progress) -> usize { // map is a hashmap with String keys and Progress value...
mut in Rust let v = 1 We know that if we want to change the value v later, we have to declare v as mutable let mut v = 1; v = 2; Some articles says that mut v means v can point to other, which...
原文: https://okmij.org/ftp/papers/DreamOSPaper.html A dream of an ultimate OS Oleg Kiselyov oleg-at-okmij.org, http://okmij.org/ftp/ This is a dream, and as such, it is made of shreds of reality sh...
Table of Contents Benjamin Keep的 How Learning Works 系列(1) What no one tells you about learning faster Forgetting doesn’t work like you think What happens when you become ...