« first day (2257 days earlier)      last day (2691 days later) » 

8:00 PM
@BenjaminGruenbaum When I said "you", I didn't mean you
 
very well.
 
I meant a normal human being.
you can learn C++ in under a day :P
 
When I said "Sure, also C++" I meant "obviously not" :P
Chunking isn't easy
 
yea.. while I love webpack, it took me more than a day to really be at home in it
 
What should I replace "rock at" in order not to look like I have written console.log once ;D
 
8:01 PM
I have no idea how I write in webpack but I just do
it just works!
 
@Tomas "I have experience with" or "I know"
Keep it professional
 
I ninja at
 
@misha130 Go away
 
right
 
Also, drop the smilies/emoticons
 
8:01 PM
I'm dank at
 
;D
 
@Tomas I'd probably do something more like.
 
Good jokes guys
 
i just had the worst spasm
 
8:03 PM
so dirty.
 
like someone jumpscared me
 
heart palpitation?
 
I probably have some terrible disease
 
Pedantism. It's terminal.
 
@Luggage nearly jumped off my fucking chair
 
8:04 PM
@NoName what's with the flag?
@Tomas wait a minute, writing.
 
user4710450
@BenjaminGruenbaum nothing serious. I just admire this country.
 
Hi Guys, I am writing a NodeJS code , wherein we need to release a nightly build asap, and the Dev is on a Medical leave. I am trying to figure out when in NodeJs is a Callback extremely necessary
and when not
Can you please help me ?
 
@NoName And our country admires you right back.
 
> Somewhere on Earth
damn you
 
@bhuvin A callback is generally used for asynchronous operations.
 
user4710450
8:06 PM
@MadaraUchiha kind of you and your holy country :)
 
Operations that happen behind the scenes
Although, we usually don't use callbacks anymore, we use Promises instead.
 
which use callbacks
 
@NoName he's in israel. So is Benjamin
 
2 mins ago, by Luggage
Pedantism. It's terminal.
confirmed
 
(That's over simplifying things quite a bit, but there's)
 
8:06 PM
@BenjaminGruenbaum cool, I'm not going anywhere yet :)
 
right but in case i am not writing a calback does it work in a Sync manner ?
 
user4710450
@Luggage I know. I saw their profiles.
 
@bhuvin not necessarily
 
@Tomas FYI, Benjamin helped me nail my first job over 2 years ago, and now I'm working for him :P
He knows his stuff
flattering the boss
 
user4710450
btw,
 
8:08 PM
I know that I'd need to improve me GH profle before Ben would hire me :(
 
gist: 6001c02a12b09a2ce1025b7517adb3b0, 2016-12-20 20:08:01Z
Hey [SpecificPersonYouLookedUp]!
 
I'm [John], a front-end engineer and I'm not afraid of a debugger, refactoring or even people.
 
I love the culture you are creating at [Company] and would be glad to become a part of it. I'm happy to see that you care about the happiness of your team, aren't afraid to innovate, and contribute back to the community.

I'm handy as a FED([link to something demonstating this]) and I have experience writing backend too. I'm constantly looking for ways to get better.

I would love to be given an opportunity to interview for [Position X] at [Company]. I'm contacting you directly because [Good Reason why it's the right person to contact, what they did at [Company] and why it impressed you].
 
Cheers!
[John Doe]

--- Attach CV elaborating as much as you'd like on why you're a solid developer, as long as everything fits in a single page ---

Also, don't leave your email after your name, they already know who you are they got the email from you!
 
user4710450
there is an example which may help you understand callbacks.
 
go do some PRs
 
Every time I have a difficult problem I think of Benjamin and figure he'd be able to solve it
 
user4710450
var fs = require("fs");
var data = fs.readFileSync('input.txt');
console.log(data.toString());
console.log("Program Ended");
 
8:08 PM
@Luggage I'd hire you.
 
aww
you can't afford me
 
Right now my problem is 70% of CPU time is dedicated to the GC
 
