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. Two lines of code I wrote today with a straight face (at least for a while)

Two lines of code I wrote today with a straight face (at least for a while)

Scheduled Pinned Locked Moved The Lounge
43 Posts 23 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.
  • G Gary Wheeler
            // terminate users
            
            \_Users\_Terminate();
    

    :-D

    Software Zen: delete this;

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

    that's going to be unpleasant for the garbage collection.

    Message Signature (Click to edit ->)

    G 1 Reply Last reply
    0
    • G Gary Wheeler
              // terminate users
              
              \_Users\_Terminate();
      

      :-D

      Software Zen: delete this;

      N Offline
      N Offline
      Nagy Vilmos
      wrote on last edited by
      #4

      An old C system I once worked on had a routine `abortOrphans()`. :laugh:

      veni bibi saltavi

      H L realJSOPR K M 9 Replies Last reply
      0
      • G Gary Wheeler
                // terminate users
                
                \_Users\_Terminate();
        

        :-D

        Software Zen: delete this;

        H Offline
        H Offline
        honey the codewitch
        wrote on last edited by
        #5

        my hubby used to work helldesk in college and he said he kept a paperclip around for rebooting the imacs and an icepick around for rebooting their users.

        When I was growin' up, I was the smartest kid I knew. Maybe that was just because I didn't know that many kids. All I know is now I feel the opposite.

        G D O 3 Replies Last reply
        0
        • N Nagy Vilmos

          An old C system I once worked on had a routine `abortOrphans()`. :laugh:

          veni bibi saltavi

          H Offline
          H Offline
          honey the codewitch
          wrote on last edited by
          #6

          oh my.

          When I was growin' up, I was the smartest kid I knew. Maybe that was just because I didn't know that many kids. All I know is now I feel the opposite.

          1 Reply Last reply
          0
          • G Gary Wheeler
                    // terminate users
                    
                    \_Users\_Terminate();
            

            :-D

            Software Zen: delete this;

            H Offline
            H Offline
            honey the codewitch
            wrote on last edited by
            #7

            Gary Wheeler wrote:

            _Users_Terminate();

            just don't let Sander catch you writing leading underscores in your method names. :-D

            When I was growin' up, I was the smartest kid I knew. Maybe that was just because I didn't know that many kids. All I know is now I feel the opposite.

            G Sander RosselS 2 Replies Last reply
            0
            • C Chris Maunder

              You'll be back, right?

              cheers Chris Maunder

              G Offline
              G Offline
              Gary Wheeler
              wrote on last edited by
              #8

              I even have the ancestry and the high school German to be able to do the accent!

              Software Zen: delete this;

              1 Reply Last reply
              0
              • L Lost User

                that's going to be unpleasant for the garbage collection.

                Message Signature (Click to edit ->)

                G Offline
                G Offline
                Gary Wheeler
                wrote on last edited by
                #9

                How did you know this is a C#/WPF/.NET application? :omg:

                Software Zen: delete this;

                1 Reply Last reply
                0
                • H honey the codewitch

                  Gary Wheeler wrote:

                  _Users_Terminate();

                  just don't let Sander catch you writing leading underscores in your method names. :-D

                  When I was growin' up, I was the smartest kid I knew. Maybe that was just because I didn't know that many kids. All I know is now I feel the opposite.

                  G Offline
                  G Offline
                  Gary Wheeler
                  wrote on last edited by
                  #10

                  honey the codewitch wrote:

                  writing leading underscores in your method names

                  I'm doing it consistently(*), as is the rest of my group, so it is therefore unassailably correct. (*) Our convention is that non-public values are named with a leading underscore.

                  Software Zen: delete this;

                  Sander RosselS H 2 Replies Last reply
                  0
                  • H honey the codewitch

                    my hubby used to work helldesk in college and he said he kept a paperclip around for rebooting the imacs and an icepick around for rebooting their users.

                    When I was growin' up, I was the smartest kid I knew. Maybe that was just because I didn't know that many kids. All I know is now I feel the opposite.

                    G Offline
                    G Offline
                    Gary Wheeler
                    wrote on last edited by
                    #11

                    honey the codewitch wrote:

                    an icepick around for rebooting their users

                    :laugh:

                    Software Zen: delete this;

                    1 Reply Last reply
                    0
                    • G Gary Wheeler
                              // terminate users
                              
                              \_Users\_Terminate();
                      

                      :-D

                      Software Zen: delete this;

                      C Offline
                      C Offline
                      CPallini
                      wrote on last edited by
                      #12

                      Technically is just a line of code. :-D -- Carlo The Nitpick

                      G P 2 Replies Last reply
                      0
                      • C CPallini

                        Technically is just a line of code. :-D -- Carlo The Nitpick

                        G Offline
                        G Offline
                        Gary Wheeler
                        wrote on last edited by
                        #13

                        :rolleyes:

                        Software Zen: delete this;

                        1 Reply Last reply
                        0
                        • C Chris Maunder

                          You'll be back, right?

                          cheers Chris Maunder

                          OriginalGriffO Offline
                          OriginalGriffO Offline
                          OriginalGriff
                          wrote on last edited by
                          #14

                          Hasta la Vista Windows 7 Windows 8 Windows 8.1 Windows 10, baby!

                          Sent from my Amstrad PC 1640 Never throw anything away, Griff Bad command or file name. Bad, bad command! Sit! Stay! Staaaay... AntiTwitter: @DalekDave is now a follower!

                          "I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
                          "Common sense is so rare these days, it should be classified as a super power" - Random T-shirt

                          1 Reply Last reply
                          0
                          • N Nagy Vilmos

                            An old C system I once worked on had a routine `abortOrphans()`. :laugh:

                            veni bibi saltavi

                            L Offline
                            L Offline
                            littleGreenDude
                            wrote on last edited by
                            #15

                            I think that is a paradox. Or does it require a pair of docs? :confused:

                            “The palest ink is better than the best memory.” - Chinese Proverb

                            1 Reply Last reply
                            0
                            • G Gary Wheeler

                              honey the codewitch wrote:

                              writing leading underscores in your method names

                              I'm doing it consistently(*), as is the rest of my group, so it is therefore unassailably correct. (*) Our convention is that non-public values are named with a leading underscore.

                              Software Zen: delete this;

                              Sander RosselS Offline
                              Sander RosselS Offline
                              Sander Rossel
                              wrote on last edited by
                              #16

                              You have my blessings on the underscore :D But why is there a comment that just puts the two words of the function name in a different order? :~ Why not change the function name to _Terminate_Users (or TerminateUsers if you want to do it right ;) ) so it's slightly more readable and ditch the comment?

                              Best, Sander sanderrossel.com Continuous Integration, Delivery, and Deployment arrgh.js - Bringing LINQ to JavaScript Object-Oriented Programming in C# Succinctly

                              K G 2 Replies Last reply
                              0
                              • H honey the codewitch

                                Gary Wheeler wrote:

                                _Users_Terminate();

                                just don't let Sander catch you writing leading underscores in your method names. :-D

                                When I was growin' up, I was the smartest kid I knew. Maybe that was just because I didn't know that many kids. All I know is now I feel the opposite.

                                Sander RosselS Offline
                                Sander RosselS Offline
                                Sander Rossel
                                wrote on last edited by
                                #17

                                I find the comment more problematic. But it's good that I instill fear in those that write code of dubious quality* :D * The quality of code shall be measured by braceless single line if statements, indentation, lack or abundance of white space, naming conventions and comments. Whether the code does what it should do is of secondary concern. Code written in Java shall be considered bad quality by default.

                                Best, Sander sanderrossel.com Continuous Integration, Delivery, and Deployment arrgh.js - Bringing LINQ to JavaScript Object-Oriented Programming in C# Succinctly

                                H 1 Reply Last reply
                                0
                                • G Gary Wheeler

                                  honey the codewitch wrote:

                                  writing leading underscores in your method names

                                  I'm doing it consistently(*), as is the rest of my group, so it is therefore unassailably correct. (*) Our convention is that non-public values are named with a leading underscore.

                                  Software Zen: delete this;

                                  H Offline
                                  H Offline
                                  honey the codewitch
                                  wrote on last edited by
                                  #18

                                  I do similar. Private members have leading underscores in my code. I was just yanking Sander's chain.

                                  When I was growin' up, I was the smartest kid I knew. Maybe that was just because I didn't know that many kids. All I know is now I feel the opposite.

                                  G 1 Reply Last reply
                                  0
                                  • Sander RosselS Sander Rossel

                                    I find the comment more problematic. But it's good that I instill fear in those that write code of dubious quality* :D * The quality of code shall be measured by braceless single line if statements, indentation, lack or abundance of white space, naming conventions and comments. Whether the code does what it should do is of secondary concern. Code written in Java shall be considered bad quality by default.

                                    Best, Sander sanderrossel.com Continuous Integration, Delivery, and Deployment arrgh.js - Bringing LINQ to JavaScript Object-Oriented Programming in C# Succinctly

                                    H Offline
                                    H Offline
                                    honey the codewitch
                                    wrote on last edited by
                                    #19

                                    see, I used to care about that stuff. now it's (re other people's code) a) does the code do what it's supposed to? b) can i read it? i guess i've gotten good at b because i'm fine with just about whatever.

                                    When I was growin' up, I was the smartest kid I knew. Maybe that was just because I didn't know that many kids. All I know is now I feel the opposite.

                                    1 Reply Last reply
                                    0
                                    • H honey the codewitch

                                      my hubby used to work helldesk in college and he said he kept a paperclip around for rebooting the imacs and an icepick around for rebooting their users.

                                      When I was growin' up, I was the smartest kid I knew. Maybe that was just because I didn't know that many kids. All I know is now I feel the opposite.

                                      D Offline
                                      D Offline
                                      Daniel Pfeffer
                                      wrote on last edited by
                                      #20

                                      honey the codewitch wrote:

                                      icepick around for rebooting their users

                                      Is that what they call a LART in your part of the world? :)

                                      Freedom is the freedom to say that two plus two make four. If that is granted, all else follows. -- 6079 Smith W.

                                      H 1 Reply Last reply
                                      0
                                      • D Daniel Pfeffer

                                        honey the codewitch wrote:

                                        icepick around for rebooting their users

                                        Is that what they call a LART in your part of the world? :)

                                        Freedom is the freedom to say that two plus two make four. If that is granted, all else follows. -- 6079 Smith W.

                                        H Offline
                                        H Offline
                                        honey the codewitch
                                        wrote on last edited by
                                        #21

                                        something like that, yes.

                                        When I was growin' up, I was the smartest kid I knew. Maybe that was just because I didn't know that many kids. All I know is now I feel the opposite.

                                        1 Reply Last reply
                                        0
                                        • N Nagy Vilmos

                                          An old C system I once worked on had a routine `abortOrphans()`. :laugh:

                                          veni bibi saltavi

                                          realJSOPR Online
                                          realJSOPR Online
                                          realJSOP
                                          wrote on last edited by
                                          #22

                                          According to democrats, that's okay (and it's called "full term abortions" now.).

                                          ".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
                                          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