These are chat archives for FreeCodeCamp/Help

6th
Jan 2015
Evan Davis
@davisec52
Jan 06 2015 00:17
This message was deleted
Ryan Malm
@Rybar
Jan 06 2015 02:32
JS devs: is there any reason to bother with getters/setters in JS?
Kathy O'Driscoll
@odrisck
Jan 06 2015 02:33
I'm interested in that answer as well :)
Charles Watson
@sircharleswatson
Jan 06 2015 02:37
what do you mean by "bother"
you will most likely run into them. so it'd be good to learn what they are and how to use them
Kathy O'Driscoll
@odrisck
Jan 06 2015 02:39
skillcrush spent a week on them
Ryan Malm
@Rybar
Jan 06 2015 02:39
I'm fully aware of what they are and why they exist, but with no real classes or private variables in JS, why would I write a get() method when I can simply assign it. i.e obj.property = newValue
Charles Watson
@sircharleswatson
Jan 06 2015 02:39
@Rybar some people like to use JS as an oop
even though it isn't really
and ES6 is adding more oop things to JS
Ryan Malm
@Rybar
Jan 06 2015 02:41
even in as3, strictly typed with private vars and classes, etc... I never saw the need. method calls slow things down.. so I always used all public vars.. why exactly is that thought of as bad practice?
I get the structure of accessing private vars via getters and setters, but what kinds of problems could you run into not using them in JS?
Charles Watson
@sircharleswatson
Jan 06 2015 02:43
this looks like a good explanation: http://ejohn.org/blog/javascript-getters-and-setters/
The obvious advantage to writing JavaScript in this manner is that you can use it obscure values that you don’t want the user to directly access.
Ryan Malm
@Rybar
Jan 06 2015 02:49
I understand closures, how to simulate private variables, all the myriad ways in which you could set up such a structure. What I don't get is a practical use situation; in what context would that be necessary?
MychaelZ
@MychaelZ
Jan 06 2015 02:50
currying
also private variables
that u don't want to get accessed
Ryan Malm
@Rybar
Jan 06 2015 02:50
don't want to get accessed in what sense?
MychaelZ
@MychaelZ
Jan 06 2015 02:51
accessed by other methods
or functions
also the module pattern
Darryl Dixon - Piece Digital
@piecedigital
Jan 06 2015 02:51
So it's not a big deal, it's just an option?
MychaelZ
@MychaelZ
Jan 06 2015 02:51
its based on closures
but also things u want to hide from the global scope
that is done by closure
MychaelZ
@MychaelZ
Jan 06 2015 02:56
i also forgot data hiding
Charles Watson
@sircharleswatson
Jan 06 2015 02:56
read-only properties
James McShane
@jmcshane
Jan 06 2015 02:56
@sircharleswatson that article leads me to a conclusion. If a relatively intelligent person has decided that a feature is completely useless, I will spend no more time considering it. It seems like all of his examples he provides where it might be valuable breaks down the separation of concerns
MychaelZ
@MychaelZ
Jan 06 2015 02:57
getters and setters are not that important its understanding the concept of a closure that is.
Charles Watson
@sircharleswatson
Jan 06 2015 02:58
getters and setters are useful. you just need to know what you are using them for.
James McShane
@jmcshane
Jan 06 2015 02:58
@MychaelZ can you explain the connection between getters and setters & closures?
MychaelZ
@MychaelZ
Jan 06 2015 02:58
closures are essentially hidden variables
Charles Watson
@sircharleswatson
Jan 06 2015 02:59

Closures are functions that refer to independent (free) variables.

In other words, the function defined in the closure 'remembers' the environment in which it was created.

