• HugeNerd@lemmy.ca
          link
          fedilink
          arrow-up
          0
          ·
          1 month ago

          There is no such word as “gottem”. This is a recent bowel movement from ignorant people. “Gotcha” has been around for generations, and the use of the apostrophe is quite simple.

          • Jerkface (any/all)@lemmy.ca
            link
            fedilink
            English
            arrow-up
            0
            ·
            1 month ago

            Okay. So it’s not a word. That’s fine. The popular expression in this context is indeed “gottem” and it doesn’t matter if you think that’s a word or not, that’s just objective reality. Suck it, nerd.

          • Alcoholicorn@mander.xyz
            link
            fedilink
            arrow-up
            0
            ·
            1 month ago

            Gotcha addresses the person you’re talking to, gottem is used to address a real or fictional audience, highlighting for them what you did.

          • c0wboy dani@lemmy.dbzer0.com
            link
            fedilink
            English
            arrow-up
            0
            ·
            1 month ago

            holy shit.

            you might be the biggest fucking nerd ever for being so thoroughly “em” who just got “gott”

            hahaha gottem

            (no but seriously dictionaries are descriptive not prescriptive; they add new words as the language evolves. if you were correct about new implementation of the language being “bowel movements from ignorant people” then you should be speaking Shakespearean English as that is Proper English™. the language wasn’t finished changing when you stopped going to school, pal. I’d recommend you research linguistics as it seems you have a weak grasp on the concept and it’s bringing your nerd card into question.)

  • Warl0k3@lemmy.world
    link
    fedilink
    arrow-up
    0
    ·
    1 month ago

    When I was a kid and my mother was teaching me to read SQL, she really drove home that Elegance is in the eye of the beholder. While a C++ dev finds beauty in reducing a signal processing step to O(n) by recursing through five lines of bitwise ingenuity, a SQL dev finds radiance in completing the task without using any loops at all.

    • Dimantina@lemmy.world
      link
      fedilink
      arrow-up
      0
      ·
      1 month ago

      Alright to anyone who would question this statement. I am a mom, and have had extremely similar conversations with my kid regarding programming and perspectives.

      Seriously it’s important for problem solving to not get caught up in perfect solutions or solutions you think are the right path be cause of your own bias’.

      Sometimes to solve a problem you are stuck on, or is proving too challenging the best course of action is to figure out why you are trying to solve it that way, and what other solutions there might be.

    • hemko@lemmy.dbzer0.com
      link
      fedilink
      English
      arrow-up
      0
      ·
      1 month ago

      When I was a kid and my mother was teaching me to read SQL

      Why would a mother do this, I’m horrified

      • psud@aussie.zone
        link
        fedilink
        English
        arrow-up
        0
        ·
        1 month ago

        I am disappointed when someone comes into my career (systems analysis) without the ability to do even a simple SQL statement and it’s become common since my employer realised they had too few analysts and hired 20 in my area for three of us to train

        More mothers should teach their kids to query

      • Warl0k3@lemmy.world
        link
        fedilink
        arrow-up
        0
        ·
        1 month ago

        In the case of my mother, she’s pretty autistic and a very well known data scientist. This was her way of teaching me how she relates to the world.

  • henfredemars@infosec.pub
    link
    fedilink
    English
    arrow-up
    0
    ·
    1 month ago

    It really depends on what you’re building. In an embedded shop, lookup tables are first class solutions to most problems. Computer scientists though, 100%!

    • Err(()).unwrap()@lemmy.world
      link
      fedilink
      arrow-up
      0
      ·
      1 month ago

      IIRC, Elite used lookup tables for trigonometric functions on certain target platforms (maybe the NES) because memory wasn’t as much of a constraint as computing performance. It’s a barrel of game compressed into a pint of code.

    • mushroommunk@lemmy.today
      link
      fedilink
      arrow-up
      0
      ·
      1 month ago

      Depends on the available memory and size of the tables. I’ve worked on cases where time to compute didn’t matter as much as shaving off three more bytes did. Large lookup tables would have absolutely killed us compared to running some math.

      • baines@lemmy.cafe
        link
        fedilink
        English
        arrow-up
        0
        ·
        1 month ago

        not doubting you because the customer can be funny but wha?

        if time to compute doesnt matter there are likely more minimal hardware options to optimize for look up tables and memory cost/space

        • mushroommunk@lemmy.today
          link
          fedilink
          arrow-up
          0
          ·
          1 month ago

          There are so many situations where you can’t just swap hardware. Robots on an assembly line? Yeah you’ve gotta use hardware that’s gone through safety testing. They’re not going to just swap hardware to make things easier. You want to ship an update, you do it in software and under strict testing regiment. Some of that hardware is 20 or 30 years old. Medical. Aeronautics. Aerospace. All of them and more are using older hardware that’s often memory limited but can often just sit and process their next step, and they often don’t have built in complex hardware features because those add potential failure points.

          • baines@lemmy.cafe
            link
            fedilink
            English
            arrow-up
            0
            ·
            1 month ago

            the hang up for me is more the not caring about time to compute

            aeroish is my experience, and for me those have all cared about time to compute

            generally that’s one of the biggest constraints to the point of being super strict

            like major money being spent on modeled approximations and processing speed costs eclipsing pretty much everything on the design side

            tables for weather, angles, altitude, position this would be tiny compared to some we’re using

            30 year old equipment is even more taxed given the likely feature creep in my experience

            • mushroommunk@lemmy.today
              link
              fedilink
              arrow-up
              0
              ·
              1 month ago

              I’m guessing you were doing in flight aero stuff? I’ve been more in the medical and manufacturing space but the aero I did we were doing post-flight processing for reports. We had almost no memory to operate on, probably because of all the tables you’re referencing that others were using.

      • henfredemars@infosec.pub
        link
        fedilink
        English
        arrow-up
        0
        ·
        1 month ago

        Good point! Good point.

        I’ve seen bubble sort implemented because we had data that said it was faster and was slightly smaller for the exact type data we were sorting and its expected distribution.

        • disorderly@lemmy.world
          link
          fedilink
          arrow-up
          0
          ·
          1 month ago

          I fondly remember the time I hired a QT expert onto an embedded app team and on his first project he imported a sort algorithm from std. He found the system got weird and glitchy, and often crashed.

          Yeahhh turns out the algorithm he chose needed to make a copy in memory and the thread he was working in only had 2048 bytes of stack, so larger inputs would corrupt the stack allocated to the next thread. I had to explain to him that we had a full second to complete the math before we had to give back our semaphore, so saving a couple milliseconds on the sort was not a priority. Fun times.

      • Zarobi@aussie.zone
        link
        fedilink
        English
        arrow-up
        0
        ·
        1 month ago

        All these job titles don’t really have a formal definition. Software engineer = programmer = software developer. Computer scientist sure does sound fancy though. There’s no committee that will say “actually you’re doing too much math to be a developer sorry.” We all do the code-y thing. Businesses seem to pick one at random based on seniority. I just call myself whatever my most recent job title was.

        Your industry will affect your specialisation and skills much more than anything else.

        - Software Engineer (Maths)

        • baggachipz@sh.itjust.works
          link
          fedilink
          arrow-up
          0
          ·
          1 month ago

          You’re taking my comment a little too seriously. I just know that what I do is essentially playing with other people’s legos, to make a CRUD app, to show my industry’s equivalent of cat pictures. I leave the heavy math and theory to the real computer scientists.

        • Tja@programming.dev
          link
          fedilink
          arrow-up
          0
          ·
          1 month ago

          I don’t even go that’s far. I “work in IT”. Enough for 99% of social interactions / official forms.

        • Omgpwnies@lemmy.world
          link
          fedilink
          English
          arrow-up
          0
          ·
          1 month ago

          Also, any CompSci grad I’ve worked with couldn’t write code for shit unless they learned how outside of their schooling, and yet so many go the CompSci -> programmer route instead of doing like SW Eng or something like that.

          • Kazumara@discuss.tchncs.de
            link
            fedilink
            arrow-up
            0
            ·
            1 month ago

            any CompSci grad I’ve worked with couldn’t write code for shit

            Damn, that sounds pretty bad.

            We had tons of math and theoretical work too, but we also programmed a fair amount: We had to write a renderer in one class, a compiler in another, various Android apps in a third, and in one elective I took we wrote a micro kernel OS as well.

          • gankouskhan@bookwyr.me
            link
            fedilink
            English
            arrow-up
            0
            ·
            1 month ago

            It’s not like the CS program is devoid of programming, norb would I say the SWE students are that much better off without outside education. CS is about half theory half practical for core education at least. The difference is you learn why and how which is more beneficial long term. After the first 6 months on the job the difference between the two on programming ability should be about the same with some more optimal solutions found by the CS student if any difference. It’s a pretty short term problem.

  • kamen@lemmy.world
    link
    fedilink
    arrow-up
    0
    ·
    1 month ago

    If you hand out a problem and only accept one solution out of multiple valid ones, you’re part of the problem.

    • SkaveRat@discuss.tchncs.de
      link
      fedilink
      arrow-up
      0
      ·
      1 month ago

      When I interview (experienced) devs, I often ask way too generic questions. Something along the lines of “can you explain what a hash is?”, without stating what kind of hash and in what context

      The primary goal isn’t really to explain it in detail, but to see if they get confused and ask for clarification. Way too many people just start assuming something, when a task is not defined properly. I need coworkers that push back on bullshit, and not blindly implement whatever runs along their desk, no matter how little sense it makes

      If I don’t hear at least one “it depends” during an interview, I don’t have high hopes

      • Grendel@tiny.tilde.website
        link
        fedilink
        arrow-up
        0
        ·
        1 month ago

        @SkaveRat
        in college I had a prof tell us to get into teams, then give us lego sets to assemble.

        they were in the original boxes but the directions had been removed. I was the only one to go up front and ask for the directions and she gave them to me.

        Apparently that was the whole point to the excersize. “ask for the resources you need"

        @kamen

      • stingpie@lemmy.world
        link
        fedilink
        arrow-up
        0
        ·
        1 month ago

        The only definition of hash that I know is an identifier for an object created from that object’s data. Everything else stems from that central idea. What other types of hash are there?

        • kamen@lemmy.world
          link
          fedilink
          English
          arrow-up
          0
          ·
          1 month ago

          Yeah, it’s basically that, but it has different uses - two main things I can think of right away are 1) verifying data when downloading large files and 2) cryptography (e.g. when storing credentials). Oh, and hash tables too.

          • Laser@feddit.org
            link
            fedilink
            arrow-up
            0
            ·
            1 month ago

            Well, but the question wasn’t “what is a hash used for”, but rather “what is a hash”

            • kamen@lemmy.world
              link
              fedilink
              English
              arrow-up
              0
              ·
              1 month ago

              Then it’s not all that ambiguous and could be answered with one sentence.

              • Laser@feddit.org
                link
                fedilink
                arrow-up
                0
                ·
                1 month ago

                Technically, the question was even easier (yes/no), but I agree with the sentiment

      • 1rre@discuss.tchncs.de
        link
        fedilink
        arrow-up
        0
        ·
        1 month ago

        I mean I’d probably go super generic and say something like “it’s a deterministic function which turns a block of data into a usually smaller block of data, usually for comparing equality to the original block of data” which covers most of the uses?

        If you ask a generic question, you’re gonna get a broad answer, and if you want to draw clarifying questions, you need to ask a more complex question and provide insufficient information to answer it. Even then, making that question something you can easily look up online, and you either know or you don’t, doesn’t achieve as much as making the question something that you objectively won’t know, and have to learn on the spot, as that shows your ability to learn new things including things you can look up on the Internet.

        • hirihit640@sh.itjust.works
          link
          fedilink
          English
          arrow-up
          0
          ·
          1 month ago

          The point is that in a real software engineering process, specs and requirements are rarely defined precisely from the start, and the programmer should be able to identify the gaps and clarify them. A generic answer doesn’t help as much as a clarifying question.

          A common but amateur mistake is to just make assumptions about how something should work and then forge ahead. As a programmer in a company, you are building things for somebody else (your boss, your client), so you need to ask them first.

          • 1rre@discuss.tchncs.de
            link
            fedilink
            arrow-up
            0
            ·
            1 month ago

            Sure but as I said, that’s a knowledge question and not an engineering problem to solve. They’re very different and unless you work in software consulting, you’re not gonna get a problem that looks remotely like that from a client.

            • hirihit640@sh.itjust.works
              link
              fedilink
              English
              arrow-up
              0
              ·
              1 month ago

              You actually get them all the time, because the programmer is more deeply knowledgeable about the features they wrote and can identify gaps better.

              Boss: “Can we move the widget to the left side of the page?”

              Programmer: “Sure but that means when the sidebar opens it will obscure the widget, making it hard to see both at the same time. Do we want that?”

              Boss: “Hmm I didn’t consider that. Let me ask the UX team what they think.”

              • 1rre@discuss.tchncs.de
                link
                fedilink
                arrow-up
                0
                ·
                1 month ago

                “Can we move the widget to the left side of the page” is not in the same category as “what is a hash” though?

      • zalgotext@sh.itjust.works
        link
        fedilink
        arrow-up
        0
        ·
        1 month ago

        Your candidates aren’t mind readers though. If you want people to ask clarifying questions, you have to ask them things other than comp sci trivia questions.

        • CanadaPlus@lemmy.sdf.org
          link
          fedilink
          arrow-up
          0
          ·
          1 month ago

          It could be on a different subject, but it has to be a trick question. If they were prompted to ask more, that would undercut the whole point of the test, since OP wants employees that always ask or question.

          • zalgotext@sh.itjust.works
            link
            fedilink
            arrow-up
            0
            ·
            1 month ago

            I don’t think asking someone a trick question in an interview is a good way to gauge if they’ll push back and ask questions on the job. Also, I think that behavior is more related to the employer creating an environment where employees feel safe doing that, and isn’t really something you can draw out of a candidate during an interview, of all times.

      • xianjam@programming.dev
        link
        fedilink
        English
        arrow-up
        0
        ·
        1 month ago

        So, to start off, I’m someone who does not typically perform well during interviews because of anxiety (but through some miracle has had no issues with employment), so take this response with whatever bias that brings.

        I believe this is bad too. You’re still essentially asking a gotcha question, expecting one phrase in your answer and failing the candidate if you don’t hear that phrase. And, in fact, I disagree with the premise. I think the question is defined quite well in the context of programming, given that someone answers with the possibility that there are many ways to hash something and many uses of hashing.

        • SkaveRat@discuss.tchncs.de
          link
          fedilink
          arrow-up
          0
          ·
          1 month ago

          The hash question is just something from the top of my head. I normally fit it to the situation.

          I absolutely take nervousness into account, as I can relate to it.

          The thing is, I need to know if the person can push back in some way. it’s a hard thing to do in interviews, but also the first point for me to check how a person reacts

          I’ve been bitten too many times, with dev coworkers who don’t give at least a little resistance when vague or stupid tasks show up. Only to notice hours or days later, when something was done completely the wrong way

          • Pyr@lemmy.ca
            link
            fedilink
            arrow-up
            0
            ·
            1 month ago

            Sounds like you need to fire the person handing out vague and undefined tasks to everyone 😂

            • ID10T@programming.dev
              link
              fedilink
              arrow-up
              0
              ·
              1 month ago

              Every task starts out as a vague idea that, at some point, needs to be narrowed down to something specific and actionable.

              If you’re at a sufficiently large organization and you get lucky, that happens before it makes it to a developer. For the rest of us, it’s an important skill to be able to take a task, ask clarifying questions, and narrow it down to something actionable.

      • Jankatarch@lemmy.world
        link
        fedilink
        arrow-up
        0
        ·
        1 month ago

        Related sidenote: I don’t think I have any form of tism, but something activates when people ask computer science terms where my terrible memory goes “oh yeah I remember the dictionary definition perfectly, punctuations included, let’s recite!”

        Also I love the hash exampple. If they start talking about checksums and whatnot you know it’s their hobby to mess with computers lmao.

      • kamen@lemmy.world
        link
        fedilink
        English
        arrow-up
        0
        ·
        1 month ago

        Fair point, but depending on the interviewee, you might get very different answers and/or follow up questions.

        Even if they assume something, it might be just for the sake of the example. If they’re competent, they’ll follow up with another example and so on, depending on how exactly you pose the problem.

        If you present it as an abstract question, one possibility is that you get an abstract answer. If you present it like a ticket with no description, you might get prompted to clarify.

      • BCsven@lemmy.ca
        link
        fedilink
        arrow-up
        0
        ·
        1 month ago

        I had this with one of my guys. He spent a week working on something and the validation at the end wasn’t jiving.

        He started showing me the complex solution and end results and so I said show me how you started and walk me through it.

        It was step 1 the origin location of data was out of position.

        I said if you start at this origin the rest of the numbers and data will work out.

        He replied that the origin wasn’t shown measured from somewhere, so how would we know location.

        So I pointed out that the data to origin wasn’t directly spelled out but if you take this measure and subtract this one that is your data origin start.

        He said OMG I worked on this for a week trying to get the formulas working. I feel so stupid because you solved it in 1 minute.

        I replied its not a question of smart or stupid (because my guy is way beyond me for formulae and programming) its just slowing down and following a process. And if you are confused, ask more questions, rather than just continuing.

  • mlg@lemmy.world
    link
    fedilink
    English
    arrow-up
    0
    ·
    1 month ago

    Remember the olden C days before compilers got really good (and freely available) so we’d still have inline assembly everywhere for better optimization lol.

  • epigone@awful.systems
    link
    fedilink
    English
    arrow-up
    0
    ·
    1 month ago

    software engineers met the table¹ in web design and never looked back. does a table “mean” tfoot and all (arranged at top)? thead, that sorts(, by server link without javascript)? a “table” in the web means all sorts of sorty things and offset things, and paginated things, by navigable server links. and the two tables nested for layout, oy vey! so many ways with all that engineering the web fell to the broken manual✨️🤷🏾‍♂️✨️

    ¹ (for layout) https://www.w3.org/TR/web-sustainability-guidelines/#progressive-enhancement

    • CanadaPlus@lemmy.sdf.org
      link
      fedilink
      arrow-up
      0
      ·
      1 month ago

      They’re all real words, but not in an order that makes sense. And I’m not sure what algorithms there are by a Ross or Maxwell.

  • hperrin@lemmy.ca
    link
    fedilink
    English
    arrow-up
    0
    ·
    1 month ago

    This wholly depends on where this code is running. If it’s running on the server, you want the best algorithm for most cases, to try to minimize work and power consumption, and maximize capacity. If it’s running on the client, just use whatever.

    • xthexder@l.sw0.com
      link
      fedilink
      arrow-up
      0
      ·
      1 month ago

      If it’s running on the client, just use whatever.

      Because who cares if it’s the user that has to buy more RAM or gets terrible battery life, that’s not our problem. /s

      This is why we can’t have nice things.