• BitSound@lemmy.world
    link
    fedilink
    English
    arrow-up
    91
    arrow-down
    1
    ·
    1 year ago

    “Ok class, for the rest of the semester, we’re going to use the C89 standard”.

    I forgot the return 0; at the end of my main function and lost points on a test. Decided to be a point slut to ensure an A in the class and argued that it’s allowed in the C99 standard. The professor sighed and gave me back my points, but next class specified the exact standard he was grading by.

    • thebestaquaman@lemmy.world
      link
      fedilink
      English
      arrow-up
      40
      arrow-down
      1
      ·
      1 year ago

      I have to admit it sounds stupid to deduct points for that anyway, a test should measure your ability to reason, not your ability to remember trivial formalities.

      • aDogCalledSpot@lemmy.zip
        link
        fedilink
        English
        arrow-up
        10
        ·
        1 year ago

        Unfortunately C needs you to remember a lot of formalities and best practices to keep things from blowing up in your face. So I think it makes sense in this case.

        • thebestaquaman@lemmy.world
          link
          fedilink
          English
          arrow-up
          6
          ·
          1 year ago

          I definitely agree that breaking best practices in a way that could lead to UB or hard-to-find bugs should give point deduction. The sole requirement shouldn’t be “write standard compliant code”.

          However, a test does not simulate a real-world development environment, where you will have time to look through your code with fresh eyes the next day, and maybe even have someone review your code. The only thing a test reasonably simulates is your ability to solve the “thinking” part of the problem on your own. Thus, deducting points for trivial stuff that would 10/10 times be caught, either by the compiler, the developer or the reviewer, but isn’t “strictly correct” just seems pedantic to me.

          To be fair, other than the example by OP I have a hard time coming up with things that wouldn’t be either caught by the compiler or are very bad practice (which should give point deduction).

  • Shambling Shapes@lemmy.one
    link
    fedilink
    English
    arrow-up
    61
    ·
    1 year ago

    “Train new people”

    What do you think is going to happen if you hire a brand new person out of college, give them no directions, mentorship, processes, or procedures, and literally say “don’t ask me, I pay you to figure it out”?

    I can work in a “ask for forgiveness, not permission - move fast and break things” culture. But then people shouldn’t be getting mad when shit breaks.

      • Shambling Shapes@lemmy.one
        link
        fedilink
        English
        arrow-up
        36
        ·
        1 year ago

        They were already broken, I just gave the ok to throw them out. They had been sitting there for more than half my lifetime, no one was doing anything with them, near as anyone could tell I was now the “owner” of them, I wasn’t going to waste my time investigating 15 year old problems. So I said, “sure, make them disappear”.

        Someone in Finance took issue with that, something about making the $15 million value of those parts appear on the books correctly. Nice to get my first high-dollar mistake out of the way early!

        • Retix@lemmy.world
          link
          fedilink
          English
          arrow-up
          14
          ·
          1 year ago

          Thats really on whoever started saving them originally. Anything being saved like that should have a note attached stating why it is saved. I have some parts that need to be sent for repair and each of them has a note stating what is wrong, when it broke, and to contact me with questions.

        • ilovededyoupiggy@sh.itjust.works
          link
          fedilink
          English
          arrow-up
          9
          ·
          1 year ago

          Damn, what kind of 15 year old broken parts are still worth $15 million?! I feel like they should have been depreciated to nothing, like, a decade ago, unless they’re made of unobtanium or something.

  • relevants@feddit.de
    link
    fedilink
    English
    arrow-up
    44
    arrow-down
    1
    ·
    1 year ago

    As a second-year uni student I applied for a tutoring job at the university. I was still underage by a few weeks when the semester started, which caused them a bit of extra bureaucratic hassle when I was supposed to sign the contract.

    After that, they’ve added a question “are you going to be at least 18 when starting the position” to the application form :D

  • TootSweet@latte.isnot.coffee
    link
    fedilink
    English
    arrow-up
    27
    arrow-down
    1
    ·
    edit-2
    1 year ago

    Where I work in software development, we were about to undertake writing a pretty large application from scratch. Mostly, the company was a Java plus Spring shop with a few exceptions. One team wrote almost exclusively Python, for instance. But as far as I knew, there wasn’t any specific policy requiring the use of any particular language.

    So as a team, we pushed to write our new project in Python. It was originally my idea, but my team got on board with it pretty quickly. Plus there was precedent for Python projects and Python was definitely appropriate for our use case.

    The managers took it up the chain. The chain hemmed and hawed for months, but eventually made a more official policy that we had to use Java (and Spring).

  • Ashu@lemmy.zip
    link
    fedilink
    English
    arrow-up
    26
    ·
    1 year ago

    Not so much a rule, but a new restriction. So, in my school, 8th grade classrooms were directly above the floor where 6th grade classrooms were. The classrooms on the upper floor were connected by what were essentially just concrete bridges. You could just jump from the upper floor corridors to the ground floor and skip the crowded stairs, but teachers were always on the watch. I guess they cheaped out.

    So back when I was in 6th grade, I used to get bullied a lot. Like, the whole time. One day, I was in a particularly bad mood, as I was returning to my room just after the recess bell rang, from the upper floor to the ground floor. A kid decided it was a nice idea to grab my books and throw them down to one of his friends, where he could run away with it. The stairs were too overcrowded usually at this time, the complete recess could be over and you’d be stuck halfway.

    So the guy ran up to me from behind, grabbed my books and threw them below, where his friend caught it as expected. Me being in a fuck-all bad mood, I just jumped straight down from the corridors, and much to the bewilderment of the guy below, caught him in just a second. Teachers went wild on me for that. I was called to the principal’s office, threatened suspension, yada yada, but they didn’t do anything in the end because I was good at studies - the whole reason for me being bullied.

    Over the weekend, they removed the tiny railings and installed complete floor to roof bars to prevent anyone from dropping below. So yeah, I kind of changed a rule, depends on how you view it.

  • bfr0@lemmy.world
    link
    fedilink
    English
    arrow-up
    26
    arrow-down
    1
    ·
    edit-2
    1 year ago

    No nested SQL queries allowed.

    Edit: it was for a built in query language to populate dashboards (think Jira JQL meets Domo).

    I had some inefficient SQL queries that meant we had to put some guardrails around user input so others didn’t take down prod like I did

  • brandon@lemmy.zip
    link
    fedilink
    English
    arrow-up
    3
    ·
    1 year ago

    At an old job, I used to work the early shift from 6am-3pm with an hour lunch whenever I wanted. One winter, I thought it’d be nice to try and commute home with plenty of sunshine, so I “took my lunch” at 2:00 and went home. This ended up going on for a couple months until other people started doing it too, and finally management started telling us that we couldn’t take our lunch breaks during the last hour of a shift.

    Sure was nice while it lasted!