Posts

Showing posts with the label science

[23rd March 2025] Interesting Things I Learnt This Week

Image
  1. How Many Decimals of Pi Do We Really Need? - This article explains that even for NASA's highest accuracy calculations, such as interplanetary navigation, only a small number of pi's decimals are needed. For example, JPL uses pi to the 15th decimal place (3.141592653589793). The article illustrates this by calculating the circumference of Voyager 1's distance from Earth, the circumference of Earth, and even the circumference of the known universe, demonstrating that only a limited number of decimal places are necessary for accurate calculations, even at vast scales. My Take : We often get super excited about accuracy and going to crazy lengths to achieve it. But, honestly, for any everyday functional use of pi, having 3 digits after the decimal gives you really good accuracy, which is usually within the range of error from other stuff anyway. In fact, that article mentions 37 decimals would be enough to calculate the circumference of the observable universe with the ac...

[1st December 2024] Interesting Things I Learnt This Week

Image
1. C++ Pitfalls - this article, explains some of the pitfalls you can fall into when programming in C++ and shares their experience with them. This includes Operator precedence, Arithmetic conversion rules, Right bit-shift, Implicit conversions and Order of evaluation.  My Take : We've all read about JavaScript's quirks, leading to unexpected outputs. But let's remember that such behaviors aren't unique to JavaScript. Even languages like C and C++ have their share of ambiguities and compiler-specific behaviors. While it's tempting to dive deep into these intricacies, I've found that focusing on clear, consistent, and unambiguous code is often more practical. However, understanding these nuances is essential for any experienced programmer. It helps us avoid pitfalls and write robust, reliable code. Remember, mastering a language isn't just about writing "Hello World." It involves delving into its intricacies, including its counterintuitive and ambi...

[24th November 2024] Interesting Things I Learnt This Week

Image
1. AI Makes Tech Debt More Expensive - The core argument is that generative AI significantly widens the gap between codebases with low and high tech debt. Companies with clean code can leverage generative AI to write code much faster, while companies with messy legacy codebases struggle to adopt these new tools. This widens the gap between the two codebases, making tech debt even more expensive for companies with outdated systems. My Take : Legacy systems inevitably accumulate technical debt. A common analogy for this is the state of urinals over time: missed targets lead to increasing mess, keeps pushing people away from urinals and leading to more mess in turn. AI-powered coding tools could potentially accelerate the accumulation of tech debt. However, skilled engineers can leverage AI to reduce and even eliminate it. Ultimately, AI is just a tool, and human judgment remains crucial for making informed decisions. I hope AI will be used responsibly to drive positive outcomes. 2. Make...

[18th August 2024] Interesting Things I Learnt This Week

Image
source: Marklines.com  1. Samsung's Solid State Battery with 9 minute charging, 600 miles range for EVs and 20 year lifespan - Samsung is shaking up the EV battery game with their new solid-state design. Boasting a massive 600-mile range on a single charge and crazy-fast 9-minute charging, these batteries promise to revolutionize electric vehicles. Samsung also hints at a 20-year lifespan, putting range anxiety to rest. However, expect to see this tech first in pricier EVs, and remember, Chinese battery makers are hot on their heels with similar claims. My Take: The progress in the space of battery technology has been amazing and I now dont believe that Hydrogen and fuel cell technologies need to really leapfrog over things to be viable alternative to these kinds of technologies. I wonder if these techs could reach out cell phones as well to get rid of the daily charging required. I wonder if Samsung would first put these into these into their Galaxy lineup or will they wait for ...