|
I need a git reference for dummies. Took a course years ago. Will leave the brain almost immediately if you don't use it regularly.
"A little time, a little trouble, your better day"
Badfinger
|
|
|
|
|
It sound like you're looking for git submodules, which lets you embed one repo inside another. We're just getting started with git, so YMMV.
I strongly recommend the book Pro Git[^], available online, in PDF, and in bio-flesh form (paper book) from Amazon.
Software Zen: delete this;
|
|
|
|
|
That looks really useful, thank you. It's time I made the leap ... (I'm using something else that I dare not mention.)
Paul Sanders.
Not that the story need be long, but it will take a long while to make it short - Henry David Thoreau
Some of my best work is in the undo buffer.
|
|
|
|
|
Paul Sanders (the other one) wrote: I'm using something else Visual SourceSafe? It's okay, we've been using it for over 20 years, and are beginning to move to git.
Software Zen: delete this;
|
|
|
|
|
Actually, no, worse than that...
Paul Sanders.
Not that the story need be long, but it will take a long while to make it short - Henry David Thoreau
Some of my best work is in the undo buffer.
|
|
|
|
|
Could it be worth completely separating them?
So put each in their own git repository and then set your framework project up to create a nuget package that the other project can simply reference. You can make private nuget packages and have this all handled by a CI solution like Github Actions
|
|
|
|
|
I have found that for refactoring and debugging, it helps to have all of the source code in one solution or cmake project. That way, the tools (VS, Resharper, others) can semantically "see" and analyze everything together. Once you go across boundaries like NuGet packages, some of that convenience is lost.
|
|
|
|
|
|
..in my awesome tricked out F150 waiting to turn left. The clowns in front of me were pissing around while the light turned green and only 2 got through. Since my truck has a lift kit and there was no traffic I just drove over the curb. My buddy who is a cop thought it was hilarious so he flagged me down to chat. We laughed and laughed!
|
|
|
|
|
I was stopped for speeding.
The officer: you are staggering
I said: you are quite handsome yourself.
we laughed and laughed.
I need bail money.
"A little time, a little trouble, your better day"
Badfinger
|
|
|
|
|
On my way home after a 12 hour day, I'm waiting at a traffic light, needing to turn left on a major highway. Road I'm on is 2 lane, and ahead there's a left turn lane that can fit 4 cars. I'm a ways back in the lineup and expect to go through another cycle of the light before I get there. Oh, well, I'll get there eventually ...
A large late model truck, a bit loud (obviously custom mufflers), and jacked up (lifts to make a tall truck taller) is a few in front of me. He gets impatient, crosses the double yellow line into the oncoming lane (no cars were visible in that lane), and cuts back into the left turn lane. Yeah, impatient!
His action wasn't exactly dangerous, as no cars were coming, but it was stupid, and illegal.
Dude should have been more observant -- directly behind him was a police car. Blue lights come and the cop follows him, and sits right behind the guy in the left turn lane for 3 or 4 minutes. The guy in the truck gets to ruminate on his poor decision making process.
The light cycles, traffic clears, we all turn left -- the guy in the truck pulls over with the cop behind him.
I was tired, but I drove the rest of the way home with a smile on my face. I wish I had a dash cam to preserve that scene for posterity.
|
|
|
|
|
There is fair amount of "Instant Karma" dashcam stuff on Youtube[^]
I admit, some of it is rather "Yes! You deserved that!" for me as well.
Personally? Commuting on a motorcycle up the A3 to London with a BMW right up my ass in heavy traffic. We reached the M25 junction, and a gap opened up, so I slowly moved over to let him go. Down went his foot, up went his finger, and off he zoomed ... just as the police car I was watching drive up the slip lane caught sight of him. On go the lights ...
Sometimes, you have to be kind to be cruel.
"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've seen instant Karma videos. It was FAR more exciting to see it in person!.
|
|
|
|
|
Many years ago I had one of the original Audi Quattro Turbos - but this one had been fitted with the souped-up sport engine developed for the shortened rally version so was pretty speedy. I was on the M40 heading for good ol' Londinium in the fast lane overtaking a line of cars in the middle lane. They were doing about 90, I was doing about 105 - this was back before speed cameras and before the police were so picky about your speed.
Behind me, an AMG Mercedes zoomed up, flashing his lights wanting me to somehow get out of his way even though I still had quite a line of slower cars to pass. When he got to only a couple of feet behind me and honked his horn I'd had enough. I put my foot down and pulled away up to 125 and faster. He stuck with me, still flashing his lights. I took it all the way up to 145 before I started to leave him behind and then up to 155 just to prove the point. At this point the road went up a long rise and I thought to myself, "If I were a policeman where would I position myself to pick off speeders?" Hmmm... just over the crest of the hill ahead? I moved into the now clear middle lane and slowed down. The Mercedes flew past with a honk of triumph cresting the hill probably still doing 140+. When I crested the hill, doing a very reasonable 95 I saw the V12 Supercharged Jaguar Police chase car roaring after the Mercedes with blue lights a'flashin' and a touch of siren!
A mile or so further along I passed them pulled over at the side of the road with the policeman clearly taking away his licence (for the foreseeable future). I smiled all the way to the big city!
- I would love to change the world, but they won’t give me the source code.
|
|
|
|
|
a few years ago. Teaching my daughter to drive in moms little hatchback. Idiot in jacked up stupid truck comes up behind us at a stop light. Roaring engine. Inching closer and closer to her rear bumper. Daughter is terrified. I just calmly tell her that when the light turns green you just go at a very very normal pace. Do not speed.
Light turns green. Idiot cuts out into oncoming traffic and then back into our lane. Cop about 3 cars back turns on his lights and idiot gets to have a long chat with officer about his bad life choices.
the smile on her face was awesome!
To err is human to really elephant it up you need a computer
|
|
|
|
|
Colorado has laws against aggressive driving and it doesn't matter the traffic levels, non-existent, light, moderate, high, stop and go congested.
Years ago I was driving on C-470 on the south side of Denver and was in the left lane. A State Trooper was behind me. Not wanting to have an officer behind me the whole way across the south side of Denver I got to a nice wide gap in the right lane (about two car lengths) and signaled to change lanes. The guy in the right lane was directly next to the trooper and apparently either didn't care or notice - he accelerated to close the gap preventing me from changing lanes. As soon as there was a gap behind him the trooper put his lights on and changed lanes to be right behind him. The last I saw as I was changing to the right lane was the trooper sitting on the side of the road behind the guy.
|
|
|
|
|
My first visit to Colorado was in 1991, and as far as I could tell over the month I was there was that everyone drove within the speed limit whatever the conditions. I followed this with a week in Los Angeles where everyone seemed to drive at 100 mph, a bit like the UK.
Over the years I revisited Colorado on average twice a year, and noticed that average speeds were getting faster. One day I mentioned this to one of my co-workers and he said it was probably due to all the Californians moving in.
|
|
|
|
|
One old coworker had a story where an unmarked police car pulled over a whole pack of cars in one swoop.
Colorado highway patrol,
“Out of state form a line here.
In state form a line here.”
Writes 20 tickets in 20 minutes.
|
|
|
|
|
I can see the CSP doing just this.
|
|
|
|
|
That sort of thing is common where I live (Xenia, Ohio U.S.). There's a truism here:
"The bigger the truck, the less he has to offer women."
The follow-on is: "Some guys must be an innie."
Software Zen: delete this;
|
|
|
|
|
Gary R. Wheeler wrote: "The bigger the truck, the less he has to offer women."
I've always been suspect of sentiments like this. It may make you feel better to think that the guy with the huge truck is lacking in some other department that's more important, but I have found that some of them are bad dudes, so I wouldn't want to mess with them.
The difficult we do right away...
...the impossible takes slightly longer.
|
|
|
|
|
Years ago, I was on the freeway headed home from work. Two yahoos on motorcycles were having a grand old time. Swapping lanes at random. Wheelies. Going slow.
A brown SUV passes me on the left side and gets close to the yahoos before the blue lights came on. I smiled the whole way home.
|
|
|
|
|
There was a piece of code we wanted to look at, to possibly remove it, or hunt a suspected bug.
It turns out it seems hard to remove and and it seems to work. It's just that it fires multiple data event instead of just 1. Which is not really a big deal at all. So there is no really need to change anything.
While studying the issue I did a few things to improve readability (although I suspect that people disagree with me about readability, even though I consistently reduce the number of line of code I refactor... I gave up on convincing anyone), and also, from a cursory glance (without measuring mind you) I intuited that performance would probably be better at best, or same.
Anyway I made a review, and it's not so much that people asked me to measure the performance of my changes, is that I got the feeling they instantly dislike my changes (I used LINQ! damnation)(for be fair I could use a foreach loop instead).. anyway that just demotivated me totally about this whole change request. And maybe I misread it and they don't care just think this is a piece that need measurement before changes - also the guy commenting.. is not communicating very well, at least with me, either he dislike me or has autism or something. Anyway I am demotivated now, it's not really important, I don't really want to spend time justifying it, I rather just delete the change request and move on.
But I look at my reaction.. And.. mm... well.. the question is in the title.
I know. I think I will simply forget about the CL.
If the commentor ask me again, I will replied I thought he didn't like the changes nor they seemed important but I could go ahead and measure the difference now, then!
|
|
|
|
|
That happened to m e more than once over the years ... it really depends on whether you are in a position to fight the guy, or need to protect your job.
|
|
|
|
|
There is nothing intrinsically wrong with LINQ. My only concern would be that LINQ does a lot behind the scenes, and could be less performant than more explicit code
I would measure the performance (resource usage + speed) of the old and the new code. If your code is more performant, you have new ammunition on your side, otherwise it's back to the drawing board...
Freedom is the freedom to say that two plus two make four. If that is granted, all else follows.
-- 6079 Smith W.
|
|
|
|