mirror of
https://github.com/foo-dogsquared/wiki.git
synced 2025-02-07 06:19:03 +00:00
34 lines
12 KiB
HTML
34 lines
12 KiB
HTML
<!DOCTYPE html><html><head><meta name="viewport" content="width=device-width"/><meta charSet="utf-8"/><title>CS50x</title><script src="https://polyfill.io/v3/polyfill.min.js?features=es6"></script><script id="MathJax-script" async="" src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js"></script><script type="text/x-mathjax-config">
|
|
MathJax = {
|
|
tex: {
|
|
inlineMath: [ ['$','$'], ['\(','\)'] ],
|
|
displayMath: [ ['$$','$$'], ['[',']'] ]
|
|
},
|
|
options = {
|
|
processHtmlClass = "math"
|
|
}
|
|
}
|
|
</script><meta name="next-head-count" content="6"/><link rel="preload" href="/wiki/_next/static/css/52fc2ba29703df73922c.css" as="style"/><link rel="stylesheet" href="/wiki/_next/static/css/52fc2ba29703df73922c.css" data-n-g=""/><noscript data-n-css=""></noscript><link rel="preload" href="/wiki/_next/static/chunks/main-ae4733327bd95c4ac325.js" as="script"/><link rel="preload" href="/wiki/_next/static/chunks/webpack-50bee04d1dc61f8adf5b.js" as="script"/><link rel="preload" href="/wiki/_next/static/chunks/framework.9d524150d48315f49e80.js" as="script"/><link rel="preload" href="/wiki/_next/static/chunks/commons.0e1c3f9aa780c2dfe9f0.js" as="script"/><link rel="preload" href="/wiki/_next/static/chunks/pages/_app-8e3d0c58a60ec788aa69.js" as="script"/><link rel="preload" href="/wiki/_next/static/chunks/940643274e605e7596ecea1f2ff8d83317a3fb76.4841a16762f602a59f00.js" as="script"/><link rel="preload" href="/wiki/_next/static/chunks/pages/%5B%5B...slug%5D%5D-1aa198f87ede1cd0e1dc.js" as="script"/></head><body><div id="__next"><main><h1>CS50x</h1><section class="post-metadata"><span>Date: <!-- -->2021-06-06 17:58:08 +08:00</span><span>Date modified: <!-- -->2021-06-15 12:30:13 +08:00</span></section><nav class="toc"><ol class="toc-level toc-level-1"><li class="toc-item toc-item-h1"><a href="/wiki/literature.cs50x#week-0" class="toc-link toc-link-h1">Week 0</a></li><li class="toc-item toc-item-h1"><a href="/wiki/literature.cs50x#week-1" class="toc-link toc-link-h1">Week 1</a></li></ol></nav><p>The beloved course of CS50.
|
|
I took this course some time ago but didn't finish it due to me having difficulty on it.
|
|
I'll finish this thing for real this time.
|
|
</p><h1 id="week-0">Week 0</h1><ul><li><p>computer science is about solving problems that are applicable not only to computers but also in art, social sciences, sciences, and beyond
|
|
</p></li><li><p>computers communicate through binary digits (or base 2)
|
|
</p></li><li><p>binary numbers are simpler but it implies large ideas
|
|
</p><ul><li><p>computers often have binary due to history, just with the available components at the time easily creates
|
|
</p></li><li><p>with only two digits, we can represent ideas from simple concepts like states, letters, and numbers to complex concepts combining several of them together
|
|
</p></li></ul></li><li><p>our computers are composed of millions of tiny electrical switches representing binary data
|
|
</p></li><li><p>all of the data represented is just binary all the way down
|
|
</p><ul><li><p>text, colors, images are all just patterns of bits
|
|
</p></li><li><p>the files we usually see from JPG, PNG, Photoshop files, HTML, and Microsoft Word documents are just pattern of bits agreed by us to what the bits look like and what information it supposed to represent
|
|
</p></li></ul></li><li><p>concepts:
|
|
</p><ul><li><p>to start solving a problem, we could lay the steps down;
|
|
you may hear this as our pseudocode
|
|
</p></li><li><p>functions are the actions or the verb of our pseudocode
|
|
</p></li><li><p>conditionals are branches of actions
|
|
</p></li><li><p>variables hold a piece of information
|
|
</p></li><li><p>boolean expressions are yes/no questions to a conditional, entering that branch if said condition is met
|
|
</p></li><li><p>abstractions are one way of solving a problem by framing the problem one level higher, focusing on the problems without worrying on the details;
|
|
we could also think abstractions as wishful thinking
|
|
</p></li></ul></li></ul><h1 id="week-1">Week 1</h1><ul><li><p>writing good code should be foremost correct
|
|
</p></li><li><p>but style is also important just like with writing requiring correct use of punctuations and grammar
|
|
</p></li></ul><section><h2>Backlinks</h2><ul><li><a href="/wiki/2022-06-19-11-57-26">Argument structure matters over accuracy when presenting information</a></li></ul></section></main></div><script id="__NEXT_DATA__" type="application/json">{"props":{"pageProps":{"metadata":{"date":"\"2021-06-06 17:58:08 +08:00\"","date_modified":"\"2021-06-15 12:30:13 +08:00\"","language":"en","source":""},"title":"CS50x","hast":{"type":"root","children":[{"type":"element","tagName":"nav","properties":{"className":"toc"},"children":[{"type":"element","tagName":"ol","properties":{"className":"toc-level toc-level-1"},"children":[{"type":"element","tagName":"li","data":{"hookArgs":[{"type":"element","tagName":"h1","properties":{"id":"week-0"},"children":[{"type":"text","value":"Week 0"}]}]},"properties":{"className":"toc-item toc-item-h1"},"children":[{"type":"element","tagName":"a","properties":{"className":"toc-link toc-link-h1","href":"/literature.cs50x#week-0"},"children":[{"type":"text","value":"Week 0"}]}]},{"type":"element","tagName":"li","data":{"hookArgs":[{"type":"element","tagName":"h1","properties":{"id":"week-1"},"children":[{"type":"text","value":"Week 1"}]}]},"properties":{"className":"toc-item toc-item-h1"},"children":[{"type":"element","tagName":"a","properties":{"className":"toc-link toc-link-h1","href":"/literature.cs50x#week-1"},"children":[{"type":"text","value":"Week 1"}]}]}]}]},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"The beloved course of CS50.\nI took this course some time ago but didn't finish it due to me having difficulty on it.\nI'll finish this thing for real this time.\n"}]},{"type":"element","tagName":"h1","properties":{"id":"week-0"},"children":[{"type":"text","value":"Week 0"}]},{"type":"element","tagName":"ul","properties":{},"children":[{"type":"element","tagName":"li","properties":{},"children":[{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"computer science is about solving problems that are applicable not only to computers but also in art, social sciences, sciences, and beyond\n"}]}]},{"type":"element","tagName":"li","properties":{},"children":[{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"computers communicate through binary digits (or base 2)\n"}]}]},{"type":"element","tagName":"li","properties":{},"children":[{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"binary numbers are simpler but it implies large ideas\n"}]},{"type":"element","tagName":"ul","properties":{},"children":[{"type":"element","tagName":"li","properties":{},"children":[{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"computers often have binary due to history, just with the available components at the time easily creates\n"}]}]},{"type":"element","tagName":"li","properties":{},"children":[{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"with only two digits, we can represent ideas from simple concepts like states, letters, and numbers to complex concepts combining several of them together\n"}]}]}]}]},{"type":"element","tagName":"li","properties":{},"children":[{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"our computers are composed of millions of tiny electrical switches representing binary data\n"}]}]},{"type":"element","tagName":"li","properties":{},"children":[{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"all of the data represented is just binary all the way down\n"}]},{"type":"element","tagName":"ul","properties":{},"children":[{"type":"element","tagName":"li","properties":{},"children":[{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"text, colors, images are all just patterns of bits\n"}]}]},{"type":"element","tagName":"li","properties":{},"children":[{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"the files we usually see from JPG, PNG, Photoshop files, HTML, and Microsoft Word documents are just pattern of bits agreed by us to what the bits look like and what information it supposed to represent\n"}]}]}]}]},{"type":"element","tagName":"li","properties":{},"children":[{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"concepts:\n"}]},{"type":"element","tagName":"ul","properties":{},"children":[{"type":"element","tagName":"li","properties":{},"children":[{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"to start solving a problem, we could lay the steps down;\n you may hear this as our pseudocode\n"}]}]},{"type":"element","tagName":"li","properties":{},"children":[{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"functions are the actions or the verb of our pseudocode\n"}]}]},{"type":"element","tagName":"li","properties":{},"children":[{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"conditionals are branches of actions\n"}]}]},{"type":"element","tagName":"li","properties":{},"children":[{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"variables hold a piece of information\n"}]}]},{"type":"element","tagName":"li","properties":{},"children":[{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"boolean expressions are yes/no questions to a conditional, entering that branch if said condition is met\n"}]}]},{"type":"element","tagName":"li","properties":{},"children":[{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"abstractions are one way of solving a problem by framing the problem one level higher, focusing on the problems without worrying on the details;\n we could also think abstractions as wishful thinking\n"}]}]}]}]}]},{"type":"element","tagName":"h1","properties":{"id":"week-1"},"children":[{"type":"text","value":"Week 1"}]},{"type":"element","tagName":"ul","properties":{},"children":[{"type":"element","tagName":"li","properties":{},"children":[{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"writing good code should be foremost correct\n"}]}]},{"type":"element","tagName":"li","properties":{},"children":[{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"but style is also important just like with writing requiring correct use of punctuations and grammar\n"}]}]}]}]},"backlinks":[{"path":"/2022-06-19-11-57-26","title":"Argument structure matters over accuracy when presenting information"}]},"__N_SSG":true},"page":"/[[...slug]]","query":{"slug":["literature.cs50x"]},"buildId":"Ie9t5zutrXP6Of75Cb5xF","assetPrefix":"/wiki","nextExport":false,"isFallback":false,"gsp":true}</script><script nomodule="" src="/wiki/_next/static/chunks/polyfills-99d808df29361cf7ffb1.js"></script><script src="/wiki/_next/static/chunks/main-ae4733327bd95c4ac325.js" async=""></script><script src="/wiki/_next/static/chunks/webpack-50bee04d1dc61f8adf5b.js" async=""></script><script src="/wiki/_next/static/chunks/framework.9d524150d48315f49e80.js" async=""></script><script src="/wiki/_next/static/chunks/commons.0e1c3f9aa780c2dfe9f0.js" async=""></script><script src="/wiki/_next/static/chunks/pages/_app-8e3d0c58a60ec788aa69.js" async=""></script><script src="/wiki/_next/static/chunks/940643274e605e7596ecea1f2ff8d83317a3fb76.4841a16762f602a59f00.js" async=""></script><script src="/wiki/_next/static/chunks/pages/%5B%5B...slug%5D%5D-1aa198f87ede1cd0e1dc.js" async=""></script><script src="/wiki/_next/static/Ie9t5zutrXP6Of75Cb5xF/_buildManifest.js" async=""></script><script src="/wiki/_next/static/Ie9t5zutrXP6Of75Cb5xF/_ssgManifest.js" async=""></script></body></html> |