Topic: 20 Liners - January 08 - Dynamics (Page 1 of 4) |
|
|---|---|
|
Bipolar (III) Inmate From: Cranleigh, Surrey, England |
posted 01-03-2008 17:52
This month's theme is: Dynamics. quote:
|
|
Bipolar (III) Inmate From: Switzerland |
posted 01-03-2008 18:37
We can call that a "concept entry" and label it time machine |
|
Nervous Wreck (II) Inmate From: |
posted 01-03-2008 22:35
Great concept. Totally all over this! |
|
Bipolar (III) Inmate From: Switzerland |
posted 01-04-2008 08:58
|
|
Paranoid (IV) Inmate From: Norway |
posted 01-04-2008 11:47
|
|
Bipolar (III) Inmate From: Cranleigh, Surrey, England |
posted 01-04-2008 14:48
Yay! Another competitor ^_^ I wonder if there are any around who only frequent the general forum but used to participate back in the day? Also, I was a fan of restricting to 20 lines - adds to the challenge. But maybe if the winner each month wants to set the line limit in addition to the topic for the following month? |
|
Paranoid (IV) Inmate From: Norway |
posted 01-04-2008 18:42
Settings the line/size limit is cool too. |
|
Nervous Wreck (II) Inmate From: |
posted 01-04-2008 21:38
First entry, woo! (Simulation of a growing tree counts as dynamics, right?) |
|
Bipolar (III) Inmate From: Switzerland |
posted 01-05-2008 12:44
Stunning. Stop being sorry and spend some of that time with Ms. Wallaby, you just raised the challenge *that* much. |
|
Bipolar (III) Inmate From: Cranleigh, Surrey, England |
posted 01-05-2008 14:43
IW: Very impressive |
|
Paranoid (IV) Inmate From: Norway |
posted 01-05-2008 17:09
|
|
Paranoid (IV) Inmate From: cell 3736 |
posted 01-07-2008 17:55
my humble try |
|
Bipolar (III) Inmate From: Cranleigh, Surrey, England |
posted 01-07-2008 23:44
Arthurio: Don't put yourself down; I think it's quite funky ^_^ Though that said, the more entries the better. Just one thing, if you find yourself running out of lines, consider the '?' operator, it could cut the 4 lines concerning the origin of the explosion down to 2 (easily) or 1 (with a little cheeky fiddling :P) |
|
Paranoid (IV) Inmate From: Norway |
posted 01-07-2008 23:57
Nice. code: var x = Math.round(Math.random()*540)+50; if (e.pageX) x = e.pageX; var y = Math.round(Math.random()*380)+50; if (e.pageY) y = e.pageY; becomes code: var x = (e||{}).pageX||Math.round(Math.random()*540)+50;
var y = (e||{}).pageY||Math.round(Math.random()*380)+50;Notice the (e||{}) which fixes the JS error of trying to access a property of e when shoot() is called by the setInterval() |
|
Paranoid (IV) Inmate From: cell 3736 |
posted 01-08-2008 02:26
thanks, I'm working on something new tho |
|
Paranoid (IV) Inmate From: cell 3736 |
posted 01-08-2008 23:06
and here it is |
|
Paranoid (IV) Inmate From: cell 3736 |
posted 01-09-2008 15:10
about rules ... is |
|
Paranoid (IV) Inmate From: Norway |
posted 01-09-2008 16:10
I'd say 3. code: /* 01 */ try
/* */ {
/* 02 */ a[i] = b;
/* */ }
/* 03 */ catch( e )
/* */ {
/* */ // ...
/* */ }But don't worry, people won't bite your head off if you post a 25 liner. Are you sure you need to catch the exception anyway ? can't you check if b is valid or provide a default value. |
|
Paranoid (IV) Inmate From: Norway |
posted 01-10-2008 05:27
Ok, so how many lines do you guys count for this very specific methods currier ? code: /* A */ for( chainThat in {methodA:1,methodB:1} )
/* */ {
/* B */ anObject.prototype[chainThat] = function( func )
/* */ {
/* C */ return function()
/* */ {
/* D */ return func.apply( this, arguments )||this;
/* */ }
/* E */ }( anObject.prototype[chainThat] );
/* */ }
|
|
Paranoid (IV) Inmate From: Switzerland |
posted 01-10-2008 08:22
What's with getting all feely?-) |
|
Nervous Wreck (II) Inmate From: |
posted 01-10-2008 11:15
I count 4 lines, though I DO consider the technique similar to using a comma to put an extra line of code in. |
|
Paranoid (IV) Inmate From: Norway |
posted 01-10-2008 11:24
|
|
Paranoid (IV) Inmate From: Switzerland |
posted 01-10-2008 11:26
I am not saying you do : I am just witnessing that many large companies use a js lib that does not care much about backwards compatibility. |
|
Paranoid (IV) Inmate From: cell 3736 |
posted 01-11-2008 10:53
Candle flame in 10 lines |
|
Paranoid (IV) Inmate From: Switzerland |
posted 01-11-2008 10:59
Excellent Arthurio, you're getting the hang of it : it's a GAME - so, much like relationships, it's not about winning and losing, |
|
Paranoid (IV) Inmate From: cell 3736 |
posted 01-11-2008 11:36
Thanks but ... awww ... you're so full of yourself quote:
|
|
Paranoid (IV) Inmate From: Switzerland |
posted 01-11-2008 11:54
I happen to know my worth, bite me. quote:
quote:
|
|
Paranoid (IV) Inmate From: Norway |
posted 01-11-2008 12:03
|
|
Paranoid (IV) Inmate From: Switzerland |
posted 01-11-2008 12:08
No prob, poi, to me it's "over" - but it's important to set boundaries early on also in relationships, |
|
Paranoid (IV) Inmate From: cell 3736 |
posted 01-11-2008 13:27
argo navis: wow what a reaction. Sorry I offended you but I really couldn't see any constructive criticism in the sentences that I quoted. Other than that you said that my 2. entry was sluggish. Yeah, I know. I think we much missed our intended tones of our initial posts as it so often happens on the internet. I hope you can forgive me one day. |
|
Paranoid (IV) Inmate From: Norway |
posted 01-11-2008 13:37
Arthurio: you sure it's the calculation itself ? In my experience the bottleneck is usually the rendering engine. If you don't mind dropping IE compatibility, you could generate a BMP image using a data: URI*. I tested a fire effect using the one-zillion-DIV technique versus the BMP data: URI . The later was almost 20x faster. |
|
Paranoid (IV) Inmate From: Switzerland |
posted 01-11-2008 13:42
Do not lend me intentions or distort them - you called me "full of yourself", don't try that again out of a humorous comment which yours was NOT, |
|
Paranoid (IV) Inmate From: Norway |
posted 01-11-2008 13:47
quote: Can be bothered to check, but the comment you made right after this quote wasn't exactly positive. |
|
Paranoid (IV) Inmate From: Switzerland |
posted 01-11-2008 13:50
I AM here for that and you are not adressing my question either. |
|
Paranoid (IV) Inmate From: cell 3736 |
posted 01-11-2008 13:52
|
|
Paranoid (IV) Inmate From: Switzerland |
posted 01-11-2008 14:02
No real improvement there, just a different decoration : a more realistic flame looks like this, posted a few years ago. |
|
Paranoid (IV) Inmate From: Norway |
posted 01-11-2008 14:04
|
|
Paranoid (IV) Inmate From: Switzerland |
posted 01-11-2008 14:21
So, to wrap it up Arthurio : there is a third option for you to regain my respect. |
|
Paranoid (IV) Inmate From: cell 3736 |
posted 01-11-2008 14:22
argo navis: I apologize for improperly apologizing for reacting to a post of yours that was insulting to me. I have hard time putting this into English but I couldn't let you off with a post that in ways (imo falsely) implied my inferior understanding of this particular form of entertainment and of things that in no way concern the thread nor my entries. I've read your post a few more times now and I see now that although your post seemed insulting to me It was obviously not in your heart to mean harm and this is why I'm apologizing for my harsh reaction. |
|
Paranoid (IV) Inmate From: Switzerland |
posted 01-11-2008 14:28
Peace out : I do sound cocky and arrogant and full of myself (because my smile and my heart do not show up on the web - just the words), |
[1] 2 3 4 — Next Page »