supernova.place
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
slazer2au@lemmy.world to LinkedinLunatics@sh.itjust.worksEnglish · 1 year ago

Liking any of these indicates a belief system I don't agree with

sopuli.xyz

message-square
67
link
fedilink
263

Liking any of these indicates a belief system I don't agree with

sopuli.xyz

slazer2au@lemmy.world to LinkedinLunatics@sh.itjust.worksEnglish · 1 year ago
message-square
67
link
fedilink

cross-posted from: https://sopuli.xyz/post/24303260

URL: https://www.linkedin.com/posts/michelesollecito_in-my-own-company-i-wouldnt-hire-anyone-activity-7309491565603835904-uBhX

  • jubilationtcornpone@sh.itjust.works
    link
    fedilink
    English
    arrow-up
    26
    arrow-down
    1
    ·
    1 year ago
    • ORM’s
    1. Place ALL of the business logic in stored procedures.
    2. Eliminate the backend.
    3. Make the front end connect directly to the database.
    4. Profit
    5. Introduce tons of bugs and terrible performance.
    6. Database is compromised within five minutes of going live.
    • aubeynarf@lemmynsfw.comdeleted by creator
      link
      fedilink
      arrow-up
      7
      ·
      edit-2
      7 months ago

      deleted by creator

      • Dhs92@programming.dev
        link
        fedilink
        arrow-up
        1
        ·
        1 year ago

        Would you classify GORM that way?

        • aubeynarf@lemmynsfw.comdeleted by creator
          link
          fedilink
          arrow-up
          2
          ·
          edit-2
          7 months ago

          deleted by creator

          • Dhs92@programming.dev
            link
            fedilink
            arrow-up
            2
            ·
            1 year ago

            GORM is Go ORM

            • aubeynarf@lemmynsfw.comdeleted by creator
              link
              fedilink
              arrow-up
              3
              ·
              edit-2
              7 months ago

              deleted by creator

        • Swedneck@discuss.tchncs.de
          link
          fedilink
          arrow-up
          1
          ·
          1 year ago

          i prefer going GORMLESS

    • expr@programming.dev
      link
      fedilink
      arrow-up
      7
      arrow-down
      3
      ·
      1 year ago

      I’m confused. Are you saying all of that is a consequence of not using ORMs? Because if so, that’s absolutely not true. ORMs truly are complete trash.

      • sugar_in_your_tea@sh.itjust.works
        link
        fedilink
        arrow-up
        3
        ·
        1 year ago

        Sounds like you were hurt by an ORM.

        One huge benefit of an ORM is that it does type checking. it makes sure your tables exist, relationships are valid, etc, and it makes easy things easy. If you add a column, it’ll make sure it gets populated, give you decent error messages, etc.

        As long as you use a proper repository pattern setup and isolate DB interactions from the rest of the code, how you construct the queries is completely up to you. I try to use DTOs to communicate w/ the repo layer, so whether an ORM is used or direct SQL queries is largely an implementation detail.

        • asdfasdfasdf@lemmy.world
          link
          fedilink
          arrow-up
          3
          ·
          1 year ago

          https://github.com/launchbadge/sqlx

          Not an ORM, but uses Rust’s compile time macros so you can write raw SQL and it will type check everything against either a real database connection or a JSON cache of the database’s schema.

          Absolute best of both worlds.

          • sugar_in_your_tea@sh.itjust.works
            link
            fedilink
            arrow-up
            2
            ·
            1 year ago

            That sounds really nice, I’ll have to check it out.

    • Jack@slrpnk.net
      link
      fedilink
      arrow-up
      4
      ·
      1 year ago

      I have for years been pumped to create a sql only side project or sql + frontend

      • sugar_in_your_tea@sh.itjust.works
        link
        fedilink
        arrow-up
        2
        ·
        1 year ago

        Please don’t. I self-host actual budget, and they compile SQLite to WASM to use it in the FE. That just feels… wrong.

      • Drew@sopuli.xyzM
        link
        fedilink
        arrow-up
        1
        ·
        1 year ago

        https://github.com/PostgREST/postgrest

        • Jack@slrpnk.net
          link
          fedilink
          arrow-up
          1
          ·
          1 year ago

          There are some other options as well: https://youtu.be/3JW732GrMdg

LinkedinLunatics@sh.itjust.works

linkedinlunatics@sh.itjust.works

Subscribe from Remote Instance

Create a post
You are not logged in. However you can subscribe from another Fediverse account, for example Lemmy or Mastodon. To do this, paste the following into the search field of your instance: !linkedinlunatics@sh.itjust.works

A place to post ridiculous posts from linkedIn.com

(Full transparency… a mod for this sub happens to work there… but that doesn’t influence his moderation or laughter at a lot of posts.)

Visibility: Public
globe

This community can be federated to other instances and be posted/commented in by their users.

  • 169 users / day
  • 806 users / week
  • 2.74K users / month
  • 5.32K users / 6 months
  • 1 local subscriber
  • 7.05K subscribers
  • 236 Posts
  • 8.62K Comments
  • Modlog
  • mods:
  • csm10495@sh.itjust.works
  • Drew@sopuli.xyz
  • BE: 0.19.19
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org