Skip to content

Instantly share code, notes, and snippets.

View victorclee's full-sized avatar
🎉

Victor Lee victorclee

🎉
View GitHub Profile
@victorclee
victorclee / TIL20170706.md
Created July 7, 2017 02:11
Modern JavaScript, and where Rails is heading towards.

TIL - Things I Learned - Thursday 07/06/2017

Modern JavaScript

Use npm install, it installs more than just the needed moment.js
node

Module bundler

webpack is a module bundler for modern JavaScript applications. When webpack processes your application, it recursively builds a dependency graph that includes every module your application needs, then packages all of those modules into a small number of bundles - often only one - to be loaded by the browser.
Use webpack to bundle
executeable
Check out webpack for Rails after capstone.

Compiler

@victorclee
victorclee / TIL20170702.md
Created July 2, 2017 18:05
Service Oriented Architecture (SOA), Git branches

TIL - Things I Learned - Sunday 07/02/2017

Service Oriented Architecture

The Monolith App - one giant app with different functions
So why individual apps? Easier debugging. If you break one thing in one app, not all other ones break with it.
Think of the sandwich metaphor. The bread, the lettuce, the tomato, the meat, their all edible items by itself. When we put them together, they make a great sandwich, but they are still each great edible items.
Individual apps with shared database probably make more sense! But it also take up more server space, might cost more money.
SOA is also important for having multiple clients.
Which way is better? Should you split your app into microservices?

Git branches

We try not to always make updates to the master branch. Each team can create their own branch.

@victorclee
victorclee / TIL20170627.md
Last active June 28, 2017 14:31
Test Driven Development

TIL - Things I Learned - Tuesday 06/27/2017

Test Driven Development

TDD can help you write cleaner code, and help you code DRYer.

Cycle of TDD:

  1. Write a test that fails (a red test)
  2. Make the code work (runs green)
  3. Refactor. Eliminate redundancy (purple)
    and repeat the cycle.

Why TDD?

  1. Ensures that your test is written correctly.
@victorclee
victorclee / TIL20170626.md
Last active June 27, 2017 23:00
Test Driven Development
@victorclee
victorclee / TIL20170622.md
Created June 23, 2017 02:43
movie show time practice
@victorclee
victorclee / TIL20170615.md
Created June 16, 2017 02:39
async, callback

TIL - Things I Learned - Thursday 06/15/2017

async

JavaScript is async
Ruby is not async

JavaScript Callback

YAY JavaScript!

@victorclee
victorclee / TIL20170611.md
Created June 11, 2017 22:16
Robots and Capstone day!

Things I Learned: Thursday 06/08/2017

Figaro

Ternary operator

Our webclient now looks like we have an Active Record, we are writing Ruby in the model and controller!