FEATURED LESSON: Is The Earth A Globe?

A McTweak Family debate turned coding challenge!

GarbageMcTweak

Join us for a special lesson featuring GarbageMcTweak's real-life coding feat. Watch how he settled a heated flat Earth debate by writing a program in just 24 minutes that proves Earth's shape using star charts!

Back to Main Hub

The Backstory

One fateful day, while FattyMcTweak was deep in a gaming session of "7 Days to Die," he let slip a controversial comment. In his frustration over dying in just 11 minutes (not 7 days), he angrily called the game developers "GlobeTards."

Little did he know, this casual remark would trigger a heated debate among the McTweak family about the shape of the Earth, culminating in GarbageMcTweak's impressive programming solution.

The Great McTweak Flat Earth Debate

FattyMcTweak

FattyMcTweak:

"Look, I've seen the not-curve with my own eyes! I bet you normies are all in on the conspiracy. Terrance Moonbean makes some compelling points, you know."

CodyMcTweak

CodyMcTweak:

"The Earth is obviously a giant spinning ball! I learned that in elementary school! You make the FlatTards look smart; you're a FatTard!!!"

GrumpyMcTweak

GrumpyMcTweak:

"Shut the fuck up with that nonsense. Earth is a globe, retard. Check the script. DON'T TOUCH THE SCRIPT!!!!"

AllyMcTweak

AllyMcTweak:

"Well, I see both sides have strong opinions. Maybe we need to examine the evidence carefully? The shape of Earth does impact many scientific principles..."

TrashyMcTweak

TrashyMcTweak:

"You're all TRASH! Arguing without evidence like a bunch of NPCs! But if the Earth is flat, explain why my trash rolls AROUND hills instead of just sliding DOWN them? Checkmate, FattyTard!"

GarbageMcTweak

GarbageMcTweak:

"While I'm waiting for Oblivion to load... Why don't I just write a snippet of code real quick and solve this shit? If it ain't loaded by then, we're going back to Elden Ring. Elden Beast is more of a challenge than this Bill Nye vs Terrence Moonbean rumble. Game on."

The 24-Minute Solution

GarbageMcTweak's Approach:

While waiting for his Oblivion loading screen, GarbageMcTweak (real name: Scott McPeak) wrote an elegant program that:

  • Takes star position measurements from different locations on Earth
  • Analyzes the angles between observers and stars
  • Calculates the curvature of the surface between observation points
  • Visualizes the results in a 3D model
  • Makes no assumptions about Earth's shape beforehand

The program uses pure math and observational data to determine which model of Earth best explains what we actually see in the night sky.

The Star Chart Method

If you observe the same stars from different locations on Earth at the same time, their relative positions in the sky change in a specific pattern.

By measuring these differences and calculating the angles, you can determine:

  • The curvature between observation points
  • The radius of that curvature
  • Whether the surface is flat, convex, or concave

This method has been known since ancient times - Eratosthenes used a version of it to calculate Earth's circumference around 240 BCE!

The Code Implementation

GarbageMcTweak's program takes these inputs:

  • Azimuth and elevation of stars from location 1
  • Azimuth and elevation of the same stars from location 2
  • Distance between the two locations

The program then:

  1. Converts star positions to 3D vectors
  2. Calculates relative surface orientation between locations
  3. Computes curvature from the orientation difference
  4. Determines radius of curvature (~6,371 km for Earth)

The Results:

After running calculations using real astronomical data from multiple locations:

  • The computed radius of curvature was consistently around 6,300-6,400 kilometers
  • The calculated shape was a near-perfect sphere
  • The results matched observations from every tested location on Earth

Conclusion: The Earth is indeed a globe with radius approximately 6,371 kilometers.

GarbageMcTweak's Star Chart Program

Watch the full explanation of Scott McPeak's method for measuring Earth's shape using star positions

