Page 2 of 3 FirstFirst 123 LastLast
Results 17 to 32 of 42

Thread: How do people still program C++/Java without crying?

  1. #17
    Senior Member
    Join Date
    Jun 2006
    Posts
    340
    Thanks
    22
    Thanked
    14 times in 14 posts

    Re: How do people still program C++/Java without crying?

    Quote Originally Posted by TheAnimus View Post
    Please see my first two posts in this thread.

    Try and do that in Java (or even C#1.0, rather than 3.0/5 like my example in the first post).

    Simply you can't without been a lot more verbose, which is bad.
    I can see how the use of lamba expressions adds a convenience, and will reduce the number of lines of code in some situations. However, the equivelant Java, an using anonymous class would still be pretty acceptable in terms of readability. Yes, Java misses a few of the things which appear in C# like delegates and lambdas, but if we're honest, are these really major features? Apart from these minor niggles Java really is more akin to C#, than to C++.

  2. #18
    Seething Cauldron of Hatred TheAnimus's Avatar
    Join Date
    Aug 2005
    Posts
    17,168
    Thanks
    803
    Thanked
    2,152 times in 1,408 posts

    Re: How do people still program C++/Java without crying?

    i wasn't meaning to range holy war, i'm not saying C# is a pannacia.

    When you look at the first bit of a code i posted, i was slagging off how someone had screwed up the string class's join method, by making it have to be an array (pointless).

    Now, trying to do the same in java would be even more verbose. Even more so than the example in C# i was complaining about.

    If you can't see why thinks like lambda's + LINQ are incredibly useful, use them in anger for a while, and you will wounder how on earth you did without them, without going nuts.
    throw new ArgumentException (String, String, Exception)

  3. #19
    Senior Member
    Join Date
    Jun 2006
    Posts
    340
    Thanks
    22
    Thanked
    14 times in 14 posts

    Re: How do people still program C++/Java without crying?

    Lol, no holy war ranged, don't worry, I'm not particularly biased to either. Just making the point that Java isn't a legacy language as stated in your first post :-)

  4. #20
    Theoretical Element Spud1's Avatar
    Join Date
    Jul 2003
    Location
    North West
    Posts
    7,508
    Thanks
    336
    Thanked
    320 times in 255 posts
    • Spud1's system
      • Motherboard:
      • Gigabyte Aorus Master
      • CPU:
      • 9900k
      • Memory:
      • 16GB GSkill Trident Z
      • Storage:
      • Lots.
      • Graphics card(s):
      • RTX3090
      • PSU:
      • 750w
      • Case:
      • BeQuiet Dark Base Pro rev.2
      • Operating System:
      • Windows 10
      • Monitor(s):
      • Asus PG35VQ
      • Internet:
      • 910/100mb Fibre

    Re: How do people still program C++/Java without crying?

    Quote Originally Posted by TheAnimus View Post
    Yes writing a simple compiler is a good idea, and the BCS are right to demand it for accreditation but, its more important that people learn lots of languages, and the good features from each.
    Just to clarify something..there is no such requirement for BCS accreditation of a course, or for becoming a member..I never did any work involving writing a compiler (or even any real low level programming below Ansi C) on my course, yet it was still an accredited computer science course, and I am MBCS..

    We never did any real .NET programming at our uni either - closest we got was a tiny bit on a GUI design module, and that was only because it meant they could use VB.NET for the module rather than a real programming language, as the teacher didn't know much else (sorry but i'm very snobbish when it comes to VB.NET - it teaches horrible horrible habits and I strongly disagree with any uni teaching it on a comp science course).

    It transpires (after some discussions today with an old lecturer of mine) that the main reason my uni stayed away from .NET was due to the department leader(s) all being very anti-microsoft, in the same way that many ignorant "geeks" are. Java is of course a multi platform alternative from a much more "geek friendly" so they opted to teach that for OO concepts rather than the microsoft alternative.

    I would be amazed that something so ridiculous could dictate module content for an entire degree...but then I did go to *cough* Staffordshire University.

  5. #21
    Seething Cauldron of Hatred TheAnimus's Avatar
    Join Date
    Aug 2005
    Posts
    17,168
    Thanks
    803
    Thanked
    2,152 times in 1,408 posts

    Re: How do people still program C++/Java without crying?

    i honestly thought it was required for accreditation!

    Its intresting that because whilst VB.Net, except for its XML handling abilities is well rather awful, .Net and C# are ECMA standards meaning anyone (mono forinstance) are able to write their own framework to implement it. Java isn't that free! This is why i don't get why so many uni's are pro-sun whilst been anti MS.

    The joke is its the students they're hurting, by focusing, narrow mindedly on too fewer languages, plenty of people are coming out of uni un-able to learn or even pick up the basics of the modern languages. No one is saying uni's should train people in software engineering (with appologies to .anyone studying such a degree, but your doing a vocational course, its training, not a degree). Insted people should be coming out of uni enthused wanting to learn more about all the possible programming ideas and paradigms. Not thinking "oh i'm going to program java".
    throw new ArgumentException (String, String, Exception)

  6. #22
    Comfortably Numb directhex's Avatar
    Join Date
    Jul 2003
    Location
    /dev/urandom
    Posts
    17,074
    Thanks
    228
    Thanked
    1,026 times in 677 posts
    • directhex's system
      • Motherboard:
      • Asus ROG Strix B550-I Gaming
      • CPU:
      • Ryzen 5900x
      • Memory:
      • 64GB G.Skill Trident Z RGB
      • Storage:
      • 2TB Seagate Firecuda 520
      • Graphics card(s):
      • EVGA GeForce RTX 3080 XC3 Ultra
      • PSU:
      • EVGA SuperNOVA 850W G3
      • Case:
      • NZXT H210i
      • Operating System:
      • Ubuntu 20.04, Windows 10
      • Monitor(s):
      • LG 34GN850
      • Internet:
      • FIOS

    Re: How do people still program C++/Java without crying?

    http://evain.net/blog/articles/2008/...-linq-on-net-2

    technically you don't even need .net 3 installed to use the whizzy bits on 2.0 targets

  7. #23
    Lovely chap dangel's Avatar
    Join Date
    Aug 2005
    Location
    Cambridge, UK
    Posts
    8,398
    Thanks
    412
    Thanked
    459 times in 334 posts
    • dangel's system
      • Motherboard:
      • See My Sig
      • CPU:
      • See My Sig
      • Memory:
      • See My Sig
      • Storage:
      • See My Sig
      • Graphics card(s):
      • See My Sig
      • PSU:
      • See My Sig
      • Case:
      • See My Sig
      • Operating System:
      • Windows 10
      • Monitor(s):
      • See My Sig
      • Internet:
      • 60mbit Sky LLU

    Re: How do people still program C++/Java without crying?

    It all depends on what you're doing. I don't agree with just using managed code for "everything" because in certain circumstances it's a poor choice or just won't work period. I agree C++ CLI is bloody awful (despite assurances from MS it's the 'premier' .NET language it seems to me c# is far better suited to the job) but not that C++ (outside of MS' 'extensions') is a bad language at all. In fact, even in .NET you've got some weirdness to my mind - why can I have default arguements in VB.NET and not c#? Couple that with it's general lack of maturity, speed and piss poor tools (VS2008 is a sluggish crash prone turd when you're doing WPF) and it's not always that appealing. And then there's deployment - even MS have realised 200mb+ framework installers are onerous - hence the client installer (which i've yet to check out for myself). On that front i've suffered from people simply turning machines off during .NET installation as it can take so darn long. It's not all roses - however I do agree is the future as far as MS is concerned.

    Anyway, as for 'what to learn' I'm pretty sure 'anything OO' would be my answer - i'd be quite happy to hire a C++ programmer who'd never touched .NET - it's pretty easy to make the jump particularly when you're just working in something simple like c# (which I can't help but think of as VB for C++ programmers). I'm recruiting atm - and although the job requires a good physics background I'd say my previous statement rings true for us (commericially). Bear in mind we're not sitting round doing large scale web apps - we're in the minority of those doing desktop code in the .NET world

    We use C, C++, VB(6), VB.NET (2.0), MFC (and i'm not sure why this is panned quite so heavily as it's a tiny and mature framework by today's standards), .NET forms (2.0 C++ CLI/C#) and WPF (3.5 SP1 C#). Some of that's legacy (that's a commerical reality) but some of that's also 'best fit for the job' or because it's technically the only choice to be had. The lion's share of our codebase is unmanaged C++ and I can't see that dramatically changing for a few years (either because it's not worth the investment or simply because rewriting will take that long). We don't use JAVA at all - since we're Win32 based it makes little sense.
    Last edited by dangel; 15-09-2008 at 10:25 AM.
    Crosshair VIII Hero (WIFI), 3900x, 32GB DDR4, Many SSDs, EVGA FTW3 3090, Ethoo 719


  8. #24
    Registered+
    Join Date
    Oct 2007
    Posts
    56
    Thanks
    5
    Thanked
    2 times in 2 posts

    Re: How do people still program C++/Java without crying?

    ok so i wanna delve into programming on a purely curiosity basis. i dont wanna go on any courses or go back to uni. what would you guys suggest and where to start?

  9. #25
    Seething Cauldron of Hatred TheAnimus's Avatar
    Join Date
    Aug 2005
    Posts
    17,168
    Thanks
    803
    Thanked
    2,152 times in 1,408 posts

    Re: How do people still program C++/Java without crying?

    Dangel i think it really does depend what your doing, this isn't a everything but .Net sucks, nor is it a we should all be programming ruby/cameL light/hascal/etc.

    But. That said, some langauges are just arcane, C++ is very slow to develop, because you have to be so explicit. (Remeber i'm a low level freak as well who loves MASM deep down). However it lacks many nice ideas from the modern world.

    Also C++/CLI != C++.Net. C++/CLI is quite nice in many ways, the seamless merging of managed and unmanaged via the language extensions are really good, problem is it still is anoying with 'cli::array' and nullable/genetics in general (also they look sooo like templates....).

    Again please remeber, i'm not some one language wonder, i'm simply saying that people should really learn different languages, not just C++ and Java, or C++ and C# <not using any linq/extensions methods/lambda's etc...>. This is what lots of unis are doing, for shame.

    I'm not saying people should re-write entire projects using my favourate language of the hour, far from it, more that why people haven't made extensions to java or C++ to allow seamless side by side developement of the old paradigm and the new. Yes F# & C# playing together is a bit trying, but its still damn nice.

    As for performance, again it depends what your doing, and where the cost is (is it runtime or dev time) also given the speed at which CPUs are increasing, the way we're seeing more and more cores, you don't really want to have to write for them procedurally do you? (I don't, and i only got my last job because i was a 'threading guri' drawing a lockless queue at inerview (interlocked rather than volatile)). The point is the language should lend itself to helping with these things.
    throw new ArgumentException (String, String, Exception)

  10. #26
    Seething Cauldron of Hatred TheAnimus's Avatar
    Join Date
    Aug 2005
    Posts
    17,168
    Thanks
    803
    Thanked
    2,152 times in 1,408 posts

    Re: How do people still program C++/Java without crying?

    Quote Originally Posted by icemantaz View Post
    ok so i wanna delve into programming on a purely curiosity basis. i dont wanna go on any courses or go back to uni. what would you guys suggest and where to start?
    check http://weblogs.asp.net/rosherove/arc...tream-net.aspx

    but its not for introductory.

    For starting programming try, http://www.microsoft.com/express/vcsharp/ there are screen casts, tutorials and videos showing how to get started!
    throw new ArgumentException (String, String, Exception)

  11. #27
    Lovely chap dangel's Avatar
    Join Date
    Aug 2005
    Location
    Cambridge, UK
    Posts
    8,398
    Thanks
    412
    Thanked
    459 times in 334 posts
    • dangel's system
      • Motherboard:
      • See My Sig
      • CPU:
      • See My Sig
      • Memory:
      • See My Sig
      • Storage:
      • See My Sig
      • Graphics card(s):
      • See My Sig
      • PSU:
      • See My Sig
      • Case:
      • See My Sig
      • Operating System:
      • Windows 10
      • Monitor(s):
      • See My Sig
      • Internet:
      • 60mbit Sky LLU

    Re: How do people still program C++/Java without crying?

    Quote Originally Posted by TheAnimus View Post
    Dangel i think it really does depend what your doing,
    Aha! So we agree - exactly what I said Seriously, I don't disagree - I'm just putting up POV as someone on the coalface in the commericial world. The reality is that education is always out of touch (and always will be probably) of what's going on commericially, however the priciples of OO/programming should at least be taught (one hopes) regardless of the language. I do see people who are post grad/post doc and I wouldn't say all of them are (ahem) useless. Sure, no substitute for true experience and all that, but i'm more interested in how they think than which language they use (within reasonable limitations).
    Crosshair VIII Hero (WIFI), 3900x, 32GB DDR4, Many SSDs, EVGA FTW3 3090, Ethoo 719


  12. #28
    Get in the van. Fraz's Avatar
    Join Date
    Aug 2007
    Location
    Bristol
    Posts
    2,919
    Thanks
    283
    Thanked
    396 times in 230 posts
    • Fraz's system
      • Motherboard:
      • Gigabyte X58A-UD5
      • CPU:
      • Watercooled i7-980X @ 4.2 GHz
      • Memory:
      • 24GB Crucial DDR3-1333
      • Storage:
      • 240 GB Vertex2E + 2 TB of Disk
      • Graphics card(s):
      • Water-cooled Sapphire 7970 @ 1175/1625
      • PSU:
      • Enermax Modu87+
      • Case:
      • Corsair 700D
      • Operating System:
      • Linux Mint 12 / Windows 7
      • Monitor(s):
      • Dell 30" 3008WFP and two Dell 24" 2412M
      • Internet:
      • Virgin Media 60 Mbps

    Re: How do people still program C++/Java without crying?

    You've got nothing to complain about... the world of High Energy Physics is still struggling away from the wonderful world of Fortran. And I'm not talking about some modern Fortran here, I'm talking FORTRAN 77.

    Yes - a language so old, you can't type beyond the 72nd character due to its punch-card origins...

    C++ is just amazing in comparison.

  13. #29
    Lovely chap dangel's Avatar
    Join Date
    Aug 2005
    Location
    Cambridge, UK
    Posts
    8,398
    Thanks
    412
    Thanked
    459 times in 334 posts
    • dangel's system
      • Motherboard:
      • See My Sig
      • CPU:
      • See My Sig
      • Memory:
      • See My Sig
      • Storage:
      • See My Sig
      • Graphics card(s):
      • See My Sig
      • PSU:
      • See My Sig
      • Case:
      • See My Sig
      • Operating System:
      • Windows 10
      • Monitor(s):
      • See My Sig
      • Internet:
      • 60mbit Sky LLU

    Re: How do people still program C++/Java without crying?

    Oh yes - don't remind me of my COBOL days
    Crosshair VIII Hero (WIFI), 3900x, 32GB DDR4, Many SSDs, EVGA FTW3 3090, Ethoo 719


  14. #30
    Comfortably Numb directhex's Avatar
    Join Date
    Jul 2003
    Location
    /dev/urandom
    Posts
    17,074
    Thanks
    228
    Thanked
    1,026 times in 677 posts
    • directhex's system
      • Motherboard:
      • Asus ROG Strix B550-I Gaming
      • CPU:
      • Ryzen 5900x
      • Memory:
      • 64GB G.Skill Trident Z RGB
      • Storage:
      • 2TB Seagate Firecuda 520
      • Graphics card(s):
      • EVGA GeForce RTX 3080 XC3 Ultra
      • PSU:
      • EVGA SuperNOVA 850W G3
      • Case:
      • NZXT H210i
      • Operating System:
      • Ubuntu 20.04, Windows 10
      • Monitor(s):
      • LG 34GN850
      • Internet:
      • FIOS

    Re: How do people still program C++/Java without crying?

    Quote Originally Posted by Fraz View Post
    You've got nothing to complain about... the world of High Energy Physics is still struggling away from the wonderful world of Fortran. And I'm not talking about some modern Fortran here, I'm talking FORTRAN 77.

    Yes - a language so old, you can't type beyond the 72nd character due to its punch-card origins...

    C++ is just amazing in comparison.
    all of HPC is stuck in F77, F90, and ansi C

    good, innit

  15. #31
    HEXUS webmaster Steve's Avatar
    Join Date
    Nov 2003
    Posts
    14,283
    Thanks
    293
    Thanked
    841 times in 476 posts

    Re: How do people still program C++/Java without crying?

    You telling me LHC experiments are run in FORTRAN77?
    PHP Code:
    $s = new signature();
    $s->sarcasm()->intellect()->font('Courier New')->display(); 

  16. #32
    Get in the van. Fraz's Avatar
    Join Date
    Aug 2007
    Location
    Bristol
    Posts
    2,919
    Thanks
    283
    Thanked
    396 times in 230 posts
    • Fraz's system
      • Motherboard:
      • Gigabyte X58A-UD5
      • CPU:
      • Watercooled i7-980X @ 4.2 GHz
      • Memory:
      • 24GB Crucial DDR3-1333
      • Storage:
      • 240 GB Vertex2E + 2 TB of Disk
      • Graphics card(s):
      • Water-cooled Sapphire 7970 @ 1175/1625
      • PSU:
      • Enermax Modu87+
      • Case:
      • Corsair 700D
      • Operating System:
      • Linux Mint 12 / Windows 7
      • Monitor(s):
      • Dell 30" 3008WFP and two Dell 24" 2412M
      • Internet:
      • Virgin Media 60 Mbps

    Re: How do people still program C++/Java without crying?

    Quote Originally Posted by Steve View Post
    You telling me LHC experiments are run in FORTRAN77?
    No - anything recent (i.e. control software) will be either Python, C++, or suchlike. However, a lot of our Monte-Carlo event-generator software (i.e. software that generates fake collisions, and thus does lots of complex quantum chromo-dynamics and quantum electro-dynmaics calculations), is still in Fortran - although they are slowly porting it to C++.

    I spent spent a lot of my PhD working in Fortran. Use to **** me right off, because I knew how utterly pointless it was from the perspective of a career outside particle physics - well, unless I went to work for the Met Office or something. They love their Fortran too...

Page 2 of 3 FirstFirst 123 LastLast

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. My inane rant about internet spades
    By acrobat in forum General Discussion
    Replies: 39
    Last Post: 10-11-2013, 07:30 PM
  2. please urgent help needed with c++ program
    By haelly in forum Welcome to HEXUS!
    Replies: 2
    Last Post: 19-12-2007, 11:02 PM
  3. Reguarding Nvidia's 8800GTX, and my fury.
    By acrobat in forum PC Hardware and Components
    Replies: 49
    Last Post: 04-10-2007, 03:24 AM
  4. Replies: 0
    Last Post: 20-08-2007, 12:13 PM
  5. What to say to a telemarketer
    By kickstart 1 in forum General Discussion
    Replies: 76
    Last Post: 25-06-2007, 01:00 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •