📜 ⬆️ ⬇️

Small Javascript programs: where to go

Yes, I’m talking about an avalanche-like stream of articles about javascript programs in 30 lines, which covered Habr. Honestly, I myself am an ardent lover of the (special?) Discipline of golf code on js, and spent more than one day off trying to squeeze the function into a tweet. And although I like the spirit of thirty-line, I do not like this format.

Why? The limitation of 30 sloc is very, very blurry: a.pop();s+='foo' - rather two lines, and a.pop(s+='foo') - most likely one, although these two pieces of code do exactly one thing same And practice has shown that even 30 slots are not an obligatory restriction, and HTML and CSS are not considered at all. In other words, it is impossible to measure the tiny with slokas, and nobody needs it.

Gentlemen, this is not serious.
')
But this does not mean that it is necessary right now to throw a thirty-line, unfinished by Friday. But when you play enough, welcome to the big leagues!

js1k


js1k.com

This is a real competition, with cash and material prizes, which has been held since 2010. The organizer, Peter van der Zee ( @kuvos ), offers a topic for each contest, but it is not at all mandatory.

But the set of rules is obligatory, which has not changed significantly since 2010:

Instead, you can expect that on the page where your script will be embedded, there will be a pre-created element , c , a 2d- .

, , . , , DOM, , b document.body . WebGL , , , .

, , .

DemoJS
demojs.org , www.pouet.net/party.php?which=1570

, 2011 . -, Assembly, Breakpoint Chaos Constructions, C, C++ .

, : 1K, 8K Demo. 1K 8K ( ) 1024 8192 . Demo .

, . , JSEXE , « » , JS PNG, … .

. , , . , 1K 8K , , - .

140 bytes
140byt.es

js--, (Jed Schmidt, jed.is ) 2011. , («»). . , WTFPL ( ).

, , :
140 , (« Expression »), . .., — , for — , - . , var .
— , gist.github.com ( , , , ), .

, gist.github.com/140bytes/962807 . , , git — -, . , «Fork», , , , — .

, js1k, , .

microjs
microjs.com

, , . Microjs — . GZIP 5120 (5 ) . ? , : , -, , .

, Zepto, Modernizr, Mustache . , , .


, js' / , .. - . , , — , . , .
, c , a 2d- .

, , . , , DOM, , b document.body . WebGL , , , .

, , .

DemoJS
demojs.org , www.pouet.net/party.php?which=1570

, 2011 . -, Assembly, Breakpoint Chaos Constructions, C, C++ .

, : 1K, 8K Demo. 1K 8K ( ) 1024 8192 . Demo .

, . , JSEXE , « » , JS PNG, … .

. , , . , 1K 8K , , - .

140 bytes
140byt.es

js--, (Jed Schmidt, jed.is ) 2011. , («»). . , WTFPL ( ).

, , :
140 , (« Expression »), . .., — , for — , - . , var .
— , gist.github.com ( , , , ), .

, gist.github.com/140bytes/962807 . , , git — -, . , «Fork», , , , — .

, js1k, , .

microjs
microjs.com

, , . Microjs — . GZIP 5120 (5 ) . ? , : , -, , .

, Zepto, Modernizr, Mustache . , , .


, js' / , .. - . , , — , . , .

, c , a 2d- .

, , . , , DOM, , b document.body . WebGL , , , .

, , .

DemoJS
demojs.org , www.pouet.net/party.php?which=1570

, 2011 . -, Assembly, Breakpoint Chaos Constructions, C, C++ .

, : 1K, 8K Demo. 1K 8K ( ) 1024 8192 . Demo .

, . , JSEXE , « » , JS PNG, … .

. , , . , 1K 8K , , - .

140 bytes
140byt.es

js--, (Jed Schmidt, jed.is ) 2011. , («»). . , WTFPL ( ).

, , :
140 , (« Expression »), . .., — , for — , - . , var .
— , gist.github.com ( , , , ), .

, gist.github.com/140bytes/962807 . , , git — -, . , «Fork», , , , — .

, js1k, , .

microjs
microjs.com