user4710450
the code I posted results in :
 
user4710450
Tutorials Point is giving self learning content
to teach the world in simple and easy way!!!!!
Program Ended
 
@NoName Ok, not sure why make it your avatar at a site about coding - but sure.
 
8:09 PM
looks like the battle is between rollMaps ;) and webpack
 
No battle. All webpack.
 
webpaaaaacckk
 
@Luggage you'd come anyway :D
 
even if rollup is 'better', everyone uses webpack and that counts for something.
I would.
 
@NoName stop that.
@Luggage I'd come with with you too :) I'm really committed at TipRanks but I'd love to work with more professionals.
 
user4710450
8:10 PM
Sorry if that annoyed you guys.
 
@BenjaminGruenbaum ??
 
@MadaraUchiha is officially our PHP and jQuery expert. I'm printing him business cards saying that.
9
@MadaraUchiha he posted a bunch of code examples.
 
@BenjaminGruenbaum So?
 
Yea, I actually want to work someplace with people smarter than me. I hope that doesn't sound conceited, but I didn't have that at my last place.
 
@MadaraUchiha and no one was interacting with them and they were kind of annoying.
@NoName what are you working on?
 
8:11 PM
I learned because I always used new things, but I didn't have anyone to catch up to.
 
@BenjaminGruenbaum Someone asked about the difference between callbacks and no callbacks
He demonstrated
 
@Luggage i can relate to that, it's hard not having someone to work things through with
 
Some of my employees were decent, but they followed me. I had to solve the hard problems.
 
Rollup seems to be able to reduce the file size
 
@Luggage I believe in a team where everyone is playing catch up with each other. A team shouldn't have one person driving innovation - everyone should be passionate about doing things right.
2
 
8:12 PM
right.
 
@Luggage Well, I feel humbled every time I hear Benji speak, so I'm sure you'll like it where we are :D
 
Plus - free booze :D
 
That's indeed a thing
 
@BenjaminGruenbaum damn all my Jewish friends don't drink
and they kinda gave the impression the whole region is like that
 
dont drink booze, do 200 situps a day
 
8:13 PM
@bitten That makes no sense.
 
user4710450
@BenjaminGruenbaum, have you been to CERN?
 
(just a bit surprised)
 
Jewish people drink at least once a week in Friday's evening Kiddush
(At least a tiny bit of wine, that is)
 
@corvid Then knock yourself out and try it out
 
@bitten it's a sacred thing in Judaism actually, they have to drink a lot at least once a year and a bit every weekend.
 
8:14 PM
but is that different than having beer with friends?
 
@BenjaminGruenbaum drink a lot once a year?
 
i was young at the time.. maybe we mis-understood each other
 
@NoName No, a bunch of my classmates went but it didn't work out in my schedule. We have (actually, had) a room regular who worked there though.
 
rosh ha shana or something probably
 
@MadaraUchiha Seder, you have to drink 4 cups of wine.
 
8:15 PM
maybe they were comparing it to.. heavy drinking? and clubbing? and so on
 
@BenjaminGruenbaum Fair enough
 
purim most likely
 
@misha130 Passover
4 glasses of wine during the Seder.
 
user4710450
@BenjaminGruenbaum I actually saw a link in your profile and I wondered....
 
ah ok
 
8:15 PM
I seriously dont know much about Node JS
but What the program does basically is : It is a Subscriber to a Queue, and
Step 1. Spawns clusters based on CpuCount.
Step 2. Checks tableDependency1 , if not existing for uniqueIdentifier; it inserts the same in the MongoDb.
Step 3. in the call back of Step 2: Check TableDependency2, if not existing for uniqueIdentifier, it inserts the same in the MongoDb .

Now, the code in Step3 is the last function call of all the call flow, in the given Code.
& what i need to know is do i need to have a callback in the function of Step 3?
 
@bitten How religious were they?
There's a thing about touching people from the opposite gender
 
