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. Code Snippet - Money

Code Snippet - Money

Scheduled Pinned Locked Moved The Lounge
csharpquestion
46 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.
  • D Offline
    D Offline
    devenv exe
    wrote on last edited by
    #1

    If you had to write a C# code snippet that shows/explains how money is useless, what would it be?

    A Kornfeld Eliyahu PeterK J A D 10 Replies Last reply
    0
    • D devenv exe

      If you had to write a C# code snippet that shows/explains how money is useless, what would it be?

      A Offline
      A Offline
      Agent__007
      wrote on last edited by
      #2

      Before starting off with the code, I would first understand the requirement - "How exactly is money useless?" ;)

      D M 2 Replies Last reply
      0
      • D devenv exe

        If you had to write a C# code snippet that shows/explains how money is useless, what would it be?

        Kornfeld Eliyahu PeterK Offline
        Kornfeld Eliyahu PeterK Offline
        Kornfeld Eliyahu Peter
        wrote on last edited by
        #3

        One that transfers your bank account to mine...

        "It never ceases to amaze me that a spacecraft launched in 1977 can be fixed remotely from Earth." ― Brian Cox

        P D 2 Replies Last reply
        0
        • A Agent__007

          Before starting off with the code, I would first understand the requirement - "How exactly is money useless?" ;)

          D Offline
          D Offline
          devenv exe
          wrote on last edited by
          #4

          Agent__007 wrote:

          "How exactly is money useless?"

          Because its just a tool, so it’s useless with out specifications and vision.

          P 1 Reply Last reply
          0
          • Kornfeld Eliyahu PeterK Kornfeld Eliyahu Peter

            One that transfers your bank account to mine...

            D Offline
            D Offline
            devenv exe
            wrote on last edited by
            #5

            Kornfeld Eliyahu Peter wrote:

            One that transfers your bank account to mine...

            Yes, but also hands over your banking credentials to me.

            1 Reply Last reply
            0
            • Kornfeld Eliyahu PeterK Kornfeld Eliyahu Peter

              One that transfers your bank account to mine...

              P Offline
              P Offline
              peterchen
              wrote on last edited by
              #6

              Consider yourself proud new owner of a $50k debt! plus $19.78 fees and happiness charge.

              D Kornfeld Eliyahu PeterK 2 Replies Last reply
              0
              • D devenv exe

                Agent__007 wrote:

                "How exactly is money useless?"

                Because its just a tool, so it’s useless with out specifications and vision.

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

                Money has specifications, and the vision is normally realised through speculation and trading. Perhaps it's your understanding that's useless and you should transfer all your money to someone who understands it.

                D 1 Reply Last reply
                0
                • P peterchen

                  Consider yourself proud new owner of a $50k debt! plus $19.78 fees and happiness charge.

                  D Offline
                  D Offline
                  devenv exe
                  wrote on last edited by
                  #8

                  ;)

                  1 Reply Last reply
                  0
                  • P peterchen

                    Consider yourself proud new owner of a $50k debt! plus $19.78 fees and happiness charge.

                    Kornfeld Eliyahu PeterK Offline
                    Kornfeld Eliyahu PeterK Offline
                    Kornfeld Eliyahu Peter
                    wrote on last edited by
                    #9

                    It is technically impossible to transfer a debt...There are good sides of the bank system too...

                    "It never ceases to amaze me that a spacecraft launched in 1977 can be fixed remotely from Earth." ― Brian Cox

                    B P N P 4 Replies Last reply
                    0
                    • P Pete OHanlon

                      Money has specifications, and the vision is normally realised through speculation and trading. Perhaps it's your understanding that's useless and you should transfer all your money to someone who understands it.

                      D Offline
                      D Offline
                      devenv exe
                      wrote on last edited by
                      #10

                      Unfortunately, you could be right. Fortunately i didn't understand you.

                      1 Reply Last reply
                      0
                      • Kornfeld Eliyahu PeterK Kornfeld Eliyahu Peter

                        It is technically impossible to transfer a debt...There are good sides of the bank system too...

                        B Offline
                        B Offline
                        Bergholt Stuttley Johnson
                        wrote on last edited by
                        #11

                        how is it impossible, it is after all just a number (however negative) and as I have had a negative balance transferred between banks I would have to disagree

                        Kornfeld Eliyahu PeterK 1 Reply Last reply
                        0
                        • Kornfeld Eliyahu PeterK Kornfeld Eliyahu Peter

                          It is technically impossible to transfer a debt...There are good sides of the bank system too...

                          P Offline
                          P Offline
                          peterchen
                          wrote on last edited by
                          #12

                          Technically right, but there's a $50,000 fee for that :rolleyes:

                          1 Reply Last reply
                          0
                          • B Bergholt Stuttley Johnson

                            how is it impossible, it is after all just a number (however negative) and as I have had a negative balance transferred between banks I would have to disagree

                            Kornfeld Eliyahu PeterK Offline
                            Kornfeld Eliyahu PeterK Offline
                            Kornfeld Eliyahu Peter
                            wrote on last edited by
                            #13

                            I'm working (from the code side) with bank transfers and the APIs I know of do not accept negative numbers...You are always pass in positive numbers, only the direction may change...

                            "It never ceases to amaze me that a spacecraft launched in 1977 can be fixed remotely from Earth." ― Brian Cox

                            B 1 Reply Last reply
                            0
                            • Kornfeld Eliyahu PeterK Kornfeld Eliyahu Peter

                              It is technically impossible to transfer a debt...There are good sides of the bank system too...

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

                              Not true in the least, if the creditor is in agreement, then it is very straight forward to transfer a liability. In the case of a creditor being unwilling to allow a third party to take on the debt there are still ways around it.

                              Kornfeld Eliyahu PeterK 1 Reply Last reply
                              0
                              • N Nagy Vilmos

                                Not true in the least, if the creditor is in agreement, then it is very straight forward to transfer a liability. In the case of a creditor being unwilling to allow a third party to take on the debt there are still ways around it.

                                Kornfeld Eliyahu PeterK Offline
                                Kornfeld Eliyahu PeterK Offline
                                Kornfeld Eliyahu Peter
                                wrote on last edited by
                                #15

                                This is kind of thing I never met while working online - my work involves payments of students to school, school to student/teacher...You probably are talking about some more complicated business actions...

                                "It never ceases to amaze me that a spacecraft launched in 1977 can be fixed remotely from Earth." ― Brian Cox

                                N 1 Reply Last reply
                                0
                                • D devenv exe

                                  If you had to write a C# code snippet that shows/explains how money is useless, what would it be?

                                  J Offline
                                  J Offline
                                  Joan M
                                  wrote on last edited by
                                  #16

                                  No programming questions in the lounge!!! no homework!!! ... erm... ok... :laugh: After the first shock, I think something like:

                                  class Program
                                  {
                                  static void Main(string[] args)
                                  {
                                  Console.WriteLine("42");
                                  }
                                  }

                                  would do it... :rolleyes: PS: Never before I've written something in C#...

                                  S 1 Reply Last reply
                                  0
                                  • Kornfeld Eliyahu PeterK Kornfeld Eliyahu Peter

                                    I'm working (from the code side) with bank transfers and the APIs I know of do not accept negative numbers...You are always pass in positive numbers, only the direction may change...

                                    B Offline
                                    B Offline
                                    Bergholt Stuttley Johnson
                                    wrote on last edited by
                                    #17

                                    then it has changed as I used to work in finance and it used to accept negatives. however I guess you could do it with a zero balance and then a withdrawal

                                    Kornfeld Eliyahu PeterK 1 Reply Last reply
                                    0
                                    • B Bergholt Stuttley Johnson

                                      then it has changed as I used to work in finance and it used to accept negatives. however I guess you could do it with a zero balance and then a withdrawal

                                      Kornfeld Eliyahu PeterK Offline
                                      Kornfeld Eliyahu PeterK Offline
                                      Kornfeld Eliyahu Peter
                                      wrote on last edited by
                                      #18

                                      I understand from Nagy that there still options of negative - I just weren't in that part of the town :-D

                                      "It never ceases to amaze me that a spacecraft launched in 1977 can be fixed remotely from Earth." ― Brian Cox

                                      B 1 Reply Last reply
                                      0
                                      • Kornfeld Eliyahu PeterK Kornfeld Eliyahu Peter

                                        This is kind of thing I never met while working online - my work involves payments of students to school, school to student/teacher...You probably are talking about some more complicated business actions...

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

                                        Not at all, even with simple retail banking you can have someone take on your debts. It is quite common in finance [and sneekily expensive] to consolidate all your debts. The new lender becomes the debtor for the original debt and takes on all the liabilities therein, you then get a liability to them. In a much simpler scenario, kid goes FUBAR with the credit card and Dad steps in, again, and takes on the liability by paying it. In this scenario, there is no legal transfer of liability because the original debt has been cleared, however Dad may well hold a nominal liability to the child as in "Dad, can I get a new phone?", "Straight after you pay me the £5k you cost me!" :-D

                                        Kornfeld Eliyahu PeterK 1 Reply Last reply
                                        0
                                        • N Nagy Vilmos

                                          Not at all, even with simple retail banking you can have someone take on your debts. It is quite common in finance [and sneekily expensive] to consolidate all your debts. The new lender becomes the debtor for the original debt and takes on all the liabilities therein, you then get a liability to them. In a much simpler scenario, kid goes FUBAR with the credit card and Dad steps in, again, and takes on the liability by paying it. In this scenario, there is no legal transfer of liability because the original debt has been cleared, however Dad may well hold a nominal liability to the child as in "Dad, can I get a new phone?", "Straight after you pay me the £5k you cost me!" :-D

                                          Kornfeld Eliyahu PeterK Offline
                                          Kornfeld Eliyahu PeterK Offline
                                          Kornfeld Eliyahu Peter
                                          wrote on last edited by
                                          #20

                                          You are taking about something else...It isn't transferring an amount of money with a negative sign, but take over the responsibility of a debt - I wasn't talking of such complicated thing, I merely asked devenv.exe to pass the money to me - he does not understand it anyway... :-D

                                          "It never ceases to amaze me that a spacecraft launched in 1977 can be fixed remotely from Earth." ― Brian Cox

                                          N 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