Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. The Lounge
  3. C# or Java ??

C# or Java ??

Scheduled Pinned Locked Moved The Lounge
csharpjavaquestion
73 Posts 41 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • P Pete OHanlon

    Have you considered COBOL.NET? I'm just asking. ;P

    Deja View - the feeling that you've seen this post before.

    My blog | My articles

    V Offline
    V Offline
    Vasudevan Deepak Kumar
    wrote on last edited by
    #39

    Pete O'Hanlon wrote:

    COBOL.NET

    Are there serious takers for it? Or was it just like a Proof of concept? COBOL is a really giant mainframe type language. So bringing a .NET cover for it -- would it make something useful?

    Vasudevan Deepak Kumar Personal Homepage
    Tech Gossips
    A pessimist sees only the dark side of the clouds, and mopes; a philosopher sees both sides, and shrugs; an optimist doesn't see the clouds at all - he's walking on them. --Leonard Louis Levinson

    1 Reply Last reply
    0
    • C Chris Austin

      rockNroll wrote:

      based on image processing.

      C++ or C, most certainly not C# or Java.

      `

      V Offline
      V Offline
      Vasudevan Deepak Kumar
      wrote on last edited by
      #40

      Chris Austin wrote:

      not C#

      Why? I admit that Java is tricky but C# helps you significantly right?

      Vasudevan Deepak Kumar Personal Homepage
      Tech Gossips
      A pessimist sees only the dark side of the clouds, and mopes; a philosopher sees both sides, and shrugs; an optimist doesn't see the clouds at all - he's walking on them. --Leonard Louis Levinson

      1 Reply Last reply
      0
      • R rockNroll

        Hi, I have got a new project which is based on image processing. Which language will be better for this project.. C# or Java and why ? cheers rNr

        J Offline
        J Offline
        Jeff Dickey
        wrote on last edited by
        #41

        Will you need to fit your code into a larger system? what's that system written in? Use that.... Otherwise... what are you most experienced in? have you used the image tools available in either language or both? Which are you more productive in? How comfortable are you with the testing and documentation tools for each language? JUnit is still quite a bit more mature than NUnit, but if you're more comfortable with the latter, then that's a positive for C#. Is the code going to be ported to environments outside .NET? How comfortable are you with the language tools and support on the other platforms you're considering? Porting C# to Linux and Mac can be done with sufficient thought and planning invested beforehand...but Java really is a lot more productive/mature here. Finally, who's going to be maintaining, using or extending your source code? If you're a Microsoft shop with a lot of C# (or even C++) experience in-house, that's a major plus for C#. On the other hand, if you outsource to the lowest bidder and 90% of the work is going to wind up in Chennai, then use the least complex Java code that will accomplish the mission. There is no single answer for "what language should I program in?" There hasn't been for at least the thirty years that I've been developing. Every programmer I know who I consider truly competent has professional-level chops in at least three languages, and learns at least one new language a year. Do you?

        Jeff Dickey Seven Sigma Software and Services Phone/SMS: +65 8333 4403 Yahoo! IM: jeff_dickey MSN IM:    jeff_dickey at hotmail.com ICQ IM:    8053918 Skype:     jeff_dickey

        1 Reply Last reply
        0
        • E Ennis Ray Lynch Jr

          C++, then Java, then C#. That is just my two cents. Having developed in all three I think I have a solid foundation of the opinion as well.

          Need a C# Consultant? I'm available.
          Happiness in intelligent people is the rarest thing I know. -- Ernest Hemingway

          D Offline
          D Offline
          DJ van Wyk
          wrote on last edited by
          #42

          Ennis Ray Lynch, Jr. wrote:

          That is just my two cents

          I'll raise your 2 cents to 3 cents and say C#

          E 1 Reply Last reply
          0
          • D DJ van Wyk

            Ennis Ray Lynch, Jr. wrote:

            That is just my two cents

            I'll raise your 2 cents to 3 cents and say C#

            E Offline
            E Offline
            Ennis Ray Lynch Jr
            wrote on last edited by
            #43

            Considering the FPS results of my simple grayscale conversion article and a motion detection app I have written in C# that I have not published an article on I have to say C++. I must ask, of course, how much work you have done in C++ do say that C# is the better choice.

            Need a C# Consultant? I'm available.
            Happiness in intelligent people is the rarest thing I know. -- Ernest Hemingway

            D 1 Reply Last reply
            0
            • E Ennis Ray Lynch Jr

              Considering the FPS results of my simple grayscale conversion article and a motion detection app I have written in C# that I have not published an article on I have to say C++. I must ask, of course, how much work you have done in C++ do say that C# is the better choice.

              Need a C# Consultant? I'm available.
              Happiness in intelligent people is the rarest thing I know. -- Ernest Hemingway

              D Offline
              D Offline
              DJ van Wyk
              wrote on last edited by
              #44

              I'm still busy doing DirectX in C++, but since the question only asked for C# or Java, I had to pick C#. I have written a C# Document Management system using C# and GDI (replacing the PictureBox component), so at least I know it is possible.

              E 1 Reply Last reply
              0
              • D DJ van Wyk

                I'm still busy doing DirectX in C++, but since the question only asked for C# or Java, I had to pick C#. I have written a C# Document Management system using C# and GDI (replacing the PictureBox component), so at least I know it is possible.

                E Offline
                E Offline
                Ennis Ray Lynch Jr
                wrote on last edited by
                #45

                Fair enough. Sometimes I find people limiting a choice of languages from a lack of knowledge and not a requirement so I like to mention alternatives when I can. DirectX in C++! I almost had a contract doing that ... until they found out I charge money. Darn people on Craig's List. Mention that I charge money to do work and they stop emailing me!

                Need a C# Consultant? I'm available.
                Happiness in intelligent people is the rarest thing I know. -- Ernest Hemingway

                D 1 Reply Last reply
                0
                • E Ennis Ray Lynch Jr

                  Fair enough. Sometimes I find people limiting a choice of languages from a lack of knowledge and not a requirement so I like to mention alternatives when I can. DirectX in C++! I almost had a contract doing that ... until they found out I charge money. Darn people on Craig's List. Mention that I charge money to do work and they stop emailing me!

                  Need a C# Consultant? I'm available.
                  Happiness in intelligent people is the rarest thing I know. -- Ernest Hemingway

                  D Offline
                  D Offline
                  DJ van Wyk
                  wrote on last edited by
                  #46

                  Ennis Ray Lynch, Jr. wrote:

                  I charge money

                  Rather say that you develop the system for free, but charge for support and maintenance. That will make it sound good, but then also make sure that there will be support and maintenance by exploiting discrepancies in the spec.

                  1 Reply Last reply
                  0
                  • L Lost User

                    C# IS Java (Well, J++ warmed over a bit)

                    Morality is indistinguishable from social proscription

                    S Offline
                    S Offline
                    S Senthil Kumar
                    wrote on last edited by
                    #47

                    fat_boy wrote:

                    C# IS Java (Well, J++ warmed over a bit)

                    Well, C# 1.0 was Java, but since then, C# has evolved a lot (generics/lambda expressions/closures/LINQ/Nullable types etc..)

                    Regards Senthil [MVP - Visual C#] _____________________________ My Blog | My Articles | My Flickr | WinMacro

                    1 Reply Last reply
                    0
                    • G Gary R Wheeler

                      I took three courses in computer graphics as an undergraduate that used PL/I-80 (on a CP/M box, no less). Each graphics system had a whopping 256x192 resolution, with 256 colors per pixel (4 levels each of red, green, and blue). My final project in the third course demonstrated 3D hidden surface removal using binary space partitioning trees. BSP trees were used in the original DOOM for rendering the 3D environment :cool:.

                      Software Zen: delete this;
                      Fold With Us![^]

                      D Offline
                      D Offline
                      DJ van Wyk
                      wrote on last edited by
                      #48

                      Gary R. Wheeler wrote:

                      BSP trees were used in the original DOOM

                      This also proved that John Carmack is not God as was believed at the time. In the first level of the Shareware version the was a small piece of floor missing due the Binary Tree. As far as I know this was the first time recorded history that Mr Carmack was proven wrong in his design. ;P

                      1 Reply Last reply
                      0
                      • N Nemanja Trifunovic

                        So people are using VB for image processing nowdays? Fascinating.

                        Programming Blog utf8-cpp

                        K Offline
                        K Offline
                        KLMR
                        wrote on last edited by
                        #49

                        Nemanja Trifunovic wrote:

                        So people are using VB for image processing nowdays? Fascinating.

                        And have done so for years, even in VB6. So what's your point? Was there even a point? In most applications speed simply doesn't matter that much. And although (reasonably fast) image processing in VB6 used to be more work than, say, in C++, this was often offset by the efford to interoperate with a C++-coded image processing DLL. So image processing in VB was (and is, even more so) a completely sane choice. Of course, if you have other requirements, e.g. process a large batch of images really, really fast, then scratch the above and turn to ASM. On the other hand, there are some excellent assembly-enhanced VB6 codes out there to do just that.

                        1 Reply Last reply
                        0
                        • V Vasudevan Deepak Kumar

                          superset, rather. ;)

                          Vasudevan Deepak Kumar Personal Homepage
                          Tech Gossips
                          A pessimist sees only the dark side of the clouds, and mopes; a philosopher sees both sides, and shrugs; an optimist doesn't see the clouds at all - he's walking on them. --Leonard Louis Levinson

                          L Offline
                          L Offline
                          Lost User
                          wrote on last edited by
                          #50

                          Yes, it has some extensions.

                          Morality is indistinguishable from social proscription

                          1 Reply Last reply
                          0
                          • P Pete OHanlon

                            Ah - I managed to avoid COBOL. I have more of a mathematical background, so I was more on the FORTRAN, APL and C track.

                            Deja View - the feeling that you've seen this post before.

                            My blog | My articles

                            J Offline
                            J Offline
                            JDL EPM
                            wrote on last edited by
                            #51

                            Anyone heard of Gotran? It was a single statement per line (card) subset of Fortran which I used on an IBM 1620 in 1965 to 1966. The multimedia experience of card and IBM golf ball typewriter I/O had to be seen to be believed!

                            1 Reply Last reply
                            0
                            • R rockNroll

                              Hi, I have got a new project which is based on image processing. Which language will be better for this project.. C# or Java and why ? cheers rNr

                              J Offline
                              J Offline
                              jsd001002
                              wrote on last edited by
                              #52

                              C#,It is faster

                              J 1 Reply Last reply
                              0
                              • R rockNroll

                                Hi, I have got a new project which is based on image processing. Which language will be better for this project.. C# or Java and why ? cheers rNr

                                R Offline
                                R Offline
                                reshi999
                                wrote on last edited by
                                #53

                                Funny you should ask as I have been developing image processor routines in C# for the past 2 weeks for OCR apps. Image manipulation is fairly easy once you are able to pull images into the correct binary classes, then I have been able to apply image transitions quite easily on a bit by bit level. Its not as fast as I would like but I have not optimised the code at all, it takes about 3 seconds to apply a brighten & sharpen filter on a 247k grayscale tiff. I am limited by the choice of language here though and have no idea on how fast java would perform.

                                R 1 Reply Last reply
                                0
                                • L leckey 0

                                  Assembly.

                                  Shhhhh..... http://craptasticnation.blogspot.com/[^]

                                  R Offline
                                  R Offline
                                  reshi999
                                  wrote on last edited by
                                  #54

                                  Ouch...just ouch... :-)

                                  A 1 Reply Last reply
                                  0
                                  • R rockNroll

                                    Hi, I have got a new project which is based on image processing. Which language will be better for this project.. C# or Java and why ? cheers rNr

                                    R Offline
                                    R Offline
                                    Rohde
                                    wrote on last edited by
                                    #55

                                    You sure got a lot of stupid answers to that question. Anyway, I depends on what language you know best and especially how complex you app is going to be. If it's pretty advanced Java has a big advantage in that there's the JAI (Java Advanced Imaging) API, and AFAIK there's not really any equivalent API for C# (.NET) though I can be mistaken. Ergo: If you know C# really well, and you app is going to be mostly home-implemented algorithms use C#, otherwise if you are going to make a big image processing app, and want to take advantage of a very nicely build API use Java and JAI.


                                    "When you have made evil the means of survival, do not expect men to remain good. Do not expect them to stay moral and lose their lives for the purpose of becoming the fodder of the immoral. Do not expect them to produce, when production is punished and looting rewarded. Do not ask, `Who is destroying the world?' You are."
                                    -Atlas Shrugged, Ayn Rand

                                    1 Reply Last reply
                                    0
                                    • R rockNroll

                                      Hi, I have got a new project which is based on image processing. Which language will be better for this project.. C# or Java and why ? cheers rNr

                                      N Offline
                                      N Offline
                                      Noam Sigal
                                      wrote on last edited by
                                      #56

                                      pure image processing, or GUI? what platform? cross platform? the best way (in my experience) is to separate the GUI application from the image processing logic. best image processing library support is in C++, then Java. C# comes last. easiest to GUI (at least in .NET) is probably C#. if you have serious image processing - C++ (and C) give you the best programmatic control, which C# and Java don't. (they are more elegant, but much "weaker"). hope i helped. good luck.

                                      noams66

                                      1 Reply Last reply
                                      0
                                      • R rockNroll

                                        Hi, I have got a new project which is based on image processing. Which language will be better for this project.. C# or Java and why ? cheers rNr

                                        F Offline
                                        F Offline
                                        Fabio Franco
                                        wrote on last edited by
                                        #57

                                        I'd definetely say C#. Not because of tha language itself but because of the tools that are provided for it. Visual Studio will make your life so much easier than working with Eclipse or NetBeans. And I love C#, so this probably isn`t an impartial opinion. Regards,

                                        1 Reply Last reply
                                        0
                                        • R rockNroll

                                          Hi, I have got a new project which is based on image processing. Which language will be better for this project.. C# or Java and why ? cheers rNr

                                          E Offline
                                          E Offline
                                          El Corazon
                                          wrote on last edited by
                                          #58

                                          rockNroll wrote:

                                          I have got a new project which is based on image processing.

                                          and what kind of image processing? some people have answered as if that explains everything. I see no explanation at all. Basic image processing (histogram, color shift, edge detect, etc.) or user defined image processing (advanced filtering, fractal edge detect, wavelet differencing), or even real-time image processing (image processing on live video, multi-frame blind convolution, image based object tracking). These are all image processing, but they conjure different levels of need as far as existing infrastructure in the language, and especially speed. Basic image processing is usually easy enough language is irrelevant, java has an image library you can use to help, C# can use existing dll based image libraries through the infamous pinvoke. The only question relevant is based on personnel, which do you know, which can be better supported by your staff?

                                          rockNroll wrote:

                                          C# or Java and why ?

                                          why did you choose those languages? you could have chosen COBOL, or LOGO, or PL1. Are those the languages you know, the only ones you know, and you have to build this? Then perhaps, maybe this is the right question. Though if your requirements do include anything that will refer to speed, you may not be the right person for this project if that is all you know. I love the answer that skipped C++ and went straight to assembly if speed matters, by making absurd associations like that people try very hard to kill a language that refuses to die because it is still being used. All in all, you haven't given enough information to answer, anyone who says otherwise is basing their decision on their language preference only. what are your requirements? what does the user expect?

                                          ------------------ John Andrew Holmes "It is well to remember that the entire universe, with one trifling exception, is composed of others."

                                          1 Reply Last reply
                                          0
                                          Reply
                                          • Reply as topic
                                          Log in to reply
                                          • Oldest to Newest
                                          • Newest to Oldest
                                          • Most Votes


                                          • Login

                                          • Don't have an account? Register

                                          • Login or register to search.
                                          • First post
                                            Last post
                                          0
                                          • Categories
                                          • Recent
                                          • Tags
                                          • Popular
                                          • World
                                          • Users
                                          • Groups