MychaelZ
@MychaelZ
Jan 06 2015 03:00
you use getters and setters to access these variables
but there are other ways to do it without using getters and setters
its a feature that was added to make it easier
function sub_curry(fn /*, variable number of args */) {
    var args = toArray(arguments).slice(1);
    return function () {
        return fn.apply(this, args.concat(toArray(arguments)));
    };
}
in this example args is a closure
its a private variable that is stored in the function that is returned
this looks complex but it is very important in js
Charles Watson
@sircharleswatson
Jan 06 2015 03:02
a simpler example is in the book Eloquent Javascript
MychaelZ
@MychaelZ
Jan 06 2015 03:02
lol
Charles Watson
@sircharleswatson
Jan 06 2015 03:02
actually I just remembered that I made an explanation of it here: https://gist.github.com/sircharleswatson/66aaf96b5086a09c5f72
MychaelZ
@MychaelZ
Jan 06 2015 03:03
that's a good explanation on parital application that is done by using closures
Charles Watson
@sircharleswatson
Jan 06 2015 03:05
huh? lol maybe it's late but I didn't understand what you just said lol
MychaelZ
@MychaelZ
Jan 06 2015 03:05
i was saying that your post was a good explanation of closures by showing their purpose in partial application functions
James McShane
@jmcshane
Jan 06 2015 03:06
@MychaelZ though your example was complex, it made the point well. i believe that private variables are an important topic to understand the return from a javascript function, but I don't believe its necessary to introduce getters and setters for that reason (see http://stackoverflow.com/questions/111102/how-do-javascript-closures-work for more discussion)
I'm coming from Java right now, and I would not like to see getter and setter methods written all over my JS
MychaelZ
@MychaelZ
Jan 06 2015 03:06
honestly i use closures all the time and have nvr used the getter and setter methods
Charles Watson
@sircharleswatson
Jan 06 2015 03:07
I don't really think closure and getter/setters are that closely related
MychaelZ
@MychaelZ
Jan 06 2015 03:08
var person = {
    firstName: 'Jimmy',
    lastName: 'Smith',
    get fullName() {
        return this.firstName + ' ' + this.lastName;
    },
    set fullName (name) {
        var words = name.toString().split(' ');
        this.firstName = words[0] || '';
        this.lastName = words[1] || '';
    }
}
this actually is a pretty powerful tool
instead of setting them each u can have a function change it one time
Ryan Malm
@Rybar
Jan 06 2015 03:09
thats not a true getter in the sense I'm talking about though; it combines other data
yes, that application is useful, but I'm talking about purely for get/set a private variable
MychaelZ
@MychaelZ
Jan 06 2015 03:11
im actually not sure
Charles Watson
@sircharleswatson
Jan 06 2015 03:11
@Rybar people on stackoverflow are saying that Object.defineProperty() is better for the get/set functionality
Ryan Malm
@Rybar
Jan 06 2015 03:26
@sircharleswatson They're related in that closures are the only way to truly make properties inacessible to outside functions, without writing a getter/setter in your closure. In that context, a closure is the only place you'd need to write a getter and setter
This was the answer I was looking for BTW, lol, WHY private variables. http://programmers.stackexchange.com/questions/143736/why-do-we-need-private-variables
Dominic Jones
@towwiow
Jan 06 2015 03:31
anybody familiar with OpenSuse in VirtualBox ?
Dominic Jones
@towwiow
Jan 06 2015 03:42
When I boot my laptop up with the usb and the ubuntu iso on it I get "Invalid or damaged Bootable partition."
anybody experience this before?
Ryan Malm
@Rybar
Jan 06 2015 03:43
How did you go about making your bootable usb drive?
Charles Watson
@sircharleswatson
Jan 06 2015 03:43
@towwiow you have to make sure that the device (usb) is actually bootable
Dominic Jones
@towwiow
Jan 06 2015 03:43
ah missed that part
Ryan Malm
@Rybar
Jan 06 2015 03:44
http://unetbootin.sourceforge.net/ good utility for making a bootable stick drive with ISO image
James McShane
@jmcshane
Jan 06 2015 03:44
@towwiow @sircharleswatson most modern usb drives are capable of being bootable, you just need to use that unetbootin utility to allow it to boot with the iso image
Dominic Jones
@towwiow
Jan 06 2015 03:44
thanks @Rybar
Charles Watson
@sircharleswatson
Jan 06 2015 03:45
@jmcshane right. its not bootable until you do that
Kathy O'Driscoll
@odrisck
Jan 06 2015 03:45
hardware things are so icky
thank goodness the bf does all that :)
Dominic Jones
@towwiow
Jan 06 2015 03:46
So I can do this on the working laptop then throw it over to the one I want to wipe and it'll be good to go?
Charles Watson
@sircharleswatson
Jan 06 2015 03:46
yup
Dominic Jones
@towwiow
Jan 06 2015 03:48
I'll be back if I have any issues
I don't have to reboot the laptop I'm on now do I?
or that's a requirement for it to work properly
Ryan Malm
@Rybar
Jan 06 2015 03:52
so I have a laptop that still works but GPU easily overheats. Suggestions for linux distro? It can be ugly as heck, just need to set up a local dev environment
Charles Watson
@sircharleswatson
Jan 06 2015 03:53
@Rybar take it apart and clean out the fans
I did that with my old hp laptop and there was a quarter size piece of lint/dust/fur/etc in it lol
Ryan Malm
@Rybar
Jan 06 2015 03:54
done and done. its one of those faulty nvidia gpus
Thought it was toast from unseated chip, brought it back to life by letting it overheat while upside down on a pillow, then letting it cool completely
Ryan Malm
@Rybar
Jan 06 2015 03:59
works fine as long as I don't tax the GPU. have separate workstation for windows, want to set up a local dev environment, c9.io isn't cutting it for some thigns
Charles Watson
@sircharleswatson
Jan 06 2015 04:01
@Rybar ArchBang, CrunchBang or Antix
all lightweight distros
Dominic Jones
@towwiow
Jan 06 2015 04:06
@Rybar @sircharleswatson - that's all I needed. Didn't do the next step of making it Fat32 or whatever
Charles Watson
@sircharleswatson
Jan 06 2015 04:07
:P
Dominic Jones
@towwiow
Jan 06 2015 04:07
I chose try Ubuntu without installing for now
the install option wipes all the files and erases windows completely right?
James McShane
@jmcshane
Jan 06 2015 04:08
did you create a separate HD partition for the ubuntu install?
Charles Watson
@sircharleswatson
Jan 06 2015 04:09
@jmcshane He has two laptops, one intended to wipe windows completely
Dominic Jones
@towwiow
Jan 06 2015 04:09
No @jmcshane ^
James McShane
@jmcshane
Jan 06 2015 04:09
@sircharleswatson got it
ok
Dominic Jones
@towwiow
Jan 06 2015 04:09
but for now I'm just trying to make sure I get everything off of the windows OS before I wipe it completely
Charles Watson
@sircharleswatson
Jan 06 2015 04:09
good plan :P
Dominic Jones
@towwiow
Jan 06 2015 04:09
I think I got everything but am going to wait until tomorrow morning after sleep when I have my wits about me to make sure.
James McShane
@jmcshane
Jan 06 2015 04:10
haha, the good ol' sleep on it test'
Dominic Jones
@towwiow
Jan 06 2015 04:10
haha yeah
if anything, I still have the windows 7 disk right here
so I can recover if need be, but without any files
I got the majority of the stuff over the weekend during the playoff games
my first question is what the hell is the super key? haha
Charles Watson
@sircharleswatson
Jan 06 2015 04:13
it's the one with the windows symbol (probably)
or similar
Dominic Jones
@towwiow
Jan 06 2015 04:15
since it brought up the search I'm guessing that's the one
Dominic Jones
@towwiow
Jan 06 2015 04:30
holy IDE batman @sircharleswatson
which one should I get?
Ryan Malm
@Rybar
Jan 06 2015 05:18
@sircharleswatson can you help me debug something?
check the console, and main.js
Ryan Malm
@Rybar
Jan 06 2015 05:28
nm, got it fixed
Charles Watson
@sircharleswatson
Jan 06 2015 12:21
@Rybar Sorry, I was sleeping :P
@towwiow Use SublimeText for editing code
Maxim Orlov
@Maximization
Jan 06 2015 12:23
@sircharleswatson do you use an IDE like webstorm for projects? or is that overkill
Charles Watson
@sircharleswatson
Jan 06 2015 12:23
personally, I think it's overkill
Nathan
@terakilobyte
Jan 06 2015 12:23
@sircharleswatson likely story you were sleeping
Charles Watson
@sircharleswatson
Jan 06 2015 12:25
but I've learned that I gain knowledge faster by having to type out methods and remember them on my own rather than have them pop up automatically with an IDE (autocomplete). I actually know what I need. not just guessing by looking through the autocomplete options
I went the autocomplete route with Xcode/iOS. That was for a year. it's been 3 months now and I can't remember most of the methods
@terakilobyte haha, but I was!
Nathan
@terakilobyte
Jan 06 2015 12:27
me too until a bank I’m pulling money out of to close my account auto generated a text message at 7 a.m. to me...
excellent way to maintain customer loyalty
Charles Watson
@sircharleswatson
Jan 06 2015 12:28
7am? Fail
Quincy Larson
@QuincyLarson
Jan 06 2015 19:40
@Maximization @sircharleswatson has a good point - that IDEs can make you intellectually lazy, but I strongly recommend using web storm. The ability to traverse the full codebase by clicking on methods rather than searching, and pull up the entire git history of any given line of code, is enormously helpful. Also, the built in linting and variable/function definition checking will save you from a lot of head scratching.
Mark Howard
@iheartkode
Jan 06 2015 19:43
Webstorm is amazingly efficient
So MEAN.io vs MEANjs
Quincy Larson
@QuincyLarson
Jan 06 2015 19:44
@iheartkode yes, I think @sircharleswatson may be working on a comparison between those two (and Meteor.js)
Charles Watson
@sircharleswatson
Jan 06 2015 19:45
I have some info but not much... :/
Mark Howard
@iheartkode
Jan 06 2015 19:45
Slacker :P
Charles Watson
@sircharleswatson
Jan 06 2015 19:45
they were created by the same person
Mark Howard
@iheartkode
Jan 06 2015 19:45
Oh
Both Open Source?
Charles Watson
@sircharleswatson
Jan 06 2015 19:46
yup
Mark Howard
@iheartkode
Jan 06 2015 19:46
lol
Kathy O'Driscoll
@odrisck
Jan 06 2015 19:46
they should just kiss already
Mark Howard
@iheartkode
Jan 06 2015 19:46
ikr
Charles Watson
@sircharleswatson
Jan 06 2015 19:46
but the company that the guy was working at when he made MEAN.io wanted to capitalize on .io but he didn't like that so he left the company and made MEAN.js
Mark Howard
@iheartkode
Jan 06 2015 19:47
So they want to make money
Charles Watson
@sircharleswatson
Jan 06 2015 19:47
MEAN.io is way more popular. but MEAN.js continues on with the original creator and has much better documentation
Mark Howard
@iheartkode
Jan 06 2015 19:47
NodeJS is what I am on atm, and is rather daunting lol
Quincy Larson
@QuincyLarson
Jan 06 2015 19:47
@sircharleswatson I think you’re mixing the two up
@sircharleswatson Nevermind, you’re right. I’m mixing them up
Kathy O'Driscoll
@odrisck
Jan 06 2015 19:48
so what do we mean here when we say MEAN, we mean one of those, both of those, none of the above? :)
Mark Howard
@iheartkode
Jan 06 2015 19:48
MEAN JS for the good
Quincy Larson
@QuincyLarson
Jan 06 2015 19:48
@odrisck those are just popular roll outs of the MEAN stack.
Mark Howard
@iheartkode
Jan 06 2015 19:48
MEAN,io evil lol
Kathy O'Driscoll
@odrisck
Jan 06 2015 19:48
ahh I see
absolute noob, so I need it spelled out for me :)
Charles Watson
@sircharleswatson
Jan 06 2015 19:49
I mean that mean and mean are the same mean and the mean that is better is the mean that we us when we talk about mean
Mark Howard
@iheartkode
Jan 06 2015 19:49
Good Intentions vs money making intentions
Quincy Larson
@QuincyLarson
Jan 06 2015 19:49
I mean, we could very well create “MEAN.fcc” and it would still be a MEAN stack implementation
Mark Howard
@iheartkode
Jan 06 2015 19:49
Don't be mean
Kathy O'Driscoll
@odrisck
Jan 06 2015 19:49
you two can shhhshh and let Quincy enlighten me :)
Mark Howard
@iheartkode
Jan 06 2015 19:50
Like the LAMP stack nobody owns it.
Kathy O'Driscoll
@odrisck
Jan 06 2015 19:50
ok I get it now thank you
Mark Howard
@iheartkode
Jan 06 2015 19:50
It's a combination of open source software
Kathy O'Driscoll
@odrisck
Jan 06 2015 19:50
I just began node
Mark Howard
@iheartkode
Jan 06 2015 19:50
I did too.
Not a fan of the codeschool course though
Charles Watson
@sircharleswatson
Jan 06 2015 19:51
I can't do any of the codeschool courses
Mark Howard
@iheartkode
Jan 06 2015 19:51
They run through things so fast and don't take time to explain each piece of code.
Charles Watson
@sircharleswatson
Jan 06 2015 19:51
because i'm too cheap and don't want to spend $25
Mark Howard
@iheartkode
Jan 06 2015 19:51
This message was deleted
$29.00 now
The angular course is the same way they dash through it and add code that they don't explain.. So I am looking for alternate resourses for Node
Charles Watson
@sircharleswatson
Jan 06 2015 19:53
ok. I definitely won't waste my money if it wasn't worth it
I'll just do all the nodeschool stuff
Mark Howard
@iheartkode
Jan 06 2015 19:55
I write code along the videos, so in the angular one it had the contoller in a div and th ng-app in a body then the next video its all changed i'm like wtf? And get disappointed.. Waste of 29.00
end complaint();
Charles Watson
@sircharleswatson
Jan 06 2015 19:56
that sucks lol
Maxim Orlov
@Maximization
Jan 06 2015 19:56
codeschool is an introduction to, that's basically it
it's nice if you want to get a feeling for something new and decide before you want to dive deeper and get a good comprehension of what's going on
Quincy Larson
@QuincyLarson
Jan 06 2015 20:00
@iheartkode Keep in mind that Node.js is not an easy subject to teach! ;)
and like @Maximization said, it’s only there to teach you the fundamentals. You’ll learn everything a lot more thoroughly once you’re building in it
Kathy O'Driscoll
@odrisck
Jan 06 2015 20:00
thats what I'm trusting, its going to all come together when I'm actually doing
Maxim Orlov
@Maximization
Jan 06 2015 20:01
eventually the dots will start connecting and you will have plenty of eureka moments, 'so that's what I really was doing when I did this and that at codeschool'
Charles Watson
@sircharleswatson
Jan 06 2015 20:02
this mongoDB course seems like it will cover a lot of the ME of MEAN
Quincy Larson
@QuincyLarson
Jan 06 2015 20:05
@odrisck I can testify that that’s how things have come together for me.
Kathy O'Driscoll
@odrisck
Jan 06 2015 20:07
its encouraging Quincy :)
Mark Howard
@iheartkode
Jan 06 2015 20:22
Not easy but step by step is way more effective rather having code already there that you don't undrstand :)
No worries I found alt sources.
Kathy O'Driscoll
@odrisck
Jan 06 2015 20:23
if it were easy, they wouldn't need me to do it :)
Mark Howard
@iheartkode
Jan 06 2015 20:24
I learned more on tuts+ lol
var http = require('http');

var server = http.createServer(function(request, response) {
  response.writeHead(200, {
    'Content-type': 'text/plain'
  });
  response.write('hello world');
  response.end('hello world');
})

server.listen(30000);

console.log('Listening on http://127.0.0.1:3000');
I thought this chat was counselors
lol
Maxim Orlov
@Maximization
Jan 06 2015 20:57
listening to port 30000?
Charles Watson
@sircharleswatson
Jan 06 2015 20:58
three thousand
oh, i see it lol
Mark Howard
@iheartkode
Jan 06 2015 21:02
opps
lol
30k ftw
Charles Watson
@sircharleswatson
Jan 06 2015 21:03
that's how much you'll be making as a garbage man if you make that kind of error. :P jk
Mark Howard
@iheartkode
Jan 06 2015 21:04
lol
Charles Watson
@sircharleswatson
Jan 06 2015 21:04
i was going to say flipping burgers, but you won't even make that much lol
Mark Howard
@iheartkode
Jan 06 2015 21:04
no lol
Says the guy with 40%
Charles Watson
@sircharleswatson
Jan 06 2015 21:05
45% thank you
Mark Howard
@iheartkode
Jan 06 2015 21:05
lol
Charles Watson
@sircharleswatson
Jan 06 2015 21:06
@iheartkode What do you have your rescue time set for? like hours to track
Mark Howard
@iheartkode
Jan 06 2015 21:06
I never set that lol
How do i set a rescue time lol
Ryan Malm
@Rybar
Jan 06 2015 21:07
I couldn't find a place in the free version to set when it was tracking either
I've been using it since about mid-december; it seems to detect when I'm idle
and not track that time
Mark Howard
@iheartkode
Jan 06 2015 21:08
yea it will only track when the app or pages active
Charles Watson
@sircharleswatson
Jan 06 2015 21:11
ahh. I thought i saw it somewhere but now I can't find it
@iheartkode @Rybar Do you guys use the goals feature?
Mark Howard
@iheartkode
Jan 06 2015 21:14
Yea goal 10hours a day coding and research
Charles Watson
@sircharleswatson
Jan 06 2015 21:14
big goal :P
Mark Howard
@iheartkode
Jan 06 2015 21:15
I am not working lol
Charles Watson
@sircharleswatson
Jan 06 2015 21:15
still a big goal
Mark Howard
@iheartkode
Jan 06 2015 21:15
10 yesterday and the day before
Charles Watson
@sircharleswatson
Jan 06 2015 21:15
but you're not married right? so that makes sense :P
Mark Howard
@iheartkode
Jan 06 2015 21:15
Nope
No wife no work no chores
lol
Charles Watson
@sircharleswatson
Jan 06 2015 21:16
haha
Mark Howard
@iheartkode
Jan 06 2015 21:16
Well I clean my own mess i make lol
Charles Watson
@sircharleswatson
Jan 06 2015 21:16
wife, no work and some chores for me
Mark Howard
@iheartkode
Jan 06 2015 21:16
Tell your wife if she wants you to get a job then understand lol
Charles Watson
@sircharleswatson
Jan 06 2015 21:16
wife cleans up some of the messes I make :P
she does understand
Mark Howard
@iheartkode
Jan 06 2015 21:19
Nice
back to express and node
Kathy O'Driscoll
@odrisck
Jan 06 2015 21:22
oh yeah bf pretty much takes on equal chores, and does most of the cooking
Maxim Orlov
@Maximization
Jan 06 2015 21:51
@iheartkode hmm, node up and running, what's your take on the book so far?
is it at a beginner level? introduction to node?
Mark Howard
@iheartkode
Jan 06 2015 21:51
It's okay, but I am liking http://cwbuecheler.com/web/tutorials/2013/node-express-mongo/ ten times better
and it's updated
it got me up and running with an express app way faster with the express 4.0 generators
Charles Watson
@sircharleswatson
Jan 06 2015 21:52
i went through that buecheler one a while ago. not with the express 4.0 update though
Mark Howard
@iheartkode
Jan 06 2015 21:53
He explains things well
Kathy O'Driscoll
@odrisck
Jan 06 2015 21:53
I'll be going through it then
Mark Howard
@iheartkode
Jan 06 2015 21:53
the generator for express is like rails saves tons of time
Kathy O'Driscoll
@odrisck
Jan 06 2015 21:54
Ooo
Mark Howard
@iheartkode
Jan 06 2015 21:54
Express 4.0 other tuts are old and use the old methods
Kathy O'Driscoll
@odrisck
Jan 06 2015 21:54
I liked rails, the lil bit I dipped my toe in
Mark Howard
@iheartkode
Jan 06 2015 21:54
express is the rails for node

