Giter VIP home page Giter VIP logo

Comments (7)

dbgrandi avatar dbgrandi commented on June 15, 2024

Actually, looking at cocoapods/command/lib.rb it appears this is the standard for CLAide commands in the main pods gem.

from cocoapods-plugins.

AliSoftware avatar AliSoftware commented on June 15, 2024

So what, should we keep everything in one big file like for the pod lib command that only lies in lib.rb?

I suggest that we split it anyways, contrary to the structure used in the main pods gem.

  • The main pod gem has a lot of commands, and creating a subfolder and separate .rb files would create a lot of files and hierarchy levels, that is probably why they didn't do it
  • Here we are in a plugin, which as way much less code and is a much smaller project, so keeping it readable with more but smaller files seems a good idea

I was willing to start the refactoring, but will wait for your advice about which way to go, splitting in separate files or keeping it all in a big single one.

from cocoapods-plugins.

dbgrandi avatar dbgrandi commented on June 15, 2024

In our case, the search command is quite different in function compared
to the create command so I'd rather separate those two classes.

On Tue, Apr 29, 2014 at 3:33 PM, AliSoftware [email protected]:

So what, should we keep everything in one big file like for the pod libcommand that only lies in
lib.rb?

I suggest that we split it anyways, contrary to the structure used in the
main pods gem.

  • The main pod gem has a lot of commands, and creating a subfolder and
    separate .rb files would create a lot of files and hierarchy levels,
    that is probably why they didn't do it
  • Here we are in a plugin, which as way much less code and is a much
    smaller project, so keeping it readable with more but smaller files seems a
    good idea

I was willing to start the refactoring, but will wait for your advice
about which way to go, splitting in separate files or keeping it all in a
big single one.


Reply to this email directly or view it on GitHubhttps://github.com//issues/10#issuecomment-41721576
.

from cocoapods-plugins.

dbgrandi avatar dbgrandi commented on June 15, 2024

D'oh! Reply by email may not be as good an idea as I thought.

from cocoapods-plugins.

fabiopelosin avatar fabiopelosin commented on June 15, 2024

I vote for refactoring everything... also the main gem! ☀️

from cocoapods-plugins.

AliSoftware avatar AliSoftware commented on June 15, 2024

@irrationalfab 👍

I'm beginning to like submitting ruby PRs… even as a ruby newbie (I'm an iOS expert to begin with, not a ruby programmer at all), so maybe I'll give it a try on the main gem sometime 😉

from cocoapods-plugins.

fabiopelosin avatar fabiopelosin commented on June 15, 2024

@AliSoftware Looking forward to it!

from cocoapods-plugins.

Related Issues (20)

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.