GNU social JP
  • FAQ
  • Login
GNU social JPは日本のGNU socialサーバーです。
Usage/ToS/admin/test/Pleroma FE
  • Public

    • Public
    • Network
    • Groups
    • Featured
    • Popular
    • People

Conversation

Notices

  1. Embed this notice
    Steve Dinn 🇨🇦 (steve@social.dinn.ca)'s status on Friday, 18-Oct-2024 21:10:11 JST Steve Dinn 🇨🇦 Steve Dinn 🇨🇦
    • Evan Prodromou

    @evan I have been in a situation where stored procedures were established by the DBA and consumers of the database used them like an API, so in that case, or if I was intending to provide this kind of "API", then yes. But if I'm developing software and I'm in control of the database, then no.

    I find it's a bad code smell if a particular query occurs in more than one place in your app. So using this metric, stored procedures are an unnecessary level of indirection that can lead to obfuscation.

    In conversation Friday, 18-Oct-2024 21:10:11 JST from social.dinn.ca permalink
    • Embed this notice
      Evan Prodromou (evan@cosocial.ca)'s status on Friday, 18-Oct-2024 21:09:57 JST Evan Prodromou Evan Prodromou
      in reply to

      @steve isn't that the point?

      In conversation Friday, 18-Oct-2024 21:09:57 JST permalink
    • Embed this notice
      Steve Dinn 🇨🇦 (steve@social.dinn.ca)'s status on Friday, 18-Oct-2024 21:09:59 JST Steve Dinn 🇨🇦 Steve Dinn 🇨🇦
      in reply to
      • Evan Prodromou

      @evan I've also seen stored procedures go completely off the rails and return completely different result sets depending on the parameter values.

      In conversation Friday, 18-Oct-2024 21:09:59 JST permalink
    • Embed this notice
      Evan Prodromou (evan@cosocial.ca)'s status on Friday, 18-Oct-2024 21:45:31 JST Evan Prodromou Evan Prodromou
      in reply to

      @steve oh, that seems hard to follow. I meant, you pass in an order ID (say) and get only the items for that order. So it performs selection, not projection.

      In conversation Friday, 18-Oct-2024 21:45:31 JST permalink
    • Embed this notice
      Steve Dinn 🇨🇦 (steve@social.dinn.ca)'s status on Friday, 18-Oct-2024 21:45:32 JST Steve Dinn 🇨🇦 Steve Dinn 🇨🇦
      in reply to
      • Evan Prodromou

      @evan By "different result sets" I mean completely different columns and different data not necessarily following the same structure.

      In conversation Friday, 18-Oct-2024 21:45:32 JST permalink
    • Embed this notice
      Steve Dinn 🇨🇦 (steve@social.dinn.ca)'s status on Friday, 18-Oct-2024 21:45:33 JST Steve Dinn 🇨🇦 Steve Dinn 🇨🇦
      in reply to
      • Evan Prodromou

      @evan *Is* that the point? I consider that to be pretty unhinged. If this is the case, why are they not just separate things?

      In conversation Friday, 18-Oct-2024 21:45:33 JST permalink

Feeds

  • Activity Streams
  • RSS 2.0
  • Atom
  • Help
  • About
  • FAQ
  • TOS
  • Privacy
  • Source
  • Version
  • Contact

GNU social JP is a social network, courtesy of GNU social JP管理人. It runs on GNU social, version 2.0.2-dev, available under the GNU Affero General Public License.

Creative Commons Attribution 3.0 All GNU social JP content and data are available under the Creative Commons Attribution 3.0 license.