MR. Twinkle banner

MR. Twinkle

2 devlogs
1h 8m 53s

twinkling through the stars

Repository

Loading README...

shitpostofaadarsh
  1. Data models and type definitions done
    Created core TypeScript interfaces
    • Defined UserLocation interface (latitude, longitude, accuracy)
    • Defined CelestialObject interface (id, name, position, magnitude, type)
    • Defined Star interface extending CelestialObject (temperature, spectralType, distance, size)
    • Defined Constellation interface (name, stars, boundaryLines, mythology)
    • Defined Configuration interface (twinkleModeEnabled, storytellingMode, lastViewPosition)

Written property tests for data model validation
- Tested latitude range validation (-90 to 90)
- Tested longitude range validation (-180 to 180)
- Tested magnitude values are numeric
- Tested spectral type format validation

  1. Configuration parser and serialization
    Implemented Configuration parser
    • Created parseConfiguration function that validates JSON structure
    • Implemented field presence validation for required fields
    • Returned descriptive error messages for invalid configurations
    • Handled parsing within 500ms performance requirement
Attachment
0
shitpostofaadarsh

simple structure for MR. twinkie is code the login ui and basic web ui is done today.

0