Scalable Software Design | Christian Hujer

Sdílet
Vložit
  • čas přidán 15. 07. 2024
  • In this session, presenter Christian Hujer builds a program which can convert temperature from one scale (like Celsius) to other scales (like Fahrenheit, Kelvin, Rankine and more).
    He builds the program with TypeScript and Kotlin, demonstrating the similarities and uniqueness of different programming paradigms. He also showcases how good coding practices can help you create clean, lean and scalable software design.
    Timestamps:
    00:00:00 - Intro to problem statement
    00:04:15 - Agreeing on an interface
    00:06:53 - Convert °C to °F in TypeScript
    00:10:34 - What are we missing?
    00:12:25 - Add first test case with Makefile
    00:18:28 - Modify TS code to pass test case
    00:23:14 - TDD with Kotlin
    00:30:58 - Difference between TS and Kotlin code
    00:34:20 - Incorporating other temperature scales
    00:40:34 - Error handling for unknown scales
    00:44:40 - Structured programming & Early return, good or bad?
    00:47:35 - Crashed vs Crippled code
    00:52:16 - °F to °C conversion
    00:56:00 - Floating point error
    01:02:49 - Scalability challenge while adding new unit
    01:15:19 - Fixing scalability issue (mesh to star)
    01:20:39 - Implementing star design
    01:28:16 - Fixing floating-point error with formatting
    01:37:34 - Refactoring further to reduce complexity
    02:01:56 - Showing solution in C language
    02:08:35 - Showing solution in Rust
    Music Credits: www.bensound.com/
  • Věda a technologie

Komentáře •