News for hackers. Stuff that matters.
Re:#songsincode - Birthing a Trend by petercooper on Saturday August 22, 2009 @11:12AM (#779369)
The one I did that seemed to go down best on Twitter:

   problems.size == 99 && !problems.include?("bitch")
Re:#songsincode - Birthing a Trend by tome on Saturday August 22, 2009 @11:57AM (#779436)
It's interesting how using a different language gives a slightly different flavour, e.g. Python:

len(problems) == 99 and "bitch" not in problems

Re:#songsincode - Birthing a Trend by tortilla on Saturday August 22, 2009 @11:15AM (#779373)
http://twitter.com/pud/status/3439453476

  If (BillieJean.is != my.lover) 
    {
      BillieJean.justa = 'girl';
      i = 1;
    }
Re:#songsincode - Birthing a Trend by dmoney on Saturday August 22, 2009 @12:44PM (#779483)
http://twitter.com/cathodion/status/3461646455

  s="bottles of beer on the wall\n";
  99.downto(1){|b| 
    puts "#{b} #{s}#{b} #{s[0,16]}\nif a bottle happens to fall\n#{b-1} #{s}\n"} 
  #songsincode
Re:#songsincode - Birthing a Trend by kwamenum86 on Saturday August 22, 2009 @12:54PM (#779492)
Nice
Re:#songsincode - Birthing a Trend by thirdusername on Saturday August 22, 2009 @11:26AM (#779384)
http://piecesofrakesh.blogspot.com/2009/08/songs-in-code.htm... popped into my newsreader this morning, had a few more good ones. :)
Re:#songsincode - Birthing a Trend by diego on Saturday August 22, 2009 @11:27AM (#779386)
Check it out graphically. Click anywhere on the chart and see how it started, peaked and came back down.

http://trendistic.com/songsincode/_7-days

Re:#songsincode - Birthing a Trend by bwr on Saturday August 22, 2009 @12:13PM (#779449)
I think they should actually play songs... I'm not very good at it, but I tried: http://twitter.com/beenewilliamr/status/3436763908
Re:#songsincode - Birthing a Trend by JimmyL on Saturday August 22, 2009 @01:08PM (#779517)
For the Torontonians out there:

   if place.standable() and place.growable():
     place.name = 'Ontario'
     us = place
Re:#songsincode - Birthing a Trend by dylanz on Saturday August 22, 2009 @11:30AM (#779390)

  <?php
1 GOTO 10

2 GOTO 11

3 GOTO 10

4 GOTO 11

5 GOTO 10

6 GOTO 12

7 GOTO 10

8 GOTO 12

9 GOTO 13

10 print "Jump"

11 print "around"

12 print "up"

13 print "and get down"

  ?>
Re:#songsincode - Birthing a Trend by alex_c on Saturday August 22, 2009 @11:35AM (#779401)
"Jump around up and get down"?
Re:#songsincode - Birthing a Trend by dylanz on Saturday August 22, 2009 @12:01PM (#779439)
Heh... yeah. I meant well, but my tea pot was screaming, and was more important than integrating php goto mockery into this topic :)
Re:#songsincode - Birthing a Trend by alex_c on Saturday August 22, 2009 @12:16PM (#779453)
Tough audience, I guess HN really hates buggy code :p
Re:#songsincode - Birthing a Trend by kwamenum86 on Saturday August 22, 2009 @12:56PM (#779494)
I think they hate GOTO's more