<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <p>Hi,</p>
    <p>I think the PyQGIS Cookbook is the perfect place to share these
      scripts. The Cookbook is not the API reference documentation. It
      is the place to share solutions for common problems using the QGIS
      API.</p>
    <p>Regards,</p>
    <p>Jorge<br>
    </p>
    <div class="moz-cite-prefix">Às 08:34 de 20/10/20, Charles
      Dixon-Paver escreveu:<br>
    </div>
    <blockquote type="cite"
cite="mid:CAK2Kqic7FZ322cFjMS4VN9O5w0vKjA=fKcODV7DCHhMV-8Ty3w@mail.gmail.com">
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      <div dir="ltr">Personally I feel like this outlines a greater
        problem of snippet sharing in many developer communities and is
        not a problem that is well suited to the resource sharing
        plugin, or even a single traditional GitHub repo.
        <div><br>
        </div>
        <div>My personal approach was to set up a subdirectory on GitHub
          with code snippets and add a pyqgis subdirectory (although I
          don't have a useful collection of things yet). I don't really
          like gists for something I want to maintain or have
          discoverable, so I use this dedicated repo instead. I would
          suggest if you plan on creating a number of different snippets
          that you create a similar one, or if you want to collaborate
          or make an occasional contribution then suggest an
          alternative.</div>
        <div><br>
        </div>
        <div>From my experience with the community it seems like a lot
          of the most useful snippets are scattered throughout
          conversations on the mailing lists, or within stack overflow.
          When working with the Esri platform and Web App Builder, there
          were a couple of repositories with custom widgets etc but the
          GeoNet forum was also probably the biggest resource for types
          of things like code snippets, although it had similar
          limitations to what I've experienced with pyqgis, perhaps with
          slightly better discoverability since I only really looked in
          one place and if I couldn't find something I didn't waste
          extra time searching across various platforms.</div>
        <div><br>
        </div>
        <div>Personally, I dislike stack overflow for a number of
          reasons. For one, I've found it's platform gamification has
          always led to a weird passive aggressive attitude from
          community members. The GIS site seems a lot more welcoming,
          but as a general rule, I just straight up don't like the
          platform because of this. The amount of unnecessary question
          reformats and edits for points is just painful to witness. The
          system itself has pretty funky issues as well - like flagging
          questions as duplicates but not providing links to those
          duplicates. Or where the OP directly posts links to duplicates
          but explicitly states the solutions don't work, only to have
          their question closed anyway... In any event, I think there's
          a lot of people like me that only end up there when Google/
          DuckDuckGo takes us there... Which leads to the typical stack
          overflow issue of all code being horribly outdated and nothing
          actually works. Most of the snippets I find on SO are for QGIS
          2 anyway. It's also not pyqgis specific.</div>
        <div><br>
        </div>
        <div>The mailing lists themselves I find have poor code
          discoverability, but I don't think a forum would resolve this
          and would likely just fragment the community further.</div>
        <div><br>
        </div>
        <div>For personal use, the best tool I've found for
          snippet management has been <a
            href="https://github.com/snibox/snibox" target="_blank"
            moz-do-not-send="true">https://github.com/snibox/snibox</a>
          but I don't know how well that scales. I used to use dokuwiki
          too, but it takes a lot of effort to format stuff and is more
          of a publication tool, but I don't see a quality wiki being
          maintained without significant effort.</div>
        <div><br>
        </div>
        <div>Your question has prompted me to set up a <a
            href="https://github.com/zacharlie/awesome-pyqgis"
            target="_blank" moz-do-not-send="true">https://github.com/zacharlie/awesome-pyqgis</a>
          repository.</div>
        <div><br>
        </div>
        <div>This way we can collectively maintain an up to date list of
          resources for PyQGIS, including up to date links for
          documentation, tutorials and training, and links to people's
          repositories. If something like this already exists and my
          list is redundant, please someone let me know so I can delete
          it before we put any significant work into it, and share
          something better so that the community knows about it.</div>
        <div><br>
        </div>
        <div>I'm open to other suggestions.</div>
        <div><br>
        </div>
        <div>Regards</div>
        <div><br>
        </div>
      </div>
      <br>
      <div class="gmail_quote">
        <div dir="ltr" class="gmail_attr">On Tue, 20 Oct 2020 at 00:38,
          <<a href="mailto:qgis-user@stripfamily.net" target="_blank"
            moz-do-not-send="true">qgis-user@stripfamily.net</a>>
          wrote:<br>
        </div>
        <blockquote class="gmail_quote" style="margin:0px 0px 0px
          0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
          <div> Is there a place where folks can contribute scripts that
            others might find useful? I know about the Resource Sharing
            plug-in, which is a way to point to a repository one is
            maintaining. I'm thinking more of a common repository where
            some might contribute the odd script. There's an archived
            git repository in qgis/QGIS-Processing->scripts, but
            that's no longer active.<br>
            <br>
          </div>
          _______________________________________________<br>
          Qgis-user mailing list<br>
          <a href="mailto:Qgis-user@lists.osgeo.org" target="_blank"
            moz-do-not-send="true">Qgis-user@lists.osgeo.org</a><br>
          List info: <a
            href="https://lists.osgeo.org/mailman/listinfo/qgis-user"
            rel="noreferrer" target="_blank" moz-do-not-send="true">https://lists.osgeo.org/mailman/listinfo/qgis-user</a><br>
          Unsubscribe: <a
            href="https://lists.osgeo.org/mailman/listinfo/qgis-user"
            rel="noreferrer" target="_blank" moz-do-not-send="true">https://lists.osgeo.org/mailman/listinfo/qgis-user</a></blockquote>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <pre class="moz-quote-pre" wrap="">_______________________________________________
Qgis-user mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Qgis-user@lists.osgeo.org">Qgis-user@lists.osgeo.org</a>
List info: <a class="moz-txt-link-freetext" href="https://lists.osgeo.org/mailman/listinfo/qgis-user">https://lists.osgeo.org/mailman/listinfo/qgis-user</a>
Unsubscribe: <a class="moz-txt-link-freetext" href="https://lists.osgeo.org/mailman/listinfo/qgis-user">https://lists.osgeo.org/mailman/listinfo/qgis-user</a></pre>
    </blockquote>
    <div class="moz-signature">-- <br>
      <title>Email Signature</title>
      <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
      <table style="width: 525px; font-size: 11pt; font-family: Arial,
        sans-serif;" cellspacing="0" cellpadding="0">
        <tbody>
          <tr>
            <td style="text-align:center; font-size: 10pt; font-family:
              Arial, sans-serif; border-right: 1px solid;
              border-right-color: #fb6303; width: 125px; padding-right:
              10px; vertical-align: top;" rowspan="6" width="125"
              valign="top"> <a href="https://www.geomaster.pt"
                target="_blank"><img alt="Logo" style="width:105px;
                  height:auto; border:0;"
src="https://geomaster.pt/wp-content/uploads/2017/02/cropped-geomaster300x300-1.png"
                  width="85" border="0"></a> </td>
            <td style="padding-left:10px">
              <table cellspacing="0" cellpadding="0">
                <tbody>
                  <tr>
                    <td style="font-size: 10pt; color:#0079ac;
                      font-family: Arial, sans-serif; width: 400px;
                      padding-bottom: 5px; padding-left: 10px;
                      vertical-align: top;" valign="top"> <strong><span
                          style="font-size: 14pt; font-family: Arial,
                          sans-serif; color:#fb6303;">Geomaster</span></strong><br>
                      <strong><span style="font-size: 11pt; font-family:
                          Arial, sans-serif; color:black;">Jorge Gustavo
                          Rocha</span></strong> <span
                        style="font-family: Arial, sans-serif;
                        font-size:11pt; color:#000000;"><span
                          style="padding-right: 5px; padding-left: 5px;">
                          | </span>Software Engineer</span> </td>
                  </tr>
                  <tr>
                    <td style="font-size: 10pt; color:#444444;
                      font-family: Arial, sans-serif; padding-bottom:
                      5px; padding-top: 5px; padding-left: 10px;
                      vertical-align: top; line-height:17px;"
                      valign="top"> <span><span style="color: #fb6303;"><strong>e:</strong></span><span
                          style="font-size: 10pt; font-family: Arial,
                          sans-serif; color:#000000;"> <a class="moz-txt-link-abbreviated" href="mailto:jgr@geomaster.pt">jgr@geomaster.pt</a></span></span>
                      <span><span style="padding-left:
                          5px;padding-right: 5px;"> | </span><span
                          style="color: #fb6303;"><strong>m:</strong></span><span
                          style="font-size: 10pt; font-family: Arial,
                          sans-serif; color:#000000;"> +351 910 333 888<br>
                        </span></span> <span><span style="color:
                          #fb6303;"><strong>g:</strong></span><span
                          style="font-size: 10pt; font-family: Arial,
                          sans-serif; color:#000000;"> 41.54094,-8.40490</span></span>
                      <span><span style="padding-left:
                          7px;padding-right: 5px;"> | </span><span
                          style="color: #fb6303;"><strong>v: </strong></span><span
                          style="font-size: 10pt; font-family: Arial,
                          sans-serif; color:#000000; padding-left: 7px;">
                          510 906 109<br>
                        </span></span> <span> <span style="color:
                          #fb6303;"><strong>a: </strong></span> </span>
                      <span> <span style="font-size: 10pt; font-family:
                          Arial, sans-serif; color: #000000;"><span> </span>Rua
                          António Cândido Pinto, 67, 4715-400 Braga<br>
                        </span></span> </td>
                  </tr>
                </tbody>
              </table>
            </td>
          </tr>
        </tbody>
      </table>
    </div>
  </body>
</html>