Purim too, I guess.עד דלא ידע בין ארור המן לברוך מרדכי - drink so much you won't be able to tell apart Aman and Mordechai (two very different people in the bible).
 
(Unless she's family or married to you, you're basically aren't allowed)
 
@MadaraUchiha for or against?
ohh, against :(
 
@Luggage That, my friend, depends on who you ask :P
 
8:16 PM
@MadaraUchiha probably about 99.99% full of the holy spirit kind of people
 
@bitten Then that's the reason they aren't going clubbing
 
@BenjaminGruenbaum thanks for a gist. That really helps. Isn't it a bad practice to contact people personally for job interviews ? Also I think "I would love to be given an opportunity to interview for" is too formal. Isn't it ?
 
It's not that interacting with people from the opposite gender isn't allowed, but physical touch is forbidden until marriage.
 
yeah, i think so too. they were very strict
 
I have enough trouble with that without some religious rules.
 
8:18 PM
@Tomas Personally, my advice to you would be to work on your GitHub and Stack Overflow profile
And let companies find you.
 
@Tomas you don't want to go through HR, you want to go through the person you'll eventually actually be working for. HR have arbitrary rules at companies. Of course - it's best you contribute to their framework or library or other "thing" that you described them as "giving back to the community for".
^ * 2
 
Many of the regulars in this room get contacted by recruiters fairly regularly, having been found in one internet profile or another.
 
ew, recruiters.
 
@Luggage You know you're doing it right when they start harassing you
 
a.k.a. pimps
 
8:20 PM
That's when you're holding the power
 
Why use const?
 
@BenjaminGruenbaum Command pedophiles learned
 
i want to visit israel next year
 
That's when you get to favorably negotiate pay and other such things
 
8:20 PM
!!pedophiles
 
39 secs ago, by Madara Uchiha
@Luggage You know you're doing it right when they start harassing you
 
not if you go through a recruiter. they make money to get you a job you could have gotten anyway.
 
@MadaraUchiha it's a double edged sword because they mainly have awful jobs
 
@SuperUberDuper if you come - ping me - we'll beer.
@COMisHARD what do you mean?
 
i mean why ues it
use it
 
8:21 PM
To declare a constant variable?
 
@bitten Ah, but just because they harass you doesn't mean you need to answer.
 
@COMisHARD instead of var or in general?
 
yes
 
But they they do harass you, you know you have value to companies
 
instead of var
 
8:21 PM
@BenjaminGruenbaum if I have time)
 
I want to work remotely so my strategy is researching ~500 companies which work remotely. I would pick some and write personal cover letters and hunt a bit on hacker news. What do you think ? :)
 
would be fun
 
Then you know you can come to pretty much any company out there, and offer yourself, and they'll look at you favorably.
 
@MadaraUchiha heh true, i had a hard time getting a recruiter off my back last year.. put me off for a long time :p
 
Working remotely is death
 
8:22 PM
@COMisHARD just to avoid re-assignment mistakes.
 
Okay. So there is no reason I need to use Const unless I suck at keeping track of what my code might do
 
I used recruiters to hire and wasn't impressed. They just kept giving us any warm body they could find until we stopped using them.
 
To put it another way, when companies start seeking you, you can look at working for someone as selling your time to them, instead of them giving you a job.
 
@Tomas if you haven't tried working remotely before - try freelancing. The plan generally sounds solid. StackOverflow careers also has filters for remote work - try that.
@Tomas (also SO does remote)
 
From that perspective, you're holding the power
 
8:22 PM
I use recruiters all the time
 
@COMisHARD you should always assume you are terrible at everything
 
I already do that. I contract so that I am in control.
 
the best devs get other devs to work for them right?
 
@Luggage I interviewed 60 people sent by a recruiter a year ago and none of them knew basic JS.
 
and you make the profit
 
8:23 PM
@COMisHARD Why so ?
 
@SuperUberDuper no, I'm currently a team lead and I'm not enjoying the management part. I'm mostly enjoying the "technical interactions" part.
@SuperUberDuper you mean manager, not dev.
 
