4 ms·
I'm DevOps and don't pretend to understand good code layout in large projects, but why would you keep a "printTime" function in remote extension management code
by bloopernova 2y ago
I'm DevOps and don't pretend to understand good code layout in large projects, but why would you keep a "printTime" function in remote extension management code?
https://github.com/microsoft/vscode/blob/c9e7e1b72f80b12ffc00e06153afcfedba9ec31f/src/vs/server/node/remoteExtensionManagement.ts#L12 https://github.com/microsoft/vscode/blob/c9e7e1b72f80b12ffc0...
(Genuine question, I'm puzzled!)
- righthand 2y agoYou don’t know/care and the reviewer doesn’t care. The code was probably written by an llm helping enforce the not-caring.
- bloopernova 2y agoAre you OK? I just asked a question, which implies that I cared enough to at least ask.
- righthand 2y agoNo I think it implies that you wanted to appear to care in order to make a point.
- bloopernova 2y agooh. I really didn't, can you tell me what made it sound that way? I'm autistic and freely admit that I get words incorrect, and miss contexts. I'm mostly OK at programming, but I like to learn, and HN is full of people who are much, much smarter than me who also like to share their knowledge. Thank you for replying. I wasn't trying to make a point, I was just trying to learn why a seemingly utility function wasn't in some shared /lib/timestamps.ts or whatever. I won't bother you further.
- righthand 2y agoI didn’t say I was bothered, and I don’t think you were attacking me. I don’t think you misused anything and I fully grokked your context. Sorry if my reply came off as snark or disgruntled. Yes I am okay, my original comments was to make a point about general populace’s level of dedication to their employment and interest in the strict rules of good software design. The original commentary was a bit snarky. Thank you for asking if I was alright it, it is important to reach out when snarkiness cannot be discerned from distress.
- MarkSweep 2y agoDid you try searching in the file to see where the function is called? It’s used in some log messages.
- bloopernova 2y agoI'm not really asking about its function, more its location. I figured stuff like that belonged in /lib/ utility code so it could be reused consistently across the codebase. Basically I'm not a great programmer so when I see stuff that I am unsure of, I ask so I can learn.