Git Product home page Git Product logo

Comments (14)

AnneSottise avatar AnneSottise commented on June 9, 2024 1

C.

Parce que je pense comme Sunny (◕‿◕)

from ruby-style-guide.

 avatar commented on June 9, 2024 1

Surtout il faudrait avoir un rubocop.yml unique pour tous les repos.

from ruby-style-guide.

sunny avatar sunny commented on June 9, 2024

C.

Parce que c'est plus succint. Je ne trouve pas que les parenthèses soient très utiles ici.

Par contre ça va à l'encontre des règles du Ruby Style Guide de base.

from ruby-style-guide.

Ynote avatar Ynote commented on June 9, 2024

C.

from ruby-style-guide.

cyrill62 avatar cyrill62 commented on June 9, 2024

A.

Car ce sont les règles du style-guide de base.

Sinon j'aime plus le :

D. lambda do |user|

from ruby-style-guide.

bsartek avatar bsartek commented on June 9, 2024

C. J'ai pas de personnalité

from ruby-style-guide.

sunny avatar sunny commented on June 9, 2024

@cyrill62 Tu préfèrerais remplacer tous les -> par des lambda à chaque fois ? o_O

from ruby-style-guide.

cyrill62 avatar cyrill62 commented on June 9, 2024

Ouais je sais c'est chelou mais même si c'est plus verbeux je trouve ça plus lisible.

Comme les blocs.

from ruby-style-guide.

camilledel avatar camilledel commented on June 9, 2024

C. Je reste fidèle à mon équipe !

from ruby-style-guide.

 avatar commented on June 9, 2024

autre question :

-> (user) do
  ...
end

ou

-> (user) {
   ...
}

Nos rubocops se contredisent la dessus.

from ruby-style-guide.

cyrill62 avatar cyrill62 commented on June 9, 2024

Ben :

lambda do |user|
...
enfin

ou

->(user) { ... }

from ruby-style-guide.

sunny avatar sunny commented on June 9, 2024

Bien vu @TristeFigure. Tu peux faire une issue ?

from ruby-style-guide.

robertanisko avatar robertanisko commented on June 9, 2024

Victoire du C !

from ruby-style-guide.

cyrill62 avatar cyrill62 commented on June 9, 2024

Ok du coup on peut mettre à jour le rubocop.yml en conséquence ?

from ruby-style-guide.

Related Issues (4)

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.