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. Spam and Abuse Watch
  4. Article C# 8 New Features Plagiarised From Microsoft Docs

Article C# 8 New Features Plagiarised From Microsoft Docs

Scheduled Pinned Locked Moved Spam and Abuse Watch
csharpcomregexquestion
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.
  • G Offline
    G Offline
    George Swan
    wrote on last edited by
    #1

    This article has code copied directly from this What's New in C# 8?
    Original

    public static string RockPaperScissors(string first, string second)
    => (first, second) switch
    {
    ("rock", "paper") => "rock is covered by paper. Paper wins.",
    ("rock", "scissors") => "rock breaks scissors. Rock wins.",
    ("paper", "rock") => "paper covers rock. Paper wins.",
    ("paper", "scissors") => "paper is cut by scissors. Scissors wins.",
    ("scissors", "rock") => "scissors is broken by rock. Rock wins.",
    ("scissors", "paper") => "scissors cuts paper. Scissors wins.",
    (_, _) => "tie"
    };

    Article

    public static string PlayRockPaperScissors(string first, string second)
    => (first, second) switch
    {
    ("rock", "paper") => "rock is covered by paper. Paper wins.",
    ("rock", "scissors") => "rock breaks scissors. Rock wins.",
    ("paper", "rock") => "paper covers rock. Paper wins.",
    ("paper", "scissors") => "paper is cut by scissors. Scissors wins.",
    ("scissors", "rock") => "scissors is broken by rock. Rock wins.",
    ("scissors", "paper") => "scissors cuts paper. Scissors wins.",
    (_, _) => "tie"
    };

    Original

    public static decimal ComputeIncomeTax(Address location, decimal income) =>
    location switch
    {
    { State: "TX" } => income * 0.25M, //Property pattern
    { State: "MA" } => income * 0.31M,
    { State: "NY" } => income * 0.35M,
    // other cases removed for brevity...
    _ => income * 0.30M
    };

    Article

    public static decimal ComputeIncomeTax(Address location, decimal income) =>
    location switch
    {
    { State: "TX" } => income * 0.25M, //Property pattern
    { State: "MA" } => income * 0.31M,
    { State: "NY" } => income * 0.35M,
    // other cases removed for brevity...
    _ => income * 0.30M
    };

    Richard DeemingR OriginalGriffO L 3 Replies Last reply
    0
    • G George Swan

      This article has code copied directly from this What's New in C# 8?
      Original

      public static string RockPaperScissors(string first, string second)
      => (first, second) switch
      {
      ("rock", "paper") => "rock is covered by paper. Paper wins.",
      ("rock", "scissors") => "rock breaks scissors. Rock wins.",
      ("paper", "rock") => "paper covers rock. Paper wins.",
      ("paper", "scissors") => "paper is cut by scissors. Scissors wins.",
      ("scissors", "rock") => "scissors is broken by rock. Rock wins.",
      ("scissors", "paper") => "scissors cuts paper. Scissors wins.",
      (_, _) => "tie"
      };

      Article

      public static string PlayRockPaperScissors(string first, string second)
      => (first, second) switch
      {
      ("rock", "paper") => "rock is covered by paper. Paper wins.",
      ("rock", "scissors") => "rock breaks scissors. Rock wins.",
      ("paper", "rock") => "paper covers rock. Paper wins.",
      ("paper", "scissors") => "paper is cut by scissors. Scissors wins.",
      ("scissors", "rock") => "scissors is broken by rock. Rock wins.",
      ("scissors", "paper") => "scissors cuts paper. Scissors wins.",
      (_, _) => "tie"
      };

      Original

      public static decimal ComputeIncomeTax(Address location, decimal income) =>
      location switch
      {
      { State: "TX" } => income * 0.25M, //Property pattern
      { State: "MA" } => income * 0.31M,
      { State: "NY" } => income * 0.35M,
      // other cases removed for brevity...
      _ => income * 0.30M
      };

      Article

      public static decimal ComputeIncomeTax(Address location, decimal income) =>
      location switch
      {
      { State: "TX" } => income * 0.25M, //Property pattern
      { State: "MA" } => income * 0.31M,
      { State: "NY" } => income * 0.35M,
      // other cases removed for brevity...
      _ => income * 0.30M
      };

      Richard DeemingR Offline
      Richard DeemingR Offline
      Richard Deeming
      wrote on last edited by
      #2

      You forgot to link to the article: C# 8 New Features[^] And the plagiarist: Shameel - Professional Profile[^]


      "These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer

      "These people looked deep within my soul and assigned me a number based on the order in which I joined" - Homer

      G 1 Reply Last reply
      0
      • G George Swan

        This article has code copied directly from this What's New in C# 8?
        Original

        public static string RockPaperScissors(string first, string second)
        => (first, second) switch
        {
        ("rock", "paper") => "rock is covered by paper. Paper wins.",
        ("rock", "scissors") => "rock breaks scissors. Rock wins.",
        ("paper", "rock") => "paper covers rock. Paper wins.",
        ("paper", "scissors") => "paper is cut by scissors. Scissors wins.",
        ("scissors", "rock") => "scissors is broken by rock. Rock wins.",
        ("scissors", "paper") => "scissors cuts paper. Scissors wins.",
        (_, _) => "tie"
        };

        Article

        public static string PlayRockPaperScissors(string first, string second)
        => (first, second) switch
        {
        ("rock", "paper") => "rock is covered by paper. Paper wins.",
        ("rock", "scissors") => "rock breaks scissors. Rock wins.",
        ("paper", "rock") => "paper covers rock. Paper wins.",
        ("paper", "scissors") => "paper is cut by scissors. Scissors wins.",
        ("scissors", "rock") => "scissors is broken by rock. Rock wins.",
        ("scissors", "paper") => "scissors cuts paper. Scissors wins.",
        (_, _) => "tie"
        };

        Original

        public static decimal ComputeIncomeTax(Address location, decimal income) =>
        location switch
        {
        { State: "TX" } => income * 0.25M, //Property pattern
        { State: "MA" } => income * 0.31M,
        { State: "NY" } => income * 0.35M,
        // other cases removed for brevity...
        _ => income * 0.30M
        };

        Article

        public static decimal ComputeIncomeTax(Address location, decimal income) =>
        location switch
        {
        { State: "TX" } => income * 0.25M, //Property pattern
        { State: "MA" } => income * 0.31M,
        { State: "NY" } => income * 0.35M,
        // other cases removed for brevity...
        _ => income * 0.30M
        };

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

        I'd agree - but when you report things we need two bits of info: 1) The article that is plagiarised: C# 8 New Features[^] 2) The User who "wrote" it: Shameel - Professional Profile[^] That way, we can be sure to hit the right article, and if the article goes before teh user, we can also kick him off.

        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

        G 1 Reply Last reply
        0
        • Richard DeemingR Richard Deeming

          You forgot to link to the article: C# 8 New Features[^] And the plagiarist: Shameel - Professional Profile[^]


          "These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer

          G Offline
          G Offline
          George Swan
          wrote on last edited by
          #4

          Apologies, I am new to this and don't like reporting authors but the article did not even reference the source so I thought I should flag it up.

          1 Reply Last reply
          0
          • OriginalGriffO OriginalGriff

            I'd agree - but when you report things we need two bits of info: 1) The article that is plagiarised: C# 8 New Features[^] 2) The User who "wrote" it: Shameel - Professional Profile[^] That way, we can be sure to hit the right article, and if the article goes before teh user, we can also kick him off.

            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!

            G Offline
            G Offline
            George Swan
            wrote on last edited by
            #5

            Sorry, Griff. I'm new to this. I never vote an article down but this was so obviously lifted from somone else that I thought I should report it. I would have thought that asking the question, 'is this your own work?' woud have prompted the author to add a reference. Regards, George.

            P OriginalGriffO 2 Replies Last reply
            0
            • G George Swan

              Sorry, Griff. I'm new to this. I never vote an article down but this was so obviously lifted from somone else that I thought I should report it. I would have thought that asking the question, 'is this your own work?' woud have prompted the author to add a reference. Regards, George.

              P Offline
              P Offline
              phil o
              wrote on last edited by
              #6

              Even with a reference, this is clearly a copy'n'paste job and is not accepted. Plus, I don't think we need yet another "c# new features" article :)

              "Five fruits and vegetables a day? What a joke! Personally, after the third watermelon, I'm full."

              1 Reply Last reply
              0
              • G George Swan

                Sorry, Griff. I'm new to this. I never vote an article down but this was so obviously lifted from somone else that I thought I should report it. I would have thought that asking the question, 'is this your own work?' woud have prompted the author to add a reference. Regards, George.

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

                That's OK, not a problem at all - you did exactly the right thing, just we need more information so we don't get the wrong one. If he had posted a reference, we'd probably have spotted it earlier (which is probably why he didn't). If we had noticed the original, his account would have closed the day he posted it to moderation: most plagiarism doesn't get past that, but we do miss things sometimes. Damn good spot! :thumbsup:

                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
                • G George Swan

                  This article has code copied directly from this What's New in C# 8?
                  Original

                  public static string RockPaperScissors(string first, string second)
                  => (first, second) switch
                  {
                  ("rock", "paper") => "rock is covered by paper. Paper wins.",
                  ("rock", "scissors") => "rock breaks scissors. Rock wins.",
                  ("paper", "rock") => "paper covers rock. Paper wins.",
                  ("paper", "scissors") => "paper is cut by scissors. Scissors wins.",
                  ("scissors", "rock") => "scissors is broken by rock. Rock wins.",
                  ("scissors", "paper") => "scissors cuts paper. Scissors wins.",
                  (_, _) => "tie"
                  };

                  Article

                  public static string PlayRockPaperScissors(string first, string second)
                  => (first, second) switch
                  {
                  ("rock", "paper") => "rock is covered by paper. Paper wins.",
                  ("rock", "scissors") => "rock breaks scissors. Rock wins.",
                  ("paper", "rock") => "paper covers rock. Paper wins.",
                  ("paper", "scissors") => "paper is cut by scissors. Scissors wins.",
                  ("scissors", "rock") => "scissors is broken by rock. Rock wins.",
                  ("scissors", "paper") => "scissors cuts paper. Scissors wins.",
                  (_, _) => "tie"
                  };

                  Original

                  public static decimal ComputeIncomeTax(Address location, decimal income) =>
                  location switch
                  {
                  { State: "TX" } => income * 0.25M, //Property pattern
                  { State: "MA" } => income * 0.31M,
                  { State: "NY" } => income * 0.35M,
                  // other cases removed for brevity...
                  _ => income * 0.30M
                  };

                  Article

                  public static decimal ComputeIncomeTax(Address location, decimal income) =>
                  location switch
                  {
                  { State: "TX" } => income * 0.25M, //Property pattern
                  { State: "MA" } => income * 0.31M,
                  { State: "NY" } => income * 0.35M,
                  // other cases removed for brevity...
                  _ => income * 0.30M
                  };

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

                  Hi George, only the first example is the same copy, the second one has different code. Anyway, I'll update my article with a different sample code and publish it again.

                  Shameel, http://thedeveloperspace.com

                  N 1 Reply Last reply
                  0
                  • L Lost User

                    Hi George, only the first example is the same copy, the second one has different code. Anyway, I'll update my article with a different sample code and publish it again.

                    Shameel, http://thedeveloperspace.com

                    N Offline
                    N Offline
                    Nelek
                    wrote on last edited by
                    #9

                    I recommend you to read CodeProject Plagiarism FAQ[^] It might help you avoid this kind of situations. @Sean-Ewington please come and have a look. We might need a wipe (if proceed)

                    M.D.V. ;) If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about? Help me to understand what I'm saying, and I'll explain it better to you Rating helpful answers is nice, but saying thanks can be even nicer.

                    OriginalGriffO 1 Reply Last reply
                    0
                    • N Nelek

                      I recommend you to read CodeProject Plagiarism FAQ[^] It might help you avoid this kind of situations. @Sean-Ewington please come and have a look. We might need a wipe (if proceed)

                      M.D.V. ;) If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about? Help me to understand what I'm saying, and I'll explain it better to you Rating helpful answers is nice, but saying thanks can be even nicer.

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

                      Why? It's a clear cut case - he's even admitted he knew it was copied - it's not his first article here, so he knows the rules. And it's not just the code, it's the text around it which looks copy'n'paste'n'tweek as well. He has deliberately tried to copy material and hide the fact, and there is no way to do that "innocently" that I can see. Nobody gets the right to steal and get away with it; the act of trying to hide it even puts all he other submissions in doubt as to authorship ...

                      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

                      N S 2 Replies Last reply
                      0
                      • OriginalGriffO OriginalGriff

                        Why? It's a clear cut case - he's even admitted he knew it was copied - it's not his first article here, so he knows the rules. And it's not just the code, it's the text around it which looks copy'n'paste'n'tweek as well. He has deliberately tried to copy material and hide the fact, and there is no way to do that "innocently" that I can see. Nobody gets the right to steal and get away with it; the act of trying to hide it even puts all he other submissions in doubt as to authorship ...

                        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!

                        N Offline
                        N Offline
                        Nelek
                        wrote on last edited by
                        #11

                        OriginalGriff wrote:

                        Why?

                        Because of the corrections. Would have he not said anything... I would already given my report too. But he said he corrected it and I hope he has learnt the lesson. He is long enough here, yes. But we have seen a lot of users that didn't know about the FAQs. I understand your point, but we have already told this forum is not only to punish but to educate too (what without a second chance is pretty difficult to do).

                        M.D.V. ;) If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about? Help me to understand what I'm saying, and I'll explain it better to you Rating helpful answers is nice, but saying thanks can be even nicer.

                        1 Reply Last reply
                        0
                        • OriginalGriffO OriginalGriff

                          Why? It's a clear cut case - he's even admitted he knew it was copied - it's not his first article here, so he knows the rules. And it's not just the code, it's the text around it which looks copy'n'paste'n'tweek as well. He has deliberately tried to copy material and hide the fact, and there is no way to do that "innocently" that I can see. Nobody gets the right to steal and get away with it; the act of trying to hide it even puts all he other submissions in doubt as to authorship ...

                          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!

                          S Offline
                          S Offline
                          Shameel v2
                          wrote on last edited by
                          #12

                          My profile is closed and I had to create a new one. I just want to let you know that there is no need to be harsh towards anyone without giving them an opportunity to represent themselves. In the past, I had given references to original post in my article and they were removed mistakenly by moderators and article closed. Upon review request, the mistaken edit was acknowledged and the article restored. I agree I did not include the reference to original post in this specific case.

                          OriginalGriff wrote:

                          And it's not just the code, it's the text around it which looks copy'n'paste'n'tweek as well.

                          I had rewritten the entire text from scratch, and inadvertently left one instance of copied sample code without changing it. The original doc is too big and elaborate and I had written this article with the intent to simplify things for my colleagues and friends, who had requested me to write this.

                          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