@SuperUberDuper No, those are the managers.
 
@BenjaminGruenbaum you make our country sound depressing
we have some good devs somewhere
 
I mean set up your company and outsource or whatever
 
That's where I was at Xerox. Programmer turned 'manager'.
 
8:24 PM
@BenjaminGruenbaum it's bullshit when that's the only way for progression aye
 
im heading out, gonna test the goPro on bike
 
We've added "tech lead" roles.
Similar money as "team lead" but without the people bullshit
 
@misha130 you're not really from Israel or we would have had beer by now :D
 
:^)
 
Or did we :D ?
 
8:26 PM
come to Canada, I'll have a beer with you
I might even pay for it
 
I dunno lol whats with all the beers
 
:D
🍺
 
@misha130 Yeah, how come we haven't had a beer yet?
 
That's all there is to do in Canada.
 
I have no valid excuse
 
8:28 PM
@misha130 a bunch of us room regulars (also cc @Mosho) are going to come to a JavaScript Israel meetup on January - you should come.
 
link me up, I'll drink a pint
 
@misha130 No link yet, it's not yet published
But we know the host :P
 
who
 
what's the state of weed laws over there?
 
@Luggage Illegal, but teetering
 
8:30 PM
Revolutionary
 
teetering = possibly legal in the future?
 
too vague to say
 
@Luggage They're talking about it.
 
@misha130 it's on January 24th in Google Tel Aviv (32nd floor, in the Google office in the Electra building). It starts at 18:30, there will be ~100 people and it'll be about stuff in JS you don't yet know.
@Luggage illegal but unenforced and many people openly admit they smoke.
 
8:33 PM
a huge ass meeting
 
@misha130 Yeah, its pretty big.
 
Just curious. It's not legal in my state either.
 
And! There's usually a beer afterwards with the speakers
 
user2620028
do you have to attend the meeting? can you just attend the beer afterwards?
 
@HatterisMad Like I said, me and Benji both know the host, so we can probably get away with crashing the afterbeer if we wanted to
But given that a room regular is giving a talk there, we'll be attending that as well.
 
8:35 PM
why avoid a JS meetup?
 
user2620028
i was joking guys calm down
 
@Luggage because weirdos go?
 
true
 
those weird awkward JS people
:p
who's speaking there?
 
@Loktar What a bunch of losers.
 
8:36 PM
I know right?!
 
Yeah I'd probably go to a JS meetup.
 
is Benji speaking, or is it you or Mosho?
 
@Loktar the weirdest most awkward room reg you know.
 
@Zirak?
 
Maybe :P
 
8:37 PM
haha
 
user2620028
jandy?
 
if so that's awesome
 
was just joking I <3 @Zirak
 
8:37 PM
I've spoken there a few times, it's a nice community meetup.
 
He's the good kind of weird
 
yeah I'd 100% go if I were remotely close
@KendallFrey yeah exactly
 
I could listen to him sigh all day
 
If you weren't afraid you'd ping him :P
 
user2620028
me?
 
8:38 PM
No
 
#rekt
 
user2620028
oh lmao i thought loktar did ping zirak
 
@BenjaminGruenbaum lol there we go fixed :p
 
I'm starting to think that handling routes is maybe harder than cache invalidation...
 
@Loktar what's up btw?
 
8:38 PM
I wonder if there's sql meetups, I bet those guys go hard.
 
I'm wondering how many hours do you guys work in a week ?
 
@david only if you're using React Router.
 
not much, on vacation until the beginning of the year, enjoying downtime
how have you been?
 
