Skip to content

Built the 2nd floor by hand, then let GPT expand it into a 6-floor building — OCP vibe coding in action.

License

Notifications You must be signed in to change notification settings

cozyupk/OCPVibeCodingExample

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OCP Vibe Coding Example

📖 Full English article available here: ARTICLE.md

Built the 2nd floor by hand, then let GPT expand it into a 6-floor building — OCP vibe coding in action. 🏗️✨

Overview

This repository demonstrates an experimental style of "vibe coding":
a human developer sets up the foundation using the Open/Closed Principle (OCP), and a generative AI assistant extends it further while keeping the design open for extension and closed for modification.

The project evolves from a minimal time unit system (seconds and minutes) into a full Gregorian calendar representation including:

  • Seconds

  • Minutes

  • Hours

  • Days (with leap year support)

  • Months

  • Years (0001–9999, clamped)

Key Ideas

Example Output

0001-01-01 00:00:00
0001-01-01 00:00:01
...
2025-08-16 14:07:59

Requires To Build and Run

Requires .NET 8.0 or later.

Why "Vibe Coding"?

Because the process wasn’t a strict spec-driven implementation.
It was more like “set the vibe, let AI riff on it, then polish together”.
Think of it as pair-programming with a generative AI, where OCP provides the safety rails.

License

This project is licensed under the MIT License.
Note: Parts of the code were generated with the assistance of OpenAI’s GPT model, and then reviewed/modified by a human developer.
You are free to use, modify, and distribute this project under the terms of the MIT License.

About

Built the 2nd floor by hand, then let GPT expand it into a 6-floor building — OCP vibe coding in action.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages