Created
January 9, 2017 15:55
-
-
Save kattak/cf57421906ef62461623ce552905f025 to your computer and use it in GitHub Desktop.
(in progress) Types of languages; Javascript, V8, EC6; Angular and React compared to Rails; Node
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Types of Languages | |
Interpreted/Dynamic: Python, Ruby | |
Compiled: C, C++, Java | |
Scripting: ECMA | |
Markup: HTML, Markdown | |
What is a scripting language? | |
-A scripting or script language is a programming language that supports scripts, programs written for a special run-time environment that automate the execution of tasks that could alternatively be executed one-by-one by a human operator.[1] Scripting languages are often interpreted (rather than compiled). | |
JavaScript is an interpreted language, not a compiled language. A program such as C++ or Java needs to be compiled before it is run. The source code is passed through a program called a compiler, which translates it into bytecode that the machine understands and can execute. | |
(Wiki) | |
V8 | |
JS engine built in Google Chrome | |
-V8 is a JavaScript engine build in the google development center in Germany. It is open source and written in C++. It is used for both client side (Google Chrome) and server side (node.js) JavaScript applications. | |
(Wiki) | |
JavaScript History | |
-inspired by Self and Scheme | |
-outwardly looks like Java | |
What’s the difference between Angular and React? | |
In Angular - everything exists in the HTML. | |
In React - everything exists in the JS. Renders the HTML. | |
WTF IS ANGULAR | |
Why Rails5 no longer includes JQuery? | |
>>> Angular is JQuery, wouldn’t need to require JQuery in Rails? (?) | |
Provides functionality of: | |
(Analogous to Rails:) | |
-simplifies injections/configuration (injections are similar to gems) | |
controller passing ivars | |
does the work of embedded ruby code in a jquery-like manner | |
rendering and iterating through rails objects | |
display objects for you | |
Do you still need Bootstrap? | |
Yes - still use for display/formatting | |
Watch: | |
Tutorial on Angular1: CodeSchool tutorial | |
How to use Angular and Rails? | |
Angular1 - can include it in assets > in javascripts or stylesheets? | |
Angular2 - needs to have node on the back, if you want to use with rails as well — have to set up rails as an API | |
Node Environment Setup | |
Node website > install it one place | |
Homebrew > install it another place | |
Best option > use Homebrew | |
JavaScript ES6 | |
Some changes, newest version of | |
Change in syntax | |
Some added features | |
No more var | |
const and let (more like a compiled? language) | |
no more semicolons | |
ES6 can be transpiled back into ES5 compatible | |
There are promises (that can not be - something completely new) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment