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. Next coding challenge

Next coding challenge

Scheduled Pinned Locked Moved The Lounge
questiondiscussion
36 Posts 17 Posters 1 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.
  • C Chris Maunder

    I'll announce Friday

    cheers Chris Maunder

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

    Chris Maunder wrote:

    I'll announce Friday

    I wasn't asked to test it, so it can't been known to work.

    Michael Martin Australia "I controlled my laughter and simple said "No,I am very busy,so I can't write any code for you". The moment they heard this all the smiling face turned into a sad looking face and one of them farted. So I had to leave the place as soon as possible." - Mr.Prakash One Fine Saturday. 24/04/2004

    T P 2 Replies Last reply
    0
    • C Chris Maunder

      Friday's coming up. Any thoughts on our next coding challenge? We need a simple task, easily coded, and easily tested.

      cheers Chris Maunder

      M Offline
      M Offline
      Marc Clifton
      wrote on last edited by
      #9

      Chris Maunder wrote:

      We need a simple task, easily coded, and easily tested.

      Technically, that is how all projects should be implemented -- broken down into simply, easily coded and tested, tasks. So I wonder, what would the weekly coding challenge look like if there was an overall story arc, ideally where only you know what the end goal is, and as an additional game, we could guess. Which gets me to wonder next, does the coding challenge have to be stand-alone or can it involve some third party API or existing open source code base? Regarding the story arc, I would probably avoid something that creates a product or website. That said, simulations are always fun, for example, I've always wanted to write something that models the gravitational interaction of objects. Simple games are also fun, though that probably gets into the "product" arena too much. The point being, coming up with interesting (and useful!) coding challenges is actually quite a challenge, especially given that the idea of a story arc comprised of coding challenges requires, well, some management. ;) So, other than that, no immediate ideas right now. :( Marc

      V.A.P.O.R.ware - Visual Assisted Programming / Organizational Representation Learning to code with python is like learning to swim with those little arm floaties. It gives you undeserved confidence and will eventually drown you. - DangerBunny Artificial intelligence is the only remedy for natural stupidity. - CDP1802

      D 1 Reply Last reply
      0
      • L Lost User

        Chris Maunder wrote:

        I'll announce Friday

        I wasn't asked to test it, so it can't been known to work.

        Michael Martin Australia "I controlled my laughter and simple said "No,I am very busy,so I can't write any code for you". The moment they heard this all the smiling face turned into a sad looking face and one of them farted. So I had to leave the place as soon as possible." - Mr.Prakash One Fine Saturday. 24/04/2004

        T Offline
        T Offline
        TheGreatAndPowerfulOz
        wrote on last edited by
        #10

        You weren't drunk when it was written so your testing would be off anyway. ;P

        #SupportHeForShe Government can give you nothing but what it takes from somebody else. A government big enough to give you everything you want is big enough to take everything you've got, including your freedom.-Ezra Taft Benson You must accept 1 of 2 basic premises: Either we are alone in the universe or we are not alone. Either way, the implications are staggering!-Wernher von Braun

        1 Reply Last reply
        0
        • C Chris Maunder

          Friday's coming up. Any thoughts on our next coding challenge? We need a simple task, easily coded, and easily tested.

          cheers Chris Maunder

          T Offline
          T Offline
          TheGreatAndPowerfulOz
          wrote on last edited by
          #11

          A financial transaction categorization engine with customizable categories and custom matching expressions.

          #SupportHeForShe Government can give you nothing but what it takes from somebody else. A government big enough to give you everything you want is big enough to take everything you've got, including your freedom.-Ezra Taft Benson You must accept 1 of 2 basic premises: Either we are alone in the universe or we are not alone. Either way, the implications are staggering!-Wernher von Braun

          1 Reply Last reply
          0
          • C Chris Maunder

            Friday's coming up. Any thoughts on our next coding challenge? We need a simple task, easily coded, and easily tested.

            cheers Chris Maunder

            J Offline
            J Offline
            Jon McKee
            wrote on last edited by
            #12

            Idea: Rotating an NxN matrix in-place, maybe? Question: What exactly are the answers graded on? Creativity, complexity, simplicity, or some other metric?

            P 1 Reply Last reply
            0
            • C Chris Maunder

              Friday's coming up. Any thoughts on our next coding challenge? We need a simple task, easily coded, and easily tested.

              cheers Chris Maunder

              R Offline
              R Offline
              R Giskard Reventlov
              wrote on last edited by
              #13

              Code the flux capacitor?

              P 1 Reply Last reply
              0
              • R R Giskard Reventlov

                Code the flux capacitor?

                P Offline
                P Offline
                PIEBALDconsult
                wrote on last edited by
                #14

                That's a hardware problem.

                1 Reply Last reply
                0
                • M Marc Clifton

                  Chris Maunder wrote:

                  We need a simple task, easily coded, and easily tested.

                  Technically, that is how all projects should be implemented -- broken down into simply, easily coded and tested, tasks. So I wonder, what would the weekly coding challenge look like if there was an overall story arc, ideally where only you know what the end goal is, and as an additional game, we could guess. Which gets me to wonder next, does the coding challenge have to be stand-alone or can it involve some third party API or existing open source code base? Regarding the story arc, I would probably avoid something that creates a product or website. That said, simulations are always fun, for example, I've always wanted to write something that models the gravitational interaction of objects. Simple games are also fun, though that probably gets into the "product" arena too much. The point being, coming up with interesting (and useful!) coding challenges is actually quite a challenge, especially given that the idea of a story arc comprised of coding challenges requires, well, some management. ;) So, other than that, no immediate ideas right now. :( Marc

                  V.A.P.O.R.ware - Visual Assisted Programming / Organizational Representation Learning to code with python is like learning to swim with those little arm floaties. It gives you undeserved confidence and will eventually drown you. - DangerBunny Artificial intelligence is the only remedy for natural stupidity. - CDP1802

                  D Offline
                  D Offline
                  David ONeil
                  wrote on last edited by
                  #15

                  An arc could be interesting. Do one component of a simple game, or other task, every week, and put it together at the end. Or recode the entire codeproject site, one step at a time :) oh wait - I meant :~

                  My CodeProject Articles :: Our forgotten astronomic heritage :: My website.
                  "Sorry, buddy, but this mission counts on everyone being as silent as possible, and your farts are just too much of a wildcard." - Korra to Meelo, "Kuvira's Gambit"

                  1 Reply Last reply
                  0
                  • C Chris Maunder

                    Friday's coming up. Any thoughts on our next coding challenge? We need a simple task, easily coded, and easily tested.

                    cheers Chris Maunder

                    D Offline
                    D Offline
                    dan sh
                    wrote on last edited by
                    #16

                    Josephus problem solver Collatz sequence generator An Angular2 SPA app that allows managing certain entities. And just for testing purposes, use Node for server side.

                    "It is easy to decipher extraterrestrial signals after deciphering Javascript and VB6 themselves.", ISanti[^]

                    J 1 Reply Last reply
                    0
                    • C Chris Maunder

                      Friday's coming up. Any thoughts on our next coding challenge? We need a simple task, easily coded, and easily tested.

                      cheers Chris Maunder

                      B Offline
                      B Offline
                      BillWoodruff
                      wrote on last edited by
                      #17

                      I like the coding challenges, but, why should they be "simple" ? best, Bill

                      «There is a spectrum, from "clearly desirable behaviour," to "possibly dodgy behavior that still makes some sense," to "clearly undesirable behavior." We try to make the latter into warnings or, better, errors. But stuff that is in the middle category you don’t want to restrict unless there is a clear way to work around it.» Eric Lippert, May 14, 2008

                      J 1 Reply Last reply
                      0
                      • L Lost User

                        Chris Maunder wrote:

                        I'll announce Friday

                        I wasn't asked to test it, so it can't been known to work.

                        Michael Martin Australia "I controlled my laughter and simple said "No,I am very busy,so I can't write any code for you". The moment they heard this all the smiling face turned into a sad looking face and one of them farted. So I had to leave the place as soon as possible." - Mr.Prakash One Fine Saturday. 24/04/2004

                        P Offline
                        P Offline
                        PIEBALDconsult
                        wrote on last edited by
                        #18

                        I, for one, do not have access to Chris' Big List of Mickisms with which to test mine. Without The List -- and sixteen (!) years worth of posts -- none of us can perform a proper stress test of our codez. I also don't want to melt down my system.

                        1 Reply Last reply
                        0
                        • D dan sh

                          Josephus problem solver Collatz sequence generator An Angular2 SPA app that allows managing certain entities. And just for testing purposes, use Node for server side.

                          "It is easy to decipher extraterrestrial signals after deciphering Javascript and VB6 themselves.", ISanti[^]

                          J Offline
                          J Offline
                          Jon McKee
                          wrote on last edited by
                          #19

                          A Collatz generator could be interesting since there are optimizations available but the Josephus problem already has an extremely simple solution using binary. I doubt it would yield any interesting programs except maybe the language used. Not a fan of the app since that specifically targets only people that use both AngularJS and NodeJS. Just my 2 cents :)

                          D 1 Reply Last reply
                          0
                          • B BillWoodruff

                            I like the coding challenges, but, why should they be "simple" ? best, Bill

                            «There is a spectrum, from "clearly desirable behaviour," to "possibly dodgy behavior that still makes some sense," to "clearly undesirable behavior." We try to make the latter into warnings or, better, errors. But stuff that is in the middle category you don’t want to restrict unless there is a clear way to work around it.» Eric Lippert, May 14, 2008

                            J Offline
                            J Offline
                            Jon McKee
                            wrote on last edited by
                            #20

                            I know I wouldn't want to spend all my time in a week looking over 20+ KLOC from 15+ entries, testing them to ensure they meet the requirements, and then using some metric to rate which came out on top. Depending on complexity that might be a restrained estimate as well X|

                            B 1 Reply Last reply
                            0
                            • C Chris Maunder

                              Friday's coming up. Any thoughts on our next coding challenge? We need a simple task, easily coded, and easily tested.

                              cheers Chris Maunder

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

                              It maybe too easy, but in honor of the ongoing Chess Word Championship (for humans and for chess engines) we may do the 8 queen problem...

                              Skipper: We'll fix it. Alex: Fix it? How you gonna fix this? Skipper: Grit, spit and a whole lotta duct tape.

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

                              P 1 Reply Last reply
                              0
                              • J Jon McKee

                                A Collatz generator could be interesting since there are optimizations available but the Josephus problem already has an extremely simple solution using binary. I doubt it would yield any interesting programs except maybe the language used. Not a fan of the app since that specifically targets only people that use both AngularJS and NodeJS. Just my 2 cents :)

                                D Offline
                                D Offline
                                dan sh
                                wrote on last edited by
                                #22

                                Jon McKee wrote:

                                Not a fan of the app since that specifically targets only people that use both AngularJS and NodeJS.

                                I was just being smart here to get my work done. ;P

                                "It is easy to decipher extraterrestrial signals after deciphering Javascript and VB6 themselves.", ISanti[^]

                                1 Reply Last reply
                                0
                                • C Chris Maunder

                                  Friday's coming up. Any thoughts on our next coding challenge? We need a simple task, easily coded, and easily tested.

                                  cheers Chris Maunder

                                  K Offline
                                  K Offline
                                  Kirill Illenseer
                                  wrote on last edited by
                                  #23

                                  Drawing Lissajous curves with (pseudo)random variying frequencies for X and Y in away that the resulting line remains uninterrupted.

                                  1 Reply Last reply
                                  0
                                  • C Chris Maunder

                                    Friday's coming up. Any thoughts on our next coding challenge? We need a simple task, easily coded, and easily tested.

                                    cheers Chris Maunder

                                    M Offline
                                    M Offline
                                    Mark_Wallace
                                    wrote on last edited by
                                    #24

                                    How about "Do something to make my life* easier"? * Mine, that is.

                                    I wanna be a eunuchs developer! Pass me a bread knife!

                                    K 1 Reply Last reply
                                    0
                                    • C Chris Maunder

                                      Friday's coming up. Any thoughts on our next coding challenge? We need a simple task, easily coded, and easily tested.

                                      cheers Chris Maunder

                                      K Offline
                                      K Offline
                                      kalberts
                                      wrote on last edited by
                                      #25

                                      When we were students, a long, long time ago, one of my fellow students realized that he didn't master recursion very well - termination conditions in particular. So he defined a simple programming challenge for himself: The program should draw a vertical zigzag line of asterisks on the printer (this was in the age of line printers): A count of spaces reflecting the recursion depth, with a "*" at the end. Each function call creates one such line, nothing else. Now, at the top, "main()" level, he would call the recursive function with an argument MaxRecursionDepth to which the recursion should go directly when started (creating a slanted line of asterisks), an argumment IntermediateRecursionDepth to which the recursion should unroll (continuing the line, slanting the other way, but not all the way back). Then, it should recurse deeper again to MaxRecursionDepth and unroll to IntermediateRecursionDepth, reapeated as many times as indicated by the third agument, NumberOfPeaks, before unrolling to complete the program. The printout should look like a tipped-over contour of a row of mountain peaks separated by valleys, the peak height, number of peaks and valley depths given by the three arguments. If you have been writing recursive functions every day the last ten years, this is quite trivial. But if you are a student who heard the term 'recursion' for the first time last week, it takes some fiddeling to get those termination tests (and re-recursing tests) right. And then, when you see the working solution, you won't understand why it took that much effort to get it correct :-)

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

                                        It maybe too easy, but in honor of the ongoing Chess Word Championship (for humans and for chess engines) we may do the 8 queen problem...

                                        Skipper: We'll fix it. Alex: Fix it? How you gonna fix this? Skipper: Grit, spit and a whole lotta duct tape.

                                        P Offline
                                        P Offline
                                        PIEBALDconsult
                                        wrote on last edited by
                                        #26

                                        I did N-Queens a few years back, but not the ability to determine which solutions are distinct/unique. So include the above suggestion of rotating an NxN matrix, add flipping of the matrix, and then you've got something. :cool:

                                        1 Reply Last reply
                                        0
                                        • K kalberts

                                          When we were students, a long, long time ago, one of my fellow students realized that he didn't master recursion very well - termination conditions in particular. So he defined a simple programming challenge for himself: The program should draw a vertical zigzag line of asterisks on the printer (this was in the age of line printers): A count of spaces reflecting the recursion depth, with a "*" at the end. Each function call creates one such line, nothing else. Now, at the top, "main()" level, he would call the recursive function with an argument MaxRecursionDepth to which the recursion should go directly when started (creating a slanted line of asterisks), an argumment IntermediateRecursionDepth to which the recursion should unroll (continuing the line, slanting the other way, but not all the way back). Then, it should recurse deeper again to MaxRecursionDepth and unroll to IntermediateRecursionDepth, reapeated as many times as indicated by the third agument, NumberOfPeaks, before unrolling to complete the program. The printout should look like a tipped-over contour of a row of mountain peaks separated by valleys, the peak height, number of peaks and valley depths given by the three arguments. If you have been writing recursive functions every day the last ten years, this is quite trivial. But if you are a student who heard the term 'recursion' for the first time last week, it takes some fiddeling to get those termination tests (and re-recursing tests) right. And then, when you see the working solution, you won't understand why it took that much effort to get it correct :-)

                                          P Offline
                                          P Offline
                                          PIEBALDconsult
                                          wrote on last edited by
                                          #27

                                          Except we wouldn't use recursion, would we? :suss:

                                          K 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