Express

Welcome to Express

woot running node express and mongo :)

Charles Watson
@sircharleswatson
Jan 06 2015 21:55
I like Hapi better than Express :)
Mark Howard
@iheartkode
Jan 06 2015 21:55
npm start instead of node app.js
Charles Watson
@sircharleswatson
Jan 06 2015 21:55
Hapi is like Sinatra
Mark Howard
@iheartkode
Jan 06 2015 21:56
yea but employability bro lol
Nathan
@terakilobyte
Jan 06 2015 21:59
express is a monster
Fabio
@Sincronia
Jan 06 2015 21:59
thank you odrisk. Sorry but I was struggling posting formatted code on gitter...
the code is this
$(document).ready(function() { 
  $("#tour").on("click", "button", function() { 
  $(this).closest("#tour").find(".photos").slideDown();
  });
});
Charles Watson
@sircharleswatson
Jan 06 2015 21:59
@iheartkode Walmart uses Hapi
Nathan
@terakilobyte
Jan 06 2015 22:00
as does PayPal!
Mark Howard
@iheartkode
Jan 06 2015 22:00
MEAN
Staph promoting things not in the MEAN stack we are a MEAN shop lol
Fabio
@Sincronia
Jan 06 2015 22:00
@odrisck I posted the code, sorry for waiting :')
Charles Watson
@sircharleswatson
Jan 06 2015 22:00
I want to be a MAHI shop
I love tuna
@terakilobyte We should create the MAHI framework
Michael D. Johnson
@CodeNonprofit
Jan 06 2015 22:01
mahi mahi
you’re on to something
Kathy O'Driscoll
@odrisck
Jan 06 2015 22:02
@Sincronia you do not need the $(this).closest
Charles Watson
@sircharleswatson
Jan 06 2015 22:02
we could have a cool logo like this:
tuna
Kathy O'Driscoll
@odrisck
Jan 06 2015 22:02
$(document).ready(function() { 
  $("#tour").on("click", "button", function() { 
    $(".photos").slideDown();
  });
});
Mark Howard
@iheartkode
Jan 06 2015 22:02
lol
atom has no support for jade wut!
Charles Watson
@sircharleswatson
Jan 06 2015 22:04
@iheartkode there is probably a package
Fabio
@Sincronia
Jan 06 2015 22:04
Thank you, that works @odrisck ... Even if I'm a bit confused because in the course's slides they used the code I wrote before
Mark Howard
@iheartkode
Jan 06 2015 22:04
I'm sure. lol
Kathy O'Driscoll
@odrisck
Jan 06 2015 22:05
they are doing something a lil different in the course, they want you to think through, so your code isn't going to be exactly like theirs
its applicable, but not exactly alike
you will use this dot closest LOTS :)
Fabio
@Sincronia
Jan 06 2015 22:06
Yes, they seems really useful :D
Kathy O'Driscoll
@odrisck
Jan 06 2015 22:06
:)
Fabio
@Sincronia
Jan 06 2015 22:06
seem*
Mark Howard
@iheartkode
Jan 06 2015 22:07
woop just made a route and a view for hellp world :)
Nathan
@terakilobyte
Jan 06 2015 22:07
@sircharleswatson let’s do it
just need io.js to release
after that it’d be pretty easy
Kathy O'Driscoll
@odrisck
Jan 06 2015 22:07
and keep in mind, 2 months ago, heck a month ago, I couldnt have answered that question
Nathan
@terakilobyte
Jan 06 2015 22:08
as long as they don’t fundamentally change anything so that hapi and mongoose won’t run
Michael D. Johnson
@CodeNonprofit
Jan 06 2015 22:08
that’s awesome @odrisck
Kathy O'Driscoll
@odrisck
Jan 06 2015 22:08
I know right!!!
Charles Watson
@sircharleswatson
Jan 06 2015 22:08
well, actually, I was thinking the "i" is ionic
as node is implied
Fabio
@Sincronia
Jan 06 2015 22:09
This message was deleted
Nathan
@terakilobyte
Jan 06 2015 22:09
Oh, I was thinking Mongo Angular Hapi io.js
Fabio
@Sincronia
Jan 06 2015 22:10
@odrisk Me too... I'm impressed of what I've learned so far. And I'm only at the beginning!
Charles Watson
@sircharleswatson
Jan 06 2015 22:10
either way, it'd work :) @terakilobyte
Kathy O'Driscoll
@odrisck
Jan 06 2015 22:10
:thumbsup:
seahik
@seahik
Jan 06 2015 22:19
hmm anyone by chance doing the mongo lessons, still? I'm having problems on "Hello World on Node.js"
Charles Watson
@sircharleswatson
Jan 06 2015 22:19
I'm working on them. What's up?
seahik
@seahik
Jan 06 2015 22:19
var http = require('http');
var server = http.createServer(function (request, response) {
    response.writeHead(200, {"Content-Type": "text/plain"});
    response.end("Hello, World"\n);
});
server.listen(8000);
console.log("Server running at http://localhost:8000");
Charles Watson
@sircharleswatson
Jan 06 2015 22:20
what's the error?
seahik
@seahik
Jan 06 2015 22:20
unexpected token ILLEGAL
can you copy from command prompt?
Nathan
@terakilobyte
Jan 06 2015 22:21
it’s your response
what is a \n?
when not in parens?
Charles Watson
@sircharleswatson
Jan 06 2015 22:21
unexpected token means you have a syntax error
^
seahik
@seahik
Jan 06 2015 22:21
line break?
Nathan
@terakilobyte
Jan 06 2015 22:21
only if enclosed in parens
Charles Watson
@sircharleswatson
Jan 06 2015 22:22
it needs to be in the parens
Nathan
@terakilobyte
Jan 06 2015 22:22
otherwise it’s a syntax error :P
odrisck @odrisck takes notes
seahik
@seahik
Jan 06 2015 22:22
ah ok strange his \n is outside the parens on the tutorial
Nathan
@terakilobyte
Jan 06 2015 22:22
what tutorial?
Charles Watson
@sircharleswatson
Jan 06 2015 22:23
the mongodb course
Nathan
@terakilobyte
Jan 06 2015 22:23
probably a typo
Charles Watson
@sircharleswatson
Jan 06 2015 22:23
i'm about to get to that section so I will verify
seahik
@seahik
Jan 06 2015 22:23
wait parens or quotes
could you write the end of that line as it needs to be?
Nathan
@terakilobyte
Jan 06 2015 22:23
quotes, sorry
“Hello, world!\n"
though if you’re responding through http I wouldn’t even add it
seahik
@seahik
Jan 06 2015 22:25
cool that did the trick...tyty
Nathan
@terakilobyte
Jan 06 2015 22:25
np
as a general rule
any text manipulation you do has to be done in a string
so “\n \t” etc
Charles Watson
@sircharleswatson
Jan 06 2015 22:26
that's interesting... it is definitely an error on the video
seahik
@seahik
Jan 06 2015 22:26
ok yes ihavent use a lot of \n mostly <br> in html and those are outside of string arent they?
Nathan
@terakilobyte
Jan 06 2015 22:26
yes
that’s html
seahik
@seahik
Jan 06 2015 22:27
hes on a mac...that doesnt make a difference, right
Nathan
@terakilobyte
Jan 06 2015 22:27
html doens’t know, or care, about strings
Charles Watson
@sircharleswatson
Jan 06 2015 22:27
no
no difference
Nathan
@terakilobyte
Jan 06 2015 22:28
<span>Hello world</span> <———————— not a string
Charles Watson
@sircharleswatson
Jan 06 2015 22:29
technically, there are no strings in html
seahik
@seahik
Jan 06 2015 22:29
ah interesting thx...makes sense
Maxim Orlov
@Maximization
Jan 06 2015 22:53
@seahik you've encountered the first bug in the course, it's also mentioned in the discussions https://university.mongodb.com/courses/10gen/M101JS/2015_January/discussion/forum/undefined/threads/54ac35241ee0d273b8bfdbff
Charles Watson
@sircharleswatson
Jan 06 2015 22:54
yup. I posted the same thing actually cuz I didn't see that one ^
Maxim Orlov
@Maximization
Jan 06 2015 22:55
haha, slimey
but done
oops, replied to your comment instead of the other one