Git Product home page Git Product logo

go-patterns's People

Contributors

dlion avatar james4e avatar legendtkl avatar leonklingele avatar linmad avatar mehdy avatar niranjan92 avatar philiphil avatar sha1sum avatar simon-xia avatar tmrts avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

go-patterns's Issues

Is this repo staled?

.. I just noticed that a lot of pr's ans issues are open and that the last commit is very old?

Website buggy when clicking on status ✘ objects

Clicking on a pattern which is unfinished (i.e status = ✘) provides no feedback on the website, nothing happens.

Clicking on the link multiple times appends the category to the URL multiple times. For example clicking on Abstract Factory three times yields the following url:

http://tmrts.com/go-patterns/creational/creational/creational/abstract_factory.md

Lastly, clicking on such an object twice makes all the other links (with status ✔) not work.

Builder Pattern missing parts

There are parts that you show in how to use the pattern that aren't in the example of creating it.

i.e. NewBuilder(), Paint(..), etc...

Factory Method Pattern

Factory Method Pattern in Go is function which returns an interface (something what is implementing an interface)... that's all. This means you should not think about this pattern and use a pattern when you known patterns. You should make only a function like func NewXXX(arguments) <interface> {...} for your needs (or in ideal case package.New()). And every gofer are making this everyday. And it is not a pattern. This is Interface builder or Interface constructor as you like.
I affirm that Go does not require knowledge of any patterns (as OOP requires), but it requires an understanding of SOLID principles and having a mind.

pool should use sync.Pool

the use of channels to control the pool is fine, but IMHO it's much better to use the sync.Pool from the stdlib

Usage of patterns in go language library or known projects.

It would be very useful if someone could provide reference to some patterns that are being used in go language library or some established(well known) go projects.

That will give an idea how these patterns are being used in real life.

warning: don't use anything in here for a readable codebase

If you want to develop great software, do not use anything in here. It's a good way to create an unmaintainable, unreadable and a frustrating codebase that no one can figure out. Take a look at the Golang standard library, do you see anything about a Factory, Flywheel, or any other non-sense design pattern? Nope.

Stay far away from these patterns in Golang and never use these patterns unless you have a decade of experience and have successfully shipped and maintained a codebase for at least 3 years.

This repository should have a big warning saying "STAY AWAY UNLESS YOU ARE ROB PIKE"

long time no updating, i think we can do the following .....

first of all , i 'm very glad to help to stay still in current repo ,if with author's permission.

currently , I did some digging ,found some guys made great progressing basing on current projects ,but which also looks staled ,so i did the the following actions :

i created a following fork https://github.com/crazybber/awesome-patterns, with many awesome forks merged. such as:

Merged : https://github.com/nynicg/go-patterns
Merged : https://github.com/weichou1229/go-patterns
Merged : https://github.com/jianhan/go-patterns
Merged : https://github.com/sakari-ai/go-patterns
Merged :https://github.com/restudy/go-patterns
.....

maybe, your guys will be interesting.
maybe, we can make this repo great again .

if you have some or similar idea ,come her : go-patterns.

Suggestion: Continuous Fuzzing

Hi, I'm Yevgeny Pats Founder of Fuzzit - Continuous fuzzing as a service platform.

We have a free plan for OSS and I would be happy to contribute a PR if that's interesting.
The PR will include the following

  • go-fuzz fuzzers (This is generic step not-connected to fuzzit)
  • Continuous Fuzzing of master branch which will generate new corpus and look for new crashes
  • Regression on every PR that will run the fuzzers through all the generated corpus and fixed crashes from previous step. This will prevent new or old bugs from crippling into master.

You can see our basic example here and you can see an example of "in the wild" integration here.

Let me know if this is something worth working on.

Cheers,
Yevgeny

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.