|
The North remembers! Ehhh, wrong.
So say we all! No, that's also wrong.
The Internet does not forget!
I have lived with several Zen masters - all of them were cats.
His last invention was an evil Lasagna. It didn't kill anyone, and it actually tasted pretty good.
|
|
|
|
|
GKP1992 wrote: When is the last time you worked on .Net Remoting?
Well, actually, today. The project is that old.
I have lived with several Zen masters - all of them were cats.
His last invention was an evil Lasagna. It didn't kill anyone, and it actually tasted pretty good.
|
|
|
|
|
Probably not so much.
Basically it was a way to implement Remote Procedure Calls (RPC) - expose functionality to other apps.
Now there are other (better and simpler) ways to implement that functionality.
WCF (though it was complicated at one point in history) is far more prevalent now (maybe the default for C#?)
Now you can quite easily create a self-hosted app and expose functionality.
(of course, security is always a challenge and a necessity).
Check this out and you can get an overview of how much simpler it can be than the old days of .NET Remoting.
How to: Host a WCF Service in a Managed Application | Microsoft Docs[^]
Update
Here are a couple of SO entries that were basically asking same question that I just found.
Custom RPC vs WCF vs .NET Remoting - Stack Overflow[^]
c# - Does WCF really replace .NET Remoting? - Stack Overflow[^]
That last one was posted 9 years ago and even then the reply was, "remoting is old".
|
|
|
|
|
Yes, I am familiar with those, but I don't know if I'd like to work on it.
|
|
|
|
|
It's never fun working on old tech, even with newer tools.It's even worse if you're stuck using similarly ancient tools.
|
|
|
|
|
JSON-RPC replaces them all. And it doesn't depend from MS clowns.
|
|
|
|
|
That's a name I haven't heard in a long time. A long time.
|
|
|
|
|
May the fourth be with you.
Sent from my Amstrad PC 1640
Never throw anything away, Griff
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
.NET Remoting .. if it pays for the insanity afterward..maybe.....
Caveat Emptor.
"Progress doesn't come from early risers β progress is made by lazy men looking for easier ways to do things." Lazarus Long
|
|
|
|
|
The first book I got on .Net was Petzolds book on remoting, never used it and went on to simpler things.
Never underestimate the power of human stupidity -
RAH
I'm old. I know stuff - JSOP
|
|
|
|
|
(If I'm right) As part of API/Framework standardization, Soon this would be marked Obsolete & ultimately removed from the framework. Migrate or die type.
|
|
|
|
|
|
|
used it for 7ish years back in the day for last company's flag ship product for communication between computers, it worked well, then WCF came out; and I believed the hype that it was so much better, and restructured the system for a big new release around WCF. In the long run it wasn't anything spectacular and I don't think it improved anything, now according to the latest news WCF will not be carried forward into Dotnet 5.
before that news came out though we had already made the commitment to leave WCF and start using REST services, it was more flexible and I could tie our java products into the same calls as the .net projects with no extra work.
|
|
|
|
|
|
I just recently left my last job, and they supported it quite heavily. The applications were extremely old. I avoided it as much as possible, but the little I did learn came down to you could replace the entire system with web services, of one flavor or another, and make life very easy. If I had to explain it to somebody who had never seen it, I would say .Net Remoting was the grandfather of web services, before anybody know what web services were.
One of the many problems that we faced, in working with Remoting, was the code had been built in Visual Studio prior to 2005. That was our guess anyway. We didn't have any licenses for an IDE that would work on it, and it was next to impossible to make changes. The programs that used it were on a 6 months cycle that lasted 3 months. They ran data in March through June and then again in September through November. That left us only 3 months to rewrite everything before the software had to be ran again and it was a fairly large and complex system. In general, dealing with it sucked. I don't know the final outcome but the program was on the board for a modernization to using web services.
|
|
|
|
|
.NET remoting is the same dead-born technology as WCF, EF, WF, you name it.
Simply because MS don't have even 5 smart guys to make good, perspective product.
|
|
|
|
|
Yes, these frameworks required architecting, and all the cool boys just wanted to sit down with something shiny new and code, so no buzz.
|
|
|
|
|
Which do you prefer:
Option 1:
Assert.IsTrue(token != Guid.Empty, "Token not received.");
or Option 2:
Assert.IsFalse(token == Guid.Empty, "Token not received.");
Personally, I go for option 1, because there's a bias to assert that things are true rather than false (except in politics) and it reads better. I have to process the false == into a true != . With Option 1, I don't have to do that. Interesting how the mind works.
Maybe a psychopath would go for option 2?
|
|
|
|
|
I'd go for first as well, coz it's more straightforward. Less mental operations = better readability. Unless you're writing negative tests of course π
Edit :- okay, you're saying the same thing. So I agree.
|
|
|
|
|
I always have a tendency to put positives first, eg.
if (thing == true)
{
}
else
{
}
...so, obviously, I would go for "Assert.isTrue".
- I would love to change the world, but they wonβt give me the source code.
|
|
|
|
|
In most cases I put the conditions which prevent code execution (like error cases) first and the condition in which the code must execute comes last.
|
|
|
|
|
I do the same - if only because the "failure case code" is generally shorter:
MessageBox.Show("...", "...");
return; And it's more obvious what is going on that way. Plus ... it's a layer less indentation:
if (goodThing)
{
...
}
else
{
MessageBox.Show("...", "...");
return;
} Vs:
if (!goodThing)
{
MessageBox.Show("...", "...");
return;
}
... And it groups validations at the top of methods, leaving the "good code" alone at the end:
if (!goodThing)
{
MessageBox.Show("...", "...");
return;
}
if (!otherThingIWantToSee)
{
MessageBox.Show("...", "...");
return;
}
...
Sent from my Amstrad PC 1640
Never throw anything away, Griff
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
I once had to adhere to a rather arcane coding standard that required only one return statement per function. It made for some very deep indentation so I resorted to using many more very small functions. It's a bit less of an issue now with very high resolution monitors but back then it was very annoying.
"They have a consciousness, they have a life, they have a soul! Damn you! Let the rabbits wear glasses! Save our brothers! Can I get an amen?"
|
|
|
|
|
An adamant refusal to use GOTO
Never underestimate the power of human stupidity -
RAH
I'm old. I know stuff - JSOP
|
|
|
|