These are chat archives for dcsan/gitterbot

6th
Aug 2015
Bill
@kirah1314
Aug 06 2015 00:11
@Lightwaves since the bonfire's helpful links direct people to use split/reverse/join perhaps we should keep this solution as the default?
@dcsan ^
Bill
@kirah1314
Aug 06 2015 00:23
If each bonfire has multiple solutions, would users get confused which solution to use? I'm just thinking out loud
dc
@dcsan
Aug 06 2015 00:23
yeh maybe
its hard. there's a difference of hints vs solutions
hints don't have to be sequential
its like random "hey, did you think about this?"
but for most of the bonfires we do need to walk people through
maybe it could be in the wiki as "alternative approach" ?
so then it makes sense
or like "extra credit" notes?
Bill
@kirah1314
Aug 06 2015 00:26
yeah, some how separate it from the bonfire and wiki?
dc
@dcsan
Aug 06 2015 00:26
iterating backwards, or maybe there's some funky way to use underscore or ... list comprehensions in ES6
as far as the bonfire tutorial engine goes though, i want to keep it on one page for now
Bill
@kirah1314
Aug 06 2015 00:26
when I was going through the bonfires, I try to use the methods the helpful links provided
dc
@dcsan
Aug 06 2015 00:27
so if there are alternates then they are footnotes / "a challenge for the reader" type ideas at the bottom
Bill
@kirah1314
Aug 06 2015 00:27
I thought that was the purpose of the bonfire although some bonfires I didn't use the provided methods...
dc
@dcsan
Aug 06 2015 00:27

advanced users

  • can you do this with iterate and yield?
Bill
@kirah1314
Aug 06 2015 00:29
yeah
dc
@dcsan
Aug 06 2015 00:29
yeah i guess in a perfect world the curriculum is organized to give you a thread
Bill
@kirah1314
Aug 06 2015 00:47
@dcsan ok I think I'm finally done revising the wiki for reverse a string lol.
I thought about adding another image but decided to keep it short and simple instead. After all, people came here to learn to code, not look at funny images . So if the current format looks good then I'm gonna use it for other bonfires? Or do you have any other suggestions/ideas?
Lightwaves
@Lightwaves
Aug 06 2015 00:52
haha there is probably a real funky way using underscore
dc
@dcsan
Aug 06 2015 00:52
bf reverse
CamperBot
@camperbot
Aug 06 2015 00:52

:fire:Bonfire: Reverse a String :link:

function reverseString(str) {
  return str;
}

reverseString('hello');

Reverse the provided string.
You may need to turn the string into an array before you can reverse it.
Your result must be a string.
Remember to use RSAP if you get stuck. Try to pair program. Write your own code.

type: bf details bf links bf spoiler

dc
@dcsan
Aug 06 2015 00:52
hint
CamperBot
@camperbot
Aug 06 2015 00:52
:construction: Spoilers are only in the Bonfire's Custom Room :point_right:
dc
@dcsan
Aug 06 2015 00:53
@kirah1314 looks pretty good i think
Lightwaves
@Lightwaves
Aug 06 2015 00:53
actually I think I got one
gonna try it
not using underscore but using a variant of reduce
dc
@dcsan
Aug 06 2015 00:54
hint 1 looks broken - like we have an extra H2 in there.
CamperBot
@camperbot
Aug 06 2015 00:54
:construction: Spoilers are only in the Bonfire's Custom Room :point_right:
Bill
@kirah1314
Aug 06 2015 00:55
@dcsan yeah it doesn't start until hint2, weird
dc
@dcsan
Aug 06 2015 00:55
update
CamperBot
@camperbot
Aug 06 2015 00:55
updating wiki...
Bonfire-Reverse-a-String.md | 27 +++++++++++++++++---------- 1 file changed, 17 insertions(+), 10 deletions(-)
Updating 01dfc61..4920e90 Fast-forward
done code: 0
:computer:
dc
@dcsan
Aug 06 2015 00:56
cos you had an H2 on the first line
Bill
@kirah1314
Aug 06 2015 00:57
ah you mean it should be ## ?
dc
@dcsan
Aug 06 2015 00:57
no, it should not be that for the first line
or we get a split with [0] =""
blob
also think it sgood to NOT add 'hint 2' in the text
make it descriptive
Bill
@kirah1314
Aug 06 2015 00:57
ok, so no # at all on first line. Got it
dc
@dcsan
Aug 06 2015 00:58
since we're numbering them
when the engine spits it out
Bill
@kirah1314
Aug 06 2015 00:58
true
dc
@dcsan
Aug 06 2015 00:58
but the headings are nice to break up the text so maybe

next step - reversing

sth like that
and the first line can be a single #
just not a ##
also note that color coding for scripts doesnt default to javascript
so i changed that markup to be ```js
Bill
@kirah1314
Aug 06 2015 01:00
i saw you add ```js, what's that?
dc
@dcsan
Aug 06 2015 01:00
force javascript syntax
Bill
@kirah1314
Aug 06 2015 01:00
just answered it haha
dc
@dcsan
Aug 06 2015 01:00
doesnt look that great on that snippet but good habit
the first image is fun. agree we dont want too much
but diagrams often make stuff easier to unnerstand but they're hard to come by
oh the other thing i was thinking maybe cool is to sprinkle in some other suggestions
type explain reverse if you're not clear about that
and that should pull in a wiki entry
so that everything doesn't have to be linear
the 'hint' will remember your context/step
Click More information under the bonfire title
where?
i dont see those?
OH - you mean on FCC itself?
bf links
dc
@dcsan
Aug 06 2015 01:03
(which are borked atm but we will fix em(
Bill
@kirah1314
Aug 06 2015 01:04
@dcsan where do we put the other suggestions?
dc
@dcsan
Aug 06 2015 01:05
at the end?
Bill
@kirah1314
Aug 06 2015 01:05
you mean those bf links?
or end of the bonfire wiki?
dc
@dcsan
Aug 06 2015 01:06
end of the wiki
you mean other ideas like reverse iterate?
at the end
like some books have "advanced/related topics"
Bill
@kirah1314
Aug 06 2015 01:07
yeah I wasn't sure what you mean sprinkle in some other suggestions or where to do that. Is that for alternative solutions?
dc
@dcsan
Aug 06 2015 01:08

other approaches

there's always more than one way to skin a cat with javascript. How did you approach this problem? Edit this wiki and add your solution notes!

alternative 1 - using a reverse loop

..... etc

oh no the sprinkle in is just at the end of each hint?
as a mini-footnote
Lightwaves
@Lightwaves
Aug 06 2015 01:09
I'm going to throw a weird one just for interest
function reverseString(str) {
  return str.split("").reduceRight(function(prev,curr){return prev+curr;});
}

reverseString('hello');
dc
@dcsan
Aug 06 2015 01:09
update
CamperBot
@camperbot
Aug 06 2015 01:09
updating wiki...
Updating e6a70d2..c1edb1e Fast-forward
Bonfire-Reverse-a-String.md | 2 ++ 1 file changed, 2 insertions(+)
done code: 0
:computer:
dc
@dcsan
Aug 06 2015 01:09
hint
CamperBot
@camperbot
Aug 06 2015 01:09
:construction: Spoilers are only in the Bonfire's Custom Room :point_right:
Bill
@kirah1314
Aug 06 2015 01:09
ok cool, and direct users to the bf links? or what to sprinkle?
dc
@dcsan
Aug 06 2015 01:10
what to type
blob
wiki entries
CamperBot
@camperbot
Aug 06 2015 01:10
no wiki entry for: entries
:pencil: click here to create one now!after creating your page type update to reload it here
dc
@dcsan
Aug 06 2015 01:10
a bit like that image/example i just added
Lightwaves
@Lightwaves
Aug 06 2015 01:10
I like the image
it's funny yet relevent
Bill
@kirah1314
Aug 06 2015 01:10
ah I'll take a look then, was revising the titles
dc
@dcsan
Aug 06 2015 01:10
the idea to show is that wiki can be accessed from within the bonfire
  • String.split()
  • Array.reverse()
  • Array.join()
If you're not clear on array methods type find array
Bill
@kirah1314
Aug 06 2015 01:11
@Lightwaves took me a while to find it lol
dc
@dcsan
Aug 06 2015 01:11
find array
CamperBot
@camperbot
Aug 06 2015 01:11
find array
nothing found
dc
@dcsan
Aug 06 2015 01:11
not that we have anything atm :worried:
we will tho soon :rocket:
dcsan @dcsan is afk
Bill
@kirah1314
Aug 06 2015 01:15
find string
CamperBot
@camperbot
Aug 06 2015 01:15

find string

[0] bonfire reverse a string

dc
@dcsan
Aug 06 2015 01:25
wiki example
CamperBot
@camperbot
Aug 06 2015 01:25

:point_right: example [wiki]

This is an example wiki entry. Break it up with a ## H2 heading as content up that will show in the chat, but the rest is on the wiki.

console.log("less is more!");
HappyCamping -{ Happy Camping! :+1: }
https://github.com/camperbot

:pencil: read more about example on the FCC Wiki

dc
@dcsan
Aug 06 2015 01:25
@kirah1314 i wonder if we should put an image like that at the top?
or use your own github logo in place of camperbot?
i want to make sure people who write these get acknowledgement for it
i put in luis' image for the other one
and there's a separation between discussion and solution
so that you get a warning not to look
Bill
@kirah1314
Aug 06 2015 01:29
@dcsan that's a good idea. I'm not sure, what's the best practice on these things?
dc
@dcsan
Aug 06 2015 01:30
i think the example above is ok?
the factorialze one
the ascii art is maybe a bit OTT
Bill
@kirah1314
Aug 06 2015 01:32
yeah a big picture is probably too much
i think linking to the person's github might be enough?
dc
@dcsan
Aug 06 2015 01:32
yeh, a bit like the
about @kirah1314
CamperBot
@camperbot
Aug 06 2015 01:32
:star: 92 | @kirah1314 | http://www.freecodecamp.com/kirah1314
Bill
@kirah1314
Aug 06 2015 01:32
I don't really like it linking to FCC's profile though
dc
@dcsan
Aug 06 2015 01:32
ok
Bill
@kirah1314
Aug 06 2015 01:32
it shows everyone's codes right there
dc
@dcsan
Aug 06 2015 01:32
thats changing
Bill
@kirah1314
Aug 06 2015 01:33
oh ok then link to FCC profile would be better if that's gonna change
Bill
@kirah1314
Aug 06 2015 01:33
keep the community within FCC?
dc
@dcsan
Aug 06 2015 01:33
outside links are fine but within FCC people get to see a bit more relevant info
but if people have a blog or whatever thats cool too
i get the feeling that's not luis' real photo :)
Bill
@kirah1314
Aug 06 2015 01:34
lol
outside links are fine but within FCC people get to see a bit more relevant info
yeah
@dcsan ok i renamed the titles to make it more relevant
dc
@dcsan
Aug 06 2015 01:36
kk
Bill
@kirah1314
Aug 06 2015 01:39
find string
CamperBot
@camperbot
Aug 06 2015 01:39

find string

[0] bonfire reverse a string

Bill
@kirah1314
Aug 06 2015 01:39
@dcsan but that link brings people to github, it'll be updated to bring them to mozilla?
^ above find string link
Bill
@kirah1314
Aug 06 2015 01:45
is there a way to add a line between the hint and type hint for next hint :pencil: [Contribute at the FCC Wiki]?
dc
@dcsan
Aug 06 2015 01:47
yeah
nbsp;
on a line
you can also some spaces after
Bill
@kirah1314
Aug 06 2015 01:56
@dcsan I added nbsp; but it became text on the hints haha
dc
@dcsan
Aug 06 2015 01:58
you can paste stuff in here to see how it will come out
Bill
@kirah1314
Aug 06 2015 01:58
nbsp;
nbsp; testing
dc
@dcsan
Aug 06 2015 01:58
 
Bill
@kirah1314
Aug 06 2015 01:59
ahh cool missing the &
dc
@dcsan
Aug 06 2015 01:59
hint - it wont come out :)
CamperBot
@camperbot
Aug 06 2015 01:59
Set a bonfire to talk about with bonfire name
Bill
@kirah1314
Aug 06 2015 02:01
ok extra line set, hint 4/6 was too clutter at the bottom of the hint
Bill
@kirah1314
Aug 06 2015 05:25
bonfire
CamperBot
@camperbot
Aug 06 2015 05:25
we're talking about bonfire :fire: Bonfire: Pig Latin
Lightwaves
@Lightwaves
Aug 06 2015 16:43
wiki pair
CamperBot
@camperbot
Aug 06 2015 16:43

