« first day (3146 days earlier)      last day (1796 days later) » 
00:00 - 18:0018:00 - 00:00

12:06 AM
@rlemon clap clap clap
 
 
3 hours later…
2:56 AM
Shameless plug. I'm splitting the architecture and completely redesigning the front end of SourceUndead. Client and Server if you're interested
 
 
1 hour later…
4:23 AM
@SterlingArcher a little interested
would you want me to work on sockets for it?
 
 
3 hours later…
7:32 AM
Just dropping this here cause LOL
 
 
2 hours later…
9:38 AM
Hmm I keep hearing that I need to use "datetime library" - but I am kind of stuck on why I would choose which
 
9:48 AM
there are two to pick from ...
rest is ... meh
so you have either moment.js or luxon.
 
I hear a lot about datefns?
 
10:08 AM
nah, not good.
it expects the native js date in its constructs. The key problem is that new Date(...) construct is still used incorrectly.
moment.js takes it away from you so that you won't mis-use that js Date construct
 
Yes, but momentjs is slow
I only "need" it for other libraries, but I need to be as lightweight as possible.
 
datefns is more a lodash thingie. Gives some "utility" functions
 
And I need the "external facing" part of it to be native dates anyways.
luxon seems to be really immature on the other hand, with "just" 8k stars and no real support for flow types.
So that would push me to momentjs - but then the prolem of bloat & immutability show up.
 
guys my domain is already being used by react frontend how to use the same domain on backend can i do something like www.mydomain.com/server ?
 
how is moment.js slow? It is subjective or you are using it incorrectly. perf wise it should be acceptable. And since it is used by a lot people, it would improve your code maintainability. But at the end of the line, it is still you (or the manager) that decides the library to pick.
 
10:12 AM
React frontend uses a domain?
 
i mean i am serving it on domain www.example.com using nginx? it runs well with https problem is i am using golang backend and i am not able to use apis without it being https enabled when i am trying to use letsencrpyt to generate ssl for me it is asking for domain name
 
Well then let nginx be a reverse proxy when incoming calls are to something like www.example.com/api
 
yeah thats what i was asking if that is doable its my first time setting it up thanks
 
That just works if nginx handles the tls - the client will only see nginx.
It's really easy, like 5-6 lines of config in nginx. - What I did was keep the /api/ part even after reverse proxying it was easier to develop that way (on dev I don't use nginx as reverse proxy, so I directly connect to the backend).
 
@paul23 as far as javascript libraries go, momentjs is not that bad
both in performance and "bloat"
 
10:20 AM
I mean it doesn't support tree shaking, so when I literary only need it at one or two places it's quite a heavy extra thing.
 
sure, if you ask it to parse a date and then convert it to a string again a thousand times, it'll be slower than if you left it as is
well you're probably not ever going to use half of the functionality of momentjs
but that'll probably always be the case
where as at least with a library like underscore.js, you could very well use a good many of the functions they provide
 
I'm mostly worried about reaching people on a limited bandwidth.
Mobile phones with "bad 3g connection".
 
meh
that's not so much of a problem nowadays
 
@paul23 the minified version is 17kB big ... there are images larger than that.
 
not to say there aren't some people with phones with bad connections
but that isn't an issue for a significant amount of smart phone users
you just don't want to have 1MB to download just to see a web page
 
10:28 AM
oh wait with that Neil :P
 
It's a reason we design our new version with "mobile internet first" from ground up.
 
marketing tried to "fix" a problem themselves by injecting a huge image by replacing the svg source to a static image for a temporary promo
but that image was not cropped and in huge dimension 4x4k
the front-end lead was so furious lol.
 
@KarelG lol
leave it to marketing to screw everything up
 
 
2 hours later…
12:15 PM
Yo any vue.js fellas in the house ?
is there a create-react-app type setup for vue.js ?
 
Argument of type 'Rule[]' is not assignable to parameter of type '(Rule[] | undefined)[]'
How can I avoid this error?
let filter = new FilterBuilder<Project>();
    let whereBuilder = new WhereBuilder<Project>();

    let rule = [];

    rule.push(new Rule());
    rule[0].right = "read";

    whereBuilder.inq("_rule", rule);
