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 just submitted my first article... [modified]

I just submitted my first article... [modified]

Scheduled Pinned Locked Moved The Lounge
data-structuresjsonquestion
29 Posts 13 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.
  • M Marc Clifton

    Very nice! I soooo want to b*tch about the use of "this." everywhere, but I'll refrain. Oops! Marc :-O

    Will work for food. Interacx

    I'm not overthinking the problem, I just felt like I needed a small, unimportant, uninteresting rant! - Martin Hart Turner

    N Offline
    N Offline
    Nish Nishant
    wrote on last edited by
    #19

    Marc Clifton wrote:

    I soooo want to b*tch about the use of "this." everywhere, but I'll refrain.

    What's wrong with that? It's even a Style Cop guideline :-)

    Regards, Nish


    Nish’s thoughts on MFC, C++/CLI and .NET (my blog)
    My latest book : C++/CLI in Action / Amazon.com link

    T 1 Reply Last reply
    0
    • P PIEBALDconsult

      Exactly; like specifying access modifiers when they're not needed. But I thought I was the only one who did that.

      R Offline
      R Offline
      RichardM1
      wrote on last edited by
      #20

      Remember FORTRAN? (You might not. How old are you? :-O ) REAL was any variable that started with a letter in the set A-H, O-Z INTEGER any that started in the set I-N The compiler will figure out what I meant, no need to spell it out. The next guy on it is at least as smart as me. Otherwise he would be doing boring original code instead of exciting maintenance. He can figure it out the first time second time, every time 60% of the time. ;P So, how is _not_ using access modifiers any different from not specifying the type of a variable in VB? Ha, ha, just truthing. :laugh: Actually, maintenance CAN be exciting. But not usually in a good way. :~ And you clearly didn't hit a nerve with me. X|

      Opacity, the new Transparency.

      P D 2 Replies Last reply
      0
      • N Nish Nishant

        Marc Clifton wrote:

        I soooo want to b*tch about the use of "this." everywhere, but I'll refrain.

        What's wrong with that? It's even a Style Cop guideline :-)

        Regards, Nish


        Nish’s thoughts on MFC, C++/CLI and .NET (my blog)
        My latest book : C++/CLI in Action / Amazon.com link

        T Offline
        T Offline
        The Real Geek
        wrote on last edited by
        #21

        True - more people should use StyleCop.

        R 1 Reply Last reply
        0
        • M Marc Clifton

          Very nice! I soooo want to b*tch about the use of "this." everywhere, but I'll refrain. Oops! Marc :-O

          Will work for food. Interacx

          I'm not overthinking the problem, I just felt like I needed a small, unimportant, uninteresting rant! - Martin Hart Turner

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

          I insist on using it, especially if the guy that doesn't do it also doesn't use "m_" to indicate member variables in a class. That's the only way you can really discern local method vars from global class vars...

          .45 ACP - because shooting twice is just silly
          -----
          "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." - J. Jystad, 2001

          1 Reply Last reply
          0
          • T The Real Geek

            True - more people should use StyleCop.

            R Offline
            R Offline
            realJSOP
            wrote on last edited by
            #23

            It's almost impossible to get a clean run with style cop... I stopped using it for that very reason. EDIT - It may be FXCop I'm thinking of... In any case, I try to avoid cops...

            .45 ACP - because shooting twice is just silly
            -----
            "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." - J. Jystad, 2001

            T 1 Reply Last reply
            0
            • A Adam Maras

              I just updated the article to include VB.NET code, so if you want to bitch about the use of "Me." everywhere, you can do that too :-D

              Adam Maras | Software Developer Microsoft Certified Professional Developer

              R Offline
              R Offline
              realJSOP
              wrote on last edited by
              #24

              Adam Maras wrote:

              I just updated the article to include VB.NET code

              But why ruin the article?

              .45 ACP - because shooting twice is just silly
              -----
              "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." - J. Jystad, 2001

              1 Reply Last reply
              0
              • A Adam Maras

                I just updated the article to include VB.NET code, so if you want to bitch about the use of "Me." everywhere, you can do that too :-D

                Adam Maras | Software Developer Microsoft Certified Professional Developer

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

                Adam Maras wrote:

                I just updated the article to include VB.NET code, so if you want to bitch about the use of "Me." everywhere, you can do that too

                Hehe. Somebody should make a spoof on the Beatles' song. "I, me, me, this" Marc

                Will work for food. Interacx

                I'm not overthinking the problem, I just felt like I needed a small, unimportant, uninteresting rant! - Martin Hart Turner

                1 Reply Last reply
                0
                • R realJSOP

                  It's almost impossible to get a clean run with style cop... I stopped using it for that very reason. EDIT - It may be FXCop I'm thinking of... In any case, I try to avoid cops...

                  .45 ACP - because shooting twice is just silly
                  -----
                  "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." - J. Jystad, 2001

                  T Offline
                  T Offline
                  The Real Geek
                  wrote on last edited by
                  #26

                  FXCop - which deals with compiled code - can be a PITA, but it does catch some nice things (like int overflow). StyleCop only deals with source code - what it looks like and the order of items in a file. The Law

                  1 Reply Last reply
                  0
                  • R RichardM1

                    Remember FORTRAN? (You might not. How old are you? :-O ) REAL was any variable that started with a letter in the set A-H, O-Z INTEGER any that started in the set I-N The compiler will figure out what I meant, no need to spell it out. The next guy on it is at least as smart as me. Otherwise he would be doing boring original code instead of exciting maintenance. He can figure it out the first time second time, every time 60% of the time. ;P So, how is _not_ using access modifiers any different from not specifying the type of a variable in VB? Ha, ha, just truthing. :laugh: Actually, maintenance CAN be exciting. But not usually in a good way. :~ And you clearly didn't hit a nerve with me. X|

                    Opacity, the new Transparency.

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

                    RichardM1 wrote:

                    Remember FORTRAN?

                    I had one semester of it in 1987.

                    RichardM1 wrote:

                    REAL was any variable that started with a letter in the set A-H, O-Z INTEGER any that started in the set I-N

                    Yeah, that's about all I remember of it. That's all fine when you have only two or three datatypes. Now we have billions and billions with more created every day. And did you check out the Go language?

                    1 Reply Last reply
                    0
                    • R RichardM1

                      Remember FORTRAN? (You might not. How old are you? :-O ) REAL was any variable that started with a letter in the set A-H, O-Z INTEGER any that started in the set I-N The compiler will figure out what I meant, no need to spell it out. The next guy on it is at least as smart as me. Otherwise he would be doing boring original code instead of exciting maintenance. He can figure it out the first time second time, every time 60% of the time. ;P So, how is _not_ using access modifiers any different from not specifying the type of a variable in VB? Ha, ha, just truthing. :laugh: Actually, maintenance CAN be exciting. But not usually in a good way. :~ And you clearly didn't hit a nerve with me. X|

                      Opacity, the new Transparency.

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

                      I spent an hour porting a small fortran program into C++; and a few minutes replacing a half dozen user input values in a much larger one with hard coded ones to reduce the pain involved in trying to tune my model to fit. Broadly speaking I had to find the peak of a curved ridge by changing the X and Y values and rerunning the program, anywhere other than the optimum point the model failed. This took an hour or two per set of fixed initial conditions because one model didn't work until I tuned the user configurable values to 11 digits of combined precision; the second took 13. X and Y needed to be keyed in for each run; most of my classmates were also keying in U(?), V, W, and Z as well with each iteration.

                      3x12=36 2x12=24 1x12=12 0x12=18

                      1 Reply Last reply
                      0
                      • A Adam Maras

                        ...so, how should I celebrate? I'm torn between getting off the computer and giving my eyes a rest and sitting on CP and Stack Overflow answering questions.

                        Adam Maras | Software Developer Microsoft Certified Professional Developer

                        modified on Tuesday, December 1, 2009 8:00 PM

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

                        Congratulations.

                        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