Committing code to the Blender repo

I’m not sure where’s the best place to ask this. I found some docs and the issue tracker for submitting patches, but is there a place to show and discuss the code before submitting the patch?

By “submitting a patch” we mean sending it to be reviewed. Developers can only commit code to the main Blender repository once they are given commit rights. See here for some details on the code contribution process:
https://wiki.blender.org/wiki/Process/Contributing_Code
https://wiki.blender.org/wiki/Tools/CodeReview

What has been done in the past with patches that aren’t quite ready yet but you’d still like some feedback on is use the regular patch review process but mark them as works in progress in the tile of the patch like this ‘WIP: add feature X to Y’

Thanks @brecht that makes sense. I’ll have a look at those links.

@LazyDodo I’ll do that thanks.