@BenjaminGruenbaum how did you know? :(
 
@Tomas about 9 hours a day in average.
 
8:39 PM
why not 8 >?
 
@david because React Router is horrible software that should not be used.
 
ReactRouter gives react a bad name
 
cc @rlemon
 
😞
 
@Tomas because I have an hour long break in the middle for lunch and a lot of things to do since I work in a startup.
 
8:39 PM
@BenjaminGruenbaum got some good alternatives? And what are your reasons for saying that? I'm not well versed in routing
 
What's wrong with react router ?
 
ReactRouter destroyed my home, burned our fields, and killed our children.
 
i'm in the office 6-8 hours a day, but spend time at home from time to time doing after hours server maintenance
 
@rlemon you are fine. your routing is fairly well contained. Just keep ti that way
 
8:40 PM
1 min ago, by david
I'm starting to think that handling routes is maybe harder than cache invalidation...
for reasons.
 
@Loktar Can confirm
 
@thomas I also like to believe I spend 8 > but realistically I spend 2 hours programming and 6 hours talking shit to people online.
 
@MadaraUchiha damn sounds like an IT version of Gladiator
@Zirak nice, will it be recorded?? what's the talk on?
 
@Tomas it doesn't do the right thing, routing is a form of state and react router manages state through react components and incidentally, it's hilarious really.
 
@lix ;D
 
8:40 PM
would love to hear it after the fact even if you just wanted to share it privately with RO's
 
@david Express
 
The express router works, sure.
 
I'd like to know the actual reasons though, because me having difficulty with something doesn't necessarily mean it's bad, it could just mean that I'm misunderstanding something
 
well, react-router 4 manages it through components. react-router 3 really jsut uses jsx to make a plain object for configuration
 
A router should be like 30-40 LoC
50 secs ago, by Benjamin Gruenbaum
@Tomas it doesn't do the right thing, routing is a form of state and react router manages state through react components and incidentally, it's hilarious really.
 
8:41 PM
@Loktar It'll probably be recorded but not in English, the topic is about some of the weird stuff that ES2015+ has to share with us. I'll definitely share the slides and if there's popular demand, maybe I'll record a video of it in English
 
@Luggage both are way way too complicated for their own good.
 
not knowing what I'm doing, I prefer rr3 to 4
 
@Zirak damn sounds interesting, would love to see the slides after. Good luck man!
 
4 seems restrictive
 
Why does the React router which is used for navigation state need to be more complicated than every single server-side router in the world while solving the same problem -_-?
 
8:42 PM
@Loktar Thanks!
 
we need to play OW again sometime
 
client routing is different than server. well, sorta. You handle cancelling a navigation, etc.
 
@Loktar OH OH OH I got my gtx 1070
 
nice!
 
@Luggage servers should do this too, most backend frameworks provide an option to abort requests. Like the CancelToken you get in C#.
 
8:43 PM
I didn't realize you were getting one, what did you have before?
 
It's the biggest man-made object in the history of man and the universe
No jokes, even things that are larger than it are smaller
 
hah yeah they are pretty damn large, and it's like 80% cooler 20% PCB!
 
well, with client routing, you actually have to cancel after the fact and revert the url. the 'history' package that wraps/polyfills the html5 history api does this for me, though
 
@Loktar GTX 750. It's good, but black friday (and recent salary boosts) gave me an opportunity to buy a top-tier GPU
 
yeah that's a great card, the 1070
should last you quite a while
 
8:44 PM
!!learn ziraksprivatething "<> chat.stackoverflow.com/transcript/message/…;
 
@BenjaminGruenbaum Command ziraksprivatething learned
 
at LEAST 3 years for ultra settings
 
!!ziraksprivatething
 
1 min ago, by Zirak
It's the biggest man-made object in the history of man and the universe
 
!!pedophiles
 
8:44 PM
@BenjaminGruenbaum That didn't make much sense. Maybe you meant: pedophiles
 
LOL
 
24 mins ago, by Madara Uchiha
@Luggage You know you're doing it right when they start harassing you
 
@BenjaminGruenbaum Finally the truth
 
@Zirak 1070 buddies!
the 1080 was too expensive, and the 1060 was too shit for the price
 
I got the 1080
 
8:45 PM
big spenda
 
@Loktar It should also be good enough for VR, which I'm excited about and will probably look into next year
 
just bought my son an rx480 last night
 
@Loktar Noice
 
to replace his dying 7970
 
@BenjaminGruenbaum i agree that routing can be done in ~30 lines of code, but once you start with related features (showing previous page while next page is loading, cancelling navigation) is can get rather more complex. I do my own routing with a url parser + html5 history wrapper, but I see why so many people look for a pre-built router.
 
8:46 PM
@Loktar tell me how to optimize it!
😃
hollys can probably run better
 
a 480?
 
yea
 
then the relation between the router and your other app state..
 
oh idk, AMD does a great job with drivers already :p
 
@Luggage that's just pushState's "state" part :D
@Luggage route state is just like any app global state.
Any global app state is route state :P
 
8:47 PM
GYAR who the fuck is responsible for React.PropTypes? ><
 
I can take any global mutable state and put it in a route and it'd make sense.
 
why do they shorten boolean to bool and function to func but not anything else?
 
why not
 
@david facebook, but it's just function use aliases.
 
because they have to right?
 
8:47 PM
@david high five
 
yea, but some of my global mutable state isn't in my route (like, the expanded state of a sidebar menu)
well, i guess that's a bad exmaple. that's more internal state of some compoennt
 
@Luggage that'd transient state - generally (not always) anything you wouldn't do in server side rendering has that property you describe.
@Luggage precisely :)
 
