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. I'm a DLSC...you?

I'm a DLSC...you?

Scheduled Pinned Locked Moved The Lounge
phpcssdatabasecomalgorithms
41 Posts 30 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.
  • C Christian Graus

    I'm a DLSB. I reckon question 12 made me different to you Question 12: What is the 'better' implementation: int main() { printf("5+6=%d", 5+6 ); return 0; } //////////////////////////////////////////////// // AddNumbers // param1 firstParam - The first value to add // param2 secondParam - The second value to add // return - The firstParam added to secondParam // int AddNumbers( int firstParam, int secondParam ) { // Here is some info int theReturn = firstParam + secondParam; // Now return the value return theReturn; } // Entry for program int main() { // Initialize variables int firstParam = 5; int secondParam = 6; // Call the function int returnValue = AddNumbers( firstParam, secondParam ); // Print out the value printf("%d+%d=%d", firstParam, secondParam, returnValue ); return 0; } I said the second because I like to see things refactored into small, reusable methods. I wasn't so keen on all of example 2, it had way too many comments. 'Initialize variables' ? Give me a break, if you can't work out that's what's going on, you should turn off the computer, or at least stop reading code.

    Christian Graus - Microsoft MVP - C++ Metal Musings - Rex and my new metal blog "I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )

    E Offline
    E Offline
    ednrgc
    wrote on last edited by
    #10

    I thought about that one myself. It was a choice of hard coding, or reinventing the wheel. A go-between would have been to change the main declaration to: int main(int argc, char *argv[]) Then sum ALL parameters passed into it in a function.

    1 Reply Last reply
    0
    • C Cedric Moonen

      PHSB Planner High-level Solo liBeral


      Cédric Moonen Software developer
      Charting control [v1.2]

      P Offline
      P Offline
      Psycho Coder Extreme
      wrote on last edited by
      #11

      Your programmer personality type is: DHSB You're a Doer. You are very quick at getting tasks done. You believe the outcome is the most important part of a task and the faster you can reach that outcome the better. After all, time is money. You like coding at a High level. The world is made up of objects and components, you should create your programs in the same way. You work best in a Solo situation. The best way to program is by yourself. There's no communication problems, you know every part of the code allowing you to write the best programs possible. You are a liBeral programmer. Programming is a complex task and you should use white space and comments as freely as possible to help simplify the task. We're not writing on paper anymore so we can take up as much room as we need.

      "Okay, I give up: which is NOT a real programming language????" Michael Bergman

      "Well yes, it is an Integer, but it's a metrosexual Integer. For all we know, under all that hair gel it could be a Boolean." Tom Welch

      "Let's face it, the average computer user has the brain of a Spider Monkey." Bill Gates

      1 Reply Last reply
      0
      • E ednrgc

        I took this programming evaluation and I'm a DLSC Clickety[^] You're a Doer. You are very quick at getting tasks done. You believe the outcome is the most important part of a task and the faster you can reach that outcome the better. After all, time is money. You like coding at a Low level. You're from the old school of programming and believe that you should have an intimate relationship with the computer. You don't mind juggling registers around and spending hours getting a 5% performance increase in an algorithm. You work best in a Solo situation. The best way to program is by yourself. There's no communication problems, you know every part of the code allowing you to write the best programs possible. You are a Conservative programmer. The less code you write, the less chance there is of it containing a bug. You write short and to the point code that gets the job done efficiently.

        M Offline
        M Offline
        Marc Clifton
        wrote on last edited by
        #12

        You're a Doer. You are very quick at getting tasks done. You believe the outcome is the most important part of a task and the faster you can reach that outcome the better. After all, time is money. You like coding at a High level. The world is made up of objects and components, you should create your programs in the same way. You work best in a Solo situation. The best way to program is by yourself. There's no communication problems, you know every part of the code allowing you to write the best programs possible. You are a liBeral programmer. Programming is a complex task and you should use white space and comments as freely as possible to help simplify the task. We're not writing on paper anymore so we can take up as much room as we need.

        Thyme In The Country
        Interacx
        My Blog

        L I V 3 Replies Last reply
        0
        • E ednrgc

          I took this programming evaluation and I'm a DLSC Clickety[^] You're a Doer. You are very quick at getting tasks done. You believe the outcome is the most important part of a task and the faster you can reach that outcome the better. After all, time is money. You like coding at a Low level. You're from the old school of programming and believe that you should have an intimate relationship with the computer. You don't mind juggling registers around and spending hours getting a 5% performance increase in an algorithm. You work best in a Solo situation. The best way to program is by yourself. There's no communication problems, you know every part of the code allowing you to write the best programs possible. You are a Conservative programmer. The less code you write, the less chance there is of it containing a bug. You write short and to the point code that gets the job done efficiently.

          E Offline
          E Offline
          Ed Poore
          wrote on last edited by
          #13

          Same, DLSC

          1 Reply Last reply
          0
          • E ednrgc

            I took this programming evaluation and I'm a DLSC Clickety[^] You're a Doer. You are very quick at getting tasks done. You believe the outcome is the most important part of a task and the faster you can reach that outcome the better. After all, time is money. You like coding at a Low level. You're from the old school of programming and believe that you should have an intimate relationship with the computer. You don't mind juggling registers around and spending hours getting a 5% performance increase in an algorithm. You work best in a Solo situation. The best way to program is by yourself. There's no communication problems, you know every part of the code allowing you to write the best programs possible. You are a Conservative programmer. The less code you write, the less chance there is of it containing a bug. You write short and to the point code that gets the job done efficiently.

            S Offline
            S Offline
            szukuro
            wrote on last edited by
            #14

            PHTC

            1 Reply Last reply
            0
            • N Nemanja Trifunovic

              :) Your programmer personality type is: DLTB You're a Doer. You are very quick at getting tasks done. You believe the outcome is the most important part of a task and the faster you can reach that outcome the better. After all, time is money. You like coding at a Low level. You're from the old school of programming and believe that you should have an intimate relationship with the computer. You don't mind juggling registers around and spending hours getting a 5% performance increase in an algorithm. You work best in a Team. A good group is better than the sum of it's parts. The only thing better than a genius programmer is a cohesive group of genius programmers. You are a liBeral programmer. Programming is a complex task and you should use white space and comments as freely as possible to help simplify the task. We're not writing on paper anymore so we can take up as much room as we need.


              Programming Blog utf8-cpp

              B Offline
              B Offline
              Brady Kelly
              wrote on last edited by
              #15

              DHSB.

              1 Reply Last reply
              0
              • J Jorgen Sigvardsson

                DLSB :)

                You are a liBeral programmer.
                Programming is a complex task and you should use white space and comments as freely as possible to help simplify the task. We're not writing on paper anymore so we can take up as much room as we need.

                I bet Stan's gonna call me a Marxist coder. :->

                H Offline
                H Offline
                hairy_hats
                wrote on last edited by
                #16

                Me too. I got annoyed that the C# IDE removes spaces so

                fred( 3, 4 )

                becomes

                fred(3, 4)

                but I'm starting to get used to it.

                J 1 Reply Last reply
                0
                • H hairy_hats

                  Me too. I got annoyed that the C# IDE removes spaces so

                  fred( 3, 4 )

                  becomes

                  fred(3, 4)

                  but I'm starting to get used to it.

                  J Offline
                  J Offline
                  Jorgen Sigvardsson
                  wrote on last edited by
                  #17

                  I use spaces (in combination with tabs!) to make pretty layouts. :-D (My white space style is the latter of your two examples)

                  H 1 Reply Last reply
                  0
                  • E ednrgc

                    I took this programming evaluation and I'm a DLSC Clickety[^] You're a Doer. You are very quick at getting tasks done. You believe the outcome is the most important part of a task and the faster you can reach that outcome the better. After all, time is money. You like coding at a Low level. You're from the old school of programming and believe that you should have an intimate relationship with the computer. You don't mind juggling registers around and spending hours getting a 5% performance increase in an algorithm. You work best in a Solo situation. The best way to program is by yourself. There's no communication problems, you know every part of the code allowing you to write the best programs possible. You are a Conservative programmer. The less code you write, the less chance there is of it containing a bug. You write short and to the point code that gets the job done efficiently.

                    L Offline
                    L Offline
                    leckey 0
                    wrote on last edited by
                    #18

                    You're a Planner. You may be slow, but you'll usually find the best solution. If something's worth doing, it's worth doing right. You like coding at a High level. The world is made up of objects and components, you should create your programs in the same way. You work best in a Solo situation. The best way to program is by yourself. There's no communication problems, you know every part of the code allowing you to write the best programs possible. You are a liBeral programmer. Programming is a complex task and you should use white space and comments as freely as possible to help simplify the task. We're not writing on paper anymore so we can take up as much room as we need.

                    ______________________ stuff + cats = awesome

                    1 Reply Last reply
                    0
                    • M Marc Clifton

                      You're a Doer. You are very quick at getting tasks done. You believe the outcome is the most important part of a task and the faster you can reach that outcome the better. After all, time is money. You like coding at a High level. The world is made up of objects and components, you should create your programs in the same way. You work best in a Solo situation. The best way to program is by yourself. There's no communication problems, you know every part of the code allowing you to write the best programs possible. You are a liBeral programmer. Programming is a complex task and you should use white space and comments as freely as possible to help simplify the task. We're not writing on paper anymore so we can take up as much room as we need.

                      Thyme In The Country
                      Interacx
                      My Blog

                      L Offline
                      L Offline
                      leckey 0
                      wrote on last edited by
                      #19

                      I'm the same category as Marc? Woo-hoo!:cool:

                      ______________________ stuff + cats = awesome

                      S 1 Reply Last reply
                      0
                      • E ednrgc

                        I took this programming evaluation and I'm a DLSC Clickety[^] You're a Doer. You are very quick at getting tasks done. You believe the outcome is the most important part of a task and the faster you can reach that outcome the better. After all, time is money. You like coding at a Low level. You're from the old school of programming and believe that you should have an intimate relationship with the computer. You don't mind juggling registers around and spending hours getting a 5% performance increase in an algorithm. You work best in a Solo situation. The best way to program is by yourself. There's no communication problems, you know every part of the code allowing you to write the best programs possible. You are a Conservative programmer. The less code you write, the less chance there is of it containing a bug. You write short and to the point code that gets the job done efficiently.

                        T Offline
                        T Offline
                        Tim Carmichael
                        wrote on last edited by
                        #20

                        DHTB You're a Doer. You are very quick at getting tasks done. You believe the outcome is the most important part of a task and the faster you can reach that outcome the better. After all, time is money. You like coding at a High level. The world is made up of objects and components, you should create your programs in the same way. You work best in a Team. A good group is better than the sum of it's parts. The only thing better than a genius programmer is a cohesive group of genius programmers. You are a liBeral programmer. Programming is a complex task and you should use white space and comments as freely as possible to help simplify the task. We're not writing on paper anymore so we can take up as much room as we need. Interesting test, but, for my money, the questions are too extreme in their answers... I'd prefer question with 'on a scale from...' Tim

                        1 Reply Last reply
                        0
                        • E ednrgc

                          I took this programming evaluation and I'm a DLSC Clickety[^] You're a Doer. You are very quick at getting tasks done. You believe the outcome is the most important part of a task and the faster you can reach that outcome the better. After all, time is money. You like coding at a Low level. You're from the old school of programming and believe that you should have an intimate relationship with the computer. You don't mind juggling registers around and spending hours getting a 5% performance increase in an algorithm. You work best in a Solo situation. The best way to program is by yourself. There's no communication problems, you know every part of the code allowing you to write the best programs possible. You are a Conservative programmer. The less code you write, the less chance there is of it containing a bug. You write short and to the point code that gets the job done efficiently.

                          L Offline
                          L Offline
                          leppie
                          wrote on last edited by
                          #21

                          I dunno about the D part, but the rest is me too :p Instead of a Doer, I think I am an obsessive thinker, so I can code less and more correct, yet expose more functionality (wow that almost sounds like marketing lingo :p)

                          **

                          xacc.ide-0.2.0.57 - now with C# 2.0 parser and seamless VS2005 solution support!

                          **

                          1 Reply Last reply
                          0
                          • C Christian Graus

                            I'm a DLSB. I reckon question 12 made me different to you Question 12: What is the 'better' implementation: int main() { printf("5+6=%d", 5+6 ); return 0; } //////////////////////////////////////////////// // AddNumbers // param1 firstParam - The first value to add // param2 secondParam - The second value to add // return - The firstParam added to secondParam // int AddNumbers( int firstParam, int secondParam ) { // Here is some info int theReturn = firstParam + secondParam; // Now return the value return theReturn; } // Entry for program int main() { // Initialize variables int firstParam = 5; int secondParam = 6; // Call the function int returnValue = AddNumbers( firstParam, secondParam ); // Print out the value printf("%d+%d=%d", firstParam, secondParam, returnValue ); return 0; } I said the second because I like to see things refactored into small, reusable methods. I wasn't so keen on all of example 2, it had way too many comments. 'Initialize variables' ? Give me a break, if you can't work out that's what's going on, you should turn off the computer, or at least stop reading code.

                            Christian Graus - Microsoft MVP - C++ Metal Musings - Rex and my new metal blog "I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )

                            realJSOPR Offline
                            realJSOPR Offline
                            realJSOP
                            wrote on last edited by
                            #22

                            Me too - DLSB

                            "Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997
                            -----
                            "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001

                            1 Reply Last reply
                            0
                            • E ednrgc

                              I took this programming evaluation and I'm a DLSC Clickety[^] You're a Doer. You are very quick at getting tasks done. You believe the outcome is the most important part of a task and the faster you can reach that outcome the better. After all, time is money. You like coding at a Low level. You're from the old school of programming and believe that you should have an intimate relationship with the computer. You don't mind juggling registers around and spending hours getting a 5% performance increase in an algorithm. You work best in a Solo situation. The best way to program is by yourself. There's no communication problems, you know every part of the code allowing you to write the best programs possible. You are a Conservative programmer. The less code you write, the less chance there is of it containing a bug. You write short and to the point code that gets the job done efficiently.

                              Steve EcholsS Offline
                              Steve EcholsS Offline
                              Steve Echols
                              wrote on last edited by
                              #23

                              B for my liberal use of whitespace (the older I get the more I need).


                              - S 50 cups of coffee and you know it's on!

                              • S
                                50 cups of coffee and you know it's on!
                                Code, follow, or get out of the way.
                              L 1 Reply Last reply
                              0
                              • L leckey 0

                                I'm the same category as Marc? Woo-hoo!:cool:

                                ______________________ stuff + cats = awesome

                                S Offline
                                S Offline
                                sw thi
                                wrote on last edited by
                                #24

                                (PHSB != DHSB) ;p

                                "a child will grow up to become an adult, but you can never stop the adult from acting like a child"

                                L 1 Reply Last reply
                                0
                                • E ednrgc

                                  I took this programming evaluation and I'm a DLSC Clickety[^] You're a Doer. You are very quick at getting tasks done. You believe the outcome is the most important part of a task and the faster you can reach that outcome the better. After all, time is money. You like coding at a Low level. You're from the old school of programming and believe that you should have an intimate relationship with the computer. You don't mind juggling registers around and spending hours getting a 5% performance increase in an algorithm. You work best in a Solo situation. The best way to program is by yourself. There's no communication problems, you know every part of the code allowing you to write the best programs possible. You are a Conservative programmer. The less code you write, the less chance there is of it containing a bug. You write short and to the point code that gets the job done efficiently.

                                  S Offline
                                  S Offline
                                  sw thi
                                  wrote on last edited by
                                  #25

                                  Me too DLSC

                                  "a child will grow up to become an adult, but you can never stop the adult from acting like a child"

                                  1 Reply Last reply
                                  0
                                  • Steve EcholsS Steve Echols

                                    B for my liberal use of whitespace (the older I get the more I need).


                                    - S 50 cups of coffee and you know it's on!

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

                                    Hey, me too man !


                                    Kicking squealing Gucci little piggy.
                                    The Rob Blog

                                    1 Reply Last reply
                                    0
                                    • J Jorgen Sigvardsson

                                      I use spaces (in combination with tabs!) to make pretty layouts. :-D (My white space style is the latter of your two examples)

                                      H Offline
                                      H Offline
                                      hairy_hats
                                      wrote on last edited by
                                      #27

                                      I also get pi$$ed off with the way C# reorganises my carefully aligned equals signs. :mad:

                                      J T 2 Replies Last reply
                                      0
                                      • H hairy_hats

                                        I also get pi$$ed off with the way C# reorganises my carefully aligned equals signs. :mad:

                                        J Offline
                                        J Offline
                                        Jorgen Sigvardsson
                                        wrote on last edited by
                                        #28

                                        My blood would be boiling!!!

                                        1 Reply Last reply
                                        0
                                        • C Christian Graus

                                          I'm a DLSB. I reckon question 12 made me different to you Question 12: What is the 'better' implementation: int main() { printf("5+6=%d", 5+6 ); return 0; } //////////////////////////////////////////////// // AddNumbers // param1 firstParam - The first value to add // param2 secondParam - The second value to add // return - The firstParam added to secondParam // int AddNumbers( int firstParam, int secondParam ) { // Here is some info int theReturn = firstParam + secondParam; // Now return the value return theReturn; } // Entry for program int main() { // Initialize variables int firstParam = 5; int secondParam = 6; // Call the function int returnValue = AddNumbers( firstParam, secondParam ); // Print out the value printf("%d+%d=%d", firstParam, secondParam, returnValue ); return 0; } I said the second because I like to see things refactored into small, reusable methods. I wasn't so keen on all of example 2, it had way too many comments. 'Initialize variables' ? Give me a break, if you can't work out that's what's going on, you should turn off the computer, or at least stop reading code.

                                          Christian Graus - Microsoft MVP - C++ Metal Musings - Rex and my new metal blog "I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )

                                          S Offline
                                          S Offline
                                          Stuart Dootson
                                          wrote on last edited by
                                          #29

                                          Christian Graus wrote:

                                          I said the second because I like to see things refactored into small, reusable methods.

                                          See, that's why I like functional programming - everything's a function - even operators - and they're all composable. So, if I wanted to apply summation to a list of numbers, I can use

                                          sumNumbers
                                          

                                          or, taking advantage of partial function application,

                                          sumNumbers = foldl (+) 0
                                          

                                          gives you a function that'll take a list of numbers. Want to read numbers from strings and sum them? Easy:

                                          sumNumberStrings = sumNumbers . map (read :: String -> Integer)
                                          

                                          (the :: String -> Integer is there because my favourite functional language, Haskell, is strictly typed, and read is polymorphic). OK, I'll shut up - I'm just a (dis)functional freak.

                                          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