Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
Later that evening I returned home to my girlfriend.
"God, fuck me. I'm pissed."
"What happened at work this time?" she said
"Just my boss. He thinks that a list of lists is a far more efficient way of organizing UI references, than just placing each thing into an object." At this point, she's looking at me like I have 4 eyes... I mean considering I'm wearing glasses, that's not too off.
"Hold on let me grab a pad of paper and I can draw this out for you," I said.
I drew her lines and boxes. "We're going to draw three instances, just for the sake of time."
--- [ ] ---- [ ]
--- [ ] ---- [ ]
--- [ ] ---- [ ]
"Ok, here we have a label, spin box, label, spin box. Right?"
"yes, ok," she says. -
"Alright, well we don't want to deal with the labels, but they still exist, so we have to be mindful of them due to parsing the UI. the more efficient way to deal with this is to create an object that can hold on to our labels and spin boxes. and then we can call the object with the spin boxes in mind. For example. Object.getSpinbox1()"
At this point here eyes looked like they were glazing over.
"This isn't making sense, is it," I asked
"No, no. I promise it is," she said, snapping out of her gaze.
I continue.
"Well alright, well we want to get all these objects into a list, so we can then call them like this
item[0].getSpinbox1()
item[0].getSpinbox2()
item[1].getSpinbox1()
item[2].getSpinbox2()
"
"Ok," she said
"Well, my boss decides that it's better to put everything into lists and parse them one at a time."
"What's wrong with that?"
"Ok, you know what. Let me put it another way."
She sits up a little, and I say "Alright say you have a filing cabinet, right?" -
"Right," she says back.
"Well, what's more efficient? Putting all your notebook papers right into the filing cabinet, or placing your files into a folder, and then the folder into the filing cabinet?"
"Well, of course, the latter." She says.
"Exactly. my boss is taking all of these objects from the UI and putting them into lists and parsing them. That would be the equivalent of you throwing your papers into the filing cabinet, and then going one at a time through each paper trying to find what you're looking for."
"Ah, ok..."
"Alright, well wouldn't it be easier to just put everything into a folder. And then when you want something, parse through each of the folders, then pull out the folder you want, then pull out the paper you want?"
"Yes, that would be!"
"The former is exactly what my boss is doing, and that to me is infuriating!" I say finally grabbing a breath. "Sorry for that."
"Good rant!" she says and sits back. -
notorios5397y"it makes more sense to me to do it this way for the sake of bookkeeping because I don't understand your Object Oriented Programming stuff." I died after reading this.
-
@jusjoin I died after hearing that. The actual situation was far more annoying, so this rant doesn't even begin to unfold the full situation.
-
This read was so good as a bedtime post I'd give you a friendly ass slap whispering *dank story bro*
-
This is the longest rant I've seen and a really good read. That's some mad storytelling skills you've got there.
-
Root797797yVery high quality rant!
I'll need to step up my game to compete π
But yeesh, talk about mentally lazy. -
I started understanding OOP a few months ago, laughed my balls of with this one, thanks!
-
Haha amazing rant ππππ»ππ»
No offense, the conversation between u and ur partner was so innocently cute π€π€ made me smile.
Thanks for that βΊοΈβΊοΈ
Btw why didn’t u try to make ur boss understand like how u made ur partner understand it? Perhaps he wud b able to grasp it then? ππ -
@Electrux "...because I don't understand your Object Oriented Programming stuff." ... "It doesn't matter, this is my project."
-
Related Rants
-
ChainsawBaby16A couple of years ago, I was working in a computer shop as a "technician", I was 15, first job I ever had. On...
-
skylarmb19!rant This was over a year ago now, but my first PR at my current job was +6,249/-1,545,334 loc. Here is how ...
-
cimbaman11When I was 14, I was bad at many things. I sucked at sports cause I was weak and small. School was boring so I...
"You mean to tell me that you deleted the class that holds all our labels and spin boxes together?" I said exasperatedly.
~Record scratch.mp3
~Freeze frame.mp4
"You're probably wondering how we got to this stage? Let's wind back a little, shall we?"
~reverseRecordSound.wav
A light tapping was heard at the entrance of my office.
"Oh hey [Boss] how are you doing?" I said politely
"Do you want to talk here, or do you want to talk in my office? I don't have anyone in my office right now, so..."
"Ok, we can go to your office," I said.
We walked momentarily, my eyes following the newly placed carpeting.
Some words were shared, but nothing that seemed mildly important. Just necessary things to say. Platitudes, I supposed you could call them.
We get to his office, it was wider now because of some missing furniture. I quickly grab a seat.
"So tell me what you've been working on," I said politely.
"I just finished up on our [project] that required proper saving and restoring."
"Great! How did you pull it off?" I asked excitedly.
He starts to explain to me what he did, and even opens up the UI to display the changes working correctly.
"That's pretty cool," admiring his work.
"But what's going on here? It looks like you deleted my class." I said, looking at his code.
"Oh, yeah, that. It looked like spaghetti code so I deleted it. It seemed really bulky and unnecessary for what we were doing."
"Wait, hold on," I said wildly surprised that he thought that a class with some simple setters and getters was spaghetti code.
"You mean to tell me that you deleted the class that organizes all our labels and spin boxes together?" I said exasperatedly.
"Yeah! I put everything in a list of lists."
"What, that's not efficient at all!" I exclaimed
"Well, I mean look at what you were doing here," he said, as he displays to me my old code.
"What's confusing about that?" I asked politely, but a little unnerved that he did something like this.
"Well I mean look at this," he said, now showing his "improved" code.
"We don't have that huge block of code (referring to my class) anymore filling up the file." He said almost a little too joyously.
"Ok, hold on," I said to him, waving my hand. "Go back to my code and I can show you how it is working. Here we are getting all the labels and spin boxes into their own objects." I said pointing a little further down in the code. "Down here we are returning the spin boxes we want to work with. Here and here, are setters so we can set maximum and minimum values for the spin box."
"Oh... I guess that's not that complicated. but still, that doesn't seem like really good bookkeeping." He said.
"Well, there are some people that would argue with you on that," I said, thinking about devRant.
He quickly switches back to his code and shows me what he did. "Look, here." He said pointing to his list of lists. "We have our spin boxes and labels all called and accounted for. And further down we can use a for loop to parse through them."
He then drags both our version of the code and shows the differences. I pause him for a moment
"Hold on, you mean you think this" I'm now pointing at my setters "is more spaghetti than this" I'm now pointing at his list of lists.
"I mean yeah, it makes more sense to me to do it this way for the sake of bookkeeping because I don't understand your Object Oriented Programming stuff."
...
After some time of going back and forth on this, he finally said to me.
"It doesn't matter, this is my project."
Honestly, I was a little heart broken, because it may be his project but part of me is still in there. Part of my effort in making it the best it can be is in there.
I'm sorry, but it's just as much my project as it is yours.
undefined
actual rant
story time
dafuq are you doing?