, , . Microjs — . GZIP 5120 (5 ) . ? , : , -, , .

, Zepto, Modernizr, Mustache . , , .


, js' / , .. - . , , — , . , .

, c , a 2d- .

, , . , , DOM, , b document.body . WebGL , , , .

, , .

DemoJS
demojs.org , www.pouet.net/party.php?which=1570

, 2011 . -, Assembly, Breakpoint Chaos Constructions, C, C++ .

, : 1K, 8K Demo. 1K 8K ( ) 1024 8192 . Demo .

, . , JSEXE , « » , JS PNG, … .

. , , . , 1K 8K , , - .

140 bytes
140byt.es

js--, (Jed Schmidt, jed.is ) 2011. , («»). . , WTFPL ( ).

, , :
140 , (« Expression »), . .., — , for — , - . , var .
— , gist.github.com ( , , , ), .

, gist.github.com/140bytes/962807 . , , git — -, . , «Fork», , , , — .

, js1k, , .

microjs
microjs.com

, , . Microjs — . GZIP 5120 (5 ) . ? , : , -, , .

, Zepto, Modernizr, Mustache . , , .


, js' / , .. - . , , — , . , .

, c , a 2d- .

, , . , , DOM, , b document.body . WebGL , , , .

, , .

DemoJS
demojs.org , www.pouet.net/party.php?which=1570

, 2011 . -, Assembly, Breakpoint Chaos Constructions, C, C++ .

, : 1K, 8K Demo. 1K 8K ( ) 1024 8192 . Demo .

, . , JSEXE , « » , JS PNG, … .

. , , . , 1K 8K , , - .

140 bytes
140byt.es

js--, (Jed Schmidt, jed.is ) 2011. , («»). . , WTFPL ( ).

, , :
140 , (« Expression »), . .., — , for — , - . , var .
— , gist.github.com ( , , , ), .

, gist.github.com/140bytes/962807 . , , git — -, . , «Fork», , , , — .

, js1k, , .

microjs
microjs.com

, , . Microjs — . GZIP 5120 (5 ) . ? , : , -, , .

, Zepto, Modernizr, Mustache . , , .


, js' / , .. - . , , — , . , .

, c , a 2d- .

, , . , , DOM, , b document.body . WebGL , , , .

, , .

DemoJS
demojs.org , www.pouet.net/party.php?which=1570

, 2011 . -, Assembly, Breakpoint Chaos Constructions, C, C++ .

, : 1K, 8K Demo. 1K 8K ( ) 1024 8192 . Demo .

, . , JSEXE , « » , JS PNG, … .

. , , . , 1K 8K , , - .

140 bytes
140byt.es

js--, (Jed Schmidt, jed.is ) 2011. , («»). . , WTFPL ( ).

, , :
140 , (« Expression »), . .., — , for — , - . , var .
— , gist.github.com ( , , , ), .

, gist.github.com/140bytes/962807 . , , git — -, . , «Fork», , , , — .

, js1k, , .

microjs
microjs.com

, , . Microjs — . GZIP 5120 (5 ) . ? , : , -, , .

, Zepto, Modernizr, Mustache . , , .


, js' / , .. - . , , — , . , .
, c , a 2d- .

, , . , , DOM, , b document.body . WebGL , , , .

, , .

DemoJS
demojs.org , www.pouet.net/party.php?which=1570

, 2011 . -, Assembly, Breakpoint Chaos Constructions, C, C++ .

, : 1K, 8K Demo. 1K 8K ( ) 1024 8192 . Demo .

, . , JSEXE , « » , JS PNG, … .

. , , . , 1K 8K , , - .

140 bytes
140byt.es

js--, (Jed Schmidt, jed.is ) 2011. , («»). . , WTFPL ( ).

, , :
140 , (« Expression »), . .., — , for — , - . , var .
— , gist.github.com ( , , , ), .

, gist.github.com/140bytes/962807 . , , git — -, . , «Fork», , , , — .

, js1k, , .

microjs
microjs.com

, , . Microjs — . GZIP 5120 (5 ) . ? , : , -, , .

, Zepto, Modernizr, Mustache . , , .


