• i_dont_want_to@lemmy.blahaj.zone
    link
    fedilink
    arrow-up
    2
    ·
    53 minutes ago

    Those new developers and their fancy tools. They don’t know anything about computers.

    That’s why I only code in machine code on punch cards. Anything more is just training wheels.

    • Vinny_93@lemmy.world
      link
      fedilink
      arrow-up
      10
      arrow-down
      1
      ·
      20 hours ago

      It’s simple, really. If you don’t understand what the AI is telling you to code, you’ll spend five times what it would take a rawdogger to code it.

      If you write the stuff yourself from scratch you know your train of thought, you know what it means and you know what it needs to be better.

      Show me a head to head comparison of several coders doing the same assignment and let half of them use AI. Then we can assess the effects. My hypothesis is that the fastest one would have used AI. The slowest one wouldn’t have used AI but is a crappy coder. But there will probably will be non-AI coders quicker than some AI coders.

      • dotslashme@infosec.pub
        link
        fedilink
        English
        arrow-up
        12
        ·
        20 hours ago

        I’d also bet on AI making isolated solutions, that will be impossible to integrate without incurring massive technical debt.

        • fartsparkles@lemmy.world
          link
          fedilink
          arrow-up
          6
          ·
          20 hours ago

          This. Coding challenges aren’t indicative of building an actual application. So far, I’ve found AI vastly inferior to any human I work with. Only use I’ve found is writing a bunch of basic tests to save some monotony. Still requires a bunch of extra tests to be written though since it never fully groks the code.

        • Dkarma@lemmy.world
          link
          fedilink
          arrow-up
          2
          arrow-down
          2
          ·
          19 hours ago

          Claiming an ai can’t write a single simple function well is such a joke take I can’t tell if you’re serious or not.

          • dotslashme@infosec.pub
            link
            fedilink
            English
            arrow-up
            2
            ·
            7 hours ago

            Maybe it was unclear, but my point wasn’t isolated functions, rather the trying to glue several of them together into a coherent application.

      • odd@feddit.org
        link
        fedilink
        arrow-up
        4
        ·
        19 hours ago

        I disagree so much. The problem with all of these takes are, that they are build on the assumption that the main skill of a software engineer is writing code. That’s the same mistake a lot of “< seniors” do.

        See, the important thing about engineering is to provide a fitting solution that satisfies many different domains. You need to understand and interconnect a lot of information. And the most important thing a good engineer has is “creativity”.

        In your example, you think about assignments as you have them in university. Arbitrary scenarios that learn you a tool (which is usually a programming language). However, that is not an assignment you are faced as an engineer.

        It’s not like in NCIS where someobey comes and says: “Can you make this algorithm faster?”

        It’s more like (an actual example from last week): can you (as in team) analyze why this legacy system failed? We have these analytics for you. We currently conduct these labs, and have these user voices. Figure out a way how we can revamp this whole thing, but this time successful. Once done create a MVP and a rough roadmap. Latter in alignment with our overarching strategy.

      • Chocrates@lemmy.world
        link
        fedilink
        arrow-up
        2
        ·
        19 hours ago

        I tried chatgpr on something I didn’t understand and it lead me down the wrong path. Ai is only good for boilerplate and finding out interesting ways to refactor imo.

      • TropicalDingdong@lemmy.world
        link
        fedilink
        arrow-up
        2
        arrow-down
        1
        ·
        edit-2
        20 hours ago

        Show me a head to head comparison of several coders doing the same assignment and let half of them use AI. Then we can assess the effects. My hypothesis is that the fastest one would have used AI. The slowest one wouldn’t have used AI but is a crappy coder. But there will probably will be non-AI coders quicker than some AI coders.

        You need to introduce one more independent variable, which would be level of coding/ programing experience. If you really do already know what you are doing, and you know how to structure a good query, and know how to confirm if the code assistant/ AI got it right, it absolutely does make you much faster. Also, for really low level stuff, like defining helper functions, it rarely gets them objectively wrong, although they are often pretty… plain? or naive? So I would extend this hypothesis to cover the range of skill levels in individual coders and programmers. I think this is actually the striking difference. If you already know enough to code these things from scratch, it does make a huge difference.

        Here is an example that I would use (prompt), and the result. Prompt:

        I want a python function to pull imagery for a bounding box in latitude longitude, for a specific year, and a specific band order from this arcgis REST server (https://map.dfg.ca.gov/arcgis/rest/services/Base_Remote_Sensing). I always want a 512 by 512 pixel tile. The layer pattern for the server is NAIP_XXXX_ZZZZ where XXXX is the year, and ZZZZ is either 4Band, CIR, or NDVI, or missing (including the underscore) for RGB. I want the data as a spatially projected geotiff. Have the function query the server first to confirm the layer options before querying.

        Response:

        import requests import rasterio from rasterio.io import MemoryFile import numpy as np

        def get_arcgis_imagery(bbox, year, band_order, output_path):
        
        """
        Pulls imagery from the ArcGIS REST server for a given bounding box, year, and band order.
        
        Parameters:
        - bbox: (min_lon, min_lat, max_lon, max_lat)
        - year: YYYY (e.g., 2020)
        - band_order: '4Band', 'CIR', 'NDVI', or '' for RGB
        - output_path: Path to save the output GeoTIFF
        """
        base_url = "https://map.dfg.ca.gov/arcgis/rest/services/Base_Remote_Sensing"
        service_url = f"{base_url}/NAIP_{year}_{band_order}/ImageServer" if band_order else f"{base_url}/NAIP_{year}/ImageServer"
        
        # Confirming the layer exists
        response = requests.get(f"{service_url}?f=json")
        if response.status_code != 200:
            raise ValueError(f"Layer NAIP_{year}_{band_order} does not exist on the server.")
        
        # Defining export parameters
        params = {
            'bbox': f"{bbox[0]},{bbox[1]},{bbox[2]},{bbox[3]}",
            'bboxSR': 4326,
            'size': '512,512',
            'imageSR': 3857,  # Projected coordinate system
            'format': 'tiff',
            'f': 'image'
        }
        
        # Requesting the imagery
        export_url = f"{service_url}/exportImage"
        image_response = requests.get(export_url, params=params)
        if image_response.status_code != 200:
            raise ValueError("Failed to retrieve image data.")
        
        # Saving the image as a GeoTIFF
        with MemoryFile(image_response.content) as memfile:
            with memfile.open() as dataset:
                profile = dataset.profile
                data = dataset.read()
        
                with rasterio.open(output_path, 'w', **profile) as dst:
                    dst.write(data)
        

        This function appears in just a second, and I don’t even need to consider its details. Its well written, commented, and it just works.

  • Rogue@feddit.uk
    link
    fedilink
    arrow-up
    6
    ·
    16 hours ago

    If you’re developing something that has been written a million times before such as a user authentication API then yes you can just let ChatGPT do it for you.

    But as soon as you’re writing something new or niche any LLM is going to mostly spew useless nonsense.

    I’ve been working with Bevy a lot lately and because it’s new and iterating quickly there are a lot of breaking changes between versions. AI simply isn’t able to cope with that. It was trained with years old data and is incapable of adapting to the new way of doing things

  • Drew@sopuli.xyzOPM
    link
    fedilink
    arrow-up
    6
    ·
    19 hours ago

    Not a lot of circlejerking happening here but I’m glad y’all are writing long insightful comments.

    now stop that

  • ExperimentalGuy@programming.dev
    link
    fedilink
    arrow-up
    6
    ·
    20 hours ago

    My reason is that I just enjoy computers n shit. It’s nice to learn new stuff while programming so I have it in my toolbox for later and I don’t just have a cursory idea of what my computer is doing.

  • FizzyOrange@programming.dev
    link
    fedilink
    arrow-up
    2
    arrow-down
    3
    ·
    16 hours ago

    Trite, but it is true that AI gives you an edge. Kind of blows my mind that my current company doesn’t just buy all their devs a copilot license. It’s an absolute no-brainer.