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

WTSOTCOTD

Scheduled Pinned Locked Moved The Lounge
com
14 Posts 6 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.
  • E Emmanuel Medina

    What's the song of this code of the day Original idea by: Thomas Haller[^] Previous ones here[^] here[^] and here[^] Genre: Alternative Rock

    var wordList = new List();
    for (i = 0; i < 1000; i++)
    {
    string word = GetWord();
    wordList.Add(word);
    }

    Since yesterday's was too easy I decided to bring it up a notch.

    If you think you can do a thing or think you can't do a thing, you're right - Henry Ford Emmanuel Medina Lopez

    Mike HankeyM Offline
    Mike HankeyM Offline
    Mike Hankey
    wrote on last edited by
    #4

    Candlebox?

    VS2010/Atmel Studio 6.1 ToDo Manager Extension Some days, it's just not worth chewing through the restraints.

    E 1 Reply Last reply
    0
    • Mike HankeyM Mike Hankey

      Candlebox?

      VS2010/Atmel Studio 6.1 ToDo Manager Extension Some days, it's just not worth chewing through the restraints.

      E Offline
      E Offline
      Emmanuel Medina
      wrote on last edited by
      #5

      Nope, they don't seem to have any song by that title

      If you think you can do a thing or think you can't do a thing, you're right - Henry Ford Emmanuel Medina Lopez

      1 Reply Last reply
      0
      • E Emmanuel Medina

        Close, but Sweetbox is pop I believe? the genre of this one is Alternative Rock

        If you think you can do a thing or think you can't do a thing, you're right - Henry Ford Emmanuel Medina Lopez

        B Offline
        B Offline
        Bassam Abdul Baki
        wrote on last edited by
        #6

        Same name by Chair Warriors[^].

        Web - BM - RSS - Math - LinkedIn

        E 1 Reply Last reply
        0
        • B Bassam Abdul Baki

          Same name by Chair Warriors[^].

          Web - BM - RSS - Math - LinkedIn

          E Offline
          E Offline
          Emmanuel Medina
          wrote on last edited by
          #7

          Since it is Alternative Rock and they do have a song with the appropiate title I'll take it as good. I'm amused that it's the first time I hear about all the bands that have been mentioned :laugh:

          If you think you can do a thing or think you can't do a thing, you're right - Henry Ford Emmanuel Medina Lopez

          B 1 Reply Last reply
          0
          • E Emmanuel Medina

            Since it is Alternative Rock and they do have a song with the appropiate title I'll take it as good. I'm amused that it's the first time I hear about all the bands that have been mentioned :laugh:

            If you think you can do a thing or think you can't do a thing, you're right - Henry Ford Emmanuel Medina Lopez

            B Offline
            B Offline
            Bassam Abdul Baki
            wrote on last edited by
            #8

            Was there another answer?

            Web - BM - RSS - Math - LinkedIn

            E 1 Reply Last reply
            0
            • B Bassam Abdul Baki

              Was there another answer?

              Web - BM - RSS - Math - LinkedIn

              E Offline
              E Offline
              Emmanuel Medina
              wrote on last edited by
              #9

              The one I was thinking of was Hoobastank - A Thousand Words[^]

              If you think you can do a thing or think you can't do a thing, you're right - Henry Ford Emmanuel Medina Lopez

              1 Reply Last reply
              0
              • E Emmanuel Medina

                What's the song of this code of the day Original idea by: Thomas Haller[^] Previous ones here[^] here[^] and here[^] Genre: Alternative Rock

                var wordList = new List();
                for (i = 0; i < 1000; i++)
                {
                string word = GetWord();
                wordList.Add(word);
                }

                Since yesterday's was too easy I decided to bring it up a notch.

                If you think you can do a thing or think you can't do a thing, you're right - Henry Ford Emmanuel Medina Lopez

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

                It's not alternative rock, but Thousand Cranes[^] by Hiroshima?

                Software Zen: delete this;

                E 1 Reply Last reply
                0
                • G Gary Wheeler

                  It's not alternative rock, but Thousand Cranes[^] by Hiroshima?

                  Software Zen: delete this;

                  E Offline
                  E Offline
                  Emmanuel Medina
                  wrote on last edited by
                  #11

                  You are right on the "Thousand" part.

                  If you think you can do a thing or think you can't do a thing, you're right - Henry Ford Emmanuel Medina Lopez

                  1 Reply Last reply
                  0
                  • E Emmanuel Medina

                    What's the song of this code of the day Original idea by: Thomas Haller[^] Previous ones here[^] here[^] and here[^] Genre: Alternative Rock

                    var wordList = new List();
                    for (i = 0; i < 1000; i++)
                    {
                    string word = GetWord();
                    wordList.Add(word);
                    }

                    Since yesterday's was too easy I decided to bring it up a notch.

                    If you think you can do a thing or think you can't do a thing, you're right - Henry Ford Emmanuel Medina Lopez

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

                    Don't know the song, but they say it is worth a picture. (A picture is very undervalued by that saying, I saved a PNG in a third of a meg and the same picture in JPEG is over a meg. You would rarely need 20 bytes or more to store a word so my smallest picture is almost worth 20 thousand words and based on general word length, it might be worth over 20K. PS, think you have a bug in that code:

                    var wordList = new List();
                    string word = GetWord();
                    for (i = 0; i < 1000 && word != null; i++)
                    {
                    wordList.Add(word);
                    if (i != 999) word = GetWord();
                    }

                    That's assuming when you run out of words it returns null. :-D It also seems strange that "i" is a predefined variable before you reach the loop.

                    E 1 Reply Last reply
                    0
                    • K KP Lee

                      Don't know the song, but they say it is worth a picture. (A picture is very undervalued by that saying, I saved a PNG in a third of a meg and the same picture in JPEG is over a meg. You would rarely need 20 bytes or more to store a word so my smallest picture is almost worth 20 thousand words and based on general word length, it might be worth over 20K. PS, think you have a bug in that code:

                      var wordList = new List();
                      string word = GetWord();
                      for (i = 0; i < 1000 && word != null; i++)
                      {
                      wordList.Add(word);
                      if (i != 999) word = GetWord();
                      }

                      That's assuming when you run out of words it returns null. :-D It also seems strange that "i" is a predefined variable before you reach the loop.

                      E Offline
                      E Offline
                      Emmanuel Medina
                      wrote on last edited by
                      #13

                      Bug free code was not my aim, still, thanks pointing it out.

                      If you think you can do a thing or think you can't do a thing, you're right - Henry Ford Emmanuel Medina Lopez

                      K 1 Reply Last reply
                      0
                      • E Emmanuel Medina

                        Bug free code was not my aim, still, thanks pointing it out.

                        If you think you can do a thing or think you can't do a thing, you're right - Henry Ford Emmanuel Medina Lopez

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

                        I kind of figured that you weren't looking for bug-free code, my "code review" was just me having fun.

                        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