The error is in the last line
 
12:55 PM
By not letting it be undefined
 
1:15 PM
hmm what is the correct way to "update" a new major version using npm? - So that both package.json and package-lock.json will follow suit?
 
install over the last
 
@BenFortune thanks bud !
 
npm install whatever/@latest --save
 
I wouldn't do that rlemon
 
why not?
I want a new major, I install a new major, lock and package update with the major
where is the problem?
 
1:17 PM
if the dependencies did not got updated, then be prepared for being screwed
 
what?
 
What will happen with previuos version then?
 
main project
- dependency
--- foo -> updates to major 2
--- bar -> relies on foo major 1

bar has no update
 
so you're saying the maintainer of dependency fucked up
 
not all major updates are backward compatibles. I usually put a new project to test it out before I do some update.
yes
that happens tho
 
1:19 PM
which is a legit concern, but I don't see that being my problem here.
which is why we test
I wouldn't not update shit because of that
 
I replied on that
> install over the last
btw
 
isn't a problem unless the registry removed your previous version
 
just put a new project -> move over or link code base to new project -> deploy and test it out. If ok, apply update and let devs continue their work
 
at which point, you're probably fucked doing anything
@paul23 so the answer remains the same. Karel would like to add a step that you clone first, then do it.
I don't see a need because reverting is super easy
 
Well that's where git commits help :P
 
1:22 PM
you don't commit your node_modules
I hope
 
I bet he do
 
No but I do commit package.json
So it's easy to rebuild from a previous commit
 
and the package-lock I hope
 
Yeah and if it's up to my boss I start right now using multiple folders for each day so there exist a copy of each day of work.
I'm having a hard time explaining that this isn't the way to go with cvs..
 
wat
 
1:25 PM
we have monthly folders 😒
thankfully not on source I touch
 
also wat
 
old guys gonna old
they know of source control. they find this 'easier'
 
Everything we do just lives in project management/kanbans and git
 
we have very separated projects.
I have all my stuff, and anything that I work on with other people in git
they do their own things outside of that
 
I've been slowly moving into devops getting our legacy shit into git
writing all the CI and deployments
 
1:27 PM
I will be putting our new legacy project in git
 
@BenFortune good
 
it's a port of 25 year old software to linux from qnx
 
._.
 
ouf
I have the fun task right now of creating a bot to update our composer deps, because renovate sucks ass
 
To be honest, I have a hard time explaining it, other then 'well it just turns out using cvs is easier in the end'.
He sees git mainly as CI tool, not as a version control tool.
"For programmers, I just want to be able to get the code and use that/send it to someone lese".
 
1:37 PM
anyone here still using ST3?
 
I have a android problem, but not enough reputation to join android chats 😭
 
I wanna know if you got shorthand react fragments working
the syntax definition for JSX contained in babel doesn't have them
I'd prefer to use shorthand
I know the solution is use <React.Fragment>
guess not
I wonder
I could just setup a auto fill for that
 
2:03 PM
o/
 
2:23 PM
Anyone else watch Silicon Valley? I just started. Seems pretty funny!
 
it's ok
 
finished
 
first two seasons are good
then it went down hill and I stopped watching
 
their weissman score went down hill too
 
Starting the season 1 finale now. So I guess I got at least another season.
@Suisse Didn't they turn the weissman score into a real thing?
 
2:25 PM
yes
made with flash
oh no it only looks like flash
 
 
Hi, I am creating a react component. Admin user will see a text editor in that component and he can edit. The other users will see just a pane there to see whatever text admin added there. Is there any scope of composition while making Editor and Viewer components? Or they should be totally independent?
 
i'd expect them to be separate, or at the very least have the edit mode toggleable, to make it convenient for the admin user to "view" it as other users do.
 
@KevinB cool thanks
 
 
1 hour later…
3:41 PM
I like how Jordan still has cringy lyrics in his chat profile
 
What?
The bloody mary prayer?
 
I just assumed it was cringy lyrics. I have no idea
 
It's the prayer Archer says when he was hungover and had a pitcher of Bloody Marys :P
 
