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. Programming's Foul Language

Programming's Foul Language

Scheduled Pinned Locked Moved The Lounge
tutorialquestion
111 Posts 61 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.
  • D dawmail333

    If you actually bothered to check, VB.Net HAS had that shorthand since .Net 1.1. Check your facts mate! And he was talking about the case sensitivity in C# (my main gripe with it): so that num <> Num <> NUM, so that num = Num + NUM is NOT num *= 2

    C Offline
    C Offline
    codemunkeh
    wrote on last edited by
    #66

    I could've sworn it didn't have it when I used it in .NET 2, odd.. And I meant VB when I said num *= 2. I was trying to highlight my gripe with my last (apparently inaccurate) experience of VB, how it lacks in things I like using. Sorry if that wasn't clear. Edit: definitely my bad. I had somehow confused *= with ++. I tried writing some VB about 5 minutes ago and automatically put ; at the end of every line. :doh:


    Ninja (the Nerd)
    Confused? You will be...

    modified on Wednesday, August 19, 2009 6:23 AM

    1 Reply Last reply
    0
    • T Todd Smith

      What programming terms would you consider equivalent to foul language? For example: Legacy Code

      Todd Smith

      B Offline
      B Offline
      BillWoodruff
      wrote on last edited by
      #67

      "Specification." best, Bill

      "Many : not conversant with mathematical studies, imagine that because it [the Analytical Engine] is to give results in numerical notation, its processes must consequently be arithmetical, numerical, rather than algebraical and analytical. This is an error. The engine can arrange and combine numerical quantities as if they were letters or any other general symbols; and it fact it might bring out its results in algebraical notation, were provisions made accordingly." Ada, Countess Lovelace, 1844

      1 Reply Last reply
      0
      • T Todd Smith

        What programming terms would you consider equivalent to foul language? For example: Legacy Code

        Todd Smith

        C Offline
        C Offline
        CodeGimp
        wrote on last edited by
        #68

        Maximisation of ROI through n-tier component technology throughout the distributed heterogenous client-server environment

        1 Reply Last reply
        0
        • T Todd Smith

          What programming terms would you consider equivalent to foul language? For example: Legacy Code

          Todd Smith

          L Offline
          L Offline
          Lucien0
          wrote on last edited by
          #69

          Todd Smith wrote:

          What programming terms would you consider equivalent to foul language? For example:

          Code without comments. I think it's synonymous with talking at you, rather than with you. Rude. Leaving compiler warnings in a build. Which speaks so much about the character of the programmer. Lazy, like koalas. Luc

          1 Reply Last reply
          0
          • I Ian Shlasko

            Drop the semi-colon? And be forced _ to resort to VB's _ horrible style of _ line continuations!?!? No thanks. Though the case sensitivity... I wouldn't have to deal with code where people name the private variables the same as the exposed properties, with just case differences... Or better yet, gems like:

            int num = Num + NUM;

            Thankfully, I've never actually seen a line that bad, but imagine a program written like that... There's something you can't do in VB.

            Proud to have finally moved to the A-Ark. Which one are you in? Developer, Author (Guardians of Xen)

            S Offline
            S Offline
            Seth Rowe
            wrote on last edited by
            #70

            Ian Shlasko wrote:

            Drop the semi-colon? And be forced _ to resort to VB's _ horrible style of _ line continuations!?!?

            Of course with the release of Visual Studio 2010, VB will be getting implicit line continuation for most areas :-) Thanks, Seth Rowe [MVP]

            D 1 Reply Last reply
            0
            • V Vikram A Punathambekar

              Really? I loved checked exceptions when I was programming in Java. I have the backing of at least one more highly-respected CPian. :)

              Cheers, Vikram. (Proud to have finally cracked a CCC!)

              D Offline
              D Offline
              Daniel Vaughan
              wrote on last edited by
              #71

              Me too. When they are used properly.

              Daniel Vaughan Blog: DanielVaughan.Orpius.com

              1 Reply Last reply
              0
              • J jeron1

                goto X|

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

                I agree with that, despite knowing that at Assembly level, that's exactly what your code will do.

                J 1 Reply Last reply
                0
                • M Mustafa Ismail Mustafa

                  Throws, as in the Java notation :thumbsdown:

                  If the post was helpful, please vote, eh! Current activities: Book: Devils by Fyodor Dostoyevsky Project: Hospital Automation, final stage Learning: Image analysis, LINQ Now and forever, defiant to the end. What is Multiple Sclerosis[^]?

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

                  This is the only thing about JAVA that I miss wish to be in C#. This is very useful when you're using other people's libraries. You get know what to catch, without needing a very well documented library.

                  D C 2 Replies Last reply
                  0
                  • F Fabio Franco

                    This is the only thing about JAVA that I miss wish to be in C#. This is very useful when you're using other people's libraries. You get know what to catch, without needing a very well documented library.

                    D Offline
                    D Offline
                    Dan Neely
                    wrote on last edited by
                    #74

                    .... right up until something changes in the library and it can throw a new exception at which point the library author has to either break every single app that consumes it, cast the new exception into a different type defeating the purpose of typed exceptions in the first place, or just have every method throw exception from the start defeating the purpose of checked exceptions from the start. X|

                    The European Way of War: Blow your own continent up. The American Way of War: Go over and help them.

                    F V 2 Replies Last reply
                    0
                    • B Brady Kelly

                      I like writing documents. :)

                      D Offline
                      D Offline
                      Daniel Vaughan
                      wrote on last edited by
                      #75

                      Me too.

                      Daniel Vaughan Blog: DanielVaughan.Orpius.com

                      1 Reply Last reply
                      0
                      • S Seth Rowe

                        Ian Shlasko wrote:

                        Drop the semi-colon? And be forced _ to resort to VB's _ horrible style of _ line continuations!?!?

                        Of course with the release of Visual Studio 2010, VB will be getting implicit line continuation for most areas :-) Thanks, Seth Rowe [MVP]

                        D Offline
                        D Offline
                        Dan Neely
                        wrote on last edited by
                        #76

                        *cringe* I can just imagine the number of urgent doubts that will be flooding the forums whenever the implicit guessing fails. :doh:

                        The European Way of War: Blow your own continent up. The American Way of War: Go over and help them.

                        1 Reply Last reply
                        0
                        • N Nougat H

                          something something {

                          more of that something

                          }

                          I know some like this kind of brace style but personally I can't stand it at all. It goes so far that I tend to reformat a piece of code with this brace style before reading it :-D.

                          ____________________________ I didn't know what to put in here.

                          D Offline
                          D Offline
                          Dan Neely
                          wrote on last edited by
                          #77

                          Yeah there's nothing quite like naming your churchcult after the name of the authors who weren't able to convince their publisher that reformatting their code like that to save on printing costs wasn't a good idea. :rolleyes:

                          The European Way of War: Blow your own continent up. The American Way of War: Go over and help them.

                          1 Reply Last reply
                          0
                          • B Brady Kelly

                            I like writing documents. :)

                            D Offline
                            D Offline
                            Dan Neely
                            wrote on last edited by
                            #78

                            ... and exile you to management for all of eternity.

                            The European Way of War: Blow your own continent up. The American Way of War: Go over and help them.

                            1 Reply Last reply
                            0
                            • D Dan Neely

                              .... right up until something changes in the library and it can throw a new exception at which point the library author has to either break every single app that consumes it, cast the new exception into a different type defeating the purpose of typed exceptions in the first place, or just have every method throw exception from the start defeating the purpose of checked exceptions from the start. X|

                              The European Way of War: Blow your own continent up. The American Way of War: Go over and help them.

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

                              That might happen even if you don't have typed exceptions. And we will always have the option of handling a base exception, which covers all exceptions for cases like this.

                              1 Reply Last reply
                              0
                              • F Fabio Franco

                                This is the only thing about JAVA that I miss wish to be in C#. This is very useful when you're using other people's libraries. You get know what to catch, without needing a very well documented library.

                                C Offline
                                C Offline
                                csharphacker
                                wrote on last edited by
                                #80

                                You do realize you can mark up which exceptions are thrown in XML comments? I forget if that junk shows up in the intellisense though...

                                P 1 Reply Last reply
                                0
                                • P Pete OHanlon

                                  Gosub On Error Resume Next

                                  "WPF has many lovers. It's a veritable porn star!" - Josh Smith

                                  As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.

                                  My blog | My articles | MoXAML PowerToys | Onyx

                                  D Offline
                                  D Offline
                                  DiscoJimmy
                                  wrote on last edited by
                                  #81

                                  Amen. Any language that uses VB6 style exception handling should be outlawed. Gives me a headache every time I try to read it.

                                  1 Reply Last reply
                                  0
                                  • T Todd Smith

                                    What programming terms would you consider equivalent to foul language? For example: Legacy Code

                                    Todd Smith

                                    D Offline
                                    D Offline
                                    Delphi4ever
                                    wrote on last edited by
                                    #82

                                    Spagetti code. "Budding" code. "Moulded" code (large sections commented out). Quick fix X|

                                    1 Reply Last reply
                                    0
                                    • T Todd Smith

                                      What programming terms would you consider equivalent to foul language? For example: Legacy Code

                                      Todd Smith

                                      B Offline
                                      B Offline
                                      Bob work
                                      wrote on last edited by
                                      #83

                                      VBA: On Error Resume Next DoEvents

                                      -Bob

                                      1 Reply Last reply
                                      0
                                      • D dmitri_sps

                                        Kidding ? :omg: Coding without it is like using FORTRAN: do not catch anything, or enclose all code in try/catch, just in case ;P

                                        E Offline
                                        E Offline
                                        ely_bob
                                        wrote on last edited by
                                        #84

                                        You should be able to code it without raising exceptions.. if you can't you should go back to school. :)

                                        1 Reply Last reply
                                        0
                                        • I Ian Shlasko

                                          Drop the semi-colon? And be forced _ to resort to VB's _ horrible style of _ line continuations!?!? No thanks. Though the case sensitivity... I wouldn't have to deal with code where people name the private variables the same as the exposed properties, with just case differences... Or better yet, gems like:

                                          int num = Num + NUM;

                                          Thankfully, I've never actually seen a line that bad, but imagine a program written like that... There's something you can't do in VB.

                                          Proud to have finally moved to the A-Ark. Which one are you in? Developer, Author (Guardians of Xen)

                                          E Offline
                                          E Offline
                                          ely_bob
                                          wrote on last edited by
                                          #85

                                          GOD, I FUC^N HATE THAT and they do it in textbooks, tutorials, samples --- yeah that's right Microsoft I'm talking to you.... I propose anyone caught doing this gets paper cuts on the tips of all of their digits... that will teach them. (try typing now you sick B@$$+@rd$ I slept last night so i feel good today, try me again in 24 hours I won't be so plucky.

                                          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