These are chat archives for FreeCodeCamp/HelpJavaScript

17th
Jan 2019
Riadh
@KWFE
Jan 17 01:45
hi who's there
Brad
@bradtaniguchi
Jan 17 01:47
@KWFE Hello
Riadh
@KWFE
Jan 17 02:02
hru?
Brad
@bradtaniguchi
Jan 17 02:02
good yourself?
Riadh
@KWFE
Jan 17 02:11
doing well thanks
Chinmay Joshi
@dienigma
Jan 17 08:44
Hello guys
This is Chinmay and I am on a programming binge at freecode camp.
I mean i finished quite a few challenges today.
tundeiness
@tundeiness
Jan 17 08:48
@NJM8 :laughing:
Chinmay Joshi
@dienigma
Jan 17 08:51
How do you write a js function that takes two different parameters as in lets say
add(2)(3)
I tried looking around but well that did not quite help me
tundeiness
@tundeiness
Jan 17 08:54
@dienigma let's see the instruction
Chinmay Joshi
@dienigma
Jan 17 09:01
Oh no I was just curious
So the instruction was to write an addition function that would work
in two ways
add(1,3) should work and so would add(1)(3)
So you would write something like
function add(a,b){
  return a +b;
}
return*
but then how can you take the arguments seperately
like
```
function add (a) (b) {
return a + b;
};
@tundeiness So how do I make the second work.
Victor Popescu
@VicPopescu
Jan 17 09:11
@dienigma
function add(a){
  return function(b){
    return a + b;
  };
}
Chinmay Joshi
@dienigma
Jan 17 09:11
So
a nested funciton.
function
@VicPopescu Thanks.
Victor Popescu
@VicPopescu
Jan 17 09:12
np
@dienigma let sum = (a) => (b) => a + b; if you want arrow function
Chinmay Joshi
@dienigma
Jan 17 09:13
@VicPopescu Got it thanks.
@VicPopescu I also have a "eh, I am so dumb" feeling as I read this.
Victor Popescu
@VicPopescu
Jan 17 09:14
lol, these things are almost never used in programming
Chinmay Joshi
@dienigma
Jan 17 09:14
Haha okay.
Victor Popescu
@VicPopescu
Jan 17 09:15
just that doing these you learn what the language can do
Chinmay Joshi
@dienigma
Jan 17 09:15
Oh okay.
So like they don't ask this as a programming question?
Victor Popescu
@VicPopescu
Jan 17 09:16
depends, if they want to be practical they ask situations from a real project. If they want to see how much did you research, they ask things like these
Chinmay Joshi
@dienigma
Jan 17 09:17
Like on a technical interview.
Okay. Thanks.
Victor Popescu
@VicPopescu
Jan 17 09:17
usually they do both
I do both
Chinmay Joshi
@dienigma
Jan 17 09:17
Oh okay.
Victor Popescu
@VicPopescu
Jan 17 09:17
I want to see if you are curios enough to do some research and I give you real project challenges and I want to see how you manage them
Chinmay Joshi
@dienigma
Jan 17 09:18
Ah, that makes sense
Victor Popescu
@VicPopescu
Jan 17 09:18
but, depends on those who take your interview
some people like to complicate things...
Chinmay Joshi
@dienigma
Jan 17 09:18
I am guessing that I might have one of those complicated one tommorow
Victor Popescu
@VicPopescu
Jan 17 09:19
@dienigma let's talk in private and I'll give you some hints without spamming here
Chinmay Joshi
@dienigma
Jan 17 14:43
Math.floor(Math.random() * (max - min + 1)) + min
Can anyone explain this? I did not quite understand.
Thanks.
Nevermind. Figured it out.
Jason Luboff
@JLuboff
Jan 17 16:10
Morning :wave:
Riadh
@KWFE
Jan 17 16:11
hi
Jason Luboff
@JLuboff
Jan 17 16:11
How's it going?
Kaz Baig
@kbaig
Jan 17 16:12
howdy
whatcha workin on today
Jason Luboff
@JLuboff
Jan 17 16:13
Continuing to work on my e2e tests...and if I finish those today...back to my react app..you?
Christopher McCormack
@cmccormack
Jan 17 16:14
@JLuboff heya
@kbaig @KWFE morning
Kaz Baig
@kbaig
Jan 17 16:15
Doing and simultaneously learning some video editing...not my forte
@cmccormack hello
Christopher McCormack
@cmccormack
Jan 17 16:18
@JLuboff sorry I never answered your question - have not looked at it but I'll check it out soon promise
Jason Luboff
@JLuboff
Jan 17 16:26
@kbaig Eh...video editing has never been forte either
@cmccormack Get to it!
Christopher McCormack
@cmccormack
Jan 17 16:26
I have to learn how to use Confluence first
Kaz Baig
@kbaig
Jan 17 16:27
I've got two camera feeds and an audio cut from a livestream with inconsistent frames so the syncing has to be done manually by nudging an audio frame here, another there...
For something like 90-110 minutes of content
Jason Luboff
@JLuboff
Jan 17 16:28
@cmccormack I'm just going to keep harassing you to use it like you were with React :P
Christopher McCormack
@cmccormack
Jan 17 16:29
@JLuboff haha just make sure you spread it over months not days
and I still need to harass you about VS Code, I think it's been too long
Kaz Baig
@kbaig
Jan 17 16:36
What do you wanna learn about VS?
Christopher McCormack
@cmccormack
Jan 17 16:36
I want to make him want to install it and use it :)
Kaz Baig
@kbaig
Jan 17 16:37
yeah it's the best
Kudzu
@czhower
Jan 17 16:39
image.png
Kaz Baig
@kbaig
Jan 17 16:39
truuu
Riadh
@KWFE
Jan 17 16:43
hi
Jason Luboff
@JLuboff
Jan 17 16:47
@cmccormack I'll never go to the darkside!
Christopher McCormack
@cmccormack
Jan 17 16:48
@JLuboff they have light themes too!
Jason Luboff
@JLuboff
Jan 17 16:49
Good thing I hate light themes!
Christopher McCormack
@cmccormack
Jan 17 16:58
They aren't always bad, depends on the ambient lighting
Jason Luboff
@JLuboff
Jan 17 17:00
Eh...my office is pretty bright...and light themes just hurt my eyes after a short while
Riadh
@KWFE
Jan 17 17:00
guys who has nice customization for vscode
Jason Luboff
@JLuboff
Jan 17 17:04
Customization in what regard?
Riadh
@KWFE
Jan 17 17:07
a nice theme and options
Christopher McCormack
@cmccormack
Jan 17 17:09
I really like Cobalt2 and Shades of Purple themes
Riadh
@KWFE
Jan 17 17:10
i mean settings.json file
Christopher McCormack
@cmccormack
Jan 17 17:11
extensions are a personal choice but I like snippet plugins, Bracket Pair Colorizer, Sublime Text Keymap, VS Code Icons
@KWFE you said themes :)
Jason Luboff
@JLuboff
Jan 17 17:11
Bracket Pair Colorizer :thumbsup:
Riadh
@KWFE
Jan 17 17:12
yes but i used to find good ready settings
Brad
@bradtaniguchi
Jan 17 17:15
I personally use material icon theme instead of vscode icons, supports most of the stuff I use and has a more consistent look than the vscode-icons one, but its all personal preference Id say
Jason Luboff
@JLuboff
Jan 17 17:17
Oh shit! Brad has a picture!
Brad
@bradtaniguchi
Jan 17 17:19
Yea finally got around changing my face from a robot XD
Jason Luboff
@JLuboff
Jan 17 17:20
This is a big deal. What're we going to do?
Brad
@bradtaniguchi
Jan 17 17:21
idk, do I get a party :P
Jason Luboff
@JLuboff
Jan 17 17:21
:fireworks: :balloon:
Brad
@bradtaniguchi
Jan 17 17:22
nice amazing, exactly what I expected haha
Jason Luboff
@JLuboff
Jan 17 17:41
:joy:
Christopher McCormack
@cmccormack
Jan 17 17:54
lol
Jason Luboff
@JLuboff
Jan 17 17:59
@cmccormack What are you working on today?
Christopher McCormack
@cmccormack
Jan 17 17:59
Playing with Confluence, working on some Gold Standards, and trying to troubleshoot a network flow that's having issues
nothing too fun :)
Jason Luboff
@JLuboff
Jan 17 18:03
What is confluence?
Christopher McCormack
@cmccormack
Jan 17 18:14
One of the Atlassian products, similar to SharePoint
Jason Luboff
@JLuboff
Jan 17 18:14
Ah... I'm debating moving my private repos from BitBucket (another atlassian product as I'm sure you're aware) to Github
Brad
@bradtaniguchi
Jan 17 18:15
but y do
Jason Luboff
@JLuboff
Jan 17 18:15
I was reading the other day that they're an Australian company and apparently some new laws there may or may not protect secure data..(or something along those lines)
Kaz Baig
@kbaig
Jan 17 18:16
@JLuboff I saw a reddit post for a node app that does that for you
moving my private repos from BitBucket
Jason Luboff
@JLuboff
Jan 17 18:16
@kbaig I too saw that post
Brad
@bradtaniguchi
Jan 17 18:16
ah interesting, so when you say protect data you mean from atlassian? or like their servers aren't secure
Jason Luboff
@JLuboff
Jan 17 18:17
@kbaig In fact...that may have been the post that I was reading about bitbucket..
@bradtaniguchi let me see if I can find it
Kaz Baig
@kbaig
Jan 17 18:17
heh
Riadh
@KWFE
Jan 17 18:18
who wants to let me join his company to learn?
Brad
@bradtaniguchi
Jan 17 18:18
@KWFE Are you asking for a job so you can learn?
Christopher McCormack
@cmccormack
Jan 17 18:19
@KWFE go for it! lots of jobs globally https://jobs.americanexpress.com/us
Brad
@bradtaniguchi
Jan 17 18:19
@cmccormack You work at american express? :o
Christopher McCormack
@cmccormack
Jan 17 18:19
Yes
Kaz Baig
@kbaig
Jan 17 18:19
@bradtaniguchi your company website is so cleaaaan
Christopher McCormack
@cmccormack
Jan 17 18:19
have for over 10 years
Brad
@bradtaniguchi
Jan 17 18:20
@kbaig haha thats a good thing right? XD
Kaz Baig
@kbaig
Jan 17 18:20
Yeah I'm complimenting it hah
Brad
@bradtaniguchi
Jan 17 18:20
@cmccormack nice nice, can I ask what kinda stuck they running over there :P
@kbaig Thanks Ill have to tell my boss (he was the one in charge of the look)
make his day haha
Christopher McCormack
@cmccormack
Jan 17 18:21
@bradtaniguchi you can ask but I'm not sure, I know they've been big into React lately but there are so many different groups doing different things I'm sure we have a bit of everything
Brad
@bradtaniguchi
Jan 17 18:21
his fav word is "clean" too, (this looks cleaner, doing this will be cleaner, etc)
Kaz Baig
@kbaig
Jan 17 18:21
tbh it looks fairly cookie cutter but the execution is awesome
Christopher McCormack
@cmccormack
Jan 17 18:21
Our fledgling blog has some React stuff on it https://americanexpress.io/
Brad
@bradtaniguchi
Jan 17 18:21
@cmccormack Yea Id guess so
@kbaig You haven't looked at the product tho right haha
Christopher McCormack
@cmccormack
Jan 17 18:22
I'm not even on a developer team but I do sit in their slack channels to learn a bit
Kaz Baig
@kbaig
Jan 17 18:22
@bradtaniguchi yeah I'm just referring to the site
Jason Luboff
@JLuboff
Jan 17 18:22
@bradtaniguchi https://old.reddit.com/r/javascript/comments/afw27x/since_github_now_has_free_private_repos_heres_a/ This is where I was reading about the potential issues with BitBucket
Brad
@bradtaniguchi
Jan 17 18:22
Yea, I think we used some wordpress templates or something for the site, just not time to go too deep into it tho
Kaz Baig
@kbaig
Jan 17 18:22
I too use old.reddit
Jason Luboff
@JLuboff
Jan 17 18:23
new reddit is awful
Kaz Baig
@kbaig
Jan 17 18:23
Yeah esp the attempts to make ads look like just another post
Jason Luboff
@JLuboff
Jan 17 18:23
Ya I just don't like the flow of it
Not sure if they've made any changes but I don't even bother
Riadh
@KWFE
Jan 17 18:24
@bradtaniguchi i am working for knowledge and learn not for a job in its exact meaning @cmccormack sir i am not looking for a job because i don't have any competitive skills
Kaz Baig
@kbaig
Jan 17 18:24
I'm not going to bother either unless I hear something
From what I've read, it sucks because of the suits involved and not the designers
Jason Luboff
@JLuboff
Jan 17 18:26
Or so they say
Brad
@bradtaniguchi
Jan 17 18:26
@KWFE Your welcome to help out on my latest side-project, its an Angular+Firebase app for flash cards https://github.com/bradtaniguchi/flare
Kaz Baig
@kbaig
Jan 17 18:26
I think it was the impression they gave in an AMA
I'm considering doing a small React library for a timeline component as a learning device
would anyone be on board at some point?
Brad
@bradtaniguchi
Jan 17 18:28
@kbaig It's not clear to me what a "timeline component as a learning device" is, I'd be down to help a bit. I have limited react experience tho, but it sounds like a good learning experience :D
Riadh
@KWFE
Jan 17 18:28
@bradtaniguchi thanks mr Brad but my javascript level is about 1%
Brad
@bradtaniguchi
Jan 17 18:28
@KWFE Then time to learn XD
Kaz Baig
@kbaig
Jan 17 18:28
@bradtaniguchi something like this
Jason Luboff
@JLuboff
Jan 17 18:29
@KWFE Have you gone through the FCC curiculm?
Brad
@bradtaniguchi
Jan 17 18:29
@kbaig Does the component come with the words and "dots" connecting to it?
Kaz Baig
@kbaig
Jan 17 18:29
That's what I'm interested in maybe creating
Riadh
@KWFE
Jan 17 18:30
yes i almost finished js first section but it was a year ago
Kaz Baig
@kbaig
Jan 17 18:30

as a learning device

I meant to create it as a way for me to learn

Brad
@bradtaniguchi
Jan 17 18:30
@KWFE I believe the best way to learn is to throw caution to the wind and fail
Christopher McCormack
@cmccormack
Jan 17 18:30
@KWFE go through it again
Jason Luboff
@JLuboff
Jan 17 18:30
So go through it again
Riadh
@KWFE
Jan 17 18:30
also when i was doing it i used to use hints because i couldn't finish anything
Brad
@bradtaniguchi
Jan 17 18:30
@kbaig ahhh I understand now
Jason Luboff
@JLuboff
Jan 17 18:30
I used hints all the time when I first started
Hell...I still lookup a bunch of stuff
Or ask for help.
Riadh
@KWFE
Jan 17 18:31
i can't even finish an easy statement in js
that's why i quite
Kaz Baig
@kbaig
Jan 17 18:31
The only way to learn is to do
Jason Luboff
@JLuboff
Jan 17 18:31
With an attitude like that, of course you won't be able to do it
Kaz Baig
@kbaig
Jan 17 18:31
So you gotta try again
Christopher McCormack
@cmccormack
Jan 17 18:31
Go through it again, read carefully, then ask us if you don't understand, we can try to explain. It's what we like to do, why we are here so often :)
Jason Luboff
@JLuboff
Jan 17 18:31
You have to be willing to take the time to learn and ask questions
Kaz Baig
@kbaig
Jan 17 18:31
We all knew nothing at one point my dude
Brad
@bradtaniguchi
Jan 17 18:31
The only way to learn is to do
:+1:
Kaz Baig
@kbaig
Jan 17 18:32
I've spent hours on a single statement before. It's part of the process
Riadh
@KWFE
Jan 17 18:32
well, i'v been trying to learn to code it was my dream since 2011 i start and stop each time i feel like i can't
Brad
@bradtaniguchi
Jan 17 18:33
I remember getting stuck for days on python... because my script had a mix of spaces and tabs, stuff I couldn't see/tell in my editor. Stupid stupid stupid
Kaz Baig
@kbaig
Jan 17 18:33
It's okay to feel burnt out, but only so long as you feel like you're honestly putting in work
Riadh
@KWFE
Jan 17 18:33
i started online courses and i fail because always i feel like i don't understand it enough
also web development doesn't have that attention and not highly demanded in my country (algeria)
and guys abroad are insane and crazy developers who know everything
Jason Luboff
@JLuboff
Jan 17 18:38
I promise you, no one knows everything
Riadh
@KWFE
Jan 17 18:45
but 7 years without learning anything is a good deal
Jason Luboff
@JLuboff
Jan 17 18:45
Have you truly not learned anything or have you just given up too soon?
Brad
@bradtaniguchi
Jan 17 18:46
If you spend 7 years "learning" and come out with nothing, I question if you were actually learning, or just doing something and calling it learning
Riadh
@KWFE
Jan 17 18:46
like each year i spend 2 months or more but no results
Brad
@bradtaniguchi
Jan 17 18:46
2 months a year is very different than 7 years
Jason Luboff
@JLuboff
Jan 17 18:49
@KWFE I used to be like you. I thought programming wasn't for me. I couldn't properly conceptualize algorithms or code flow. So, I didn't touch it for years. Then.. i found FCC. And started working on it.. probably a couple hours a day. Now, I'm Systems Developer for my company in charge of building new applications and administrating the database. I've worked my ass off to get where I am currently, but even so, I still know very little. I still have to ask questions frequently. BUT I made it. And you can too. Its just a matter of sticking to it, being consistent and not putting yourself down.
Brad
@bradtaniguchi
Jan 17 18:51
Yes, its not you that can't do it, the skills can come, but it does matter how you got out and try to acquire them, and handle difficulties you run into along the way
Riadh
@KWFE
Jan 17 18:53
i'll try this year too i must do my best i want to get a degree too in order to find a job
Jason Luboff
@JLuboff
Jan 17 18:53
I started FCC in May 2016. I started studying SQL 2017. I put my first real app into production in August 2018. It took me time. But now I'm working actively on multiple apps. And I have my Microsoft certification for SQL server.
Riadh
@KWFE
Jan 17 18:55
@JLuboff can we have a talk in private if you don't mind
Jason Luboff
@JLuboff
Jan 17 18:55
Eh.. keep it here that way others can join in as well. I think its more productive
Riadh
@KWFE
Jan 17 18:56
well wanted to ask you about the certification
Brad
@bradtaniguchi
Jan 17 18:56
@KWFE You don't need a degree to find the job, it just gets your foot in the door tho. But so does having experience
Riadh
@KWFE
Jan 17 18:56
@bradtaniguchi actually companies ask for degree specially in USA
Brad
@bradtaniguchi
Jan 17 18:57
@KWFE They ask for lots of stuff, but if they need someone who can do X and you show up with years of experience in X, but have no degree, odds are they wont pass you up since you've already done the job. If you know what I mean
Riadh
@KWFE
Jan 17 19:01
@bradtaniguchi YES SIR I REALLY DO, do you know anyone without a degree and get a decent job in a good tech company?
Jason Luboff
@JLuboff
Jan 17 19:01
I don't have a degree :shrug:
Given.. I worked my way into my position at my company so a little different
Brad
@bradtaniguchi
Jan 17 19:03
FCC has loads of stories of people who switched careers, learned web dev and got jobs. And that's just FCC
Jason Luboff
@JLuboff
Jan 17 19:04
@forkerino was able to find a great job after going through FCC (I know he read a lot of other resources as well though)
Riadh
@KWFE
Jan 17 19:06
didn't he learn programming before doing the fcc
Kaz Baig
@kbaig
Jan 17 19:07
I mean if we're being honest, not having a degree does close some doors. My last boss said he didn't care what degree a prospective employee had, so long as they had one. That being said, this field in general is easier to get into without a degree than many others
Jason Luboff
@JLuboff
Jan 17 19:07
He may have known a little bit but I'm pretty sure he was realitvely fresh
Brad
@bradtaniguchi
Jan 17 19:08
@kbaig Very true, if you have an opportunity then yea get one, but not having one doesn't close all doors. No matter what ever it says on the job application
Riadh
@KWFE
Jan 17 19:08
guys i live in africa and i want to work in europe or US which is not easy without a degree
Kaz Baig
@kbaig
Jan 17 19:09
As people living here, we're telling you it's not as hard as you're making it sound either
Plenty of companies, of varying sizes, hire devs working remotely from across the world
Brad
@bradtaniguchi
Jan 17 19:10
yup, we have a guy in South America working remotely 24/7 without a degree
well not 24/7 working, haha
Kaz Baig
@kbaig
Jan 17 19:10
Probably like 100+ of our developer force of ~500 was working remotely
Riadh
@KWFE
Jan 17 19:12
i understand you my friends, just i want to work abroad
Jason Luboff
@JLuboff
Jan 17 19:19
:clap: for e2e testing.. .found a bug
Brad
@bradtaniguchi
Jan 17 19:20
gotta get the job, and to get the job gotta get the experience
@JLuboff :+1:
Riadh
@KWFE
Jan 17 19:20
@bradtaniguchi i must learn first then i will try to get a job
Jason Luboff
@JLuboff
Jan 17 19:21
Would have caused problems in prod too...luckily the app hadn't needed those inserts since Tuesday :joy:
Brad
@bradtaniguchi
Jan 17 19:21
@KWFE So I gotta ask what are you going to learn? Then I'd ask how are you going to learn it, and finally I'd ask how will you know you learned it?
Jason Luboff
@JLuboff
Jan 17 19:22
Then he would ask for your first born
Brad
@bradtaniguchi
Jan 17 19:22
@JLuboff hehe
Jason Luboff
@JLuboff
Jan 17 19:24
@bradtaniguchi When you create e2e tests...do you create one test file to do everything, or seperate files for seperate actions? Right now I'm creating seperate files but also have one file to do everything
Brad
@bradtaniguchi
Jan 17 19:25
@JLuboff We don't do e2e testing so I can't say much, but what do you mean "do everything"? The test-runner should be able to run multiple files with specs in each, so whats the "one file to do everything" exactly?
Jason Luboff
@JLuboff
Jan 17 19:29
I haven't seen in the testcafe docs being able to run multiple files, just a single file however..I guess you could also export and require/import. Anyhow.. do everything meaning perform all the tests at once without having to run each individual file
In the single file, they're still broken up into their respective fixture (aka describe)
Brad
@bradtaniguchi
Jan 17 19:31
Hmm must be a testcafe thing, there should be a way to run multiple e2e files. Like all my unit-tests are in different files with their described and what not. Id assume the same setup should apply for e2e testing for testcafe, just gotta pass some blob string somewhere of all the files to run I guess
Jason Luboff
@JLuboff
Jan 17 19:34
I guess I'm creating unit tests so I can test each component individual OR I can run the single test file which will run all of those tests
Brad
@bradtaniguchi
Jan 17 19:36
When you say unit-tests are they calling the UI+backend, or at they just testing JUST the component code/logic?
Jason Luboff
@JLuboff
Jan 17 19:36
UI+backend...so does that count as e2e still?
Brad
@bradtaniguchi
Jan 17 19:36
Yea, your testing the stack, end 2 end hehe
so if it fails it could be anywhere in the stack, but your testing everything together so its more broad
Idk if I could help, since I'm not using testcafe, the few times I did e2e testing I was using protractor, which ran the same as the unit tests, ie I had a bunch of files that all got ran. There wasn't a single file todo "everything"
Riadh
@KWFE
Jan 17 19:38
@bradtaniguchi i want to learn any good programming language which would help me to achieve my dream goal and having a decent job
Brad
@bradtaniguchi
Jan 17 19:38
@KWFE Whats your dream goal, or is it just to get a job?
Jason Luboff
@JLuboff
Jan 17 19:38
@bradtaniguchi I'm going to run to lunch but we'll continue this convo after
Brad
@bradtaniguchi
Jan 17 19:39
@JLuboff no worries :D
Riadh
@KWFE
Jan 17 19:40
@bradtaniguchi i want to get a decent job help my parents, and maybe start turning some old ideas into real projects
Brad
@bradtaniguchi
Jan 17 19:41
Alright so what are some of your old ideas, are they web-dev related or more generic?
Riadh
@KWFE
Jan 17 19:42
both
some of them are even related into electronics
Brad
@bradtaniguchi
Jan 17 19:43
So more or less they are going into different directions so you'd probably want to focus on one to get skills for your dream goals, and to get a job too
Riadh
@KWFE
Jan 17 19:45
i am sure that my story happened many times
bcz i was confused
started python
then java
then web
Amit Patel
@AmitP88
Jan 17 19:45
hey guys, how do I check if my Timestamp Microservice project is working right? (Cert #5 - Project #1)
Brad
@bradtaniguchi
Jan 17 19:45
python is a good place to start learnign programming
as long as you learn the concepts, its worth it. (you can always make backend code utilities in python, even as a web dev)
Riadh
@KWFE
Jan 17 19:47
mr Brad its hard to make python code alive
Brad
@bradtaniguchi
Jan 17 19:47
idk what you mean
Riadh
@KWFE
Jan 17 19:48
i mean python scripts must be done first to see if they work or not
Brad
@bradtaniguchi
Jan 17 19:48
@KWFE what language doesn't work that way?
Riadh
@KWFE
Jan 17 19:48
not like js where you test the code each time you want
Brad
@bradtaniguchi
Jan 17 19:49
Are you talking about a REPL? like nodejs?
or the console in your browser?
Christopher McCormack
@cmccormack
Jan 17 19:49
that's not correct, both are interpreted
Brad
@bradtaniguchi
Jan 17 19:49
python is interpreted (like JS) and has a REPL so you can run it "live"
^
Riadh
@KWFE
Jan 17 19:50
if you understand me i mean js is much more interactive
Brad
@bradtaniguchi
Jan 17 19:50
not sure how hehe
Christopher McCormack
@cmccormack
Jan 17 19:51
@KWFE stop making excuses, if you want to learn to code you gotta go practice! Eventually you will get to a point where you look back and wonder why you kept doubting yourself
Riadh
@KWFE
Jan 17 19:53
okay, one last thing and i will stop bothering you guys
Brad
@bradtaniguchi
Jan 17 19:53
I get bothered by nothing, I think I bother others :D
Christopher McCormack
@cmccormack
Jan 17 19:53
@bradtaniguchi no... no way
Riadh
@KWFE
Jan 17 19:54
i want to ask about how to make myself better with logic and algorithmes
Brad
@bradtaniguchi
Jan 17 19:54
practice practice practice practice practice practice practice practice practice practice practice practice practice practice practice practice practice practice practice practice practice practice practice practice practice practice practice practice practice practice practice practice practice practice practice practice practice practice practice practice practice practice practice practice practice practice practice practice practice practice practice practice practice practice practice practice practice practice practice practice practice practice practice practice
there's no shortcuts with those things, you can read all you want, watch videos, but neither will get you understanding better than just doing it yourself
Christopher McCormack
@cmccormack
Jan 17 19:55
@KWFE FCC has several exercises that have you research algorithms and datastructures so you can better understand them
Riadh
@KWFE
Jan 17 19:57
so what do you suggest start directly with javascript again?
Christopher McCormack
@cmccormack
Jan 17 19:57
yeah
if that's what you would like to focus on, it's a great start
Brad
@bradtaniguchi
Jan 17 19:57
Id suggest setting some ambitious goals outa the gate and pushing yourself to achieve them
Amit Patel
@AmitP88
Jan 17 19:58
@KWFE I just checked out your github profile and there's barely any green in the contributions section. If you wanna get the green, you gotta make the green ;)
Brad
@bradtaniguchi
Jan 17 19:58
Like go out and build a react-app with routing, and logic in a week timeframe
Amit Patel
@AmitP88
Jan 17 19:58
push to github everyday @KWFE
Riadh
@KWFE
Jan 17 19:58
@AmitP88 i don't know how to contribuate
Amit Patel
@AmitP88
Jan 17 19:58
@KWFE do you know how to use git?
Amit Patel
@AmitP88
Jan 17 20:00
exactly! :)
I'm hoping to get mine close to that this year
I've already missed these past two days because I've been working through the cert #5 challenges =/
Christopher McCormack
@cmccormack
Jan 17 20:02
Do some code reviews on the freeCodeCamp repo, there are still over 5000 PRs looking for review if you want to help the core team
they count toward your green :)
Amit Patel
@AmitP88
Jan 17 20:02
ah I didn't know that! thanks for the tip! :)
Christopher McCormack
@cmccormack
Jan 17 20:03
it's not a tip, we could use the help
Brad
@bradtaniguchi
Jan 17 20:03
Yea me neither, hehe time to increase mine :P (my squares are blue hehehe)
Christopher McCormack
@cmccormack
Jan 17 20:03
:D
Amit Patel
@AmitP88
Jan 17 20:03
btw, how do I test my timestamp microservices project?
Brad
@bradtaniguchi
Jan 17 20:03
@cmccormack You contrib to FCC didn't know, :D
Christopher McCormack
@cmccormack
Jan 17 20:03
@bradtaniguchi you can too!
Brad
@bradtaniguchi
Jan 17 20:04
I always wanted to, but I keep getting side-tracked haha
Christopher McCormack
@cmccormack
Jan 17 20:04
I mostly just review PRs, Hacktoberfest brought forth so many and there were so few reviewing
Riadh
@KWFE
Jan 17 20:04
@AmitP88 i don't know how to use it
Brad
@bradtaniguchi
Jan 17 20:05
@KWFE sounds like another thing to learn/use
Amit Patel
@AmitP88
Jan 17 20:05
@KWFE https://git-scm.com/ read the docs and use the git terminal to update your repos when working on projects
Christopher McCormack
@cmccormack
Jan 17 20:05
Riadh
@KWFE
Jan 17 20:06
i tried many times to use it but when i commit
it doesn't commit
Brad
@bradtaniguchi
Jan 17 20:06
@KWFE I'd dig into the error messages you get
Amit Patel
@AmitP88
Jan 17 20:06
the main commands are: git status, git add -A (if you want to commit all changes), git commit -m "(commit description)", git push -u origin master
in that order too
Riadh
@KWFE
Jan 17 20:07
okay wait i'll install it and try to start
Amit Patel
@AmitP88
Jan 17 20:08
Christopher McCormack
@cmccormack
Jan 17 20:09
like that link I just shared one minute ago?
Amit Patel
@AmitP88
Jan 17 20:09
ah I didn't notice that haha
Riadh
@KWFE
Jan 17 20:09
@cmccormack yes it is thanks both of you
Christopher McCormack
@cmccormack
Jan 17 20:09
:D
Brad
@bradtaniguchi
Jan 17 20:10
Do or do not. There is no try
Riadh
@KWFE
Jan 17 20:10
i will start no more just trying
Amit Patel
@AmitP88
Jan 17 20:11
@KWFE code everyday, make it a habit like brushing your teeth
Riadh
@KWFE
Jan 17 20:12
okay i am running a linux distro based on debian 32bit
dpkg: error processing package git-daemon-run (--configure):
start: Unable to connect to Upstart: Failed to connect to socket /com/ubuntu/upstart: Connection refused
too many errors
Amit Patel
@AmitP88
Jan 17 20:13
I don't use linux so idk
I just downloaded it normally and installed
Christopher McCormack
@cmccormack
Jan 17 20:14
you may already have it installed , try git --version
Brad
@bradtaniguchi
Jan 17 20:14
@KWFE what distro, howd you install the package?
Riadh
@KWFE
Jan 17 20:14
git version 2.7.4
Brad
@bradtaniguchi
Jan 17 20:15
its already installed, and if this is ubuntu I think it always comes with git
no need to manually install using dpkg
Riadh
@KWFE
Jan 17 20:16
okay i'll make a commit
i should locate into a folder first in my pc
Brad
@bradtaniguchi
Jan 17 20:18
@KWFE You know how to get around in a linux terminal right?
_
Riadh
@KWFE
Jan 17 20:20
git config --global user.name "KWFE"
it used to ask for password
Brad
@bradtaniguchi
Jan 17 20:23
when you push it asks, or do anything related to github
if your just doing "local" stuff like commiting, then it wont
Christopher McCormack
@cmccormack
Jan 17 20:23
you should probably setup a github or bitbucket account if you haven't already
probably best to use github for now so we can help easier :)
Riadh
@KWFE
Jan 17 20:24
i have a github account
Riadh
@KWFE
Jan 17 20:32
paralyzed since the first try
Brad
@bradtaniguchi
Jan 17 20:34
no idea what that means
Riadh
@KWFE
Jan 17 20:34
i installed git
how to start using it
i make a repository on github
also i cloned it into a folder in my computer
now i want to start making files working on them with vscode then pushing them into my github
i tried that many times before
but it didn't work
@bradtaniguchi do you understand me?
Christopher McCormack
@cmccormack
Jan 17 20:37
Awesome what issues are you having
Brad
@bradtaniguchi
Jan 17 20:37
giving "it didnt' work" doesn't help us help you
Riadh
@KWFE
Jan 17 20:37
i don't know how to make files and push them
Brad
@bradtaniguchi
Jan 17 20:40
@KWFE Do you mean you don't know how to add the files to git and push them? I recommend going through one of the git tutorials mentioned above and learning enough todo do as such
here is the link to the project
really confused
Brad
@bradtaniguchi
Jan 17 20:45
@KWFE Usually I never make a readme when creating repos, as it means your code locally (whatever you have) is different than what is on github and you have to "merge" them
if you have nothing on github, you can push everything to github at once (plus it gives instructions on what todo on the repo page)
regardless both git and github usually give very helpful, googable errors and theres tons of documentation on issues you run into
Riadh
@KWFE
Jan 17 20:48
ok i am useless sorry for bothering you guys

```Desktop/ Documents/ Downloads/
roadsky@backbox:~$ cd Desktop/
roadsky@backbox:~/Desktop$ cd FCC/
roadsky@backbox:~/Desktop/FCC$ git clone https://github.com/KWFE/FCC.git
Cloning into 'FCC'...
remote: Enumerating objects: 3, done.
remote: Counting objects: 100% (3/3), done.
remote: Total 3 (delta 0), reused 0 (delta 0), pack-reused 0
Unpacking objects: 100% (3/3), done.
Checking connectivity... done.
roadsky@backbox:~/Desktop/FCC$ git init
Initialized empty Git repository in /home/roadsky/Desktop/FCC/.git/
roadsky@backbox:~/Desktop/FCC$ git add challenge1.js
fatal: pathspec 'challenge1.js' did not match any files
roadsky@backbox:~/Desktop/FCC$ git add index.html
fatal: pathspec 'index.html' did not match any files
roadsky@backbox:~/Desktop/FCC$ git add index.html
fatal: pathspec 'index.html' did not match any files
roadsky@backbox:~/Desktop/FCC$ cd FCC/
roadsky@backbox:~/Desktop/FCC/FCC$ git init
Reinitialized existing Git repository in /home/roadsky/Desktop/FCC/FCC/.git/
roadsky@backbox:~/Desktop/FCC/FCC$ git add index.html
roadsky@backbox:~/Desktop/FCC/FCC$ git add
git: 'add
' is not a git command. See 'git --help'.