I like mine better
 
user499054
3:50 PM
Does anyone here use Azure AppInsights?
 
Anyone know how to find repo from GitHub pages website?
 
4:23 PM
No and no, sorry :(
 
I'm trying to get my post to my API using AJAX, but I'm not getting the post values in my PHP. The answers I've found tell me to set the content type, but I'm already doing that. Any tips on where to look? pastebin.com/EsZAhtHQ
 
@SpencerCole Welcome to the JavaScript chat! Please review the room rules. If you have a question, just post it, and if anyone's free and interested they'll help. If you want to report an abusive user or a problem in this room, visit our meta.
 
@SpencerCole you may have to specify a specific host
I went through that last night actually, since I decoupled my client from my server, and they run on different ports now
 
It's all local. I'll give that a shot, though.
 
which also means you need to make sure CORS allow all is enabled (or specifically ok for localhost)
Same, my UI is localhost:3000 and my api is localhost:8080
so the implicit /api would route to localhost:3000/api and not 8080
 
4:34 PM
I'm 99% sure that's not the case here, but I'm giving it a shot. I just bought this computer, installed Wamp, Notepad++, VSCode, Postman, and MTG Arena :p
 
Solid choice on MTG
Can you reach the API from postman?
 
No proxy for local was set?
 
Nope.
 
guys
 
4:36 PM
I'm actually building an app for MTG tournaments that will be run solely on a laptop on it's own network not connected to the internet ;)
 
Did a full path work?
 
i have a js file used for call events
 
I may or may not be an enfranchised player. No, the full path didn't work.
 
Any error in the console from the ajax request?
Check the headers to make sure the URL is being formed correctly
 
400 bad request.
 
4:39 PM
but when i try to use that value in php files where i have posted, ig gets erros
any ideia?
 
400 is a server error, so it's finding the API, but there's an error on your back end
 
Specifically, in my PHP it's unable to find the posted values.
 
a) show the code you're working with. we're not mind readers.
b) show the error you get, we're not mind readers.
c) we're not mind readers.
 
you might need to serialize the data sent over, if I remember php hell correctly
make sure error reporting is turned on so you can see the errors more concisely
 
Yeah, it is. I'm gonna go investigate that. I'll be back if I figure it out or need more help lol
Thanks
 
4:41 PM
10-4, good luck buddy
 
in js i'm using var local = document.getElementById("ilha").value; to get the value, then i make a post by ajax to php file just dont open the file error 500
the gol is that i neet to use the $_session["username"] but my file just dont accept that
same error
 
iirc you want $_POST?
idk never used $_SESSON
 
where can i post exemple code to send link for you?
 
pastebin works great
 
@SterlingArcher impossible to know because the question has been asked so poorly.
😉
 
4:46 PM
There's also a link in the room description on how to format code here
 
ok, here is the js code
@rlemon well i'm trying to make sense
 
@NoobDEV-GBL this does seem more PHP related than it does JS though
Could you please try the PHP room? Not many of us use/even like PHP and you'll get better help there
 
well this is in a JS file soooo
ok np
thanks for the hellp any way
 
I may be confusing your issue
Where is the error being thrown? A 500 http response is coming from the server?
 
yes is from the server
 
4:53 PM
Could someone help me identify the name of the question mark in JS syntax?

EX: hexCode += (hexString.length % 2 ? "0" + hexString : hexString);
 
@SterlingArcher i'm trying to be explicite
 
@faceless that's called a ternary expression
it's a shorthand if else statement
@NoobDEV-GBL so the server is getting the call, but you can't see the sent params?
 
ahhhh I thank you! I was trying to remember the proper way to call it. I kept thinking about turnips. Close enough I guess
 
@NoobDEV-GBL what Sterling is trying to say is that unless there is a syntax error or something obviously wrong with the request, we can't help you - if the server is returning a 500 error, you have to find out why the server is mad. the client won't tell you that.
 
@rlemon obobviously I know that the error 500 is generic and I know this, the problem is that even while enabling the log errors, nothing appears wrong,
if the client does not give me the error logs, how am I going to figure out where the crap is? I just got the error 500
 
