Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
coding-music-steve [2024/02/05 06:00] – steve.wang | coding-music-steve [2024/02/20 23:58] (current) – [Evolving Into Different Types] steve.wang | ||
---|---|---|---|
Line 2: | Line 2: | ||
<h1 class=" | <h1 class=" | ||
</ | </ | ||
+ | |||
+ | By [[steve-wang|Steve Wang]] | ||
+ | Evolving into a proper programming library explained in biological evolution terms. | ||
+ | |||
+ | Chatgpt helped with some of the analogy ideas. | ||
+ | |||
+ | ===== Evolving Into Different Types ===== | ||
+ | |||
+ | |||
+ | Just like organs and systems differentiating overtime , the different code types was split into different files by functionality. | ||
+ | |||
+ | ===== Evolving to fit the environment ===== | ||
+ | |||
+ | Just like living beings, code needs to adapt to be useful in a certain environment. In JavaScript, there are 2 main methods in which code can be imported. It can be done via [[https:// | ||
+ | |||
+ | ===== Recording History ===== | ||
+ | |||
+ | At some point, humans started recording history. | ||
+ | |||
+ | ===== Spread and Diversification Over Different environments and conditions ===== | ||
+ | |||
+ | Early humans started building boats and training horses to be able to travel further from their birth place. Similarly, the code was placed on placed on [[https:// | ||
+ | |||
+ | ===== Passing On Skills to Later Generation ===== | ||
+ | |||
+ | |||
+ | Humans made tutorials, wrote books and, taught lessons to help the younger generations learn the lessons that took them years to learn. Similarly, we have written [[http:// | ||
+ | |||
+ | ===== Natural Selection ===== | ||
+ | |||
+ | |||
+ | In nature, animals who have desirable traits get to pass down these traits via survival and reproduction. In coding terms, code is tested so that code which is broken or not up to spec, get filtered out, rewritten. So that future versions do not need to use the undesirable code. | ||
+ | |||
+ | ===== Outcome ===== | ||
+ | ==== Speed + Features ==== | ||
+ | |||
+ | {{ : | ||
+ | Evolved library with tons of new features with a similar. | ||
+ | ==== Ease Of Use ==== | ||
+ | New one takes one line to load all the code. | ||
+ | |||
+ | Old one needs to have multiple lines paste | ||
+ | |||
+ | < | ||
+ | < | ||
+ | <img src=" | ||
+ | < | ||
+ | <img src=" | ||
+ | </ | ||
+ | |||
+ | |||
+ | |||