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. AARRGGHHHH!!!!!

AARRGGHHHH!!!!!

Scheduled Pinned Locked Moved The Lounge
comfunctionalquestion
58 Posts 27 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

    I absolutely despise when people say "oh, I'm using this because it reduces the amount of code I have to type". F**** me. If you don't like typing, why are you a programmer? I need a punching bag in my home-office. Marc

    Imperative to Functional Programming Succinctly Contributors Wanted for Higher Order Programming Project!

    Mike HankeyM Offline
    Mike HankeyM Offline
    Mike Hankey
    wrote on last edited by
    #5

    I find this[^] to be somewhat therapeutic! :)

    New version: WinHeist Version 2.1.1 new web site. When you are dead you don't know it, it's only difficult for others. It's the same when you're stupid.

    1 Reply Last reply
    0
    • P PIEBALDconsult

      Same thing I see with Linq/Lambdas ; it's still just the Cult of Fewer Keystrokes. X|

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

      Also var everywhere X|

      P S 2 Replies Last reply
      0
      • L Lost User

        Also var everywhere X|

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

        Oh, yes, but I include that as part of Linq -- given that it was only added to support Linq's/Lambda's anonymous types.

        1 Reply Last reply
        0
        • L Lost User

          Also var everywhere X|

          S Offline
          S Offline
          Slacker007
          wrote on last edited by
          #8

          I use (our team uses) var, where applicable. Nothing wrong with it, unless you are using notepad to edit your code. :)

          L 1 Reply Last reply
          0
          • S Slacker007

            I use (our team uses) var, where applicable. Nothing wrong with it, unless you are using notepad to edit your code. :)

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

            Are you one of Those People who use var instead of int? If so, why the hell?

            S M M 3 Replies Last reply
            0
            • L Lost User

              Are you one of Those People who use var instead of int? If so, why the hell?

              S Offline
              S Offline
              Slacker007
              wrote on last edited by
              #10

              harold aptroot wrote:

              Are you one of Those People who use var instead of int?

              no. I did say "where applicable". We use var on list returns and some lamda/linq stuff, but not everywhere. Edit: I have never run into an issue with "var". Visual Studio lets me know what the type is, if I need to know it.

              L P 2 Replies Last reply
              0
              • S Slacker007

                harold aptroot wrote:

                Are you one of Those People who use var instead of int?

                no. I did say "where applicable". We use var on list returns and some lamda/linq stuff, but not everywhere. Edit: I have never run into an issue with "var". Visual Studio lets me know what the type is, if I need to know it.

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

                Ok good.

                Slacker007 wrote:

                "where applicable"

                Well that's the thing. There's a school of thought that it is applicable any time it is allowed.

                S 1 Reply Last reply
                0
                • L Lost User

                  Are you one of Those People who use var instead of int? If so, why the hell?

                  M Offline
                  M Offline
                  Mauro Leggieri
                  wrote on last edited by
                  #12

                  To obfuscate variable type ;P

                  1 Reply Last reply
                  0
                  • L Lost User

                    Ok good.

                    Slacker007 wrote:

                    "where applicable"

                    Well that's the thing. There's a school of thought that it is applicable any time it is allowed.

                    S Offline
                    S Offline
                    Slacker007
                    wrote on last edited by
                    #13

                    harold aptroot wrote:

                    There's a school of thought that it is applicable any time it is allowed.

                    I use ReSharper a lot, and it will ask you everytime it can to use implicit type declaration. So, I can see why some devs out there may think that it is good for everything. However, I have debugged code files that have had "var" all over the place, and it has not been an issue. If for some reason, I cannot tell the type, then hovering over "var" will tell you.

                    P L OriginalGriffO 3 Replies Last reply
                    0
                    • S Slacker007

                      harold aptroot wrote:

                      There's a school of thought that it is applicable any time it is allowed.

                      I use ReSharper a lot, and it will ask you everytime it can to use implicit type declaration. So, I can see why some devs out there may think that it is good for everything. However, I have debugged code files that have had "var" all over the place, and it has not been an issue. If for some reason, I cannot tell the type, then hovering over "var" will tell you.

                      P Offline
                      P Offline
                      Pete OHanlon
                      wrote on last edited by
                      #14

                      Try doing a code review in Crucible where someone's abused var and then see how you feel about that. ;)

                      P 1 Reply Last reply
                      0
                      • M Marc Clifton

                        I absolutely despise when people say "oh, I'm using this because it reduces the amount of code I have to type". F**** me. If you don't like typing, why are you a programmer? I need a punching bag in my home-office. Marc

                        Imperative to Functional Programming Succinctly Contributors Wanted for Higher Order Programming Project!

                        M Offline
                        M Offline
                        Mladen Jankovic
                        wrote on last edited by
                        #15

                        Marc Clifton wrote:

                        If you don't like typing, why are you a programmer?

                        Dunno, money? But seriously, it's the most boring part.

                        Commodore 64 emulator for Windows Phone

                        1 Reply Last reply
                        0
                        • L Lost User

                          Are you one of Those People who use var instead of int? If so, why the hell?

                          M Offline
                          M Offline
                          Mladen Jankovic
                          wrote on last edited by
                          #16

                          I am. Why the hell not? It's more aesthetically pleasing and in most cases it does not reduce readability (for me, for you - don't care). I haven't use it much in C# before C++11 assigned new meaning to auto. Then I started replacing crap like this std::unordered_map<std::string, boring_class>::const_iterator with auto and then moved the habit to C#.

                          Commodore 64 emulator for Windows Phone

                          S L F 3 Replies Last reply
                          0
                          • S Slacker007

                            harold aptroot wrote:

                            Are you one of Those People who use var instead of int?

                            no. I did say "where applicable". We use var on list returns and some lamda/linq stuff, but not everywhere. Edit: I have never run into an issue with "var". Visual Studio lets me know what the type is, if I need to know it.

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

                            Slacker007 wrote:

                            Visual Studio lets me know what the type is, if I need to know it.

                            Irrelevent. Try reading newbie code posted in QA.

                            1 Reply Last reply
                            0
                            • M Marc Clifton

                              I absolutely despise when people say "oh, I'm using this because it reduces the amount of code I have to type". F**** me. If you don't like typing, why are you a programmer? I need a punching bag in my home-office. Marc

                              Imperative to Functional Programming Succinctly Contributors Wanted for Higher Order Programming Project!

                              M Offline
                              M Offline
                              Mark_Wallace
                              wrote on last edited by
                              #18

                              Marc Clifton wrote:

                              If you don't like typing, why are you a programmer?

                              Voice control is always an option. I know devs who'd happily use it very loudly when inputting code that they (erroneously) believe to be genius, and only use the keyboard to input their dirty hacks. I'd say that there's a possible connection between those guys and your guys.

                              I wanna be a eunuchs developer! Pass me a bread knife!

                              1 Reply Last reply
                              0
                              • M Mladen Jankovic

                                I am. Why the hell not? It's more aesthetically pleasing and in most cases it does not reduce readability (for me, for you - don't care). I haven't use it much in C# before C++11 assigned new meaning to auto. Then I started replacing crap like this std::unordered_map<std::string, boring_class>::const_iterator with auto and then moved the habit to C#.

                                Commodore 64 emulator for Windows Phone

                                S Offline
                                S Offline
                                Slacker007
                                wrote on last edited by
                                #19

                                Thank you. Exactly.

                                F 1 Reply Last reply
                                0
                                • M Marc Clifton

                                  I absolutely despise when people say "oh, I'm using this because it reduces the amount of code I have to type". F**** me. If you don't like typing, why are you a programmer? I need a punching bag in my home-office. Marc

                                  Imperative to Functional Programming Succinctly Contributors Wanted for Higher Order Programming Project!

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

                                  Thank you, I needed a good chuckle this morning. I do enjoy your rants, they align with my thinking rather nicely.

                                  Never underestimate the power of human stupidity RAH

                                  1 Reply Last reply
                                  0
                                  • M Marc Clifton

                                    I absolutely despise when people say "oh, I'm using this because it reduces the amount of code I have to type". F**** me. If you don't like typing, why are you a programmer? I need a punching bag in my home-office. Marc

                                    Imperative to Functional Programming Succinctly Contributors Wanted for Higher Order Programming Project!

                                    A Offline
                                    A Offline
                                    Abhinav S
                                    wrote on last edited by
                                    #21

                                    Marc Clifton wrote:

                                    oh, I'm using this because it reduces the amount of code I have to type

                                    Have you used LINQ? Do you know it reduces the amount of.....Oops.

                                    Mobile Apps - Sound Meter | Color Analyzer | SMBC | Football Doodles

                                    1 Reply Last reply
                                    0
                                    • P PIEBALDconsult

                                      Same thing I see with Linq/Lambdas ; it's still just the Cult of Fewer Keystrokes. X|

                                      J Offline
                                      J Offline
                                      JimmyRopes
                                      wrote on last edited by
                                      #22

                                      PIEBALDconsult wrote:

                                      Same thing I see with Linq/Lambdas ; it's still just the Cult of Fewer Keystrokes. X|

                                      I really like linq/lambdas. They unify the way many various things are accessed, and in my opinion make the code more readable. Just my opinion. Your mileage may vary.

                                      Once you lose your pride the rest is easy. In the end, only three things matter: how much you loved, how gently you lived, and how gracefully you let go of things not meant for you. – Buddha Simply Elegant Designs JimmyRopes Designs

                                      P 1 Reply Last reply
                                      0
                                      • J JimmyRopes

                                        PIEBALDconsult wrote:

                                        Same thing I see with Linq/Lambdas ; it's still just the Cult of Fewer Keystrokes. X|

                                        I really like linq/lambdas. They unify the way many various things are accessed, and in my opinion make the code more readable. Just my opinion. Your mileage may vary.

                                        Once you lose your pride the rest is easy. In the end, only three things matter: how much you loved, how gently you lived, and how gracefully you let go of things not meant for you. – Buddha Simply Elegant Designs JimmyRopes Designs

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

                                        JimmyRopes wrote:

                                        They unify the way many various things are accessed

                                        To the lowest common, and therefore the least efficient, method possible. And it's unreadable.

                                        S J 2 Replies Last reply
                                        0
                                        • M Marc Clifton

                                          I absolutely despise when people say "oh, I'm using this because it reduces the amount of code I have to type". F**** me. If you don't like typing, why are you a programmer? I need a punching bag in my home-office. Marc

                                          Imperative to Functional Programming Succinctly Contributors Wanted for Higher Order Programming Project!

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

                                          I always try and reduce the amount of code I type. I live by Intellisense and code snippets, or ReSharper's Live Templates, but, I am not scared of typing out long and meaningful member names to start with. That is, I loath contractions and acronyms in code.

                                          No object is so beautiful that, under certain conditions, it will not look ugly. - Oscar Wilde

                                          L 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