Guowei Lv

4 minute read

Do you think Computer Science equals building websites and mobile apps? Are you feeling that you are doing repetitive and not so intelligent work? Are you feeling a bit sick about reading manuals and copy-pasting code and keep poking around until it works all day long? Do you want to understand the soul of Computer Science? If yes, read SICP!!! When I first read about data directed programming in the book, I was surprised.

SICP Goodness - Mutable Data (II)

Modeling with mutable data

Guowei Lv

3 minute read

Do you think Computer Science equals building websites and mobile apps? Are you feeling that you are doing repetitive and not so intelligent work? Are you feeling a bit sick about reading manuals and copy-pasting code and keep poking around until it works all day long? Do you want to understand the soul of Computer Science? If yes, read SICP!!! Representing Tables We can build a table data structure by just using pairs.

SICP Goodness - Mutable Data (I)

Modeling with mutable data

Guowei Lv

4 minute read

Do you think Computer Science equals building websites and mobile apps? Are you feeling that you are doing repetitive and not so intelligent work? Are you feeling a bit sick about reading manuals and copy-pasting code and keep poking around until it works all day long? Do you want to understand the soul of Computer Science? If yes, read SICP!!! Mutable List Structure We introduce 2 operations to change a list: set-car!

SICP Goodness - The Environment Model

The environment model of evaluation

5 minute read

Do you think Computer Science equals building websites and mobile apps? Are you feeling that you are doing repetitive and not so intelligent work? Are you feeling a bit sick about reading manuals and copy-pasting code and keep poking around until it works all day long? Do you want to understand the soul of Computer Science? If yes, read SICP!!! Before introducing assignment operation set!, we can use the substitution model of evaluation.

FullStack React Distilled 2

Yet another React tutorial

Guowei Lv

2 minute read

Component properties Component takes properties, and spits out views on screen. Let’s create the Product component to show how to use properties. import React from "react"; class Product extends React.Component { render() { return ( <div className="item"> <div className="image"> <img src={this.props.productImageUrl} alt="" /> </div> <div className="middle aligned content"> <div className="header"> <a> <i className="large caret up icon" /> </a> {this.props.votes} </div> <div className="description"> <a href={this.props.url}>{this.props.title}</a> <p>{this.props.description}</p> </div> <div className="extra"> <span>Submitted by:</span> <img className="ui avatar image" src={this.