5:00 PM
because the client isn't the place the error is occuring
> if the server is returning a 500 error, you have to find out why the server is mad. the client won't tell you that.
 
Good, so please could you tell me how to do this ????
 
no
 
That's a class in and of itself. You'll have to turn on error reporting, and narrow down where exactly the problem is at.
 
ask the php room, and for the love of pete share the code and don't make them guess around it
 
mfg
 
5:05 PM
Just had to explain to a senior engineer coworker why you would want to use an array vs an object in JSON, and why [ { foo: { ... }, bar: { ... } } ] is not an array of objects. Wrapping an object in an array does not magically convert that object into an ordered collection. Get me out of this place, for the love of god
 
@ndugger technically it is an array of object[s]
just not how he expected it to be
 
Obviously the discussion was around how it's not what he meant it to be
This dude, every time we get into a discussion, because he heard something wrong, or he just got confused, he always brings up that he's been programming longer than I, and that people in the past have told me that his code is good.
Bruh, I never insinuated otherwise, but you feel the need to defend yourself because I'm trying to walk you through a fallacy in your thinking
pls
people in the past have told him**
they haven't told me that, lol
 
How long has he been programming?
 
Well, the number he just dropped on me was 15 years
so
 
Well. I've been at it longer
Cite me next time
That'll show him
 
5:12 PM
> There's this one canadian I know who's been programming longer than you
Honestly, the response I really wanted to give was, "Oh, so you've been doing it wrong for 15 years"?
Feeling extra sassy because of him
 
> you do realize JavaScript has changed in the last 15 years right?
 
He's not writing javascript, he's almost purely back-end these days. I'm primarily front end, but I can do full stack on pretty much anything. So he's off on his own island, constantly mishearing people, not paying attention, and his conversation skills are that of a rhino
He just blasts right through conversations and refuses to let people interject, even if he's off on some thought tangent that is completely wrong, he still has to spend 5 minutes speed-talking it out so nobody can interrupt him
 
ugh
this industry, back at it again with the poor social skills
 
rlemon were you the one that told me about keyframe animations?
 
depends on what the followup is
 
5:21 PM
if so i dont really know how to do the thing where the crit fades upwards.
 
My social skills are pretty poor, but I at least understand how to have a human conversation, lol
 
also how do i make a keyframe animation only run once?
 
I've been reminding myself to be nice lately, though, because sometimes my patience is just thin from people not paying attention, or from senior engineers writing code like first-year students
Maybe I just need to get out of the industry if I'm always just going to be frustrated with people
 
fill mode.... hm.
 
5:30 PM
fill mode will tell it not to restart back at the beginning once the animation is done
if you're fading it out as well. doesn't matter
 
Is there a way to see the recent comments I have left on SO questions/answers?
 
yes
 
@ndugger my social skills leave something to be desired as well but I'd like to think I'm pretty tolerable
 
ah in activity
 
5:31 PM
im just confused on how to make a crit like move from bottom to top. and i want to make it so that the animations can overlap too.
 
thanks, couldn't find it before
 
