Know Your WebDev Math: Dynamic positioning with trigonometry
The article discusses the importance of mathematics in web development, particularly in dynamic positioning using trigonometry. It highlights how concepts learned in school, such as sine and cosine, are applicable in real-world coding scenarios. The author aims to bridge the gap between theoretical math and practical web development through a series of articles.
- ▪The author reflects on their experience with math during their Computer Science degree and its relevance in web development.
- ▪They describe a project involving an interactive diagram of character relationships in a Dungeons and Dragons campaign.
- ▪The article introduces the use of trigonometry to dynamically position elements in a circular layout for the graph.
Opening excerpt (first ~120 words) tap to expand
try { if(localStorage) { let currentUser = localStorage.getItem('current_user'); if (currentUser) { currentUser = JSON.parse(currentUser); if (currentUser.id === 216661) { document.getElementById('article-show-container').classList.add('current-user-is-article-author'); } } } } catch (e) { console.error(e); } Ola B Posted on May 29 Know Your WebDev Math: Dynamic positioning with trigonometry #webdev #javascript #reactflow #react When I needed to pass Calculus and Algebra during my Computer Science degree, I used the formula known to every Polish student called 'ZZZ' (Zakuć, Zdać, Zapomnieć) - Cram, Pass, Forget. It means memorizing just enough to pass the exam and then not caring if you'll remember any of it later.
…
Excerpt limited to ~120 words for fair-use compliance. The full article is at DEV.to (Top).