Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-

Good JavaScript programming book?

Name: Anonymous 2011-10-31 16:23

Sup, /p/?

I'm learning how to program in JS, and wondering if y'all could suggest a good book for it. I've already blazed through JavaScript: The Good Parts. Guess I need to learn about the bad parts now...

Name: FrozenVoid 2011-10-31 16:41

>>1
Having to declare functions,vars and other minor syntax quirks(if x!=null && x.prop!=null && x.prop.prop!=null)
Lack of typed variables, Layers of cruft/security/bureacracy which make ArrayBuffer and IntXArrays hard to use or integrate into other parts. 
Lack of system integration: the bureaucracy layers of JS which involve security in any form are lovecraftian
Lots of browser-specific code,alot of cool stuff is only available for recent FF/Chrome/Opera builds
DOM performance limits, WebGL not working half the time
Errors can be silently supressed and script will just not run(it will stop at error, but will not display anything to error console)

Name: Mentifex 2011-10-31 16:45

http://www.chatbots.org/book/ai4u/

(Artificial Intelligence for You) is a book about coding

http://www.scn.org/~mentifex/AiMind.html

Ai in JavaScript for Microsoft Internet Explorer (MSIE).

Name: Anonymous 2011-10-31 17:03

JavaScript still lacks macros or preprocessor define

Name: Anonymous 2011-10-31 17:16

>>3
Damn', that is some beautiful grade A madness. Nice to see a FORTH implementation too. There's a language I already know and love.

Name: Anonymous 2011-10-31 20:17

>>3,5
How credible, stupid spammer of worthless shit...

Name: Anonymous 2011-10-31 20:26

>>1
That would be: JavaScript: The definitive guide.

Name: Anonymous 2011-10-31 20:38

http://eloquentjavascript.net/
It's an `interactive' book; you can play with and test the examples as you go along.

Name: Anonymous 2011-11-01 1:09

>>4

I haven't tried, but I bet you can do it pretty easily with eval. It opens up security holes, but that's probably not such a big deal with java script running in someones browser.

Name: Anonymous 2011-11-01 1:26

using javascript over python

Name: FrozenVoid 2011-11-01 2:08

Open error console
Create a webpage
save to disk
edit webpage
reload webpage in browser
Read-eval-print for free.

Name: FrozenVoid 2011-11-01 2:18

For some scripts i even have window.timeOut(update,10000) so it reloads the latest version of the script automatically(with selectable intervals).
so its really write-view results

Name: Anonymous 2011-11-01 3:33

>>1
start off by reading through some of the pages on quirksmode to get a feel of how terrible javascript used to be due to browser incompatibilities.

lucky for you, things have changed since the dark old days and JavaScript got formalised as ECMAscript. so ... you might want to read through the reference to ensure you know of all its features.

the browser API's got standardized by W3C and there's a metric shitton of them (http://www.w3.org/standards/techs/js). the HTML5 team is also creating new API's. Not everything is supported everywhere so code accordingly.

NB: the web is full of shitty javascript that got copy pasted from site to site. stay away from those shitty tutorial sites, the only site i really use is MDN.

Name: Anonymous 2011-11-01 4:36

Name: Anonymous 2011-11-01 11:18

Question: I've hear document.writeln is a bad practice, but what alternatives?

not op btw just hijacking

Name: FrozenVoid 2011-11-01 11:58

>>15
try document.body.innerHTML+=content or element.innerHTML+=content

Name: Anonymous 2011-11-01 12:18

try document.body.appendChild(document.createElement('h1').appendChild(document.createTextNode('herp n derp')))

Name: FrozenVoid 2011-11-01 12:30

>>17
Its vastly slower than altering raw HTML. A script could construct a dozen of pages on the fly(string/array join ops) while you much with structure of childNodes/parentNode and wait for redraw(since HTML is reparsed each time you insert a node)

Name: Anonymous 2011-11-01 16:26

>>18
STFU. noone cares about your micro optimizations, ``faggot''. We do this shit for a living: other programmers have to be able to quickly understand/debug our code. so we use the DOM. your priorities betray your inexperience in the Real World.

(also: you can simply use document fragments to avoid a redraw, n00b)

Name: Anonymous 2011-11-01 17:26

>>19
But Real World VROOM OMG OPTIMIZED must be fast.

Name: Anonymous 2011-11-01 22:16

>>20
U MENA GENTOO OPTIMIZED?

YO! DAWG CFLAGS JUST KICKED IN!!!

Name: Anonymous 2013-09-01 14:06


Multiplication is associative (κ·μ)·ν = κ·(μ·ν).

Don't change these.
Name: Email:
Entire Thread Thread List