These are chat archives for codefellows/sea-c16-javascript

7th
Jul 2014
Joaquin Guardado
@macikokoro
Jul 07 2014 17:56
Hi hank
Hank Yates
@hankyates
Jul 07 2014 17:57
hi there!
Joaquin Guardado
@macikokoro
Jul 07 2014 17:58
I know this is a chatroom for JavaScript but I was wondering if you knew a good place to park
Hank Yates
@hankyates
Jul 07 2014 18:02
oh its just a chatroom for the class
so any chats related to the class are welcome
i actually run/bike from fremont
ive never had to park
Joe Elsey
@joeelsey
Jul 07 2014 18:02
Street parking is free after 6pm.
Hank Yates
@hankyates
Jul 07 2014 18:02
@toastynerd @ivanoats any advice?
Tyler Morgan
@toastynerd
Jul 07 2014 18:03
yeah, what @joeelsey said. Street parking is free after 6 and usually pretty easy to find. Although, I also never drive.
Joaquin Guardado
@macikokoro
Jul 07 2014 18:04
I live in Kirkland, I wish I didn't have to drive but I don't think riding a bike is an option for me :)
Hank Yates
@hankyates
Jul 07 2014 18:05
@toastynerd we need to get martin in here
Tyler Morgan
@toastynerd
Jul 07 2014 18:05
Yeah, that would take a little bit to get here. =)
@hankyates Yeah, I think he’s out of town so it might be difficult to do before class tonight.
Joaquin Guardado
@macikokoro
Jul 07 2014 18:09
Hank I'm sure others here are interested in the JavaScript dev accelerator. Do you have any tips on how to prepare to get in.
Joe Elsey
@joeelsey
Jul 07 2014 18:09
I'm in Tukwila. I thought about taking the bus, but I have to work early tomorrow, so driving in this time.
Hank Yates
@hankyates
Jul 07 2014 18:13
@macikokoro most definitely. @toastynerd and @ivanoats can speak to the specific requirements for it but from my stand point just work hard on your assignments. always try to make your code cleaner/better
Joaquin Guardado
@macikokoro
Jul 07 2014 18:15
Is there going to be chance to apply at the class or we have to go the website route?
Hank Yates
@hankyates
Jul 07 2014 18:16
i think it still goes through the website
Joaquin Guardado
@macikokoro
Jul 07 2014 18:18
Well! Thanks for all the info Hank
Hank Yates
@hankyates
Jul 07 2014 18:22
np!
Mandi Grant
@MJGrant
Jul 07 2014 19:15
@macikokoro I also drive from Kirkland, I park in one of the garage around the corner from Code Fellows on Republican. On the evening of the Thursday open house and two 8-hour stays on a Saturday and Sunday it came to $2.44. I don't know if that's coincidence, but I'll keep parking there as long as it stays $2.44.
Joaquin Guardado
@macikokoro
Jul 07 2014 19:26
Thanks MJ that is a great parking tip!
I've seen some examples of arrays that use these type of brackets {}. Is this an array or something else?
Tyler Morgan
@toastynerd
Jul 07 2014 19:42
@macikokoro The lesson for tonight is basic types so that’ll be gone over. It’s an object literal, not an array. Although an Array is an object, an object is not always an array, like bourbon(array) and whiskey(object).
Mandi Grant
@MJGrant
Jul 07 2014 20:35
@macikokoro I'm curious what you're seeing, can you share an example? (I don't know of any language that uses { } for arrays, in JavaScript it's brackets like this [ ])
Hank Yates
@hankyates
Jul 07 2014 20:44
https://gist.github.com/ is your friend when sharing snippets of code
Joaquin Guardado
@macikokoro
Jul 07 2014 20:47
String[] myStringArray = {"Hello","World"};
for(String s : myStringArray)
{
//Do something
}
@hankyates Yeah! I'm not sure if everyone knows how to use it, but it is very useful for adding snippets of code to a blog.
All you need is paste the Embed URL.
Joaquin Guardado
@macikokoro
Jul 07 2014 20:56
@toastynerd in fact an object literal or another way to create objects in JavaScript
Tyler Morgan
@toastynerd
Jul 07 2014 20:59
@macikokoro Yeah, that snippet is actually Java, not Javascript. In Java/C/C++ and a couple of other strictly typed languages you use {} for array assignment.
Joaquin Guardado
@macikokoro
Jul 07 2014 21:03
@toastynerd I found it posted under a Javascript example. I guess you can't trust every source out there = 0
Hank Yates
@hankyates
Jul 07 2014 21:03
that looks like typescript
or java
java is likely and easily google mixupable
Joaquin Guardado
@macikokoro
Jul 07 2014 21:04

var phonebookEntry = {};

phonebookEntry.name = 'Porky Pig';
phonebookEntry.number = '(193) 019-6970';
phonebookEntry.phone = function() {
console.log('Calling ' + this.name + ' at ' + this.number + '...');
};

phonebookEntry.phone();

@toastynerd @MJGrant @hankyates This is a better example
Hank Yates
@hankyates
Jul 07 2014 21:07
yup
Joaquin Guardado
@macikokoro
Jul 07 2014 21:07
@hankyates Hank can we embed gists here.
Hank Yates
@hankyates
Jul 07 2014 21:08
not sure about embed
but we can post the link to the gist
we also have markdown
var phonebookEntry = {};

phonebookEntry.name = 'Porky Pig';
phonebookEntry.number = '(193) 019-6970';
phonebookEntry.phone = function() {
console.log('Calling ' + this.name + ' at ' + this.number + '...');
};

phonebookEntry.phone();
readup on markdown
:)
Tyler Morgan
@toastynerd
Jul 07 2014 21:08
yeah wrap your code in ```
^^those are backticks
Hank Yates
@hankyates
Jul 07 2014 21:08
and set the language
```javascript
Joaquin Guardado
@macikokoro
Jul 07 2014 21:09

''
var phonebookEntry = {};

phonebookEntry.name = 'Porky Pig';
phonebookEntry.number = '(193) 019-6970';
phonebookEntry.phone = function() {
console.log('Calling ' + this.name + ' at ' + this.number + '...');
};

phonebookEntry.phone();
''

@hankyates @toastynerd lol is not working for me.
Tyler Morgan
@toastynerd
Jul 07 2014 21:12
use three back ticks(the one below ~, to the left of the 1 key)
Joaquin Guardado
@macikokoro
Jul 07 2014 21:13
var phonebookEntry = {};

phonebookEntry.name = 'Porky Pig';
phonebookEntry.number = '(193) 019-6970';
phonebookEntry.phone = function() {
console.log('Calling ' + this.name + ' at ' + this.number + '...');
};

phonebookEntry.phone();
@toastynerd Thanks
Tyler Morgan
@toastynerd
Jul 07 2014 21:24
np
Jeff Battema
@thewocky
Jul 07 2014 21:49
```javascript
// is this how this markdown thing works?
phonebookEntry.sayGoodbye = function()
{
console.log ("Ba-di ba-di- ba-di ba-that's all, folks");
}
// whoops
phonebookEntry.sayGoodbye = function()
{
console.log ("Ba-di ba-di- ba-di ba-that's all, folks");
}
Hank Yates
@hankyates
Jul 07 2014 22:46
there you go