coding-music-steve

This is an old revision of the document!


Evolving Into A Proper Library 從零碎的程式碼演化成為完整的資料庫

By: https://www.bing.com/images/create/four-different-environments-dessert2c-winter2c-moun/1-65b9a3604fbf48aa9df592f32d288927?id=Vj6bJwuKDSfoU2XPO21RTA%3d%3d&view=detailv2&idpp=genimg&FORM=GCRIDP&mode=overlay

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 commonJS module format and ECMAScript modules standard. So, code was adapted to be compatible with those formats.

By: https://www.bing.com/images/create/four-different-environments-dessert2c-winter2c-moun/1-65b9a3604fbf48aa9df592f32d288927?id=Vj6bJwuKDSfoU2XPO21RTA%3d%3d&view=detailv2&idpp=genimg&FORM=GCRIDP&mode=overlay

At some point, humans started recording history. The job of recording history of the code was given to a software called Git version control. It could record major changes of the code when prompted to and it could travel back in the timeline to reverse changes to a specific version.

By: https://www.bing.com/images/create/early-humans-building-boats2c-using-boats2c-training/1-65b9a4520a2849208593dd06d3b130df?id=3bYKcNQKhpy7a6gM2yb4Zg%3d%3d&view=detailv2&idpp=genimg&FORM=GCRIDP&mode=overlay

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 Github and NPM so that it could travel anywhere with an internet.

By: https://www.bing.com/images/create/robots-teaching-other-robots-with-computers-in-a-c/1-65b9b4dc69f74de3b9a31a157a7c22f1?id=j15Sv9JX6A%2f49trNatbdpA%3d%3d&view=detailv2&idpp=genimg&FORM=GCRIDP&mode=overlay

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 tutorials and documentation to help new users learn to use the code.

By: https://www.bing.com/images/create/red-robots-dropping-down-from-top-through-a-filter/1-65b9a78cd9e34fedbd48f7e975a7d8ef?id=5WlHB0nu2p7huHgwrPp57w%3d%3d&view=detailv2&idpp=genimg&FORM=GCRIDP&mode=overlay

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.


Evolved library with tons of new features with a similar.

New one takes one line to load all the code.

Old one needs to have multiple lines paste

Old

New

  • coding-music-steve.1706695884.txt.gz
  • Last modified: 2024/01/31 02:11
  • by scott.chen