// Note added by employee 871 - S. Sandler - 10-31-2003
// Chapter 1
// Dear reader, let me tell you all about this here function.
// You see it was a dark and rainy night, like the nights often were in the place I once called my home.
// My grandma used to tell stories about those nights, the nights where the cold creeps in and the fog rises up from all around.
// She used to tell us those nights were haunted, evil things happened which could not stand the light of day.
// I never put much stock into those stories, but when the rain beat against the window and the wind would rustle the trees, I figure she might have been onto something.
// So you see it was one of these typical nights where I learned evil does indeed come out. But not from outside as one might expect, no… The evil comes from within
// Chapter 2
// Just like every other Friday, I got stuck with night duty. I wanted to go drinking with friends, but my manager told me I needed the extra shift since quarterly reviews were coming up.
// I was in a faul mood and cursed my manager, but like my grandma used to say curses can be a dangerous thing. They have a tendency to backfire when not used in moderation.
// Frankly I’m not sure my grandma knew what moderation meant, otherwise she would have cut down on the amount of beans she ate.
// Let me tell you; old folk and beans aren’t a great combination. But I digress.
// Getting stuck with night duty wasn’t bad, it didn’t pay much, but you could work from home and usually nothing much happened, especially on a Friday.
// So I sat around watching some old X-Files episodes, keeping half an eye on my mailbox to see if any tickets came in. I do say that Scully chick is one hot mamajama, I kinda forgot about the story.
// It was at this moment I heard loud thunder rolling by and the familiar wee-woo sound of my email client getting a new mail.
// As I read the ticket number: EI-WA-98215-6-66 the hair on the back of my neck stood up.
// Chapter 3
// I wondered who could be submitting tickets at this hour, but it must be important so with one eye on Scully I checked out the ticket.
// For some reason the user name wasn’t in the ticket, just the user number. I had complained about this to IT and they said they would “get to it” whatever that means.
// I swear to the gods if you think developers have their own code to make fun of users, IT guys are way worse. They probably just sit around crimping their cables or whatever they do.
// Anyway this ticket was really weird, the user said when they opened up the admin portal the menu would freak out.
// They said, I kid you not: “The menu is haunted and we need an exorcism”
// Must be some kind of joker who also got stuck with the night shift and doesn’t have anything to do, so let’s mess with the poor devs right?
// Chapter 4
// When I opened up the admin portal I didn’t see anything weird at first, this dude was messing with me for sure.
// I got hungry so I wanted to make myself a quick snack, I found a buldak ramen packet in the kitchen.
// Perhaps I shouldn’t have judged my grandma for eating beans, as I know these spicy ramen will be much worse.
// While waiting for the water to boil, I saw movement from the corner of my eyes, it was like there was someone in the room with me.
// When I walked over to investigate it was suddenly gone, but I saw on my screen the menu was freaking out, opening and closing like crazy.
// I turned to walk back to the kitchen and get my ramen going, but as I did suddenly I hear a loud bang in the apartment.
// Chapter 5
// As I investigated the noise I found a door had slammed shut due to the wind, I was pretty sure I had closed that door earlier…
// With my snack in hand I went in to investigate the code running the menu.
// After thorough investigation, I found no fault in the menu. The code hadn’t been touched in months and nobody had ever complained before.
// But I had seen the menu misbehave myself, surely something must be wrong with it.
// Suddenly it was like my hands had a mind of their own, they started writing code like I had never seen before.
// With horror I saw what they were doing and I gasped. The only brief pause I got was when my hands turned to my ramen.
// I felt sick by the code they had written, but they forced the spicy buldak into my mouth and when I refused to swallow, poured the lukewarm Mt. Dew in my mouth.
// Chapter 6
// Even though I have no explanation for the code that now lays before you, in order to clear my conscience I will briefly try to explain what it does.
// My understanding isn’t complete, but what I’ve been able to glean from beyond the veil is the following:
// Lines 8 - 26 deal with getting the user details, they appear to use the regular API for this but also some calls I’m not familiar with.
// Lines 43 - 78 seem to get the users actual GPS coordinates, I have no idea how?
// Around line 156 the weather.com API is used to get a current report at the users location.
// The rest of the code seems to deal with various time and weather related checks. As far as I can tell it checks if it’s dark and stormy out.
// In the last part of the function there is some simple logic that cancels the menu animation if it triggers too often.
// Chapter 7
// It was with a heavy heart I pushed commit 54D3AD into production with the simple message “Fixes ticket EI-WA-98215-6-66”
// I went to close the ticket, but somehow I couldn’t find it in the ticket system anymore. Probably those IT guys messing up again.
// The mail was gone as well, but with Microsoft Outlook that was pretty much par for the course, so I didn’t think anything of it.
// Wanting to put this horrible experience behind me, I resumed watching X-Files, such a classic show.
// A few minutes later my VLC crashed and kept looping on Mulder saying “Thank you”, but it was slowed down a bunch and distorted.
// In the few seconds I needed to get my hand free from my sweatpants, all my power went out. We really should invest more into infrastructure…
// - - - - - - - - - - - - - - - -
// Note added by employee 2548 - Martin (intern) - 07-02-2009
// New Weather.com API premium key added, no idea why we need this, but without it the menu breaks.
// Could not find contact info for employee 871 - presumably left the company.
kibiz0r@midwest.social 7 hours ago
Yeah, just comments… with chapters…
Thorry@feddit.org 6 hours ago
// - - - - - - - - - - - - - - - - - -
// Note added by employee 871 - S. Sandler - 10-31-2003
// Chapter 1
// Dear reader, let me tell you all about this here function.
// You see it was a dark and rainy night, like the nights often were in the place I once called my home.
// My grandma used to tell stories about those nights, the nights where the cold creeps in and the fog rises up from all around.
// She used to tell us those nights were haunted, evil things happened which could not stand the light of day.
// I never put much stock into those stories, but when the rain beat against the window and the wind would rustle the trees, I figure she might have been onto something.
// So you see it was one of these typical nights where I learned evil does indeed come out. But not from outside as one might expect, no… The evil comes from within
// Chapter 2
// Just like every other Friday, I got stuck with night duty. I wanted to go drinking with friends, but my manager told me I needed the extra shift since quarterly reviews were coming up.
// I was in a faul mood and cursed my manager, but like my grandma used to say curses can be a dangerous thing. They have a tendency to backfire when not used in moderation.
// Frankly I’m not sure my grandma knew what moderation meant, otherwise she would have cut down on the amount of beans she ate.
// Let me tell you; old folk and beans aren’t a great combination. But I digress.
// Getting stuck with night duty wasn’t bad, it didn’t pay much, but you could work from home and usually nothing much happened, especially on a Friday.
// So I sat around watching some old X-Files episodes, keeping half an eye on my mailbox to see if any tickets came in. I do say that Scully chick is one hot mamajama, I kinda forgot about the story.
// It was at this moment I heard loud thunder rolling by and the familiar wee-woo sound of my email client getting a new mail.
// As I read the ticket number: EI-WA-98215-6-66 the hair on the back of my neck stood up.
// Chapter 3
// I wondered who could be submitting tickets at this hour, but it must be important so with one eye on Scully I checked out the ticket.
// For some reason the user name wasn’t in the ticket, just the user number. I had complained about this to IT and they said they would “get to it” whatever that means.
// I swear to the gods if you think developers have their own code to make fun of users, IT guys are way worse. They probably just sit around crimping their cables or whatever they do.
// Anyway this ticket was really weird, the user said when they opened up the admin portal the menu would freak out.
// They said, I kid you not: “The menu is haunted and we need an exorcism”
// Must be some kind of joker who also got stuck with the night shift and doesn’t have anything to do, so let’s mess with the poor devs right?
// Chapter 4
// When I opened up the admin portal I didn’t see anything weird at first, this dude was messing with me for sure.
// I got hungry so I wanted to make myself a quick snack, I found a buldak ramen packet in the kitchen.
// Perhaps I shouldn’t have judged my grandma for eating beans, as I know these spicy ramen will be much worse.
// While waiting for the water to boil, I saw movement from the corner of my eyes, it was like there was someone in the room with me.
// When I walked over to investigate it was suddenly gone, but I saw on my screen the menu was freaking out, opening and closing like crazy.
// I turned to walk back to the kitchen and get my ramen going, but as I did suddenly I hear a loud bang in the apartment.
// Chapter 5
// As I investigated the noise I found a door had slammed shut due to the wind, I was pretty sure I had closed that door earlier…
// With my snack in hand I went in to investigate the code running the menu.
// After thorough investigation, I found no fault in the menu. The code hadn’t been touched in months and nobody had ever complained before.
// But I had seen the menu misbehave myself, surely something must be wrong with it.
// Suddenly it was like my hands had a mind of their own, they started writing code like I had never seen before.
// With horror I saw what they were doing and I gasped. The only brief pause I got was when my hands turned to my ramen.
// I felt sick by the code they had written, but they forced the spicy buldak into my mouth and when I refused to swallow, poured the lukewarm Mt. Dew in my mouth.
// Chapter 6
// Even though I have no explanation for the code that now lays before you, in order to clear my conscience I will briefly try to explain what it does.
// My understanding isn’t complete, but what I’ve been able to glean from beyond the veil is the following:
// Lines 8 - 26 deal with getting the user details, they appear to use the regular API for this but also some calls I’m not familiar with.
// Lines 43 - 78 seem to get the users actual GPS coordinates, I have no idea how?
// Around line 156 the weather.com API is used to get a current report at the users location.
// The rest of the code seems to deal with various time and weather related checks. As far as I can tell it checks if it’s dark and stormy out.
// In the last part of the function there is some simple logic that cancels the menu animation if it triggers too often.
// Chapter 7
// It was with a heavy heart I pushed commit 54D3AD into production with the simple message “Fixes ticket EI-WA-98215-6-66”
// I went to close the ticket, but somehow I couldn’t find it in the ticket system anymore. Probably those IT guys messing up again.
// The mail was gone as well, but with Microsoft Outlook that was pretty much par for the course, so I didn’t think anything of it.
// Wanting to put this horrible experience behind me, I resumed watching X-Files, such a classic show.
// A few minutes later my VLC crashed and kept looping on Mulder saying “Thank you”, but it was slowed down a bunch and distorted.
// In the few seconds I needed to get my hand free from my sweatpants, all my power went out. We really should invest more into infrastructure…
// - - - - - - - - - - - - - - - -
// Note added by employee 2548 - Martin (intern) - 07-02-2009
// New Weather.com API premium key added, no idea why we need this, but without it the menu breaks.
// Could not find contact info for employee 871 - presumably left the company.
folekaule@lemmy.world 4 hours ago
Entertaining! Well done. LGTM and ⛴️