My problem is a header that can be drawn in 2 different ways depending on what route you're on
 
It's also a good indicator of whether a state is local component state (transient state typically should be)
 
there isn't much to routing, but it's still easy to get wrong.
 
8:49 PM
@Luggage like React Router :D
 
question for you. Do you use 'named' routes?
 
I'm just going to check the router state against hardcoded paths and be done with it

    export default function App({ children, location: { pathname } }) {
      const hideHeader = pathname === '/' || pathname === '/home';
 
@david so do a @renderPage("type") on your components (that wraps them in a different header based on what type is passed and it wraps your component.
One does <Header /><Component {...props} and the other does <Header2 /><Component {...props} />
 
Ehhh, I don't like that, you're building the header into the components?
 
You can also pass getComponent instead of component in React Router and pass it there, make it a function and pass it.
@david into the decorator, not the components.
Or just as a function in the router
 
8:53 PM
The header doesn't really belong with the component being rendered by the route, it belongs with the application that is in a higher level
 
@david component={getHeader1(Component)} and getHeader returns the component wrapped in the header - if you want it in the router and not the pages - that's how you'd do it in a sane router anyway.
 
The router is set up like this:
<Router history={history} render={applyRouterMiddleware(useScroll())}>
  <Route path="/" component={App} auth={auth}>
    <IndexRoute component={LandingPageContainer} />
    <Route path="home" component={LandingPageContainer} />
 
function getHeader(C) {
  return class E extends C { render() { return <Page><Header /><C {...this.props} /></Page> }};
}
component={getHeader1(LandingPageContainer)} component={getHeader2(LandingPageContainer)}
 
also, react router lets you component={{ header: Header, page: LandingPageContainer }}
named children
 
@BenjaminGruenbaum I really don't think this should require higher order components to work :S
@Luggage, that's interesting... where can you use those names though?
 
8:58 PM
@BenjaminGruenbaum I'm actually interested in seeing an example of using Express as a router in both the client and the server side.
 
@david I agree, but React Router needs your component to return a component.
 
in the body of the continer
 
Care you whip a crude one up?
 
@MadaraUchiha ask me tomorrow I'll show you.
 
8:59 PM
I guess my main issue with all of these suggestions is that it requires mixing the component and the header together, when I think they should be separate, and the router itself should handle the link between them
Ideally I'd like to be able to declare my routes with some kind of additional information that the container can use
 
@david my last example does this.
Right, which is why I suggested a getHeader function so the router makes a decision.
 

« first day (2257 days earlier)      last day (2691 days later) »