These are chat archives for FreeCodeCamp/HelpJavaScript

27th
Nov 2018
Jason Luboff
@JLuboff
Nov 27 2018 00:47
I know if express is running in production mode..it'll cache the front end but not sure if thats applicable to CRA
Brian
@BrianCodes33
Nov 27 2018 03:17
create-react-app isn't working for me in the terminal. any ideas?
Pagnito
@Pagnito
Nov 27 2018 05:18
cant understand why my service worker dissappears when i refresh without a network
abraham anak agung
@padunk
Nov 27 2018 05:35
@BrianCodes33 what's the error?
May Kittens Devour Your Soul
@diomed
Nov 27 2018 10:46
my probation worker also disappeared without a trace. funny thing
Aditya
@ezioda004
Nov 27 2018 12:52
@JLuboff @cmccormack I got an offer from the company I made the app for :D
Stephen James
@sjames1958gm
Nov 27 2018 14:11
@ezioda004 :+1:
May Kittens Devour Your Soul
@diomed
Nov 27 2018 14:37
:congratulations: @ezioda004
May Kittens Devour Your Soul
@diomed
Nov 27 2018 14:54
:cat:erpillar
Christopher McCormack
@cmccormack
Nov 27 2018 15:23
@ezioda004 wow that's awesome! and you just started the process too right?
congrats! 🎉🎉
Aditya
@ezioda004
Nov 27 2018 15:28
@diomed @sjames1958gm Thanks!
@cmccormack Yeah - the offer is good with flexible hours, so I think I'm gonna take it. I'll have to join before 20th Dec. Thanks!
Christopher McCormack
@cmccormack
Nov 27 2018 15:28
Where is the job located?
Aditya
@ezioda004
Nov 27 2018 15:30
Bangalore, not my current city. Would have to relocate
Stephen James
@sjames1958gm
Nov 27 2018 15:31
Do they pay for relocation?
Aditya
@ezioda004
Nov 27 2018 15:32
No, they are providing accommodation for the time being
Christopher McCormack
@cmccormack
Nov 27 2018 15:34
@ezioda004 how is the area you'll be working? Tech forward?
Aditya
@ezioda004
Nov 27 2018 15:39
@cmccormack Oh yeah, its the silicon valley of India - place is blooming with soft dev jobs but all require exp in some sort so this is a good stepping stone
Christopher McCormack
@cmccormack
Nov 27 2018 15:39
@ezioda004 that's awesome man hope you still pop in once in a while when you start work :)
Aditya
@ezioda004
Nov 27 2018 15:42
@cmccormack I'll be browsing memes at work anyway, sure I can hop in here like usual :D
Christopher McCormack
@cmccormack
Nov 27 2018 15:43
@ezioda004 haha this chat room basically is my replacement for downtime meme browsing at work,
Aditya
@ezioda004
Nov 27 2018 15:45
Hah yeah, I think initially there would be a lot of work, they are migrating from Angular to React and backend to Node from Java
Christopher McCormack
@cmccormack
Nov 27 2018 15:46
React?? Didn't they know we're all moving to Marko??
Aditya
@ezioda004
Nov 27 2018 15:47
Oh damn, we got a new playa in the town
Christopher McCormack
@cmccormack
Nov 27 2018 15:47
it's from ebay
Aditya
@ezioda004
Nov 27 2018 15:49
Is there any benefit of Marko over React? Aside from small size
Christopher McCormack
@cmccormack
Nov 27 2018 15:49
/shrug
If you believe the performance charts on their site it's way faster for certain operations
I don't have a ton of hope for it though, it's too sugary
or whatever the term is
pug-like syntax is kind of nice though
Aditya
@ezioda004
Nov 27 2018 15:50
Yeah looks weird
$ var personPromise, oh no PHP flashbacks
Christopher McCormack
@cmccormack
Nov 27 2018 15:53
probably not bad once you get going with it I bet
Jason Luboff
@JLuboff
Nov 27 2018 16:10
@ezioda004 Thats awesome man, congrats!
Jefferson
@jeffersonnnn
Nov 27 2018 16:13
@ezioda004 congratulations, man. more wins!
Aditya
@ezioda004
Nov 27 2018 16:14
@jeffersonnnn @JLuboff Thanks!
Jason Luboff
@JLuboff
Nov 27 2018 16:15
@ezioda004 Hows the pay/benefits?
Aditya
@ezioda004
Nov 27 2018 16:19
@JLuboff Pretty good for the area and as a fresher. The best colleges placement here gives around the same package so I cant complain
Jason Luboff
@JLuboff
Nov 27 2018 16:20
Thats great
Jefferson
@jeffersonnnn
Nov 27 2018 16:22
hey guys, i saw the whole Marko talk up there and i Google'd; apparently, it has been around for 5 years now. That is wild.
Christopher McCormack
@cmccormack
Nov 27 2018 16:23
that seems like a long time to never have heard of it until recently!
Jason Luboff
@JLuboff
Nov 27 2018 16:24
I'd guess it doesn't hold much of the market share lol
Jefferson
@jeffersonnnn
Nov 27 2018 16:26
@ezioda004 what is that about?
Jason Luboff
@JLuboff
Nov 27 2018 16:28
Wow
Christopher McCormack
@cmccormack
Nov 27 2018 16:29
it's a thrilling read
Aditya
@ezioda004
Nov 27 2018 16:29
Welp time to run npm audit and npm audit fix in every project lol
Jason Luboff
@JLuboff
Nov 27 2018 16:29
Do you use the package?
Aditya
@ezioda004
Nov 27 2018 16:31
Dependency of the dependency is wild, doesnt matter if you used it directly. If one your packages use it then you're also affected
Jason Luboff
@JLuboff
Nov 27 2018 16:31
Ah...thats true didn't think about that
2 mill downloads a week, I'm pretty sure most people are affected by this
Jefferson
@jeffersonnnn
Nov 27 2018 16:32
i can't view this web page across two browsers
May Kittens Devour Your Soul
@diomed
Nov 27 2018 16:33
I've seen marko before
Jefferson
@jeffersonnnn
Nov 27 2018 16:33
i hope to God it isn't the crypto-stealing dependency thingie
May Kittens Devour Your Soul
@diomed
Nov 27 2018 16:33
every child nowadays clones something and makes it better
doesnt mean it'll stick
_ _ _ T _
Jefferson
@jeffersonnnn
Nov 27 2018 16:35
well, the game is the game.
Christopher McCormack
@cmccormack
Nov 27 2018 16:35
@diomed H
May Kittens Devour Your Soul
@diomed
Nov 27 2018 16:35
no H
Christopher McCormack
@cmccormack
Nov 27 2018 16:35
S
May Kittens Devour Your Soul
@diomed
Nov 27 2018 16:35
also ..... if that is MARCO - where is POLO?
no S either
Christopher McCormack
@cmccormack
Nov 27 2018 16:36
this one is too hard I give up
May Kittens Devour Your Soul
@diomed
Nov 27 2018 16:36
lol
Christopher McCormack
@cmccormack
Nov 27 2018 16:36
R
May Kittens Devour Your Soul
@diomed
Nov 27 2018 16:36
it ain't RANSOM
Jefferson
@jeffersonnnn
Nov 27 2018 16:36
Lool
May Kittens Devour Your Soul
@diomed
Nov 27 2018 16:38
I downloaded new program the other day - apparently it's licence is RANSOMWARE
@jeffersonnnn does your expensifyapp make apps more expensive?
Christopher McCormack
@cmccormack
Nov 27 2018 16:40
L
May Kittens Devour Your Soul
@diomed
Nov 27 2018 16:41
no
Christopher McCormack
@cmccormack
Nov 27 2018 16:41
%
N
May Kittens Devour Your Soul
@diomed
Nov 27 2018 16:41
no
Christopher McCormack
@cmccormack
Nov 27 2018 16:41
E
May Kittens Devour Your Soul
@diomed
Nov 27 2018 16:42
@cmccormack next time it'll be just one such sign and you'll be guessing for a year. lol.
no E either
Christopher McCormack
@cmccormack
Nov 27 2018 16:42
👻
A 👻👻
Aditya
@ezioda004
Nov 27 2018 16:42
(╯°□°)╯︵ ┻━┻
May Kittens Devour Your Soul
@diomed
Nov 27 2018 16:42
_ A _ T _
Christopher McCormack
@cmccormack
Nov 27 2018 16:42
Y
May Kittens Devour Your Soul
@diomed
Nov 27 2018 16:43
close. but no
where is fox boy? he's missing this
Christopher McCormack
@cmccormack
Nov 27 2018 16:45
wrong channel for them maybe?
C
Aditya
@ezioda004
Nov 27 2018 16:47
@diomed FATTY
May Kittens Devour Your Soul
@diomed
Nov 27 2018 16:47
lol
C A C T _
Jason Luboff
@JLuboff
Nov 27 2018 16:47
I
Christopher McCormack
@cmccormack
Nov 27 2018 16:47
CACTI
Aditya
@ezioda004
Nov 27 2018 16:47
CACTY?
Christopher McCormack
@cmccormack
Nov 27 2018 16:47
lol
Aditya
@ezioda004
Nov 27 2018 16:47
What is that
Christopher McCormack
@cmccormack
Nov 27 2018 16:47
CACT%
May Kittens Devour Your Soul
@diomed
Nov 27 2018 16:48
@cmccormack has a good idea haha :cactus: :cactus:
Jason Luboff
@JLuboff
Nov 27 2018 16:48
Cacti is plural for Cactus
May Kittens Devour Your Soul
@diomed
Nov 27 2018 16:48
indeed
Aditya
@ezioda004
Nov 27 2018 16:48
Welp TIL
Christopher McCormack
@cmccormack
Nov 27 2018 16:48
yes we have literally many of them :)
Aditya
@ezioda004
Nov 27 2018 16:48
As a decor?
Christopher McCormack
@cmccormack
Nov 27 2018 16:49
as a desert
May Kittens Devour Your Soul
@diomed
Nov 27 2018 16:49
yes, in America they decorate deserts
Blauelf
@Blauelf
Nov 27 2018 16:49
I like desserts more than deserts.
And, maybe, you can put cactus into your dessert, too?
Jefferson
@jeffersonnnn
Nov 27 2018 16:50
@diomed Lmao nice one there
May Kittens Devour Your Soul
@diomed
Nov 27 2018 16:50
cactus cake
Jefferson
@jeffersonnnn
Nov 27 2018 16:50
@diomed now that you mention it, i may just go ahead to make that a new feature
Christopher McCormack
@cmccormack
Nov 27 2018 16:50
@diomed lol
May Kittens Devour Your Soul
@diomed
Nov 27 2018 16:51
Christopher McCormack
@cmccormack
Nov 27 2018 16:51
@ezioda004 this is where I live
Saguaro_National_Park_-_Flickr_-_Joe_Parks.jpg
Jefferson
@jeffersonnnn
Nov 27 2018 16:51
okay guys, eslint/airbnb is kicking my behind. can i get some input on it?
Aditya
@ezioda004
Nov 27 2018 16:52
@cmccormack Jeez, strolling at the middle of the night doesnt seem fun there
May Kittens Devour Your Soul
@diomed
Nov 27 2018 16:52
you chop one up and then you pour sangria
Christopher McCormack
@cmccormack
Nov 27 2018 16:52
@jeffersonnnn what's the question?
@ezioda004 nobody goes out there unless they're burying a body or something
May Kittens Devour Your Soul
@diomed
Nov 27 2018 16:52
cacti are such pricks
Christopher McCormack
@cmccormack
Nov 27 2018 16:52
it's all fly-by country
Ba Dum Tss - Imgur.gif
May Kittens Devour Your Soul
@diomed
Nov 27 2018 16:54
@cmccormack are you familiar with 3 amigos?
Aditya
@ezioda004
Nov 27 2018 16:54
@diomed lmao that guy ran behind him
You mean tres amigo?
Christopher McCormack
@cmccormack
Nov 27 2018 16:54
The tequila?
or the Steve Martin movie?
or the Disney version?
Aditya
@ezioda004
Nov 27 2018 16:55
You, tequila and the person you see after drinking tequila
Jason Luboff
@JLuboff
Nov 27 2018 16:56
So...what you're saying is...you're familiar with them
Christopher McCormack
@cmccormack
Nov 27 2018 16:56
I'm familiar with lots of stuff!
Stop judging me!
May Kittens Devour Your Soul
@diomed
Nov 27 2018 16:56
Steve Martin movie, obviously
although I absolutely hate when someone says {{actor_name}}movie
that's some lame advertising
Christopher McCormack
@cmccormack
Nov 27 2018 16:58
the other two were also pretty popular but he's the only one I remember
May Kittens Devour Your Soul
@diomed
Nov 27 2018 16:58
Chevy Chase. lol
he was so popular in the 80es
maybe in the part of 90es too?!?
Christopher McCormack
@cmccormack
Nov 27 2018 17:00
I never much liked him or martin short though
May Kittens Devour Your Soul
@diomed
Nov 27 2018 17:01
he was great as Clark Griswold
in those family movies. also ok in Caddyshack, I guess
was basically celebrity comedian of that time
_ _ _ _ H
_ _ E _ K _
_ H E
_ N _ E _ N E _
movie name
Aditya
@ezioda004
Nov 27 2018 17:04
T
May Kittens Devour Your Soul
@diomed
Nov 27 2018 17:04
oh come on!
Jefferson
@jeffersonnnn
Nov 27 2018 17:04
@cmccormack i'd say newbie problem, but i am just that -a newbie. ESLint is throwing error at me while i'm using a tutorial. Now i know this tutorial's code is correct because i have done it before but without ESLint/AirBnB plugged in into my sublime text.
// server.js
import express from 'express';

