Skip to content

Instantly share code, notes, and snippets.

Avatar
👨‍💻
programming

Zach Caceres zcaceres

👨‍💻
programming
View GitHub Profile
@zcaceres
zcaceres / Compilers and Parsing.md
Last active Dec 27, 2019
Compilers: Notes from CS-Saturday March 4, 2017
View Compilers and Parsing.md

Compilers and Parsing

Your program is also a piece of data!

How Humans Read

We learn through practice and exposure. We don't study grammar till much later in life. We break down a sentence into a sequence of words.

  1. Lexing (to tokens)
  2. Parsing (grammar)
  3. Semantic Analysis
@zcaceres
zcaceres / Eyeballing-This.md
Last active Aug 2, 2021
Understanding Binding and 'this' in Javascript by zach.dev
View Eyeballing-This.md

How to Eyeball Your ‘This’ Context in Javascript

by zach.dev

The early programmer struggles with the Javascript keyword this. But understanding your this context is easier than it seems.

This is all about where a function is invoked. Often, early programmers worry about where the function was declared. Perhaps the function was declared in a specific file or a particular object. Surely this changes it's this!

Nope.

@zcaceres
zcaceres / Express.js.md
Last active Mar 7, 2017
notes from March 6, 2017 FSA on Express.js
View Express.js.md
@zcaceres
zcaceres / Express-Workshop-Concepts.md
Last active Mar 9, 2017
concepts to review from Express workshop
View Express-Workshop-Concepts.md

Express Material (high priority)

HTTP communication

Common methods & their standard meanings The req-res cycle Components of a request or response

Installing Express

Instantiating an express app

Registering and using middleware

@zcaceres
zcaceres / Intro-To-SQL-Databases.md
Last active Mar 9, 2017
Intro to SQL Databases – FSA – March 8, 2017
View Intro-To-SQL-Databases.md

Intro to SQL Databases

Keeping your data persistent over time is a harder problem than it seems!

1. What is a Database?
2. SQL

1. What is a Database?

@zcaceres
zcaceres / Intro-To-Schema-Design.md
Created Mar 8, 2017
Intro to Schema Design – FSA 1702 – March 8, 2017
View Intro-To-Schema-Design.md

Intro to Schema Design

A representation of a plan or theory in the form of an outline or model.

1. Design Process

2. Examples


1. Design

Designing your schemas is perhaps even more important than writing SQL!

@zcaceres
zcaceres / Node-Postgres.md
Created Mar 9, 2017
Notes from FSA Lecture on Node-Postgres, FSA 1702, March 9, 2017
View Node-Postgres.md

Node-Postgres

FSA March 9, 2017

RDBMSs, Database Drivers, and Persistent Applications

1. Intro & History

2. Using Postgres


1. Intro & History

@zcaceres
zcaceres / Practical-Promises.md
Last active Mar 10, 2017
A Pithy Primer, Using Libraries to Make and Manage Promises – FSA 1702, March 10, 2017
View Practical-Promises.md

Practical Promises

March 10, 2017 A Pithy Primer – Using Libraries to Make and Manage Promises

Your Promise Mantra: Whenever you get a promise and wonder what do with it. I should think .then(function)

1. Blocking, Non-Blocking, Callback Hell

2. Promises To The Rescue

@zcaceres
zcaceres / Databases-and-ORMS.md
Last active Mar 13, 2017
Intro to Sequelize – March 10, 2017, FSA 1702
View Databases-and-ORMS.md

Databases and ORMS

March 10, 2017, FSA 1702

1. Review


1. Review

ACID – Good principles for transactions in a database.

  • Atomicity: All or Nothing
  • Consistency: Valid status before and after (rules)
@zcaceres
zcaceres / Express-js-overview.md
Last active May 21, 2021
Express.js – A Gentle Overview
View Express-js-overview.md

Express.js – A Gentle Overview

Zach Caceres

Express.js is a Javascript library that handles web routing and HTTP requests for web applications.

Express builds on the native HTTP library in node.js to allow for a simple, object-oriented approach to routing your web application.

The creators of Express.js describe it as a 'minimalist framework', meaning that Express.js handles a few core tasks well, but does not include many nice-to-have features. Instead, you can enhance your Express.js application with middleware downloaded from npm or that you build yourself.

This series has four parts.