New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Readme is getting longer and longer #17
Comments
I agree... I like the idea... But the core of this whole repo is the .playground package. We could split the file, sure... I'll think about it some more and we'll make some move very soon. |
Any ideas how to connect your idea (swift files) with .playground packages? Mine is: Separate .markdown, .swift and .playground for every DesignPattern (all autogenerated from .swift file with some ruby script)? Huh? |
Sounds good. My idea was to keep each pattern in separated .swift file, and use some script to merge all files together with some description from markdown - so similar to what you're taking about :) But I don't know Ruby :) |
What about using Github Wiki for documentation and multiple playground files? |
This solution is less portable. Plus - we need some documentation for every pattern. A lot of work. |
A Github wiki is just a git repository with Markdown files and assets. That seems portable. On a different note, it seems like the repo could use some renaming and organization.
|
You could also just use another source for your readme. |
Not so much but something has to be done. I agree.
I like the idea, but
Well I could. We could. Care to help with that? |
After investigating the current repo structure I understand your problem better. I think this could be a good solution. It isn't rocket science but that is probably means it is the right answer. Step One - Rename the files # new proposed documentation section
├── creational
│ ├── 1-title.md
│ ├── 2-singleton.md
│ ├── 3-builder.md
│ └── 4-abstract-factory.md
└── structural
├── 1-title.md
├── 2-composite.md
├── 3-facade.md
└── 4-adapter.md Step Two - Combine all of the files into README.md # Creational
## Singleton
## Builder
## Abstract Factory
# Structural
## Composite
## Facade
## Adapter Step Three - Add logic to Generate-playground.sh Disadvantage:
Advantages:
Let me know your thoughts about this approach and I'll gladly contribute it. |
I like this approach, feel free to make that happen. |
Oh... Please hurry... |
Working on it right now |
Closing. |
Hi,
At first I want to thanks for this repo, it's great for people who want to read about design patterns in swift and it is good for me, for learning others by contributing and sharing our knowledge and for learning myself when I'm wiring examples of some patterns :)
What this issue is about is maintenance Readme.markdown file. I was thinking a little bit and I'm afraid this file is bulky, hard to browse and maintenance. Wouldn't it be better to move all the patterns implementations to separated .swift files and create links in description to these files (with some description optionally)?
The file could looks like this:
What do you think about the idea?
The text was updated successfully, but these errors were encountered: