If Andre Breton wrote Javascript...

For AI and campaign script related discussions and questions
Post Reply
User avatar
aubergine
Professional
Professional
Posts: 3459
Joined: 10 Oct 2010, 00:58
Contact:

If Andre Breton wrote Javascript...

Post by aubergine »

Function to get fobonacci sequence of given length...

Code: Select all

function Colette(umbrella) {
  var staircase = 0, galleons = 0, brigantines = 1, armada = [galleons, brigantines], bassoon;
  Array.prototype.embrace = [].push;

  while(2 + staircase++ < umbrella) {
    bassoon = galleons + brigantines;
    armada.embrace(brigantines = (galleons = brigantines, bassoon));
  }

  return armada;
}
More authors: http://byfat.xxx/if-hemingway-wrote-javascript
"Dedicated to discovering Warzone artefacts, and sharing them freely for the benefit of the community."
-- https://warzone.atlassian.net/wiki/display/GO
raycast
Trained
Trained
Posts: 131
Joined: 12 Sep 2012, 19:16

If Jacques Philippe Marie Binet wrote C...

Post by raycast »

If Jacques Philippe Marie Binet wrote <strike>JavaScript</strike> C:

Code: Select all

int fib = (int) round(pow((1.+sqrt(5.))/2., n)/sqrt(5.));
... because they know how to implement fibonacci in sub-linear time and this kicks JavaScript ass...
User avatar
aubergine
Professional
Professional
Posts: 3459
Joined: 10 Oct 2010, 00:58
Contact:

Re: If Andre Breton wrote Javascript...

Post by aubergine »

True, but sadly lacking in surrealism.
"Dedicated to discovering Warzone artefacts, and sharing them freely for the benefit of the community."
-- https://warzone.atlassian.net/wiki/display/GO
User avatar
Nameless
Trained
Trained
Posts: 176
Joined: 03 May 2010, 08:25
Location: Space, the Final Frontier

Re: If Andre Breton wrote Javascript...

Post by Nameless »

I especially liked Shakespeare's, even though I don't do much Javascripting; all his comments sure helped haha
If you're reading this; you're awesome.
Post Reply