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. Save me from C programmers who think they know C++

Save me from C programmers who think they know C++

Scheduled Pinned Locked Moved The Lounge
c++help
22 Posts 14 Posters 2 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.
  • N Nelek

    You might use soccer boots to kick their asses instead... :rolleyes: :laugh:

    M.D.V. ;) If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about? Help me to understand what I'm saying, and I'll explain it better to you Rating helpful answers is nice, but saying thanks can be even nicer.

    T Offline
    T Offline
    Tomaz Stih 0
    wrote on last edited by
    #11

    Or just give'em Python, JavaScript, or other toys for children.

    1 Reply Last reply
    0
    • Sander RosselS Sander Rossel

      Save me from people who think they know programming... The first two examples are VB, all the others are C#, so don't give me that C# is better than VB crap X| 4k+ lines of undocumented VB.NET code in a single WinForm, boasting over 80 fields at the top of the file :doh: An application that uses global variables for everything! Seriously, they set a global product name and use it in a form, then set it again to use it in another form (breaking the first form if it was ever refreshed, which was not possible, until it was X|). 40k+ tables in a single database, with no naming convention whatsoever. 1k+ lines in a single function with loops that are exactly the same, save they iterate over different entities that are functionally the same, but technically aren't. A report that showed 2000 users, but took 20 minutes to run, team couldn't get it faster until they hired me and I got it back to 3 seconds. Guy who called me a "little man", cost €100 an hour, but deleted my disposing statements because "the garbage collector handles it for you" and then broke production. Some guy who created twelve classes that looked exactly the same, but with different read-only property values instead of one class and instantiated that twelve times :omg: All different projects made by different people.

      Best, Sander Azure DevOps Succinctly (free eBook) Azure Serverless Succinctly (free eBook) Migrating Apps to the Cloud with Azure arrgh.js - Bringing LINQ to JavaScript

      C Offline
      C Offline
      charlieg
      wrote on last edited by
      #12

      In my case, I have upgrade files being generated with a very format specific requirement. Any comments as to why we're doing it this way? Nope. But I do have a comment that says "loop through the data." Sigh, I know that.

      Charlie Gilley <italic>Stuck in a dysfunctional matrix from which I must escape... "Where liberty dwells, there is my country." B. Franklin, 1783 “They who can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety.” BF, 1759

      Sander RosselS 1 Reply Last reply
      0
      • C charlieg

        In my case, I have upgrade files being generated with a very format specific requirement. Any comments as to why we're doing it this way? Nope. But I do have a comment that says "loop through the data." Sigh, I know that.

        Charlie Gilley <italic>Stuck in a dysfunctional matrix from which I must escape... "Where liberty dwells, there is my country." B. Franklin, 1783 “They who can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety.” BF, 1759

        Sander RosselS Offline
        Sander RosselS Offline
        Sander Rossel
        wrote on last edited by
        #13

        charlieg wrote:

        "loop through the data."

        I know a guy who commented every line of code like that :wtf: He read somewhere that commenting code is best practice and this guy, being who he is, took that very literally :sigh: Somehow that's the same guy who read about design patterns, but didn't believe they worked :doh: That's one of the people who should stop thinking he knows programming. Luckily, I don't work with him anymore.

        Best, Sander Azure DevOps Succinctly (free eBook) Azure Serverless Succinctly (free eBook) Migrating Apps to the Cloud with Azure arrgh.js - Bringing LINQ to JavaScript

        1 Reply Last reply
        0
        • C charlieg

          end rant :doh: only 7k lines of undocumented code with temp*this and temp*that. sigh

          Charlie Gilley <italic>Stuck in a dysfunctional matrix from which I must escape... "Where liberty dwells, there is my country." B. Franklin, 1783 “They who can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety.” BF, 1759

          P Offline
          P Offline
          PIEBALDconsult
          wrote on last edited by
          #14

          Oh, good, that's not me (I don't know C++).

          1 Reply Last reply
          0
          • D Daniel Pfeffer

            CodeWraith wrote:

            Greg Utas wrote:

            bass boats concrete boots

            Have you no concern for the environment?! The river- and ocean-beds will be covered with used concrete boots! :mad: :)

            Freedom is the freedom to say that two plus two make four. If that is granted, all else follows. -- 6079 Smith W.

            G Offline
            G Offline
            Gary R Wheeler
            wrote on last edited by
            #15

            I dunno. I can think of a few people who would be more useful as starter material for a reef.

            Software Zen: delete this;

            D 1 Reply Last reply
            0
            • CPalliniC CPallini

              Save me from assembly programmers writing C code. :-D

              "In testa che avete, Signor di Ceprano?" -- Rigoletto

              G Offline
              G Offline
              Gary R Wheeler
              wrote on last edited by
              #16

              Been there, did that, still making money at it :laugh: . I spent my early career in and out of various assembly languages, all microprocessor-based. Now that I think about it, I think learning assembly, then C, then C++, and finally C# has made me really appreciate each language as I learned them. Each language in turn provides a manner of expression that is more concise than its lower-level ancestor. If we are honest and not engaged in pointless optimization, we choose a language based upon the abstractions required to solve the problem at hand. That said, I have a project now that was originally written in assembly language for a custom-built embedded processor. When it was translated to C the programmer was learning C at the same time. As a result, the C code looks very much like the original assembly source. Everything's global and everybody touches everything. Somehow the original guy discovered the setjmp()/longjmp() abomination, and that adds to the fun.

              Software Zen: delete this;

              CPalliniC 1 Reply Last reply
              0
              • G Gary R Wheeler

                Been there, did that, still making money at it :laugh: . I spent my early career in and out of various assembly languages, all microprocessor-based. Now that I think about it, I think learning assembly, then C, then C++, and finally C# has made me really appreciate each language as I learned them. Each language in turn provides a manner of expression that is more concise than its lower-level ancestor. If we are honest and not engaged in pointless optimization, we choose a language based upon the abstractions required to solve the problem at hand. That said, I have a project now that was originally written in assembly language for a custom-built embedded processor. When it was translated to C the programmer was learning C at the same time. As a result, the C code looks very much like the original assembly source. Everything's global and everybody touches everything. Somehow the original guy discovered the setjmp()/longjmp() abomination, and that adds to the fun.

                Software Zen: delete this;

                CPalliniC Offline
                CPalliniC Offline
                CPallini
                wrote on last edited by
                #17

                Quote:

                When it was translated to C the programmer was learning C at the same time. As a result, the C code looks very much like the original assembly source. Everything's global and everybody touches everything.

                That's exactly what I have to deal with: 'casm' and it is an abomination. :-D

                "In testa che avete, Signor di Ceprano?" -- Rigoletto

                In testa che avete, signor di Ceprano?

                1 Reply Last reply
                0
                • G Gary R Wheeler

                  I dunno. I can think of a few people who would be more useful as starter material for a reef.

                  Software Zen: delete this;

                  D Offline
                  D Offline
                  Daniel Pfeffer
                  wrote on last edited by
                  #18

                  Gary R. Wheeler wrote:

                  people who would be more useful as starter material for a reef.

                  Given their accomplishments in life, their only accomplishments in death would be shipwrecks. :sigh:

                  Freedom is the freedom to say that two plus two make four. If that is granted, all else follows. -- 6079 Smith W.

                  1 Reply Last reply
                  0
                  • honey the codewitchH honey the codewitch

                    Honestly I think it's better to learn C++ without learning C first, otherwise Cisms leak into your code, and I say that as someone that learned C first.

                    Real programmers use butterflies

                    C Offline
                    C Offline
                    Chris Maunder
                    wrote on last edited by
                    #19

                    I still can't deal with snake_case_variables. It was my life for years but it still gives me the shivers. I've gone soft since my C++ days, obviously.

                    cheers Chris Maunder

                    honey the codewitchH 1 Reply Last reply
                    0
                    • C Chris Maunder

                      I still can't deal with snake_case_variables. It was my life for years but it still gives me the shivers. I've gone soft since my C++ days, obviously.

                      cheers Chris Maunder

                      honey the codewitchH Offline
                      honey the codewitchH Offline
                      honey the codewitch
                      wrote on last edited by
                      #20

                      Hey now! I use snake case in GFX. If it's good enough for the STL it's good enough for the rest of us. :laugh:

                      Real programmers use butterflies

                      C 1 Reply Last reply
                      0
                      • honey the codewitchH honey the codewitch

                        Hey now! I use snake case in GFX. If it's good enough for the STL it's good enough for the rest of us. :laugh:

                        Real programmers use butterflies

                        C Offline
                        C Offline
                        Chris Maunder
                        wrote on last edited by
                        #21

                        I'm going to write a VSCode addin that automatically converts snake case to FORTRAN case. ie every variable gets renamed to be a single letter. When all letters are used we start back at aa, ab etc

                        cheers Chris Maunder

                        1 Reply Last reply
                        0
                        • C charlieg

                          end rant :doh: only 7k lines of undocumented code with temp*this and temp*that. sigh

                          Charlie Gilley <italic>Stuck in a dysfunctional matrix from which I must escape... "Where liberty dwells, there is my country." B. Franklin, 1783 “They who can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety.” BF, 1759

                          E Offline
                          E Offline
                          etkid84
                          wrote on last edited by
                          #22

                          There used to be a website called CodingHorrors.com where people used to post samples of the abominations they would come across. Not sure if it's being maintained any more.

                          ~d~

                          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