• vrek@programming.dev
    link
    fedilink
    English
    arrow-up
    4
    ·
    edit-2
    3 hours ago

    That’s not even code grief…

    Two examples that were far worse:

    1. My last company wanted software developers. They offered to send me to code boot camp and give me a promotion. The boot camp was primarily python. I complete and get the promotion. New manager tells me the code base I’ll work on is actually c… Umm ok. New manager retires a week later. I spend a few weeks basically teaching myself c. New manager is assigned. He tells me I should basically assist the senior Dev, ok no problem. Find out the code base is actually c#… Should be doable it’s c based atleast. It’s c# framework 4.8 based on winforns… No one in the building had heard of a unit test…the code was released to production on December of '23. Oh and yeah the senior Dev then announced he was retiring. There are no other c# programmers on the team.

    2. I told this story before recently. On a separate c# code base the “login” function had hard coded credentials in the source, which checked if they existed in a local sql database table with one entry(the hard coded values) and then verified the returned value for “password” was >= than 5. It then logged you in. Didn’t check if the password was correct or even the correct length just that the return of the select statement was greater than or equal to 5 characters… Just for fun remember that false is 5 characters 😂

  • litchralee@sh.itjust.works
    link
    fedilink
    English
    arrow-up
    7
    ·
    9 hours ago

    I’ve personally witnessed the seventh entry to this meme: lines of code over 1000 columns wide.

    I try to forget, but the horror never fades.

  • halvar@lemy.lol
    link
    fedilink
    arrow-up
    6
    ·
    10 hours ago

    Out of these probably the three letter long variable names are the most agregious. Or getting a j*b, depends on the viewpoint.