Did you mean this?
add
roadsky@backbox:~/Desktop/FCC/FCC$
roadsky@backbox:~/Desktop/FCC/FCC$ git add
Nothing specified, nothing added.
Maybe you wanted to say 'git add .'?
roadsky@backbox:~/Desktop/FCC/FCC$ git add .
roadsky@backbox:~/Desktop/FCC/FCC$ git commit -m "this is the first commitement lol"
[master 49cac24] this is the first commitement lol
1 file changed, 12 insertions(+)
create mode 100644 index.html
roadsky@backbox:~/Desktop/FCC/FCC$ git push origin master
Username for 'https://github.com': git remote add origin
Password for 'https://git remote add origin@github.com':
roadsky@backbox:~/Desktop/FCC/FCC$
```

code
Brad
@bradtaniguchi
Jan 17 20:52
be sure to put backticks before and after the code, on their own lines.
Riadh
@KWFE
Jan 17 21:01
roadsky@backbox:~$ cd Desktop/
roadsky@backbox:~/Desktop$ cd FCC/
roadsky@backbox:~/Desktop/FCC$ git clone https://github.com/KWFE/FCC.git
Cloning into 'FCC'...
remote: Enumerating objects: 3, done.
remote: Counting objects: 100% (3/3), done.
remote: Total 3 (delta 0), reused 0 (delta 0), pack-reused 0
Unpacking objects: 100% (3/3), done.
Checking connectivity... done.
roadsky@backbox:~/Desktop/FCC$ git init
Initialized empty Git repository in /home/roadsky/Desktop/FCC/.git/
roadsky@backbox:~/Desktop/FCC$ git add challenge1.js
fatal: pathspec 'challenge1.js' did not match any files
roadsky@backbox:~/Desktop/FCC$ git add index.html
fatal: pathspec 'index.html' did not match any files
roadsky@backbox:~/Desktop/FCC$ git add index.html
fatal: pathspec 'index.html' did not match any files
roadsky@backbox:~/Desktop/FCC$ cd FCC/
roadsky@backbox:~/Desktop/FCC/FCC$ git init
Reinitialized existing Git repository in /home/roadsky/Desktop/FCC/FCC/.git/
roadsky@backbox:~/Desktop/FCC/FCC$ git add index.html
roadsky@backbox:~/Desktop/FCC/FCC$ git add
git: 'add' is not a git command. See 'git --help'.

Did you mean this?
add
roadsky@backbox:~/Desktop/FCC/FCC$
roadsky@backbox:~/Desktop/FCC/FCC$ git add
Nothing specified, nothing added.
Maybe you wanted to say 'git add .'?
roadsky@backbox:~/Desktop/FCC/FCC$ git add .
roadsky@backbox:~/Desktop/FCC/FCC$ git commit -m "this is the first commitement lol"
[master 49cac24] this is the first commitement lol
1 file changed, 12 insertions(+)
create mode 100644 index.html
roadsky@backbox:~/Desktop/FCC/FCC$ git push origin master
Username for 'https://github.com': git remote add origin
Password for 'https://git remote add origin@github.com':
roadsky@backbox:~/Desktop/FCC/FCC$
well done
i am gonna try to push another file
Christopher McCormack
@cmccormack
Jan 17 21:05
@KWFE so it worked? great!
Pagnito
@Pagnito
Jan 17 21:13
hey writing tests with jest and enzyme, but for some reason the it statements stopped getting logged in the terminal, anyone know why this happened? or how i can reconfigure this back to show the list of it statments
Riadh
@KWFE
Jan 17 21:17
@cmccormack yes feels good
Christopher McCormack
@cmccormack
Jan 17 21:19
@KWFE git is a monster, but extremely useful once you start to understand
Riadh
@KWFE
Jan 17 21:21
yes, i know its for open sources projects but its still complicated for me to understand the main concept and use of it
Christopher McCormack
@cmccormack
Jan 17 21:23
I basically use it as a code backup and versioning
great for sharing code too if you're running into issues
Jason Luboff
@JLuboff
Jan 17 21:27
I too use git
alpox
@alpox
Jan 17 21:27
I too sleep at night
Christopher McCormack
@cmccormack
Jan 17 21:28
@KWFE for example, if I created a Node project and kept it up-to-date on Github, I could share the repo with you, you could clone it locally, run it, and use it or help troubleshoot or whatever
Jason Luboff
@JLuboff
Jan 17 21:28
I too lie awake at night
Riadh
@KWFE
Jan 17 21:30
@cmccormack yes i understand that, but also see people using branches and i don't even know why not main repo
Jason Luboff
@JLuboff
Jan 17 21:33
You use a branch as to not mess up your master pretty much. If you have your master auto-update production for example, you don't want to be making changes to it that aren't complete or not fully tsted
Or perhaps you have multiple people working on the same project. You don't want them to be editing the same file and overwrite one another (this is where merge conflicts can get resolved)
@bradtaniguchi Looks like you can run multiple files via a runner class (thats what they call it)
Riadh
@KWFE
Jan 17 21:39
tbh mr jason i don't even know how it works
Brad
@bradtaniguchi
Jan 17 21:39
@JLuboff Sounds fancy, but bt a metacafe limitation/feature thing
Jason Luboff
@JLuboff
Jan 17 21:39
say who what now?
Christopher McCormack
@cmccormack
Jan 17 21:51
@KWFE I read this this morning, maybe it will help a little. To be honest, you just have to keep reading, it will get more and more clear over time
@KWFE tons of great articles on Medium as well https://medium.com/search?q=git
Riadh
@KWFE
Jan 17 21:53
yes i must read and interact with amazing people like you
this would help me a lot
Christopher McCormack
@cmccormack
Jan 17 21:53
this one is pretty good to understand what's underneath, although it does end a bit too soon
Christopher McCormack
@cmccormack
Jan 17 21:59
@KWFE come for the learning, stay for the friends you make!
Jason Luboff
@JLuboff
Jan 17 22:02
Yup. People from all over the world too
Brad
@bradtaniguchi
Jan 17 22:09
time to fix some bugs yo
Jason Luboff
@JLuboff
Jan 17 22:20
Just kill them
Christopher McCormack
@cmccormack
Jan 17 22:21
@JLuboff friends?
Jason Luboff
@JLuboff
Jan 17 22:21
bugs
Brad
@bradtaniguchi
Jan 17 22:24
but wait, people make bugs......
Jason Luboff
@JLuboff
Jan 17 22:24
or is it the machines?!
Brad
@bradtaniguchi
Jan 17 22:26
:o
Riadh
@KWFE
Jan 17 22:32
lol
Brad
@bradtaniguchi
Jan 17 22:42
welp figured out the first bug, can't fix it right now tho :/
Jason Luboff
@JLuboff
Jan 17 22:55
Why not?
Riadh
@KWFE
Jan 17 22:56
well there is a bug in our room
Brad
@bradtaniguchi
Jan 17 22:58
@JLuboff gotta talk to the boss man about how we wants to proceed. There are other things to fix/continue so the bug will be fixed before the next release, but not righ tnow
Jason Luboff
@JLuboff
Jan 17 23:00
Ah
Jason Luboff
@JLuboff
Jan 17 23:39
Don't forget folks... for...in is not the same as for...of :joy:
Brad
@bradtaniguchi
Jan 17 23:49
which for loop to use to do a "loop over stuffs" usually is the ofcourse one :P
Jason Luboff
@JLuboff
Jan 17 23:50
Good way to remember hah. I don't even know why I typed for...in though. The other places I'm using it is for...of
Brad
@bradtaniguchi
Jan 17 23:52
for...in sounds like foreign, which means I don't get it hehe. I always have to look up the differences tho, I only just made up those stupid memory tricks haha. Hopefully they stick now
Jason Luboff
@JLuboff
Jan 17 23:54
:joy: