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 Weird and The Wonderful
  4. Is it? Has it changed? What about now?

Is it? Has it changed? What about now?

Scheduled Pinned Locked Moved The Weird and The Wonderful
securityquestion
18 Posts 17 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 Arthur F Souza

    This is what I love about the system I work on. Some values changed to protect the guilty

    if( this.idtoservice != null )
    {
    sOwner = this.idtoservice.Common.Security.Owner;
    }
    else if( this.idtoservice != null )
    {
    sOwner = this.idtoservice.Common.Security.Owner;
    }
    else if( this.idtoservice != null )
    {
    sOwner = this.idtoservice.Common.Security.Owner;
    }

    - Arthur Souza

    R Offline
    R Offline
    Rajesh R Subramanian
    wrote on last edited by
    #8

    Are you sure? Are you sure? Are you absolutely sure? :laugh:

    "Real men drive manual transmission" - Rajesh.

    1 Reply Last reply
    0
    • A Arthur F Souza

      This is what I love about the system I work on. Some values changed to protect the guilty

      if( this.idtoservice != null )
      {
      sOwner = this.idtoservice.Common.Security.Owner;
      }
      else if( this.idtoservice != null )
      {
      sOwner = this.idtoservice.Common.Security.Owner;
      }
      else if( this.idtoservice != null )
      {
      sOwner = this.idtoservice.Common.Security.Owner;
      }

      - Arthur Souza

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

      I suspect this was written by Walt.

      Thou mewling ill-breeding pignut!

      1 Reply Last reply
      0
      • B Brisingr Aerowing

        :doh: is all I can say. I think the coder forgot to call the TurnBrainOn() function before he started.

        public class Coder: Employee{

         public override bool Initialize(IInitializeContext init){
        
              //init.TurnBrainOn(this); <-- Need to call this!
        
             //Other initialization goes here
        
         }
        
         public string WriteCode(ICodeInfo info, ICodeContext ctxt){
        
         //TODO: Uncomment this!
         //if (!this.IsBrainOn){
        
         //throw new BrainNotReadyException(this);
        
         //}
         
         //Rest of implementation goes here.
        
         }
        

        //Rest of implementation goes here.

        }

        public class SysAdmin : Employee
        {

         public override void DoWork(IWorkItem workItem)
         {
              if (workItem.User.Type == UserType.NoLearn){
                 throw new NoIWillNotFixYourComputerException(new Luser(workItem.User));
              }else{
                   base.DoWork(workItem);
              }
         }
        

        }

        P Offline
        P Offline
        Paul Conrad
        wrote on last edited by
        #10

        You need to also have the following after init.TurnBrainOn(this):

        if ( !CaffineLoaded() ) throw new NoCaffineException(this)

        "Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon

        1 Reply Last reply
        0
        • A Arthur F Souza

          This is what I love about the system I work on. Some values changed to protect the guilty

          if( this.idtoservice != null )
          {
          sOwner = this.idtoservice.Common.Security.Owner;
          }
          else if( this.idtoservice != null )
          {
          sOwner = this.idtoservice.Common.Security.Owner;
          }
          else if( this.idtoservice != null )
          {
          sOwner = this.idtoservice.Common.Security.Owner;
          }

          - Arthur Souza

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

          This coder has been around a long time, you may remember the redundancy design, tell me 3 times, he has just incorporated it at a lower level! BTW this could use a renaming for greater accuracy.

          if( this.idiotservice != null )
          {
          sOwner = this.idiotservice .Common.Security.Owner;
          }

          Never underestimate the power of human stupidity RAH

          G 1 Reply Last reply
          0
          • M Mycroft Holmes

            This coder has been around a long time, you may remember the redundancy design, tell me 3 times, he has just incorporated it at a lower level! BTW this could use a renaming for greater accuracy.

            if( this.idiotservice != null )
            {
            sOwner = this.idiotservice .Common.Security.Owner;
            }

            Never underestimate the power of human stupidity RAH

            G Offline
            G Offline
            greldak
            wrote on last edited by
            #12

            Of course it could be that Mycroft's renaming is extremely accurate and the disservice is changing some global variable such that it could return different values each time its called.

            1 Reply Last reply
            0
            • A Arthur F Souza

              This is what I love about the system I work on. Some values changed to protect the guilty

              if( this.idtoservice != null )
              {
              sOwner = this.idtoservice.Common.Security.Owner;
              }
              else if( this.idtoservice != null )
              {
              sOwner = this.idtoservice.Common.Security.Owner;
              }
              else if( this.idtoservice != null )
              {
              sOwner = this.idtoservice.Common.Security.Owner;
              }

              - Arthur Souza

              J Offline
              J Offline
              Jonathan C Dickinson
              wrote on last edited by
              #13

              To be completely boring: looks like someone had a race condition. Although you still need to be insane to attempt threading without knowing anything about it.

              He who asks a question is a fool for five minutes. He who does not ask a question remains a fool forever. [Chineese Proverb] Jonathan C Dickinson (C# Software Engineer)

              1 Reply Last reply
              0
              • A Arthur F Souza

                This is what I love about the system I work on. Some values changed to protect the guilty

                if( this.idtoservice != null )
                {
                sOwner = this.idtoservice.Common.Security.Owner;
                }
                else if( this.idtoservice != null )
                {
                sOwner = this.idtoservice.Common.Security.Owner;
                }
                else if( this.idtoservice != null )
                {
                sOwner = this.idtoservice.Common.Security.Owner;
                }

                - Arthur Souza

                S Offline
                S Offline
                svella
                wrote on last edited by
                #14

                Well... if idiotservice were a getter that as part of its implementation attempts to connect to an external service, this could actually make a little bit of sense.

                1 Reply Last reply
                0
                • R Rajeev Jayaram

                  Oops! It is complicated :-D

                  R Offline
                  R Offline
                  RafagaX
                  wrote on last edited by
                  #15

                  It's easier as do{ }while() loop. :-D

                  CEO at: - Rafaga Systems - Para Facturas - Modern Components for the moment...

                  R 1 Reply Last reply
                  0
                  • Z ZurdoDev

                    Was somebody being paid by the lines of code? Wow!

                    There are only 10 types of people in the world, those who understand binary and those who don't.

                    K Offline
                    K Offline
                    KP Lee
                    wrote on last edited by
                    #16

                    I'd say that was the definition of a 0 type of person :laugh:

                    1 Reply Last reply
                    0
                    • R RafagaX

                      It's easier as do{ }while() loop. :-D

                      CEO at: - Rafaga Systems - Para Facturas - Modern Components for the moment...

                      R Offline
                      R Offline
                      Rajeev Jayaram
                      wrote on last edited by
                      #17

                      ;P

                      1 Reply Last reply
                      0
                      • B Bassam Abdul Baki

                        Third time's the charm. Three lefts make a right. Three's company. Threesomes. The power of three (Charmed). Three chances. On the count of three. One, two, three, go.

                        Web - BM - RSS - Math - LinkedIn

                        A Offline
                        A Offline
                        A A J Rodriguez
                        wrote on last edited by
                        #18

                        Some additional ones: Three is a magic number. (Schoolhouse Rock) What I tell you three times is true. (The Hunting of the Snark; Lewis Carroll)

                        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