Skip to content

Instantly share code, notes, and snippets.

View zcaceres's full-sized avatar
👨‍💻
programming

Zach Caceres zcaceres

👨‍💻
programming
View GitHub Profile
@zcaceres
zcaceres / Compilers and Parsing.md
Last active May 26, 2022 08:17
Compilers: Notes from CS-Saturday March 4, 2017

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 August 17, 2023 23:38
Understanding Binding and 'this' in Javascript by zach.dev

How to Eyeball Your ‘This’ Context in Javascript

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 March 7, 2017 13:57
notes from March 6, 2017 FSA on Express.js
@zcaceres
zcaceres / Express-Workshop-Concepts.md
Last active March 9, 2017 00:29
concepts to review from Express workshop

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 March 9, 2017 23:01
Intro to SQL Databases – FSA – March 8, 2017

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 March 8, 2017 23:36
Intro to Schema Design – FSA 1702 – March 8, 2017

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 March 9, 2017 17:34
Notes from FSA Lecture on Node-Postgres, FSA 1702, March 9, 2017

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 March 10, 2017 20:54
A Pithy Primer, Using Libraries to Make and Manage Promises – FSA 1702, March 10, 2017

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 March 13, 2017 13:13
Intro to Sequelize – March 10, 2017, FSA 1702

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 26, 2022 08:01
Express.js – A Gentle Overview

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.