Posts Tagged ‘JavaScript’

D3: Tutorial – Scale graph

First Protovis, now D3. Both are works from Mike Bostock. Both are data visualization JavaScript libraries. This tutorial we’re going to create a basic dot graph with scalable y-axis. It is adapted from one of the examples in D3, dot.html. Step 1: Default html First of all, we create a default html that contains a [...]

Javascript: 101 Week 5 Track 2

On week 5 track 2, we continue study chapter 12 and 13 on Eloquent Javascript. Both chapters are related to document-object model and browser events. Reflection What factors make accessing nodes according to their structural order (by using the ‘firstChild’ and ‘lastChild’ properties, for example) an inefficient and potentially unreliable approach? What alternatives are available?We [...]

Javascript: 101 Week 5 Track 1

On this week, we continue watching ‘An Incovenient API – The Theory of the DOM’ part 2 as below by Douglas Crockford Douglas Crockford: "Theory of the DOM" (2 of 3) @ Yahoo! Video Reflection Why is it better to use either trickling or bubbling of events? Why not just give the event to the [...]

Javascript: 101 Week 4

Since track 2 is the subset for track 1 in week 4, so we combine them both to this post. On this week, beside watching ‘An Incovenient API – The Theory of the DOM’ as below by Douglas Crockford, we also need to reading these articles below on understanding on DOM. Aticle: Traversing the DOM [...]

Javascript: 101 Week 3 Track 2

On track 2 week 3, we are continuing reading Eloquent Javascript ebook on chapter 6: Functional Programming and JavaScript code style. Reflection Why is it helpful to break a programs logic into functions?As programs get bigger, it helps us easy to understand the program logic. In JavaScript, functions are first class objects. What does it [...]

Javascript: 101 Week 3 Track 1

On track 1 week 3, we are continuing understanding JavaScript through Douglas Crockford’ video 3 and video 4 as below. Douglas Crockford: "The JavaScript Programming Language"/3 of 4 @ Yahoo! Video Douglas Crockford: "The JavaScript Programming Language"/4 of 4 @ Yahoo! Video Reflection In Javascript, functions are first class objects. What does it mean to [...]

Javascript: 101 Week 2 Track 2

For track 2 on week 2, I basically need to read chapter 4 and 5 on Eloquent JavaScript. Reflection It is tough to explain Objects and Arrays to my grandmother. If I would pick either bad code or a naughty browser for my best practice for errors, I would be bad code. Homework Ex. 4.1: [...]

Javascript: 101 Week 2 Track 1

On track 1 week 2, we are continuing understanding JavaScript through Douglas Crockford’ video as below and chapter 3 on functions, from Eloquent Javascript. Douglas Crockford: “The JavaScript Programming Language”/2 of 4 @ Yahoo! Video Reflection Why do languages provide the switch statement, when we can achieve the same thing with multiple if… elseif statements? [...]

Javascript: 101 Week 1 Track 1

This post is a reply for the Javascript: 101 Week 1 Track 1. Mainly answering questions for reflection and homework. Reflection Java was not suitable to be embedded in a browser because it need to be typically compiled and run on Java Virtual Machine (JVM). On the other hand, JavaScript typically relies on a run-time [...]

Javascript: 101 Week 1 Track 2

This post is a reply for the Javascript: 101 Week 1 Track 2. Mainly answering questions for reflection and homework. Reflection Type is a way to represent the data in computer memory. It is useful in writing programs as it can be keep in the way as we want efficiently. We lose precision when performing [...]

« Older Posts