Key Features

  • Uses real astronomical data
  • Requires only basic observations
  • No special equipment needed
  • Pure mathematical approach
  • No prior assumptions about shape
  • Works from any location on Earth
  • Simple enough to explain to anyone

Technical Requirements

  • Stars observed must be >20° above horizon
  • Minimum 2 stars visible from both locations
  • Known distance between observation points
  • Accurate measurement of star positions (±0.2°)
  • Observations made at the same time
  • Standard coordinate system (azimuth/elevation)

Results

  • Calculated Earth radius: ~6,392 km
  • Actual Earth radius: 6,371 km
  • Error margin: < 0.5%
  • Shape confirmed: Spherical
  • Additional curvature types (geodesic): ~0
  • Results consistent across all test locations
  • Matches satellite and other measurement methods

Aftermath: The Debate Settled

GarbageMcTweak

GarbageMcTweak:

"And that's it. Math doesn't lie. The code's done, the results are in, and the Earth is a sphere with radius about 6,370 km. Just in time too - Oblivion finally loaded."

FattyMcTweak

FattyMcTweak:

"But... but... the horizon doesn't curve! My eyes tell me—"

GrumpyMcTweak

GrumpyMcTweak:

"SHUT IT! Math beats your feelings! The script is RIGHT. It's always been RIGHT!"

CodyMcTweak

CodyMcTweak:

"HA! I told you! Who's the FatTard now? *does victory dance*"

TrashyMcTweak

TrashyMcTweak:

"Garbage actually coded something useful for once instead of playing those TRASH games! But you're all still TRASH coders compared to me!"

AllyMcTweak

AllyMcTweak:

"What a beautiful coding solution! This is why programming is so powerful - it gives us tools to understand our world through data and math. Great job, GarbageMcTweak!"

GarbageMcTweak and Dog

GarbageMcTweak:

"Whatever. I'm going to play Elden Ring now. But I've uploaded the code if anyone wants it. Even the elkhound understands the Earth is round now. Right, boy?"

Coding Lesson: What Can We Learn?

Programming Concepts Demonstrated

  • 3D Vector Math: Using vectors to represent star positions
  • Coordinate Transformations: Converting between different reference frames
  • Scientific Computation: Applying math formulas in code
  • Data Visualization: Representing calculated results graphically
  • Problem Decomposition: Breaking a complex problem into solvable parts
  • Empirical Testing: Validating a theory with measurable data

Real-World Applications

  • Navigation Systems: GPS and global positioning technologies
  • Satellite Communications: Signal transmission across curved surfaces
  • Astronomy: Star tracking and celestial navigation
  • Geodesy: Precise measurement of Earth's shape and size
  • Map Projections: Creating 2D maps from a 3D world
  • Climate Modeling: Understanding global weather patterns

The Power of Programming

This story demonstrates how programming can be used to:

  1. Solve Real-World Problems: Using code to answer fundamental questions about our world
  2. Test Hypotheses: Creating models that can be verified against real data
  3. Communicate Complex Ideas: Visualizing abstract concepts to make them understandable
  4. Make Rapid Prototypes: Building a working solution in just 24 minutes
  5. Bridge Disciplines: Combining astronomy, mathematics, and computer science

GarbageMcTweak's program shows that coding isn't just about building websites or apps—it's a powerful tool for understanding our universe and settling debates with objective evidence.

Try It Yourself!

Resources to Explore

Want to explore GarbageMcTweak's method yourself? Here are some resources:

Beginner Project Ideas

Start with these simplified projects to understand the concepts:

  1. Create a simple 2D visualization of how shadows differ at different latitudes
  2. Write a program that calculates the angle between two locations on a sphere
  3. Build a star chart viewer that shows how constellations appear from different locations
  4. Simulate how two observers would see the same stars from different parts of Earth

Ready to Code Like GarbageMcTweak?

Return to the McTweak.ai hub to continue your journey through our 100 lessons and build your own amazing programs!