5 mins ago, by rlemon
@ThomasTallman what have you got?
why is everyone so apprehensive to share their god damned code.
can't help you if we don't know what you've got
(you're not the first today)
 
what, are you trying to steal my program or something
 
show me what you got
 
damned freeloaders always trying to get me to give up my code
 
5:32 PM
var a = 'abcdefghijklmnopqrstuvwxyz1234567890.',
    i = 18, j = 0,
    b = [a[i++],a[++i],a[++j],a[--i-1],a[i],a[--i-1],a[++j*(j+j)],a[--i-(j+j)],a[j*j+j]].join(''),
    f = function(x,y) { switch(x){case(1):o=y;break;case(0):l=y;break;} return y; }, o,l,
    c = [a[b](i+j)[0], a[b](i++,i), f(1,a[b](--i-(++j),i-(--j))), f(0,a[b](--i-((j++)+j), (i++)-(--j+j))) ].join(''),
    e = o + l,
    d = c+Array(++j+j).join(e);
console.log(d);
 
!!> var a = 'abcdefghijklmnopqrstuvwxyz1234567890.',
i = 18, j = 0,
b = [a[i++],a[++i],a[++j],a[--i-1],a[i],a[--i-1],a[++j*(j+j)],a[--i-(j+j)],a[j*j+j]].join(''),
f = function(x,y) { switch(x){case(1):o=y;break;case(0):l=y;break;} return y; }, o,l,
c = [a[b](i+j)[0], a[b](i++,i), f(1,a[b](--i-(++j),i-(--j))), f(0,a[b](--i-((j++)+j), (i++)-(--j+j))) ].join(''),
e = o + l,
d = c+Array(++j+j).join(e);
console.log(d);
 
@JBis "SyntaxError: missing variable name"
 
thank goodness it didn't work
that's cheating
 
I hand obfuscated that
> created 7 years ago
damn
time flies
 
how do i make animations overlap :/
 
5:35 PM
animations control elements
elements have no issues overlapping when positioned properly
 
just make your entire site out of gifs
never have to worry about responsive design again
 
animation control elements
what are those
 
HTML elements
Are you familiar with HTML elements
 
-.- which html elemts
elements*
 
the HTML ones
 
5:37 PM
i am
 
@ndugger You got to know where he's coming from though right? I think your story indicates you need to work on your communication with him
 
so you didn't really learn too much about animations then
 
all html elements? there aren't specific ones?
 
I think you should do a little reading on the topic @ThomasTallman
 
@ndugger I can happily recommend some good books I can recommend on the matter if you'd like
Workplace communication is shit hard
 
5:39 PM
@BenjaminGruenbaum I actually don't think that's the case. The conversation we had was very level headed this morning. I explained the situation, corrected the things he misheard/misunderstood, then he said "I don't have time to talk about this more", so I replied with
> Ok, just wanted to make sure we were on the same page, since we don’t seem to be

We’ll talk later
 
You don't have to have workplace communication if you don't have a workplace to communicate in
 
But then he got mad and told me he's being programming for 15 years
 
I don't deny that I can work on my own communication problems, but this isn't that
 
@ndugger that's... just a stronger indication that you have a communication prooblem?
 
5:40 PM
@JBis excellent
 
i researched and nothing comes up. i dont even really know how to explain what im trying to do. one of those clicker game crit messages that appear and disappear. first of all i can't even get the message to start with 0 opacity because then it doesn't even do anything.
 
Like, literally it's what he said
 
?
 
@ndugger the fact the way you are communicating is problematic isn't a problem with you, it's a problem with how you interact with one particular dude
 
@ThomasTallman yes, I'm fully aware of what you want to do. but you've not researched keyframe animations or followed any of the links relevant on the MDN page. because it explains a bunch of stuff that you are now telling us you have no clue about
so forgive me if I think you're lying
 
5:41 PM
Like, it's possible to not have any communication issues except with one person - that's a totally reasonable place. It's still a problem though and it's still something you can work on.
 
this is so stupidly confusing.
 
Dude, I'd email you the conversation so you could see for yourself, but that wouldn't be appropriate. I can promise you, my communication was not the problem. This dude is constantly mixing things up, mishearing things, not paying attention, etc
Hell, he just did it again in our standup session, and our boss had to correct him
 
the links dont explain how to get the animations to overlap.
 
@ThomasTallman People who haven't been great at understanding MDN have found success with greensock.com - if you don't feel like reading a bunch give it a try
 
He was like, "We should put the logic in X, and here's why we shouldn't put it in X" -- his own communication is always the problem
 
5:43 PM
@BenjaminGruenbaum at this point throwing GSAP at him is only going to make things worse.
 
@ThomasTallman The documentation on animations assumes certain preexisting understanding of HTML on your part
 
he's running before he even has feet
 
If you don't have that understanding then you need to take ten steps back
 
@ndugger the thing is - does it really matter if it's his fault or your fault or do you just want to get shit done and solve interesting stuff? There are tools to deal with and manage these sort of people
 
My responses to his chats this morning were completely reasonable, and very friendly. I was explaining facts to him, and because he misheard me, and I corrected him gently, he got offended. That's not on me.
 
5:43 PM
@rlemon why? it's a simpler thing to learn
 
the MDN literally just tells me how to do styles before and after the animation
 
@BenjaminGruenbaum he has no pre-existing knowledge. he's asking what elements are
 
not how to overlap
i know what elements are
:/
 
@ThomasTallman that's because overlapping has nothing to do with the animation, and everything to do with the elements
 
@ThomasTallman I'm not trying to take the piss here. it's just unproductive to be chasing your own tail without first learning the underlying concepts that are prerequisites of doing most of this stuff.
 
5:45 PM
I think he meant "which elements"
based on what he said after that
 
yes which elements.
you said animation control elements like there was a specific type
 
which ever ones you tell the animation to run on
 
I don't mean to offend but is English your first language?
 
had you read the MDN articles. it explains that
 
i should just give up to be honest
what im trying to do is way to hard.
 
5:50 PM
I don't think you should give up, I just think you should take a couple steps back and revisit this soon
 
Reading an article on MDN is too hard?
You might want to change careers
 
@ndugger Read his profile
 
oh
nevermind
sorry lol
 
im not as smart as you people. im literally a teenager eager to learn code and i wanted to do something cool but i can't find anything on the internet on it.
 
5:51 PM
@ThomasTallman open up developer.mozilla.org/en-US/docs/Web/CSS/CSS_Animations/… and jsfiddle.net and don't come back till you figure out how to make some text JUST FADE from opaque to transparent.
 
It's not about intelligence, it's about experience. Everyone starts somewhere.
 
start small
 
but i honestly should just leave the crit thing out of it because i can't really get it to work
 
baby steps
when I was your age I was doing the same shit, but there wasn't chat rooms or MDN or stack overflow. right now is the best time to learn programming. resources are a dime a dozen today
so pull up your boot straps, and start SMALL
 
@ThomasTallman I'm a teenager too, doesn't mean I can't read an MDN article
 
5:54 PM
hell, you can skip to the example section too if you just want to see working code
I usually skim and them jump to examples when it comes to things like this
 
we aren't even talking about the damn mdn article chill
 
Seeing the actual code is the most useful way to learn the code
bruh
 
@ThomasTallman we are
 
@ThomasTallman hey, it's "JavaScript" and not "java script" (your profile). Good luck programming, it gets frustrating but you can build good shit.
 
5:54 PM
you can't tell people to chill who are trying to help you
 
i wish there was a place with all of the answers i needed where i can study and learn the code XD
 
@rlemon I have found it more interesting to start with a big project and then divide into smaller conquerable projects.
 
it's called the internet
 
internet doesnt like me then
 
@JBis He doesn't have the basics down
 
5:55 PM
I can understand why, if you tell people trying to help you to chill
 
I get that you're frustrated. we've all been there. we all had to start from scratch at some point. so we're telling you after years of being in the industry how we think you should be going about this to make your life easier and to make things less frustrating
but honestly. it feels like you don't want that advice.
because you're not listening to it
 
You'll get a lot farther if you stay humble my man. Even if people sound condescending (sometimes they are condescending) you gotta keep listening. They condescend because they understand and you don't.
 
learning to program is just not knowing how to do something every day until sometimes you run into a problem you figured out sometime int he past
10 years of that and sometimes you know how to do things more than you don't
 
and for what it is worth. we're all still learning. it never stops
so get used to being good at learning
that's like 90% of keeping up with code
 
@ThomasTallman Have you ever heard:
> Give a Man a Fish, and You Feed Him for a Day. Teach a Man To Fish, and You Feed Him for a Lifetime
 
5:58 PM
thanks for the advice.
 
@forresthopkinsa I think in these cases the crassness comes from repetition. not disrespect or because of ignorance.
 
If we spoon feed the answer to you, it will solve your immediate problem but you'll never learn host to get that answer yourself.
 
@rlemon Yeah that's definitely a factor as well, esp. with things like "don't ask to ask"
aand rtfm
 
00:00 - 18:0018:00 - 00:00

« first day (3146 days earlier)      last day (1796 days later) »