Giter Site home page Giter Site logo

Comments (4)

driesvints avatar driesvints commented on June 7, 2024 1

Hey @miken32

  • Right now we're not doing too much constructor promotion so you can just use properties for them to keep things consistent
  • Illuminate\Notifications\Slack\BlockKit\Blocks\Block sounds good
  • I'm not too sure about this one but I'd personally go for Illuminate\Notifications\Slack\BlockKit\Elements\Concerns if they're specific for this namespace

from slack-notification-channel.

driesvints avatar driesvints commented on June 7, 2024

Thanks @miken32. I'm not sure why @claudiodekker left these out. Most probably because it can potentially be quite a bit of work. Feel free to send in a PR if you like that we can review.

from slack-notification-channel.

claudiodekker avatar claudiodekker commented on June 7, 2024

Yeah, that, and the whole PR was initially simply written for internal-only use. It was only when I was done writing it that I realized it was feature complete with the V2/Webhook-based implementation, at which point I cleaned it up a little and PR'd it.

from slack-notification-channel.

miken32 avatar miken32 commented on June 7, 2024

@driesvints are there any Laravel style guidelines beyond this section in the documentation? I've got a few style/convention questions that would ideally get cleared up before a PR is submitted.

  • Looking at the code, my first thought is that I could clean up a lot of boilerplate with constructor property promotion. But I don't see much of this in Laravel; is that simply holdover from older PHP versions or is it not welcome for some reason?
  • I'm going to create a base class that e.g. Illuminate\Notifications\Slack\BlockKit\Blocks\HeaderBlock will extend. Is there a preference for Illuminate\Notifications\Slack\BlockKit\Block vs Illuminate\Notifications\Slack\BlockKit\Blocks\Block?
  • Similar question for traits used by classes in the Illuminate\Notifications\Slack\BlockKit\Elements namespace; Laravel convention seem to put these in a Concerns namespace? Should it be specific to the using classes (Illuminate\Notifications\Slack\BlockKit\Elements\Concerns) or is it preferred to have one place for all traits (Illuminate\Notifications\Slack\Concerns).

Sorry if these are too nitpicky, I just want to improve chances of the PR getting accepted. I've worked with large teams before and there are often a lot of unwritten rules for newcomers!

from slack-notification-channel.

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.