const app = express();

app.use(express.json());

app.get('/', (req, res) => {
  res.status(200).send({ 'message': 'YAY! Congratulations! Your first endpoint is working' });
});

app.listen(3000);
console.log('app running on port ', 3000);
May Kittens Devour Your Soul
@diomed
Nov 27 2018 17:04
_ _ _ _ H
_ _ E _ K _
T H E
I N T E _ N E T
Aditya
@ezioda004
Nov 27 2018 17:04
I
May Kittens Devour Your Soul
@diomed
Nov 27 2018 17:05
yes
Aditya
@ezioda004
Nov 27 2018 17:05
R
@jeffersonnnn Which line?
May Kittens Devour Your Soul
@diomed
Nov 27 2018 17:05
R _ _ _ H
B R E _ K _
T H E
I N T E R N E T
Jefferson
@jeffersonnnn
Nov 27 2018 17:05
the part that gets my goose is the error that app on the second-to-last line is not acceptable according to the style guide
May Kittens Devour Your Soul
@diomed
Nov 27 2018 17:06
:goat:
Jefferson
@jeffersonnnn
Nov 27 2018 17:06
@ezioda004 the second to last line.
@diomed B
Aditya
@ezioda004
Nov 27 2018 17:06
@jeffersonnnn Try app.listen(3000, () => console.log('app running on port ', 3000);
@diomed A
May Kittens Devour Your Soul
@diomed
Nov 27 2018 17:07
pls guess already :yum:
R A _ _ H
B R E A K _
T H E
I N T E R N E T
Jason Luboff
@JLuboff
Nov 27 2018 17:07
@jeffersonnnn What is the eslint error?
Christopher McCormack
@cmccormack
Nov 27 2018 17:08
@diomed S
Aditya
@ezioda004
Nov 27 2018 17:08
@diomed Ralph Breaks the interweeb
May Kittens Devour Your Soul
@diomed
Nov 27 2018 17:08
lol. interweeb :yum:
well done, @ezioda004 :tada:
Aditya
@ezioda004
Nov 27 2018 17:09
Fanks
May Kittens Devour Your Soul
@diomed
Nov 27 2018 17:09
gotta go see that one
never hurts to learn how to break the internets
Aditya
@ezioda004
Nov 27 2018 17:10
Cant break something thats already broken
Jefferson
@jeffersonnnn
Nov 27 2018 17:10
@JLuboff @ezioda004 coming right up, i need to find a power source.
@diomed interweebs? come on, man :(
May Kittens Devour Your Soul
@diomed
Nov 27 2018 17:18
@jeffersonnnn that's @ezioda004 's fault
guys, is it true that hope this helps actually means stop bothering me
I didn't know that :scream:
Jason Luboff
@JLuboff
Nov 27 2018 17:21
I've never interpreted that way..
Pagnito
@Pagnito
Nov 27 2018 17:24
wake up in the morning and suddenly my service worker is working perfectly fine no matter how much i refresh the page. This is like a beginning of a nightmare. When you wake up from a nightmare and everythin is fine but u can sense something outside ur lil house in the woods...you jus cant help but feel something is out there
Christopher McCormack
@cmccormack
Nov 27 2018 17:25
@Pagnito did you maybe not clear the cache?
@diomed it kind of does yeah
If I use it it means I've exhausted my knowledge or time
Pagnito
@Pagnito
Nov 27 2018 17:26
@cmccormack i know yesterday when i wwas trying to fix w/e the problem i cleared storage a bunch of times
Christopher McCormack
@cmccormack
Nov 27 2018 17:27
maybe storage is different for service workers?
Pagnito
@Pagnito
Nov 27 2018 17:27
no its not, it clears the cache
there is a check there too for cache
Christopher McCormack
@cmccormack
Nov 27 2018 17:28
I'm not sure how your responses relate to my suggestion
Pagnito
@Pagnito
Nov 27 2018 17:31
im saying that when you clear storage you can put a check for which things you want to clear, and cache is one of them thus indicating that cache is included when you clear storage
May Kittens Devour Your Soul
@diomed
Nov 27 2018 17:32
what is newer :grey_question:
v 1.005 or
v 1.03
it's the last one, innit?
Jason Luboff
@JLuboff
Nov 27 2018 17:34
Yes
if you were to round 1.005 to the hundredth position, it would be 1.01
May Kittens Devour Your Soul
@diomed
Nov 27 2018 17:35
ok. thanks
Jefferson
@jeffersonnnn
Nov 27 2018 17:51
@Pagnito i feel your pain deeply. You wonder: did my code go partying? Is it hungover? are we breaking up? what do you want from me.
Pagnito
@Pagnito
Nov 27 2018 17:52
@jeffersonnnn lol
Jefferson
@jeffersonnnn
Nov 27 2018 17:53
@ezioda004 @JLuboff so i found an alternate power source and now my code running albeit with errors everywhere in my editor. To ignore or to find a way to amend. Here is the code now
// server.js
import express from 'express';

const app = express();

app.use(express.json());

app.get('/', (req, res) => {
  res.status(200).send({ 'message': 'YAY! Congratulations! Your first endpoint is working' });
});

app.listen(3000);
console.log('app running on port ', 3000);
line 9 where there is res.status shows me 'unnecessary quoted property message found'
Aditya
@ezioda004
Nov 27 2018 17:56
@jeffersonnnn So I guess you can do console.log(`app running on port ${3000}`)
Though, you can simply use the callback function on app.listen(), its there for this purpose only:
app.listen(PORT, () => console.log(`app running on port ${PORT}`));
Jason Luboff
@JLuboff
Nov 27 2018 17:59
@jeffersonnnn But what are the errors...?
And I would also do what @ezioda004 said
As I believe technically your console message could show before your app actually starts listening (or it could still fail)
Aditya
@ezioda004
Nov 27 2018 18:01
Really? Then it aint a callback function!
Jason Luboff
@JLuboff
Nov 27 2018 18:02
The callback works but unless app.listen(port) is sync.. the console message could show before it completes...right?
(In his code)
Aditya
@ezioda004
Nov 27 2018 18:04
If its a callback function then it shouldnt show up before, I never noticed so no idea
Jason Luboff
@JLuboff
Nov 27 2018 18:05
His isn't in a callback though
Aditya
@ezioda004
Nov 27 2018 18:05
Oh I get what you mean
Yeah, that wasnt a callback so it'd execute regardless if the server started
Jason Luboff
@JLuboff
Nov 27 2018 18:06
Exactly :thumbsup:
Brad
@bradtaniguchi
Nov 27 2018 18:14
Nothing like driving to work and getting messaged theres a bug!
Jason Luboff
@JLuboff
Nov 27 2018 18:15
As opposed to not driving to work and getting messaged theres a bug?
May Kittens Devour Your Soul
@diomed
Nov 27 2018 18:16
@bradtaniguchi you could drive from work and get a message that you have to come back coz there's a bug
:smiling_imp:
@ezioda004 do you drive a car (or riksha)?
Jefferson
@jeffersonnnn
Nov 27 2018 18:17
i hate this AirBnB linting convention :screams internally: :smile:
Jason Luboff
@JLuboff
Nov 27 2018 18:18
@jeffersonnnn You still haven't told us what the actual error is..
Jefferson
@jeffersonnnn
Nov 27 2018 18:19
thanks all guys. i see now that the issue is with AirBnB.
Christopher McCormack
@cmccormack
Nov 27 2018 18:19
@jeffersonnnn issue, or misunderstanding of the linting error?
Brad
@bradtaniguchi
Nov 27 2018 18:20
Best part of reporting bugs to me, I tell them to report them on github, instead of spamming me
Jefferson
@jeffersonnnn
Nov 27 2018 18:20
@bradtaniguchi as opposed to getting a massage and being messaged that there is a bug?
Brad
@bradtaniguchi
Nov 27 2018 18:20
unless it's a show stopper (which it isn't) should be fine
May Kittens Devour Your Soul
@diomed
Nov 27 2018 18:23
@cmccormack I put a caron on Č and now it's on C as well
pls help
what do I DOOOOOO ČČČ
Pagnito
@Pagnito
Nov 27 2018 18:25
anyone ever had a issue with service worker caching the html file for every path you give it to cache. It doesnt do it in webpack dev server. but when i run my express server, for some reason it caches an html file for every js and css file path i give it
Christopher McCormack
@cmccormack
Nov 27 2018 18:25
@diomed i have no idea what you mean
Brad
@bradtaniguchi
Nov 27 2018 18:25
@Pagnito That doesn't sound like a service worker issue (i could be wrong), it sounds like your express server returns the index.html for any route it doesn't know about, and you don't have it setup to serve your "public" files
Pagnito
@Pagnito
Nov 27 2018 18:26
@bradtaniguchi thats what i was thinking too, but it serves them perfectly fine
Christopher McCormack
@cmccormack
Nov 27 2018 18:26
yeah that seems like it to me too
Pagnito
@Pagnito
Nov 27 2018 18:26
like they all show up in the browser and work
Christopher McCormack
@cmccormack
Nov 27 2018 18:26
what about subdirectories?
May Kittens Devour Your Soul
@diomed
Nov 27 2018 18:27
@cmccormack never get into typography. it's only pain and lines that don't go where you want them to
Christopher McCormack
@cmccormack
Nov 27 2018 18:28
@diomed ok wont
@jeffersonnnn why won't you share your errorororororor!?!?
May Kittens Devour Your Soul
@diomed
Nov 27 2018 18:33
coz errors are unusual and hard to fix
it's best to keep them secret
and suffer in silence, ashamed
Christopher McCormack
@cmccormack
Nov 27 2018 18:34
good point
Aditya
@ezioda004
Nov 27 2018 18:34
Wise :cat:
Pagnito
@Pagnito
Nov 27 2018 18:36
@bradtaniguchi yea, it was the server, my static path was too specific and it seems the service worker was out of its scope
Brad
@bradtaniguchi
Nov 27 2018 18:41
Ah yes
Jason Luboff
@JLuboff
Nov 27 2018 18:54
Ugh.. 8 packages with updates
Jefferson
@jeffersonnnn
Nov 27 2018 18:56
@cmccormack hahaha the very error has been wiped off. So my laptop went off because power, i got it back on, and voila! all errors wiped. see, i am not peering too deeply into this particular gift horse's mouth :(
@cmccormack celebrate with meeee ee -_-
Christopher McCormack
@cmccormack
Nov 27 2018 18:57
no way I would celebrate something just disappearing!
need to find out why!
Jefferson
@jeffersonnnn
Nov 27 2018 18:59
@cmccormack actually, i will need to actually investigate. *sobs softly
May Kittens Devour Your Soul
@diomed
Nov 27 2018 19:01
@cmccormack I can always send you some error to fix. lol
if that makes you happy
Brad
@bradtaniguchi
Nov 27 2018 19:05
We had a but go on for 3+ months that was really funky, we found re-deploying the entire app fixed it, so it was obviously some kind of shared state on the server-side. But since we couldn't track it down and deadlines were approaching we said we will figure it out later. So legit the quick fix for the bug was redeployment until a real fix was found.
Jason Luboff
@JLuboff
Nov 27 2018 19:08
And did you fix it?
Brad
@bradtaniguchi
Nov 27 2018 19:10
We eventually tracked it down and slapped our foreheads:
someClassMethod() {
  const responseObj = {};
  return (req: Request, res: response) => {
    // usual express route stuff
    res.send(responseObj)
  };
}
//...
router.use(controller.someClassMethod());
Jason Luboff
@JLuboff
Nov 27 2018 19:11
Yes..I follow that..
Brad
@bradtaniguchi
Nov 27 2018 19:12
Essentially every request going thru the endpoint uses the same responseObj since its a closure. Most of the them always override the same properties in the response, but in this case it only sometimes overrides it. Thus you can litterally get information from the previous response later -__-
Christopher McCormack
@cmccormack
Nov 27 2018 19:12
@diomed I don't want to fix errors I want you to want to fix errors
Jason Luboff
@JLuboff
Nov 27 2018 19:13
@bradtaniguchi Oh..that sounds bad
May Kittens Devour Your Soul
@diomed
Nov 27 2018 19:14
@cmccormack what are you, Mahatma Ghandi now? :yum:
Brad
@bradtaniguchi
Nov 27 2018 19:14
It was, and is. The same pattern affected more or less every single route for no reason other than the developer almost always declares variables at the highest possible place.
Christopher McCormack
@cmccormack
Nov 27 2018 19:15
May Kittens Devour Your Soul
@diomed
Nov 27 2018 19:17
yeah. why would I want to fix errors? lol
:smirk_cat:
hey guys, my name is Alex... my favorite animal is probably Jurassic Park...
Jason Luboff
@JLuboff
Nov 27 2018 19:28
Alright...think I finally finished making all my changes and updating packages...
Christopher McCormack
@cmccormack
Nov 27 2018 19:29
@JLuboff so freetime now?
Jason Luboff
@JLuboff
Nov 27 2018 19:30
Nope... need to write up an email to highlight all the changes made (to use during the meeting to go over and verify everything is as they want) and then start working on my other project
Christopher McCormack
@cmccormack
Nov 27 2018 19:30
cant you just submit your git diff to them?
Jason Luboff
@JLuboff
Nov 27 2018 19:32
These are non-technical people
Not to mention there is a ton of changes
Christopher McCormack
@cmccormack
Nov 27 2018 19:36
(was joke)
May Kittens Devour Your Soul
@diomed
Nov 27 2018 19:36
I am also non technical people :cat:
Jason Luboff
@JLuboff
Nov 27 2018 19:37
@cmccormack Hard to pick up sometimes hehe
Pagnito
@Pagnito
Nov 27 2018 20:13
hey, im trying to check for a cookie on the front end, but for some reason when i type console.log(document.cookie.length) i get 0
im guessing some session cookies cant b read cuz of security purposes
Simon Cordova
@gbsimon87
Nov 27 2018 20:27
whats up whats up guys
Christopher McCormack
@cmccormack
Nov 27 2018 20:28
@Pagnito it's possible, are you sure you have a cookie though?
@gbsimon87 yo what's up man?
Pagnito
@Pagnito
Nov 27 2018 20:29
@cmccormack yea i def do, i think its set as a http only cookie by cookie-sessin package
and im not sure i want to change it
i dont wanna take away security
Simon Cordova
@gbsimon87
Nov 27 2018 20:29
@cmccormack whats happening man, just came online to say whats up really
Christopher McCormack
@cmccormack
Nov 27 2018 20:30
@gbsimon87 not much man troubleshooting the fcc repo locally, can't get the stupid thing to work :)
Simon Cordova
@gbsimon87
Nov 27 2018 20:30
interesting - you're pretty involved with the project now eh
Christopher McCormack
@cmccormack
Nov 27 2018 20:32
not really just want to get it installed properly locally so I can check PRs and fix conflicts
They had over 10k PRs during hacktoberfest and thought I would try and help out
I've definitely learned a lot about git because of it
@gbsimon87 what have you been up to?
Brad
@bradtaniguchi
Nov 27 2018 20:37
Ah the ability to refactor 3 methods to use a new helper method, verify nothing broke instantly is killer... the power of tests muhahaha
Simon Cordova
@gbsimon87
Nov 27 2018 20:42
@cmccormack git took me a bit but I"m rather comfy with it now tbh - I'll share a great little file with you...
git-cheatsheet-EN-white.pdf
Karma Drukpa
@coderkarma
Nov 27 2018 20:42
share with use as well.
Simon Cordova
@gbsimon87
Nov 27 2018 20:42
Well with anyone that would like :)
Karma Drukpa
@coderkarma
Nov 27 2018 20:42
:smile:
Simon Cordova
@gbsimon87
Nov 27 2018 20:43
@cmccormack I've been good man, two days in London now, with the lady so thats alright and it warmer here than Toronto
Off to Chile and Uruguay in two weeks until the end of the year, then who knows where I'll end up
How about yourself?
Christopher McCormack
@cmccormack
Nov 27 2018 20:43
@gbsimon87 that stuff I was already fairly comfortable with but then there are all kinds of exceptions with the way some people made their PRs or how you need to fix bad merges, etc..
@gbsimon87 man that sounds nice. Not much here, had a great thanksgiving, had a lot of family drive 2 hours up to my house and in return I made them a couple smoked turkeys :)
Simon Cordova
@gbsimon87
Nov 27 2018 20:44
Where's @JLuboff at still running from the fire?
Christopher McCormack
@cmccormack
Nov 27 2018 20:44
@gbsimon87 probably at lunch
Simon Cordova
@gbsimon87
Nov 27 2018 20:44
Oh sweet, you cook a mean turkey?
Christopher McCormack
@cmccormack
Nov 27 2018 20:44
or meeting with senior leadership
Simon Cordova
@gbsimon87
Nov 27 2018 20:44
Oh true, you guys are like 8 hours behind now I forgot
It's almost 9pm here
Christopher McCormack
@cmccormack
Nov 27 2018 20:45
Yeah man brine it for a day and rub it, smoke it comes out perfect
Simon Cordova
@gbsimon87
Nov 27 2018 20:45
brine it for a day, my man
Christopher McCormack
@cmccormack
Nov 27 2018 20:45
yeah it's still 13:45 here
Simon Cordova
@gbsimon87
Nov 27 2018 20:45
Brine is when you soak it in salt water correct>
Christopher McCormack
@cmccormack
Nov 27 2018 20:45
oven turkey has nothing on smoked turkey
yeah salt water, I add molasses, sugar, old bay seasoning, thyme, black pepper, a few other things
only adds a tiny bit of flavor but it also helps keep it moist
with some magic
Simon Cordova
@gbsimon87
Nov 27 2018 20:47
Nice nice, I've yet to cook a turkey in my life - I should try it this coming year actually.
But nice that the fam came up to spend time with you man - I got to spend some time with pops in Toronto and seeing mom in Chile now soon so clocking in you know
Christopher McCormack
@cmccormack
Nov 27 2018 20:47
that's great man, family spread far and wide though must make it tough
Simon Cordova
@gbsimon87
Nov 27 2018 20:50
mom in Chile pops in Canada lady in UK - fml
sister in Cuba
It's a pain but what can one do
Christopher McCormack
@cmccormack
Nov 27 2018 20:52
or lots of facetime I guess
Simon Cordova
@gbsimon87
Nov 27 2018 20:53
I'll take the prior, but need a few more days for that haha
Christopher McCormack
@cmccormack
Nov 27 2018 20:54
haha
I'm only two hours from my family and I still rarely see them
Simon Cordova
@gbsimon87
Nov 27 2018 20:54
man it kills me some people that do the most mundane things have the money for it - the other day I was watching some youtube rapper or something that was such trash, not to hate, but made enough . money to buy a plane
doctors don't even make that
demand vs. supply is a funny concept
Christopher McCormack
@cmccormack
Nov 27 2018 20:55
yeah just need to get into whatever actually makes money I guess
like spa services for pets!
Simon Cordova
@gbsimon87
Nov 27 2018 20:56
omfg
I'm about to hit up a street corner in a bikini lol
Christopher McCormack
@cmccormack
Nov 27 2018 20:58
lol
Simon Cordova
@gbsimon87
Nov 27 2018 21:00
I'm looking at the styled components documentation, in your opinion is it worth getting the hang of it?
Christopher McCormack
@cmccormack
Nov 27 2018 21:02
I liked it quite a bit
alpox
@alpox
Nov 27 2018 21:03
+1 for styled components
Simon Cordova
@gbsimon87
Nov 27 2018 21:03
I like that the css is removed if your component is taken out
Christopher McCormack
@cmccormack
Nov 27 2018 21:04
It has some excellent features, but also some little things that bugged me
i've played with CSS-in-JS using Material-UI and liked that as well
Simon Cordova
@gbsimon87
Nov 27 2018 21:06
Man is there anything you haven't put your hands on?
Christopher McCormack
@cmccormack
Nov 27 2018 21:06
@gbsimon87 https://markojs.com/ is all the rage now
tons of things
if you want someone that's actually used just about everything talk to @Pagnito :D
Simon Cordova
@gbsimon87
Nov 27 2018 21:11
That seems pretty impressive, are you learning that?
Christopher McCormack
@cmccormack
Nov 27 2018 21:12
nah just learned about it yesterday
seems interesting though, I may play with it to test the performance
Simon Cordova
@gbsimon87
Nov 27 2018 21:17
On that site it's claiming some pretty high performance
I'm going to actually give it a shot - thanks buds!
It's similar syntax to React it seems
Christopher McCormack
@cmccormack
Nov 27 2018 21:20
kind of like a pug/js hybrid
or html/js using the concise syntax
Jason Luboff
@JLuboff
Nov 27 2018 21:30
@gbsimon87 Yo. Was at the gym homie. What up
I get it. I come back and everyones like "Yo...hide!"
Christopher McCormack
@cmccormack
Nov 27 2018 21:49
@JLuboff yeah
Jason Luboff
@JLuboff
Nov 27 2018 22:35
:angry:
Christopher McCormack
@cmccormack
Nov 27 2018 22:36
@JLuboff haha sorry man
and I'm about to leave for a while so I'll ttyl
Jason Luboff
@JLuboff
Nov 27 2018 22:36
Whhhaaattt
Christopher McCormack
@cmccormack
Nov 27 2018 22:41
just for the afternoon!
just meant I"ll be on later tonight hehe
Jason Luboff
@JLuboff
Nov 27 2018 22:47
Eh I wont be here
Christopher McCormack
@cmccormack
Nov 27 2018 22:50
deserter
:grin:
Brad
@bradtaniguchi
Nov 27 2018 22:54
I'm always here :P
Christopher McCormack
@cmccormack
Nov 27 2018 22:56
Ol' dependable @bradtaniguchi
Jason Luboff
@JLuboff
Nov 27 2018 23:00
@bradtaniguchi Thats a lie
Brad
@bradtaniguchi
Nov 27 2018 23:14
hehehe, I feel like I'm always here at least haha
Jason Luboff
@JLuboff
Nov 27 2018 23:16
fair enough
Well... time to put this project away until it gets reviewed next week
Although...I could clean up my Cron job in it..
several bits of it are repeated code essentially..
Christopher McCormack
@cmccormack
Nov 27 2018 23:44
@JLuboff set up a cron job to remind yourself every 8 hours to clean up your cron job
Jason Luboff
@JLuboff
Nov 27 2018 23:44
:P
I'm putting it on the back burner for today. Maybe take care of it tomorrow.
Back to working on my React project
Christopher McCormack
@cmccormack
Nov 27 2018 23:47
nice
time to add Redux now that you're becoming a React pro
Jason Luboff
@JLuboff
Nov 27 2018 23:47
Now to remember where I left off