:point_right: tips on how to become a good pair programmer [wiki]

Pair programming is a great way to learn programming! Read why.

  1. Communicate well with your partner. Voice chat will make communication easy, let you focus on learning, and will allow you to use your time effectively.

  2. Before you start coding: decide together with your partner how your workflow should look so that both you and your partner can benefit from the time spent coding. An example of a good workflow:

    • Read through and discuss the problem to make sure you understand it.
    • Solve the problem with pseudo-code by identifying the steps you need to take in order to get from the given inputs to the expected result.
    • Create your actual solution
  3. When explaining things: Ask questions to guide your partner's thoughts instead of just showing the answer right away. This will let him or her think about the problem and make it easier for them to learn.

  4. Finally, be open to your partner's ideas, respect each other and have fun! :)
    :pencil: read more about tips on how to become a good pair programmer on the FCC Wiki

dc
@dcsan
Aug 06 2015 21:55
@kirah1314 hi
but i'm not sure how to approach it. Do i need to know what the camperbot sees when a user chats?
Bill
@kirah1314
Aug 06 2015 21:55
@dcsan ok like this one -> add a hint for when users type ''' #71
dc
@dcsan
Aug 06 2015 21:56
so all "botCommands" are automated and get an 'input' object
input.text is what the user typed
Bill
@kirah1314
Aug 06 2015 21:56
I think I could put the codes together for that
so @kirah1314.input.text?
dc
@dcsan
Aug 06 2015 21:56
no
thats an example command
menu
CamperBot
@camperbot
Aug 06 2015 21:57
type help for a list of things the bot can do
dc
@dcsan
Aug 06 2015 21:57
though, that one doesnt really use any of the input content
its simple
basically anything in botCommands is a keyword
if it comes at the beginning of a line the bot will just run that command
Bill
@kirah1314
Aug 06 2015 21:58
hmm ok, i'll study it once i finish the wiki then
dc
@dcsan
Aug 06 2015 21:59
if you want we could pair on it
Bill
@kirah1314
Aug 06 2015 21:59
i was thinking @someone chats ''' then camperbot will chat hey @someone, use ``` instead of '''
dc
@dcsan
Aug 06 2015 22:00
then look at roomMessages.js
Bill
@kirah1314
Aug 06 2015 22:00
oh ok, if you could pair on it then that'll be awesome. I'll let you know if I run into roadblocks first then :)
i will look at that js
but I should finish the wiki first while it's still hot!
dc
@dcsan
Aug 06 2015 22:01
yeh!
get those first wiki contribs out!
Bill
@kirah1314
Aug 06 2015 22:01
ok brb