Which of the following code samples would you rather someone with no ember experience see first? Keep in mind this could happen in the Ember guides, on stack overflow, or in a codebase.
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
import Controller from '@ember/controller'; | |
export default class ApplicationController extends Controller { | |
appName = 'Ember Twiddle'; | |
myArray = ['zero', 'one', 'two']; | |
myIndex = 0; | |
myMap = {'yellow': 'lemon', 'green': 'lime'} | |
} |
I hereby claim:
- I am raycohen on github.
- I am raycohen (https://keybase.io/raycohen) on keybase.
- I have a public key ASCkh9JItfXqNAiGSpJIULZPhgQqrujEDRwUhEliXk2B6Qo
To claim this, I am signing this object:
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
/** | |
* This file represents a simple application where we make 10 api requests to get | |
* 10 random words back and then append them based on the index of the word at the time the request was made | |
* There are many things wrong with this file, but when all are fixed the application should log out the list of words (generator.result) | |
*/ | |
var TOTAL_WORDS = 10; | |
var resultDiv = document.getElementById('result'); | |
console.log(resultDiv); |