« first day (3308 days earlier)      last day (1654 days later) » 
00:00 - 21:0021:00 - 00:00

9:01 PM
@JBis hmm those look nice but I think the cost of shipping them won't be worth it, thanks for offering though!
 
Np :)
 
9:21 PM
Can i get some help with babel? I setup babel with webstorm, but i don't understand how it works. Where does the generated files go? And how does it distinguish server side from client side code?
 
it depends wildly upon the configuration. using webpack?
 
idk i'm using node, not entirely sure if i need webpack or anything else
 
babel is basically a translator for hipster js syntax
 
I thought webpack was for including npm modules client side
 
webpack is a bundler. bundling npm modules in a script that can be run on a browser is one of its uses.
webpack generally uses babel in the bundling phase, to translate ecmascript code in javascript that can be understood by a wider audience of browsers
 
9:26 PM
Hi guys
 
@ILoveStackoverflow 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.
 
@FélixGagnon-Grenier I see. Ok.
i see a dist dir popped up
do i commit that dir to github?
 
generally you don't
 
ok
 
the dist file is most of the times generated for a specific environment, that is determined when webpack / babel runs.
 
9:29 PM
whats the proper dir structure for an express app with babel?
i'm confused tho
 
I want to take JS i write and make it compatible for IE11
thats it
how do i do that?
I write all my client js in the ./public/js dir of the express project
 
Going to the moon with a bicycle can be considered to be a simpler endeavour
 
Why?
Isn't this was Babel was designed to do
 
yeah I'm just dunking on ie11 for no reasons
 
9:31 PM
ok lol
I don't get the dist folder
 
I've never done it tho, but googling for "babel target ie11" might be a starting point
 
this is such a pain in the ass
 
you'll survive
 
alright i got it setup
still don't get the dist directory
how am i supposed to use with express
 
er, you generally don't
code that is written for node tends to be run with node
why do you want to use babel anyway, you getting syntax errors or something?
eg, why doesn't node server.js work?
 
9:40 PM
facepalm
I need babel for the client side js not the server side
I need to support IE 11 but i dont want to write for ie11
 
how to you run babel?
 
the idea is that babel will produce code to use
 
cli output should be telling you where it puts files
 
@FĂ©lixGagnon-Grenier Webstorm handles it for me.
It puts its files in dist folder i found it
but how am i supposed to use
 
then you can serve this dist folder as static files with express
 
9:43 PM
but it also has my server side files
 
express can be configured in such a way that routing will fallback to static files as well as support normal routes
 
no i mean babel is converting server side node files also
 
yeah, that depends on babel configuration
if there is a webpack file somewhere, it should have something called an entry point
 
no webpack
no need
 
it's probably in webstorm's configuration then
 
9:46 PM
no its babel configuration
 
I welcome ideas that are different than mine :

Strongly Agree
Disagree
Nether Agree or Disagree
Agree
Strongly Agree
how to answer question like this in an interview?
 
with honesty
 
I'd say "Agree"
(despite the above)
lol
 
But we have to think like how manager will take it
So honesty isnt the best policy while answering question like above
 
ok i give up with babel
 
9:52 PM
@ILoveStackoverflow lying to managers is provably the worts idea you can have
 
@ILoveStackoverflow Yes, but you should probably honestly answer Agree or strongly agree
 
... generally, lying to coworkers, is actually a bad idea
what I mean is, saying "yeah I have problems agreeing right away with different ideas, but take care to take time before dismissing them" is worlds better than saying "yeah I totally welcome different ideas" then be a freaking jerk to everyone on your team when you are hired
 
Its a balance, dont want to accept ideas nor reject them too quickly
 
 
2 hours later…
11:55 PM
Can anyone help me with my array of objects formatting?
 
00:00 - 21:0021:00 - 00:00

« first day (3308 days earlier)      last day (1654 days later) »