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.
  • A AspDotNetDev

    PIEBALDconsult wrote:

    specifying access modifiers when they're not needed

    Yeah, same here. I never leave it as just "class SomeClass"... I always change it to "public class SomeClass" or "internal class SomeClass" or what have you. Same with members of the class. I feel it adds to readability. And since you can just group all the private variables together (I don't usually use variables on a class of any other access modifier), all the "private " parts line up vertically, and so can be skipped over by a reader fairly effeciently.

    PIEBALDconsult wrote:

    I thought I was the only one who did that

    Sorry, neither you nor I are special. :^)

    [Forum Guidelines]

    A Offline
    A Offline
    AspDotNetDev
    wrote on last edited by
    #12

    aspdotnetdev wrote:

    "private " parts

    aspdotnetdev wrote:

    I are special

    Just thought I'd beat you to the punch in case any of you wise guys were thinking of quoting me. ;P

    [Forum Guidelines]

    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

      A Offline
      A Offline
      Adam Maras
      wrote on last edited by
      #13

      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

      P R M 3 Replies 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

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

        Typically, by refreshing the page every 30 seconds, and falling into a state of hate, agony and despair on the first <=3 vote.

        Personally, I love the idea that Raymond spends his nights posting bad regexs to mailing lists under the pseudonym of Jane Smith. He'd be like a super hero, only more nerdy and less useful. [Trevel]
        | FoldWithUs! | sighist | µLaunch - program launcher for server core and hyper-v server

        M 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

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

          Huh, so first the was no "I" in "article", now there's "Me" all over it? :-D

          A 1 Reply Last reply
          0
          • P PIEBALDconsult

            Huh, so first the was no "I" in "article", now there's "Me" all over it? :-D

            A Offline
            A Offline
            Adam Maras
            wrote on last edited by
            #16

            :laugh:

            Adam Maras | Software Developer Microsoft Certified Professional Developer

            1 Reply Last reply
            0
            • P peterchen

              Typically, by refreshing the page every 30 seconds, and falling into a state of hate, agony and despair on the first <=3 vote.

              Personally, I love the idea that Raymond spends his nights posting bad regexs to mailing lists under the pseudonym of Jane Smith. He'd be like a super hero, only more nerdy and less useful. [Trevel]
              | FoldWithUs! | sighist | µLaunch - program launcher for server core and hyper-v server

              M Offline
              M Offline
              Mycroft Holmes
              wrote on last edited by
              #17

              <3 means the voter is identified and is asked for a comment, it's the random 3 votes that are the new univote. You can't bitch if the low vote is explained by a comment. I had one idiot vote all my articles down, presumably because I irritated him in the forums. The votes were removed but the chicken tracks are still there :laugh:

              Never underestimate the power of human stupidity RAH

              A 1 Reply Last reply
              0
              • M Mycroft Holmes

                <3 means the voter is identified and is asked for a comment, it's the random 3 votes that are the new univote. You can't bitch if the low vote is explained by a comment. I had one idiot vote all my articles down, presumably because I irritated him in the forums. The votes were removed but the chicken tracks are still there :laugh:

                Never underestimate the power of human stupidity RAH

                A Offline
                A Offline
                AspDotNetDev
                wrote on last edited by
                #18

                Mycroft Holmes wrote:

                <3

                Tough love.

                [Forum Guidelines]

                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

                  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