, js' / , .. - . , , — , . , .

, c , a 2d- .

, , . , , DOM, , b document.body . WebGL , , , .

, , .

DemoJS
demojs.org , www.pouet.net/party.php?which=1570

, 2011 . -, Assembly, Breakpoint Chaos Constructions, C, C++ .

, : 1K, 8K Demo. 1K 8K ( ) 1024 8192 . Demo .

, . , JSEXE , « » , JS PNG, … .

. , , . , 1K 8K , , - .

140 bytes
140byt.es

js--, (Jed Schmidt, jed.is ) 2011. , («»). . , WTFPL ( ).

, , :
140 , (« Expression »), . .., — , for — , - . , var .
— , gist.github.com ( , , , ), .

, gist.github.com/140bytes/962807 . , , git — -, . , «Fork», , , , — .

, js1k, , .

microjs
microjs.com

, , . Microjs — . GZIP 5120 (5 ) . ? , : , -, , .

, Zepto, Modernizr, Mustache . , , .


, js' / , .. - . , , — , . , .

, c , a 2d- .

, , . , , DOM, , b document.body . WebGL , , , .

, , .

DemoJS
demojs.org , www.pouet.net/party.php?which=1570

, 2011 . -, Assembly, Breakpoint Chaos Constructions, C, C++ .

, : 1K, 8K Demo. 1K 8K ( ) 1024 8192 . Demo .

, . , JSEXE , « » , JS PNG, … .

. , , . , 1K 8K , , - .

140 bytes
140byt.es

js--, (Jed Schmidt, jed.is ) 2011. , («»). . , WTFPL ( ).

, , :
140 , (« Expression »), . .., — , for — , - . , var .
— , gist.github.com ( , , , ), .

, gist.github.com/140bytes/962807 . , , git — -, . , «Fork», , , , — .

, js1k, , .

microjs
microjs.com

, , . Microjs — . GZIP 5120 (5 ) . ? , : , -, , .

, Zepto, Modernizr, Mustache . , , .


, js' / , .. - . , , — , . , .

, c , a 2d- .

, , . , , DOM, , b document.body . WebGL , , , .

, , .

DemoJS
demojs.org , www.pouet.net/party.php?which=1570

, 2011 . -, Assembly, Breakpoint Chaos Constructions, C, C++ .

, : 1K, 8K Demo. 1K 8K ( ) 1024 8192 . Demo .

, . , JSEXE , « » , JS PNG, … .

. , , . , 1K 8K , , - .

140 bytes
140byt.es

js--, (Jed Schmidt, jed.is ) 2011. , («»). . , WTFPL ( ).

, , :
140 , (« Expression »), . .., — , for — , - . , var .
— , gist.github.com ( , , , ), .

, gist.github.com/140bytes/962807 . , , git — -, . , «Fork», , , , — .

, js1k, , .

microjs
microjs.com

, , . Microjs — . GZIP 5120 (5 ) . ? , : , -, , .

, Zepto, Modernizr, Mustache . , , .


, js' / , .. - . , , — , . , .

, c , a 2d- .

, , . , , DOM, , b document.body . WebGL , , , .

, , .

DemoJS
demojs.org , www.pouet.net/party.php?which=1570

, 2011 . -, Assembly, Breakpoint Chaos Constructions, C, C++ .

, : 1K, 8K Demo. 1K 8K ( ) 1024 8192 . Demo .

, . , JSEXE , « » , JS PNG, … .

. , , . , 1K 8K , , - .

140 bytes
140byt.es

js--, (Jed Schmidt, jed.is ) 2011. , («»). . , WTFPL ( ).

, , :
140 , (« Expression »), . .., — , for — , - . , var .
— , gist.github.com ( , , , ), .

, gist.github.com/140bytes/962807 . , , git — -, . , «Fork», , , , — .

, js1k, , .

microjs
microjs.com

, , . Microjs — . GZIP 5120 (5 ) . ? , : , -, , .

, Zepto, Modernizr, Mustache . , , .


, js' / , .. - . , , — , . , .

Source: https://habr.com/ru/post/202944/


All Articles