|
I think developers lacks soft skills usually. Who is rude to comment the code should not be in the position of doing code reviews, or working in a team, but that should be addressed by your team leader/tech leader.
Btw I don't think a code change without solving any issue (but only readability) should be approved, and readability is very subjective, so if not in agreement with tech lead you should not do that.
Any code change could introduce bugs, so why taking the risk? I don't think I will accept your PR. I use tons of linters and static analysers to make sure devs follows coding guidelines, I'm pretty autistic there. For example in Typescript I disallow the use of "any", but many complain about that (not sure why).
I like LINQ, it makes complex code super easy to read, so I would like to accept your PR, but to what risk?
"Bad performance" in a 30sec task (so it'a not ASM or low-level stuff) that is called sporadically is *for sure* not because of linq, usually you can get a boost with a complete refactoring or different approach.
|
|
|
|
|
To be fair the ticket was mostly "investigate that code" and my finding was "the code is fine", my refactor was to help me understand what was going on. And I submitted it because I found it "better", but do nothing was an applicable outcome.
Anyway, after a good night sleep, I got over it and did some measurement of the various code measurement on an expensive dataset. Where Cut took about 4 seconds, and Paste took about 31 seconds.
Turns out that one little bit I thought was a performance improvement went from 1 milliseconds to, sometimes, 20 milliseconds. Peanuts, but definitely slower (I was puzzled).
Also turns out, another bit I only refactored for clarity, went down from 600 milliseconds to 175 milliseconds (and that was for the "fast operation" that only took 4 seconds, hence 10% improvement).
So those changes were a go in the end!
Oh, and I also demonstrated that LINQ as it was had no performance cost (this much was obvious, but helped reduce LINQ bad performance reputation a bit, I hope)
|
|
|
|
|
If you ever meet someone who loves and embraces changes I think they're either worth getting cozier with or very much not.
It's not always one or the other in all cases. But I'm pretty sure it's one or the other in any distinct case.
The bigger point maybe being that people do generally dislike change.
Everyone in the boat will have a degree of apprehension if you go messing with the bottom of it. Maybe even more so if they don't have the time to fully reassure themselves you're patching vs drilling.
|
|
|
|
|
Open, close - Grace held hired gun? (9)
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
"Common sense is so rare these days, it should be classified as a super power" - Random T-shirt
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
Mercenary ?
Life should not be a journey to the grave with the intention of arriving safely in a pretty and well-preserved body, but rather to skid in broadside in a cloud of smoke, thoroughly used up, totally worn out, and loudly proclaiming “Wow! What a Ride!" - Hunter S Thompson - RIP
|
|
|
|
|
Open (anag)
close near
ENAR
Grace MERC Y
held (containing)
hired gun?
MERCENARY
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
"Common sense is so rare these days, it should be classified as a super power" - Random T-shirt
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
Not seen open used as an anagram indicator but hey ho - I just thought of a hired gun synonym and saw the mercy bit - that was good enough for me and Bobby McGee
Life should not be a journey to the grave with the intention of arriving safely in a pretty and well-preserved body, but rather to skid in broadside in a cloud of smoke, thoroughly used up, totally worn out, and loudly proclaiming “Wow! What a Ride!" - Hunter S Thompson - RIP
|
|
|
|
|
Good song - but there are no wheat fields in Saint Paul.
Edit .......Never mind - mixed up the song with Me and You and a dog named Boo.......
Just ignore me today.
|
|
|
|
|
WHO SAID THAT?
What? Where?
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
"Common sense is so rare these days, it should be classified as a super power" - Random T-shirt
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
Song by Lobo "Me and You and a Dog Named Boo"
|
|
|
|
|
Quote: Just ignore me today
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
"Common sense is so rare these days, it should be classified as a super power" - Random T-shirt
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
I need to frequently transfer video files, about 30 MB in size between my two machines, a Win10 laptop and a MacBook Air.
I tried Bluetooth and it takes a long time, more than 10 minutes. Whereas, uploading the file to Google Drive and downloading from there onto the other machine, took an overall of under a minute.
Is there a direct wire-based transfer possible between these two machines, which does not need the Internet? Ideal would be USB to USB cable transfer, but does that even exist?
Sorry if this is a dumb question.
|
|
|
|
|
It looks it exists. Search for 'USB bridge cable'.
"In testa che avete, Signor di Ceprano?"
-- Rigoletto
|
|
|
|
|
|
I got one of those - but it stopped working when WinXP arrived: The manufacturer never cared to develop a 32-bit driver. It also turned out that with the speed attained, it was much faster to copy the files to a USB memory stick and move that over.
If you go for a USB cable, at least make sure that it is made for USB3 speeds. (That goes for the memory stick solution as well - some older memory sticks could not even keep up with USB2 speeds!)
|
|
|
|
|
Been there with my USB printer; however, Microsoft (I suppose) made magic and Windows 10 supports it again.
"In testa che avete, Signor di Ceprano?"
-- Rigoletto
|
|
|
|
|
|
I think I used SCART(?) cables for that back in the day.
Had to move my complete desktop for that to happen, but I could transfer files that didn't fit on a 1.44 MB floppy
Later I'd burn the files on a (re)writable CD, such luxury!
Why would you even want to return to such brutal methods in the age of fast internet?
|
|
|
|
|
I am sure that your memory must be wrong.
SCART is not at all usable for any sort of file transfer.
|
|
|
|
|
Yeah, it wasn't SCART, can't remember what it was called...
Or maybe it wasn't the cable, but the program or protocol?
I can't stand not knowing this
|
|
|
|
|
I think you meant a SCSI cable (it was the USB of its day on desktops and high end workstations)
|
|
|
|
|
I was a SCSI fan for several years, trusting it to become The standard for disks, printers, scanners, ... SCSI had professional qualities that deserved a better fate. But when I had to buy an adapter cable for my eight SCSI plug 'standard', and the salesman nodded, 'But there are fourteen different ones in use, I called it quit.
SCSI did have one big disadvantage, though: It was parallel standard, with lots of wires. So cables were thick and stiff, most plug alternatives were large.
I have been fearing that USB would suffer the same fate with a bewilderment of plugs - A, B, Mini, Micro, A 3.x, Micro 3.x, B 3.x, and then C ... There are even Mini A and Micro A that I've never seen in real life. That makes 10 different ones ... After my experiences with SCSIO, I was about to ditch USB completely, and when the first alternative to or variation of USB C comes, I will.
For now, it looks as if USB C may be turn out as a real Standard plug that will live for at least a few more years without 'improvements'. I am in the process of mentally accepting it; it is not quite there yet. (I am using it, but still with some reluctance and distrust.)
There is a good programming (and debugging!) rule, saying that 'Constants ain't! Variables won't!' I am tempted to add: 'Standards ain't!'
|
|
|
|
|
Yes, I find that uploading to Google Drive from one machine and downloading onto the other from there to be the simplest option, and fast one too. Only drawback is that my ISP has a data limit of 1000 GB per month, after which things become really slow.
|
|
|
|
|
1000 GB? That's not a lot...
My parents had the same, but they could request another batch (at no extra cost) when they ran out.
They were on satellite (which isn't a thing in the Netherlands, unless you live in an outside area, like them).
|
|
|
|
|
A terabyte of uploading per month "should be enough for everybody", as the saying goes ...
For "ordinary people", I can think of a single thing that would break even a terabyte of permanent storage space: That is if you do a lot of digital home videos. But nowadays, few people ever sit down to watch daddy's amateur movie from the 2018 Greece vacation - there are much better videos from Greece to be found on YouTube.
A file transfer of a few GB, files that are removed after transfer, is like peanuts on a terabyte budget.
|
|
|
|
|