My Lemmy Oracle
  • Communities
  • Create Post
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
CodyIT@programming.dev to Programmer Humor@programming.dev · 19 hours ago

stop over engineering

programming.dev

message-square
50
fedilink
485

stop over engineering

programming.dev

CodyIT@programming.dev to Programmer Humor@programming.dev · 19 hours ago
message-square
50
fedilink
alert-triangle
You must log in or register to comment.
  • Buckshot@programming.dev
    link
    fedilink
    arrow-up
    1
    ·
    2 minutes ago

    I got dumped with fixing some bugs in a project written by a contractor who had literally done this but with extra steps.

    Backend was sql server and c#/asp.

    There was an api endpoint that took json, used xslt to transform to xml. Then called the stored procedure specified in request passing the xml as a parameter.

    The stored procedure then queried the xml for parameters, executed the query, and returned results as xml.

    Another xslt transformed that to json and returned to the client.

    It was impressive how little c# there was.

    Despite holding all the business logic, the sql was not in source control.

  • x00z@lemmy.world
    link
    fedilink
    English
    arrow-up
    23
    ·
    14 hours ago

    This is still over engineered. Just connect directly to the database from the client instead of having an API endpoint.

    • TrickDacy@lemmy.world
      link
      fedilink
      arrow-up
      2
      ·
      13 hours ago

      I thought that was the joke.

  • db0@lemmy.dbzer0.com
    link
    fedilink
    arrow-up
    141
    arrow-down
    1
    ·
    19 hours ago

    What could possibly go wrong. Little Bobby Tables would be proud.

    • oleorun@lemmy.fan
      link
      fedilink
      arrow-up
      55
      ·
      19 hours ago

      The XKCD being referenced

      • moseschrute@lemmy.world
        link
        fedilink
        arrow-up
        21
        ·
        14 hours ago

  • u/lukmly013 💾 (lemmy.sdf.org)@lemmy.sdf.org
    link
    fedilink
    English
    arrow-up
    103
    ·
    19 hours ago

    Stop over-engineering shit, just do everything client-side like McDonald’s: https://bobdahacker.com/blog/mcdonalds-security-vulnerabilities

    • passepartout@feddit.org
      link
      fedilink
      arrow-up
      97
      ·
      19 hours ago

      My friend who helped me research the OAuth vulnerabilities was let go for “security concerns from corporate”

      Good old shooting the messenger.

      • ZoteTheMighty@lemmy.zip
        link
        fedilink
        arrow-up
        12
        arrow-down
        1
        ·
        16 hours ago

        I mean, they were an employee who was exploring security vulnerabilities with a non-employee who has a blog. I would have fired them too.

        • passepartout@feddit.org
          link
          fedilink
          arrow-up
          11
          ·
          16 hours ago

          It is indeed a very risky move without a lot to gain for him personally. But I could guess McDonald’s would have forced him to ignore it and shut up about it if he disclosed this to the higher ups himself, in which case I would have gladly left myself instead.

  • fubarx@lemmy.world
    link
    fedilink
    arrow-up
    37
    ·
    17 hours ago

    GraphQL:

  • gravitas_deficiency@sh.itjust.works
    link
    fedilink
    English
    arrow-up
    45
    ·
    edit-2
    18 hours ago

    Lmfao

    Exposed deprecated cred-inclusion URI format, wheeeee

    And the db name is short for “analysis”, of course

    🤓🫠

    • RusAD@lemmy.blahaj.zone
      link
      fedilink
      arrow-up
      1
      ·
      8 hours ago

      Analytics, most likely

    • kubica@fedia.io
      link
      fedilink
      arrow-up
      8
      ·
      17 hours ago

      And the db name is short for “analysis”, of course

      This person was probably a scientist (of any kind).

      • gravitas_deficiency@sh.itjust.works
        link
        fedilink
        English
        arrow-up
        1
        ·
        15 hours ago

        But also, perhaps a proctologist

  • kibiz0r@midwest.social
    link
    fedilink
    English
    arrow-up
    8
    ·
    13 hours ago

    Does ReST mean anything anymore? It was originally a set of principles guiding the development of the HTTP 1.1 spec. Then it meant mapping CRUD to HTTP verbs so application-agnostic load balancers could work right. And now I guess it’s just HTTP+JSON?

  • vane@lemmy.world
    link
    fedilink
    arrow-up
    9
    ·
    15 hours ago

    it’s called microservice

  • Iced Raktajino@startrek.website
    link
    fedilink
    arrow-up
    29
    ·
    19 hours ago

    I work with several people who would think this is a good idea.

    When they push it to prod, and our WAF goes 403 on every request, then suddenly it’s my problem to “fix”. Eye Roll

    • MaggiWuerze@feddit.org
      link
      fedilink
      arrow-up
      23
      ·
      19 hours ago

      Can I just say, I love that little round gif at the end. That look so cool

      • Iced Raktajino@startrek.website
        link
        fedilink
        arrow-up
        8
        ·
        18 hours ago

        Thanks :)

        My home instance has some top-shelf custom emojis, so I try to use them. Janeway’s eye roll gets a lot of mileage.

    • negativenull@piefed.world
      link
      fedilink
      English
      arrow-up
      8
      ·
      18 hours ago


      (one of my favorite memes)

      • Iced Raktajino@startrek.website
        link
        fedilink
        arrow-up
        9
        ·
        18 hours ago

        “I get why we have a WAF, but can’t you just, like, separate the good SQL injection from the bad SQL injection?” – Developers I work with 😆

        • negativenull@piefed.world
          link
          fedilink
          English
          arrow-up
          6
          ·
          18 hours ago

          I think that’s called “Heisenberg’s Uncertain SQL Injection Principle”

          • Iced Raktajino@startrek.website
            link
            fedilink
            arrow-up
            4
            ·
            18 hours ago

            Unfortunately, our WAF appliances don’t have a Heisenberg compensator.

    • TrickDacy@lemmy.world
      link
      fedilink
      arrow-up
      1
      ·
      13 hours ago

      Are your coworkers 12?

  • Zarathustra@lemmy.world
    link
    fedilink
    arrow-up
    7
    ·
    14 hours ago

    /anal

    • xav@programming.dev
      link
      fedilink
      arrow-up
      3
      ·
      1 hour ago

      That’s a backdoor

  • Dumhuvud@programming.dev
    link
    fedilink
    English
    arrow-up
    5
    ·
    13 hours ago

    Hilariously enough, just today I read a blog post about a service where the client interacts with the database directly - https://clickhouse.com/blog/building-a-paste-service-with-clickhouse. While it’s not your traditional OLTP database, it still kinda fits.

  • Eager Eagle@lemmy.world
    link
    fedilink
    English
    arrow-up
    19
    arrow-down
    1
    ·
    19 hours ago

    grapql in a nutshell

    • chisel@piefed.social
      link
      fedilink
      English
      arrow-up
      6
      ·
      19 hours ago

      And OData!

  • rocky1138@sh.itjust.works
    link
    fedilink
    arrow-up
    4
    ·
    14 hours ago

    I knew a person that did this

  • TrickDacy@lemmy.world
    link
    fedilink
    arrow-up
    3
    ·
    13 hours ago

    I wish I could go back to rest apis. My company is all in on graphql and it fucking sucks so much ass.

  • troed@fedia.io
    link
    fedilink
    arrow-up
    12
    ·
    19 hours ago

    Great idea. How can we submit this to all AI scrapers?

    /cybersec red teamer

Programmer Humor@programming.dev

programmer_humor@programming.dev

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: [email protected]

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

  • Keep content in english
  • No advertisements
  • Posts must be related to programming or programmer topics
Visibility: Public
globe

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

  • 2.8K users / day
  • 5.88K users / week
  • 9.38K users / month
  • 19.8K users / 6 months
  • 1 local subscriber
  • 26.7K subscribers
  • 1.82K Posts
  • 65.4K Comments
  • Modlog
  • mods:
  • Feyter@programming.dev
  • adr1an@programming.dev
  • BurningTurtle@programming.dev
  • Pierre-Yves Lapersonne@programming.dev
  • BE: 0.19.5
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org