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. Kicking the Can Down the Road

Kicking the Can Down the Road

Scheduled Pinned Locked Moved The Lounge
sysadmintestingbeta-testingtoolsperformance
35 Posts 10 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.
  • R realJSOP

    If I'm heads-down in a project during a coding frenzy, I forget after just a few minutes a lot of times. :) Of course, I'm old, and I have to consciously put brain time toward trying to get to the bathroom in time, so unimportant stuff like what a method that I just wrote does takes a back seat to the more immediate need... :)

    ".45 ACP - because shooting twice is just silly" - JSOP, 2010
    -----
    You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010
    -----
    When you pry the gun from my cold dead hands, be careful - the barrel will be very hot. - JSOP, 2013

    N Offline
    N Offline
    NightPen
    wrote on last edited by
    #26

    Of course, there is the other school of thought I don't subscribe to personally. If the code was hard to write it should be extremely difficult to modify, and impossible change". From time to time get to work with SDEs that think this is the way code should be.

    pkfoxP 1 Reply Last reply
    0
    • pkfoxP pkfox

      I would like to see how you do this

      "I didn't mention the bats - he'd see them soon enough" - Hunter S Thompson - RIP

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

      The article's been posted: A Connection string manager for multi-environment ecosystems[^]

      ".45 ACP - because shooting twice is just silly" - JSOP, 2010
      -----
      You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010
      -----
      When you pry the gun from my cold dead hands, be careful - the barrel will be very hot. - JSOP, 2013

      pkfoxP 1 Reply Last reply
      0
      • R realJSOP

        The connectionstring when "at rest" is not assembled into a string. It merely exists in its component parts. When you call the "Get" method to retrieve the connection string, it assembles the parts into a connection string, and either base64 encodes it, or 256-bit encrypts it (programmer's choice) and returns that encoded/encrypted string. When you're ready to access the database, you simply decode/decrypt it when you send it to the SqlConnection object. (We don't use Entity Framework or any other ORM, so this approach is no problem). Any using base64/encryption is optional as well, you can have it return a string as plain text as well.

        ".45 ACP - because shooting twice is just silly" - JSOP, 2010
        -----
        You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010
        -----
        When you pry the gun from my cold dead hands, be careful - the barrel will be very hot. - JSOP, 2013

        pkfoxP Offline
        pkfoxP Offline
        pkfox
        wrote on last edited by
        #28

        Ok I f****ng" hate EF ( and any ORM ) - look forward to reading your article - thanks for your efforts

        "I didn't mention the bats - he'd see them soon enough" - Hunter S Thompson - RIP

        1 Reply Last reply
        0
        • N NightPen

          Of course, there is the other school of thought I don't subscribe to personally. If the code was hard to write it should be extremely difficult to modify, and impossible change". From time to time get to work with SDEs that think this is the way code should be.

          pkfoxP Offline
          pkfoxP Offline
          pkfox
          wrote on last edited by
          #29

          Quote from - Real men don't use Pascal It was difficult to write it should be difficult to understand. But that was meant to be funny.

          "I didn't mention the bats - he'd see them soon enough" - Hunter S Thompson - RIP

          R 1 Reply Last reply
          0
          • R realJSOP

            The article's been posted: A Connection string manager for multi-environment ecosystems[^]

            ".45 ACP - because shooting twice is just silly" - JSOP, 2010
            -----
            You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010
            -----
            When you pry the gun from my cold dead hands, be careful - the barrel will be very hot. - JSOP, 2013

            pkfoxP Offline
            pkfoxP Offline
            pkfox
            wrote on last edited by
            #30

            That's my Friday taken care of - thanks John

            "I didn't mention the bats - he'd see them soon enough" - Hunter S Thompson - RIP

            R 1 Reply Last reply
            0
            • pkfoxP pkfox

              That's my Friday taken care of - thanks John

              "I didn't mention the bats - he'd see them soon enough" - Hunter S Thompson - RIP

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

              We're going to add the code to one of our projects to see how it goes. Until i see it work in the intended environment, it's all prettty much just theoretical. The sample app works within the context of my dev box, but I wanna put it on a live server to make sure it will actually do what I want. If you're up for it, feel free to relate your experience in the article forum.

              ".45 ACP - because shooting twice is just silly" - JSOP, 2010
              -----
              You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010
              -----
              When you pry the gun from my cold dead hands, be careful - the barrel will be very hot. - JSOP, 2013

              1 Reply Last reply
              0
              • pkfoxP pkfox

                Quote from - Real men don't use Pascal It was difficult to write it should be difficult to understand. But that was meant to be funny.

                "I didn't mention the bats - he'd see them soon enough" - Hunter S Thompson - RIP

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

                But if it was written and commented well, it will be relatively easy to understand.

                ".45 ACP - because shooting twice is just silly" - JSOP, 2010
                -----
                You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010
                -----
                When you pry the gun from my cold dead hands, be careful - the barrel will be very hot. - JSOP, 2013

                N pkfoxP 2 Replies Last reply
                0
                • R realJSOP

                  But if it was written and commented well, it will be relatively easy to understand.

                  ".45 ACP - because shooting twice is just silly" - JSOP, 2010
                  -----
                  You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010
                  -----
                  When you pry the gun from my cold dead hands, be careful - the barrel will be very hot. - JSOP, 2013

                  N Offline
                  N Offline
                  NightPen
                  wrote on last edited by
                  #33

                  I actually got in trouble with my boss once for that...Quote, "Your code is too easy to understand. This is not good as management won't need you later to fix it". I left that job about 6 months later and got a better one. :D

                  1 Reply Last reply
                  0
                  • R realJSOP

                    But if it was written and commented well, it will be relatively easy to understand.

                    ".45 ACP - because shooting twice is just silly" - JSOP, 2010
                    -----
                    You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010
                    -----
                    When you pry the gun from my cold dead hands, be careful - the barrel will be very hot. - JSOP, 2013

                    pkfoxP Offline
                    pkfoxP Offline
                    pkfox
                    wrote on last edited by
                    #34

                    Totally agree - ask anyone that's ever written any assembler code

                    "I didn't mention the bats - he'd see them soon enough" - Hunter S Thompson - RIP

                    1 Reply Last reply
                    0
                    • R realJSOP

                      The main problem is that nobody wants to take on the task of implementing it in the apps they're responsible for. We have four devs on one (web) app, and the remaining six devs split their time among the other 11 apps. I am the lead on the team of four. My team is ready to jump on it, the other guys, not so much, because it means they'd have to actually do some work. The prospect of testing is what turns them off the most, I think, because implementation seems dead easy. In short, despite the need, nobody wants to put in the time. I think another problem is that they feel like I'm making them look bad by taking initiative where they wouldn't. I had a friend way back in the 70's that was in the Marines, who liked to say, "In the absence of other orders, attack." That's how I do it.

                      ".45 ACP - because shooting twice is just silly" - JSOP, 2010
                      -----
                      You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010
                      -----
                      When you pry the gun from my cold dead hands, be careful - the barrel will be very hot. - JSOP, 2013

                      pkfoxP Offline
                      pkfoxP Offline
                      pkfox
                      wrote on last edited by
                      #35

                      :thumbsup:

                      "I didn't mention the bats - he'd see them soon enough" - Hunter S Thompson - RIP

                      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