Java vs C# ?

Use this forum if you want to discuss a problem or ask a question related to a hMailServer beta release.
Post Reply
testuser.demouser
New user
New user
Posts: 2
Joined: 2020-03-24 23:17

Java vs C# ?

Post by testuser.demouser » 2020-03-25 00:56

This may sound a very basic question but I am new to hMailserver and planning to write an application which will download the attachment(s) of the email and save it to a folder. I read the documentation to find out that the COM API is exposed via Interop.hMailServer.dll. I also read some posts which talk about consuming this api via Java as well as C#. I need a suggestion to choose a language for my application. My preference is Java but I am not sure if there would be some compatibility issues going forward (as it's a COM API). Can somebody confirm this and help me make an informed decision on choosing the right language ?
Thanks in advance for your help/suggestion.

User avatar
mattg
Moderator
Moderator
Posts: 20896
Joined: 2007-06-14 05:12
Location: 'The Outback' Australia

Re: Java vs C# ?

Post by mattg » 2020-03-25 04:48

saving an attachment is easy and has been done heaps with VBS

search the script section - there are heaps
Just 'cause I link to a page and say little else doesn't mean I am not being nice.
https://www.hmailserver.com/documentation

owen_a
New user
New user
Posts: 2
Joined: 2020-04-16 09:55

Re: Java vs C# ?

Post by owen_a » 2020-04-16 10:27

The right language is C#. Java is slow and given the server is written in .net, it only makes sense to use a language that it's already written in.

User avatar
Dravion
Senior user
Senior user
Posts: 1688
Joined: 2015-09-26 11:50
Location: Germany
Contact:

Re: Java vs C# ?

Post by Dravion » 2020-04-16 11:45

The Server is written in C/C++ (unmanaged/native)

Only the Client tools like hMailAdmin and DBSetup are written in C# (targeting old .NET 2.0).

User avatar
SorenR
Senior user
Senior user
Posts: 3621
Joined: 2006-08-21 15:38
Location: Denmark

Re: Java vs C# ?

Post by SorenR » 2020-04-16 16:59

tg4onoatk5t41.jpg
And... The explanation if you don't get it...

C# does garbage collection simply and efficiently, Java does it in a much more complicated and more automated way, and C++ just.... doesn’t.
SørenR.

“Those who don't know history are doomed to repeat it.”
― Edmund Burke

User avatar
Dravion
Senior user
Senior user
Posts: 1688
Joined: 2015-09-26 11:50
Location: Germany
Contact:

Re: Java vs C# ?

Post by Dravion » 2020-04-16 19:51

maxresdefault.jpg

palinka
Senior user
Senior user
Posts: 1966
Joined: 2017-09-12 17:57

Re: Java vs C# ?

Post by palinka » 2020-04-16 20:49

SorenR wrote:
2020-04-16 16:59

And... The explanation if you don't get it...

C# does garbage collection simply and efficiently, Java does it in a much more complicated and more automated way, and C++ just.... doesn’t.
That's funny. Little greta does it in a $4 million yacht. One bit of flotsam at a time.

User avatar
SorenR
Senior user
Senior user
Posts: 3621
Joined: 2006-08-21 15:38
Location: Denmark

Re: Java vs C# ?

Post by SorenR » 2020-04-16 20:53

palinka wrote:
2020-04-16 20:49
SorenR wrote:
2020-04-16 16:59

And... The explanation if you don't get it...

C# does garbage collection simply and efficiently, Java does it in a much more complicated and more automated way, and C++ just.... doesn’t.
That's funny. Little greta does it in a $4 million yacht. One bit of flotsam at a time.
Image
SørenR.

“Those who don't know history are doomed to repeat it.”
― Edmund Burke

palinka
Senior user
Senior user
Posts: 1966
Joined: 2017-09-12 17:57

Re: Java vs C# ?

Post by palinka » 2020-04-16 20:56

She sure is. No doubt about it. Poor little thing.

palinka
Senior user
Senior user
Posts: 1966
Joined: 2017-09-12 17:57

Re: Java vs C# ?

Post by palinka » 2020-04-16 21:37

SorenR wrote:
2020-04-16 20:53
Image
I KNOW you'll like these. :mrgreen: :mrgreen: :mrgreen:

Image

Image

Image

Only Cummins rolls more coal than VW! :mrgreen:

ooooops. Maybe not. :mrgreen:

Image

Post Reply