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. Other Discussions
  3. The Insider News
  4. VS2015 WTF

VS2015 WTF

Scheduled Pinned Locked Moved The Insider News
pythoncomgraphicsfunctionalquestion
12 Posts 7 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 Offline
    M Offline
    Marc Clifton
    wrote on last edited by
    #1

    I did not write this: r = new System.Drawing.Rectangle(ExtensionMethods.TopLeftCorner(DisplayRectangle), new Size(anchorSize, anchorSize)); I had written: r = new Rectangle(DisplayRectangle.TopLeftCorner(), new Size(anchorSize, anchorSize)); When the elephant did VS2015 decide to refactor my code??? X| Marc

    Imperative to Functional Programming Succinctly Contributors Wanted for Higher Order Programming Project! Learning to code with python is like learning to swim with those little arm floaties. It gives you undeserved confidence and will eventually drown you. - DangerBunny

    J B J 3 Replies Last reply
    0
    • M Marc Clifton

      I did not write this: r = new System.Drawing.Rectangle(ExtensionMethods.TopLeftCorner(DisplayRectangle), new Size(anchorSize, anchorSize)); I had written: r = new Rectangle(DisplayRectangle.TopLeftCorner(), new Size(anchorSize, anchorSize)); When the elephant did VS2015 decide to refactor my code??? X| Marc

      Imperative to Functional Programming Succinctly Contributors Wanted for Higher Order Programming Project! Learning to code with python is like learning to swim with those little arm floaties. It gives you undeserved confidence and will eventually drown you. - DangerBunny

      J Offline
      J Offline
      Jeremy Falcon
      wrote on last edited by
      #2

      Insider news? Long day Marc? :laugh:

      Jeremy Falcon

      B M 2 Replies Last reply
      0
      • M Marc Clifton

        I did not write this: r = new System.Drawing.Rectangle(ExtensionMethods.TopLeftCorner(DisplayRectangle), new Size(anchorSize, anchorSize)); I had written: r = new Rectangle(DisplayRectangle.TopLeftCorner(), new Size(anchorSize, anchorSize)); When the elephant did VS2015 decide to refactor my code??? X| Marc

        Imperative to Functional Programming Succinctly Contributors Wanted for Higher Order Programming Project! Learning to code with python is like learning to swim with those little arm floaties. It gives you undeserved confidence and will eventually drown you. - DangerBunny

        B Offline
        B Offline
        BillWoodruff
        wrote on last edited by
        #3

        Hi Marc, I wonder if something changed in your NameSpace(s) usage, or, if somehow a reference to System.Drawing got lost. Are you using anything like ReSharper that will munge your code. cheers, Bill

        «There is a spectrum, from "clearly desirable behaviour," to "possibly dodgy behavior that still makes some sense," to "clearly undesirable behavior." We try to make the latter into warnings or, better, errors. But stuff that is in the middle category you don’t want to restrict unless there is a clear way to work around it.» Eric Lippert, May 14, 2008

        M V 2 Replies Last reply
        0
        • J Jeremy Falcon

          Insider news? Long day Marc? :laugh:

          Jeremy Falcon

          B Offline
          B Offline
          BillWoodruff
          wrote on last edited by
          #4

          the gods can manifest anywhere.

          «There is a spectrum, from "clearly desirable behaviour," to "possibly dodgy behavior that still makes some sense," to "clearly undesirable behavior." We try to make the latter into warnings or, better, errors. But stuff that is in the middle category you don’t want to restrict unless there is a clear way to work around it.» Eric Lippert, May 14, 2008

          J 1 Reply Last reply
          0
          • B BillWoodruff

            the gods can manifest anywhere.

            «There is a spectrum, from "clearly desirable behaviour," to "possibly dodgy behavior that still makes some sense," to "clearly undesirable behavior." We try to make the latter into warnings or, better, errors. But stuff that is in the middle category you don’t want to restrict unless there is a clear way to work around it.» Eric Lippert, May 14, 2008

            J Offline
            J Offline
            Jeremy Falcon
            wrote on last edited by
            #5

            Touché

            Jeremy Falcon

            1 Reply Last reply
            0
            • B BillWoodruff

              Hi Marc, I wonder if something changed in your NameSpace(s) usage, or, if somehow a reference to System.Drawing got lost. Are you using anything like ReSharper that will munge your code. cheers, Bill

              «There is a spectrum, from "clearly desirable behaviour," to "possibly dodgy behavior that still makes some sense," to "clearly undesirable behavior." We try to make the latter into warnings or, better, errors. But stuff that is in the middle category you don’t want to restrict unless there is a clear way to work around it.» Eric Lippert, May 14, 2008

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

              No and No ;) Marc

              Imperative to Functional Programming Succinctly Contributors Wanted for Higher Order Programming Project! Learning to code with python is like learning to swim with those little arm floaties. It gives you undeserved confidence and will eventually drown you. - DangerBunny

              1 Reply Last reply
              0
              • J Jeremy Falcon

                Insider news? Long day Marc? :laugh:

                Jeremy Falcon

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

                Jeremy Falcon wrote:

                Insider news? Long day Marc?

                Ooops! I'd meant to post that in the lounge, didn't realize I was here! Can I blame that on a CP WTF??? ;) Marc

                Imperative to Functional Programming Succinctly Contributors Wanted for Higher Order Programming Project! Learning to code with python is like learning to swim with those little arm floaties. It gives you undeserved confidence and will eventually drown you. - DangerBunny

                J P 2 Replies Last reply
                0
                • M Marc Clifton

                  Jeremy Falcon wrote:

                  Insider news? Long day Marc?

                  Ooops! I'd meant to post that in the lounge, didn't realize I was here! Can I blame that on a CP WTF??? ;) Marc

                  Imperative to Functional Programming Succinctly Contributors Wanted for Higher Order Programming Project! Learning to code with python is like learning to swim with those little arm floaties. It gives you undeserved confidence and will eventually drown you. - DangerBunny

                  J Offline
                  J Offline
                  Jeremy Falcon
                  wrote on last edited by
                  #8

                  Marc Clifton wrote:

                  Can I blame that on a CP WTF???

                  Not until you say JavaScript is awesome. :mad:

                  Jeremy Falcon

                  1 Reply Last reply
                  0
                  • B BillWoodruff

                    Hi Marc, I wonder if something changed in your NameSpace(s) usage, or, if somehow a reference to System.Drawing got lost. Are you using anything like ReSharper that will munge your code. cheers, Bill

                    «There is a spectrum, from "clearly desirable behaviour," to "possibly dodgy behavior that still makes some sense," to "clearly undesirable behavior." We try to make the latter into warnings or, better, errors. But stuff that is in the middle category you don’t want to restrict unless there is a clear way to work around it.» Eric Lippert, May 14, 2008

                    V Offline
                    V Offline
                    Vark111
                    wrote on last edited by
                    #9

                    BillWoodruff wrote:

                    Are you using anything like ReSharper that will munge your code.

                    I've found that vanilla VS2015 now includes quite a few ReSharper-isms. I haven't used it a whole lot (most of my VS code base is still on 2013), but I don't recall if it auto applied said -isms or if you had to use a key command (like R#'s alt-Enter) to get to them.

                    R 1 Reply Last reply
                    0
                    • M Marc Clifton

                      I did not write this: r = new System.Drawing.Rectangle(ExtensionMethods.TopLeftCorner(DisplayRectangle), new Size(anchorSize, anchorSize)); I had written: r = new Rectangle(DisplayRectangle.TopLeftCorner(), new Size(anchorSize, anchorSize)); When the elephant did VS2015 decide to refactor my code??? X| Marc

                      Imperative to Functional Programming Succinctly Contributors Wanted for Higher Order Programming Project! Learning to code with python is like learning to swim with those little arm floaties. It gives you undeserved confidence and will eventually drown you. - DangerBunny

                      J Offline
                      J Offline
                      Joe Woodbury
                      wrote on last edited by
                      #10

                      Did you pass it through your Android spell checker? (Actually, my first thought was ReSharper.)

                      1 Reply Last reply
                      0
                      • M Marc Clifton

                        Jeremy Falcon wrote:

                        Insider news? Long day Marc?

                        Ooops! I'd meant to post that in the lounge, didn't realize I was here! Can I blame that on a CP WTF??? ;) Marc

                        Imperative to Functional Programming Succinctly Contributors Wanted for Higher Order Programming Project! Learning to code with python is like learning to swim with those little arm floaties. It gives you undeserved confidence and will eventually drown you. - DangerBunny

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

                        Surely this is a case of MC WTF?

                        This space for rent

                        1 Reply Last reply
                        0
                        • V Vark111

                          BillWoodruff wrote:

                          Are you using anything like ReSharper that will munge your code.

                          I've found that vanilla VS2015 now includes quite a few ReSharper-isms. I haven't used it a whole lot (most of my VS code base is still on 2013), but I don't recall if it auto applied said -isms or if you had to use a key command (like R#'s alt-Enter) to get to them.

                          R Offline
                          R Offline
                          Rick York
                          wrote on last edited by
                          #12

                          By default, they are applied automatically. There is a configuration setting to disable them though.

                          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