These are chat archives for FreeCodeCamp/Help

26th
Mar 2019
nsonhouse
@nsonhouse
Mar 26 00:00
I need help with writing a function that opens a connection to a database and takes a CRUD operation as an argument.
Brad
@bradtaniguchi
Mar 26 00:15
sounds like a super common use-case
nsonhouse
@nsonhouse
Mar 26 00:36
Lead the way. Im here for suggestions. I want to use the mssql utility. But I am not sure how to set it up.
Brad
@bradtaniguchi
Mar 26 00:37
are you using sequlize or no?
@nsonhouse
nsonhouse
@nsonhouse
Mar 26 00:38
Are you referring to ORM?
OK, No
I was just reading about that. I was going to wrap the SQL statement into the JS
Brad
@bradtaniguchi
Mar 26 00:41
That's fine, there's tons of examples on the README for the package: https://github.com/tediousjs/node-mssql
Momozor
@momozor
Mar 26 06:05
hi
ordinarybutgreat
@ordinarybutgreat
Mar 26 08:22
There is no reaction at the interface when I click on "Run tests". Why?
Unwana Essien
@afixoftrix
Mar 26 08:28
Hi there. Is there anyone here familiar with threejs?
Razin Rahman
@raisinrahman
Mar 26 08:52
Is there a way to automatically insert backstick on my text to transform it to FCC code? Any website for it?
Momozor
@momozor
Mar 26 12:29
what do you mean by, FCC code?
kibablu
@kibablu
Mar 26 14:58
can someone help me with github pages. I made a repo gave it the same name as my username.github.io, I uploaded my portfolio in the repo, if i try to go to my link it says error 404 please send your PR
Christopher McCormack
@cmccormack
Mar 26 15:01
@kibablu I don't see a repo on your profile that matches that name, did you actually push the repo to your origin?
kibablu
@kibablu
Mar 26 15:05
@cmccormack am answering @Engjell00 if he has raised PR then I can see if I can help
Christopher McCormack
@cmccormack
Mar 26 15:06
@kibablu you might want to mention them in the response so it sends them a notification
kibablu
@kibablu
Mar 26 15:06
yeah... sorry about that
Christopher McCormack
@cmccormack
Mar 26 15:07
no worries
Niraj Nandish
@Nirajn2311
Mar 26 15:18
Chris just a doubt, how does one know how good he is in js or any other programming language
Christopher McCormack
@cmccormack
Mar 26 15:21
@Nirajn2311 not really sure, I guess my answer would be how confident do you feel you could learn something you haven't done yet? If fairly confident, that means you probably have a good grasp on the fundamentals at least
Brad
@bradtaniguchi
Mar 26 17:19
@Nirajn2311 I'd say if you feel confident when your solving basic common problems, and if you feel confident you can solve more complex problems with time. Best way to know is to try, go build something moderately complex that uses a lot of JS
Engjell Bislimi
@Engjell00
Mar 26 17:58
sorry for the late answer
@kibablu looks like I had to wait.
it worked thanks
Christopher McCormack
@cmccormack
Mar 26 18:01
@Engjell00 looks good!
Engjell Bislimi
@Engjell00
Mar 26 18:05
thanks I appreciate it. just some basic materialize css
Momozor
@momozor
Mar 26 18:36
hi
Brad
@bradtaniguchi
Mar 26 18:41
hello
Kaz Baig
@kbaig
Mar 26 18:42
greets
Momozor
@momozor
Mar 26 18:43
:smile: :wave:
Russ Carey
@russellwcarey
Mar 26 18:45
Hi-lo!
Momozor
@momozor
Mar 26 18:45
:wave:
Christopher McCormack
@cmccormack
Mar 26 18:45
:wave: :wave:
Momozor
@momozor
Mar 26 18:45
:wave: :wavy_dash:
Smootimus
@Smootimus
Mar 26 18:52
:wave:
Momozor
@momozor
Mar 26 18:55
:coffee:
Jason Luboff
@JLuboff
Mar 26 19:07
:wave:
Momozor
@momozor
Mar 26 19:10
hello there
psyperl
@psyperl
Mar 26 19:13
:wave:
Niraj Nandish
@Nirajn2311
Mar 26 19:25
Not sure what happened here
but thats a lot of hellos :laughing:
@cmccormack @bradtaniguchi nice, thx for that
its just that sometimes i get the feeling that i dont know js as sometimes i have to refer something in the docs
anyways im going through ydkjs once again as I realised I had missed out some things in js
psyperl
@psyperl
Mar 26 19:29
I don't think the intention is to map the whole docs into one's head
Niraj Nandish
@Nirajn2311
Mar 26 19:29
Also i never worked with dom, dont know how i missed that out :laughing:
@psyperl but its normal if i refer the docs from time to time in case i forget something right?
psyperl
@psyperl
Mar 26 19:30
sure it's normal
but it's not normal if you don't remember where the docs are
Niraj Nandish
@Nirajn2311
Mar 26 19:33
Nice
:laughing:
Do you know any good tutorial for dom
imma tackle that first and then come back to frameworks
maybe this time ill give react a shot
not sure if that's classified as a 'tutorial'
Niraj Nandish
@Nirajn2311
Mar 26 19:39
Ill just go through the the tutorials in mdn and search using google baba
@kinopotato how did you learn dom
Brad
@bradtaniguchi
Mar 26 19:41
The most important skill to have and to learn, is how to learn and find answers to the problems at hand. It isn't to remember all possible problems and their solutions
Aditya
@ezioda004
Mar 26 19:42
import DOM from "browser";
DOM.pipe(brain);`
Brad
@bradtaniguchi
Mar 26 19:42
So yea, knowing where to get your answers (MDN for example), how to ask questions for problems you can't find answers to (on stack overflow, here, github, co-workers etc) and how to learn more about solutions you do find so you can expand beyond just "copy-paste code"
psyperl
@psyperl
Mar 26 19:43
but it's always helpful if one know how to generate all the solutions from all the possible problems?
Niraj Nandish
@Nirajn2311
Mar 26 19:43
Thx for all the answers
its just that i learnt all these things by myself as school taught us c++
Brad
@bradtaniguchi
Mar 26 19:44
Sounds like the sorta thing that would result in memory overflows or infinite recursion :P
psssh my school didn't teach anything about web development
very few do
Niraj Nandish
@Nirajn2311
Mar 26 19:44
and i thought that i had made a mistake somewhere by jumping too quickly into frameworks
Yeah they should change the curriculum a lot
Aditya
@ezioda004
Mar 26 19:45
Sometimes you gotta fly before learning to walk
Christopher McCormack
@cmccormack
Mar 26 19:45
I learned a lot by going through freeCodeCamp :)
Niraj Nandish
@Nirajn2311
Mar 26 19:45
You mean crawl :laughing:
Brad
@bradtaniguchi
Mar 26 19:45
Colleges don't care too much about the technologies, its mostly about the concepts, since the technologies change to fast. Heck what I use today (Angular) didn't exist when I started college!
I just jump off cliffs into the deep end and sink or swim XD
Niraj Nandish
@Nirajn2311
Mar 26 19:45
:laughing:
nice, anyways goodnight everyone and thanks again for the answers
i think i know what i have to do now
Aditya
@ezioda004
Mar 26 19:46
Yeah me too, just gotta find a cliff
psyperl
@psyperl
Mar 26 19:48
i luckily found a dinghy
Niraj Nandish
@Nirajn2311
Mar 26 19:48
:laughing:
Brad
@bradtaniguchi
Mar 26 19:49
@Nirajn2311 C ya :D and goodluck!
Stevie
@Whip
Mar 26 19:54
https://pastebin.com/Dj7FkyzH
if someone could help me with this, i solved the previous two questions rather quickly but i cant seem to figure this one out.
Christopher McCormack
@cmccormack
Mar 26 19:59
which part are you confused on? is any of this code your own or is this the original code?
Stevie
@Whip
Mar 26 20:00
@cmccormack i have this right now https://pastebin.com/dSdWmd1Z
all of it but mainly just "// Assign the results of that to 'lessThan'"
Christopher McCormack
@cmccormack
Mar 26 20:02
@Whip check to see if value is less than 20.
you did not use the less than operator, you used the less than or equal to operator
Stevie
@Whip
Mar 26 20:02
ahhhh i was wondering
how would i assign the result though
Christopher McCormack
@cmccormack
Mar 26 20:03
= is the assignment, you already have it
What you are going to assign to lessThan is a Boolean value, true or false
it's a Boolean because you're using a comparison
Stevie
@Whip
Mar 26 20:04
i see thank you @cmccormack
Brad
@bradtaniguchi
Mar 26 20:07
@Whip It aint about speed, its about understanding
Stevie
@Whip
Mar 26 20:07
@bradtaniguchi i will maintain patience sensei
Christopher McCormack
@cmccormack
Mar 26 20:08
@Whip are these freeCodeCamp exercises?
Stevie
@Whip
Mar 26 20:17
@cmccormack i figured it out i needed to make "20" a string and no they're a part of LambdaSchools pre course work.
Im just in here waiting until i get a slack invite.
Christopher McCormack
@cmccormack
Mar 26 20:20
@Whip you shouldn't have had to make it a string...
your variable name is wrong in the latest paste as well - var lessthan = value <= 20; // true should be var lessThan = value <= 20; // true
case matters
Stevie
@Whip
Mar 26 20:22
https://pastebin.com/BxkPxx0J @cmccormack this is what i put and it worked for me :o
Christopher McCormack
@cmccormack
Mar 26 20:55
@Whip are these exercises open to anyone? You should definnitely not have to make 20 a string, I believe the comparison operator will implicitly coerce the second value in the expression to a number type
Momozor
@momozor
Mar 26 21:34
:sushi: