These are chat archives for FreeCodeCamp/Help

8th
Feb 2015
Sudeepto
@Sudeepto
Feb 08 2015 15:03
Hello friends. Is someone using Sublime Text 3 and SublimeLinter package ??
Cristián Berríos
@crisberrios
Feb 08 2015 17:07
I have ST2 installed, but don't remember if I have SublimeLinter
Agil Ebanist
@AgilEbanist
Feb 08 2015 18:42
hello guys just compleating challenge 27
Quincy Larson
@QuincyLarson
Feb 08 2015 18:49
@AgilEbanist Great! keep up the hard work :)
Suzanne Atkinson
@AdventureBear
Feb 08 2015 21:56
hi guys n gals!
quiet in here today
posted this in chat, but it got overrun, HELP may be a better place.

Check out this codepen:

it uses angular, but as far as I can tell, it ONLY uses it to display your name as you type it .When it GENERATES the "Beer Name" it's using jquery and not angular. I THINK that's what's going on.
I just wanted to confirm that with you guys, and if that's the case, seems a bit of overhead to me to have both angular & jquery? Can you think of otherways to do this same type of thing with less overhead, or IS this they way?

Ben Clist
@BenClist
Feb 08 2015 22:03
I can't see any angular code at all??
Cristián Berríos
@crisberrios
Feb 08 2015 22:05
nor jQuery :P
Suzanne Atkinson
@AdventureBear
Feb 08 2015 22:14
wow, that's totally weird...unless he changed it?
or it doesn't display live in gitter the same. hang on
Ben Clist
@BenClist
Feb 08 2015 22:15
I checked it on the codepen site as well
Suzanne Atkinson
@AdventureBear
Feb 08 2015 22:16
he removed the angular since this morning. "name" was bound to the input form (which has been changed). I should have saved the fork when I first looked at it.
and I guess it wasn't jquery, but he had jquery enabled.
Oh well
Ben Clist
@BenClist
Feb 08 2015 22:16
At least it answered your question ;)
There's a better way of doing it with a lot less overhead :)
Suzanne Atkinson
@AdventureBear
Feb 08 2015 22:17
@BenClist for something like this...a little bit of code that takes an input, does some random manipulation and spits it back out what are best practices? I want to base something off of this.
@BenClist true!
Ben Clist
@BenClist
Feb 08 2015 22:18
To be honest I'm not knowledgeable enough to say what the best practice would be, the way it's done here looks pretty good though
Suzanne Atkinson
@AdventureBear
Feb 08 2015 22:18
OH, so you're saing that with the angular, which is now gone, that that was not the best way for this specific application?
Ben Clist
@BenClist
Feb 08 2015 22:18
Adding angular just to display a piece of text seems like massive overkill to me
Suzanne Atkinson
@AdventureBear
Feb 08 2015 22:19
Yeah, that's what I thought. That's what I wanted confirmation on!
Darryl Dixon - Piece Digital
@piecedigital
Feb 08 2015 22:21
Angular is meant to make displaying a lot of data smoother so that all you need to do is add to a json or something file and it gets updated.
Suzanne Atkinson
@AdventureBear
Feb 08 2015 22:22
that makes sense.
Nathan
@terakilobyte
Feb 08 2015 23:05
angular also has really powerful form validation, and enables the way the forms function now on fcc
it also enables us to verify a user isn't trying to enter an existing email or username as they type it, and ensures they are entering an existing username in bonfire if they paired with someone
and it does this asynchronously so the user doesn't have to submit the form and wait for the server to validate it all, which makes for a cleaner ux imo. It could have been done with jquery, but a lot more code would have been involved
Suzanne Atkinson
@AdventureBear
Feb 08 2015 23:15
I've really just scratched the surface so far! I forked the beer generator code to a WS project @terakilobyte and when I flesh out the next step I'd like to show you. This would be a "sister project" to go with the tricoach tools. well, it could be a coach or an athlete tool, but I think I have the knowledge now to write the smallest chunk of code for it so want to give it a shot.