« first day (2047 days earlier)      last day (2895 days later) » 

1:00 PM
@ndugger we warned you
 
@rlemon Yes you did
I'm dumb
I had a great time while it lasted this time around at least.
 
hey guys, I'm back with another function shorthand question: How to have the () => {} function not binded to the external this (you know, like the normal function() ). In short, how to avoid the automatic .bind(this) with the x => {} syntax.
I tried the light-arrow, doesn't compile :D. i.e: x -> {}
 
@damio You can't.
 
snif
 
Use the original function() { ... } syntax.
 
1:04 PM
@damio the entire point of lambdas is to be lexically bound. If you don't want that, use the function keyword.
 
snif snif
 
user3119231
@damio snuff
 
user3119231
ban incoming.
 
snif snif snif..(that's how I get a ban ?)
 
user3119231
@kush go in your room and clean it up.
 
1:06 PM
I have a form. After the form is submitted I want to hide this form and show the result page instead. How would I do this using REACT? via Routers or how? Does anyone have an example?
 
@ndugger Well, I use them for the syntax. I couldn't care less about this.
 
@kush looks nice !
 
2 messages moved to Trash can
 
Should I use mongodb, or stick with postgres?
 
use mongodb
 
1:07 PM
Postgres
 
stick with postgres
 
Good morning
 
there's a json store and querying in postgres too
 
I gotta use geolocation, and it looks like mongodb can't use that without aggregation and I hear aggregation is bad to use
 
@SterlingArcher I have an hour long PT session after work today... I haven't been to the gym since the end of November. I'm excited to get my butt kicked.
 
1:08 PM
@cswl I got it!
 
postgis for the win
 
use postgres
 
Hey, everyone! I need some help with this :- jsbin.com/xapopi/edit?js,console . I am trying to access an Object Literal's property inside that Object Literal. this points to window inside an Object Literal and when I try to use the Object Literal's name, it outputs undefined.
 
You can reduce this with normal JavaScript for a shorter function. let sum = [...document.querySelectorAll("#"+tbl_id)].reduce((x,y) => x.textContent + y.textContent); Granted this is an ES6 spread and arrow syntax, a reduce is a better way to sum up an array (in my opinion) — Sterling Archer 1 min ago
dat spread
 
What should I do if I think my own question is a duplicate?
Although it wasn't really clear it was the same issue? stackoverflow.com/questions/37408134/…
 
1:12 PM
close it or delete it
 
@ndugger awesome dude! Aside from this weekend, I've been eating incredibly healthy, have had a -1300 calorie intake on average, and been running 2.5-3 miles a day
Go kick some butt tonight man!
 
I need to up my calorie intake. It's hard to eat more than 1200 calories when eating healthy.
 
Well the question there is explicitly about doing it BEFORE the file gets uploaded which is why I couldn't really find the answer anywhere
So idk, it's a different question with the same answer? I mean I don't care at all about closing or deleting it but I think this answer might be easier to find
 
If it's not really a duplicate but it's still answered with the help of another question, write a self-answer. You can even quote heavily.
 
I wrote what I ended up doing and where I found it and then linked to the stackoverflow question and giving the code that I needed to fix my issue
Is that the proper method?
 
1:15 PM
@corvid you cannot compare both
Postgresql is SQL based, while MongoDB is NoSQL. It depends of the application
 
Very basic web application that relies heavily on geolocation and geographical queries
 
@ndugger "heating healthy" actually means "not really eating"
 
Wtf I got +810 rep
 
@corvid pick PostgreSQL then. There is also a Postgis plugin which can be used to work with geo data :-)
 
1:17 PM
That's so cool, I'm 100% ordering this
 
@JanDvorak To an extent, kind of. But I'm more or less talking about eating more veggies than junk.
I had an apple and a salad for breakfast
 
@ndugger dude you're 100% right. I'm struggling to hit 1600 calories a day, and I'm burning about 3300 a day on average
And I'm actually eating quite a bit
 
really, just have balanced food pattern and practice some sport / move enough. that's all what you need to be healthy
 
I'm just doing lots of veggies, the occasional sandwich, lots of water, some fruit, etc. No junk.
 
1:19 PM
But it's done wonders actually, with running. People have already noticed in 2 weeks that I've dropped a few lbs
 
i'm running too :)
 
All I eat is nuts, chicken, (some steak), salad and lots of broccoli and watermelon lol
 
Do you do weight training?
 
Me? Not yet. All cardio right now. About 45 minutes a day
 
i combine that with physical exercise to gain balance between condition and physical strength
 
1:20 PM
@SterlingArcher Jordan likes nuts confirmed
 
I know my new PT is probably gonna just focus on weight training; it's what I did last time.
 
Resistance cardio, so it's a good burn on my legs and arms
 
@SterlingArcher I lost 4 pounds in 4 days last week
 
Rough poop?
 
there should be at least 24h rest time after an intensive exercise. Or switch to an exercise that focus on other body parts
 
1:21 PM
Cardio is the best exercise to keep your body fit
 
Bike 18km for internship everyday and then 12km extra on the days I go to the gym
 
That's not really true; Weight training helps to boost your metabolism
which really helps to keep you burning more calories even after your workout
 
Also I believe they've concluded that strength training leads to more calories burnt per time spend then cardio because of what @ndugger just said
 
may I ask a generall question - not so directly javascriptly?
 
Is it about fruit?
 
1:22 PM
But cardio is must like at least 2 times in a week
 
@ndugger weight training leads to more muscles -> muscles requires energy -> more energy consumption. But you have to maintain it.
 
@StrahBehry it's about rasp behrries
 
My archnemesis...
 
your Erzfeind, yes yes
data-bind="attr: {id: 'newsEntry_'+ $parentContext.$index() +'_lead_' + $index() + '_toolbar'}"
 
@ndugger I'm talking to this girl, I don't think she's from america, but she seems really sweet
 
1:25 PM
did you have tasted her already ?
 
;)
 
Good lawd
 
<div th:replace="fragments/quill_editor :: editor(binding='data-bind="attr: {id: 'newsEntry_'+ $parentContext.$index() +'_lead_' + $index() + '_toolbar'}"')" >...</div>
I have this ' " \" ' mix and can't solve it
 
@SterlingArcher I once had a tinder match that was only talking to people to practice her english. It was kind of cool, actually.
 
1:26 PM
@SterlingArcher ...Katya?
 
sweet like strah behry
anyone an idea?
 
put this:

data-bind="attr: {id: 'newsEntry_'+ $parentContext.$index() +'_lead_' + $index() + '_toolbar'}"


in th:replace=" ... editor(binding='HEEREE')"
 
Why do you have a team devoted to flagging people? — ndugger 11 secs ago
 
@Luggage Nothing out of the ordinary. Only referrers are travis and coveralls. Hardly any visits at all
 
1:34 PM
@ndugger Dammit, I misread/misinterpreted that as "eating more vegetarians than ..."
 
@littlepootis Stop that Erik
 
Wait, what.
 
ERIK ROYAL or something
 
I don't even know hot I ended up typing that. Is there a website where I can paste a Unicode character and get told about it?
 
1:37 PM
google
 
I don't think I fully understand how to appropriately do redux... do you make a single action that does a series of events, then dispatches events as they happen to create a chain of asynchronous events that need to be awaited?
 
what?
 
It says I typed the question mark. The character is between these quotes, btw: ''
 
user3119231
is there a function in js to convert an ascii symbol back to the code/string=
 
@Maurice Yes.
 
user3119231
1:38 PM
@JanDvorak so will you tell me?
 
escape()
 
@littlepootis My guess is it's the null char, that makes the empty message
 
@Maurice I already told you: Yes, there is.
 
As in, you have to do a, b, and c in sequence. Do you create a single action handler to do them, which dispatches the events to change the state as it is executing?
 
@KendallFrey ah
 
1:39 PM
there's nothing between those quotes though
 
Look into String
 
user3119231
@JanDvorak ok, I understood. So don't you mind to tell me the answer?
 
Nothing visible.
 
user3119231
Ha just kidding. I got your point :D
 
what a mess here
 
1:40 PM
@littlepootis nothing in the DOM either
 
@KendallFrey Weird
 
@littlepootis amp-what.com
 
It's a... backspace?
&#8?
 
not that backspace. the other one.
 
@KendallFrey lol no, her english is very good, just some subtle aspects like an occasional missing word makes it seem like she's 98% fluent
@ndugger that's actually a decent way to learn, to be honest. Conversation is incredible for language skills
 
user3119231
1:48 PM
Lol this is showing -1 all the time - even if the code is in the string: if (escape(header.innerHTML.indexOf("u25B")) > -1){
 
LOL. Some of the members in that Charcoal team are regulars in a room where they do nothing but discuss about their reputation changes over the last 7 days.
 
lol wat
 
They set goals and try to reach them.
 
That's stupid
 
user3119231
And we are just here like: "bro, I'ma get drunk soon" - "woaah you da real mvp"
 
user3119231
1:51 PM
:D
 
I spent 10 minutes trying to fix a JS bug
then I realized I wrote windows instead of window
 
@Neoares ESLint
 
lint is for dryers, not code >:(
 
@Maurice did you really have checked the docs?
 
user3119231
1:53 PM
@KarelG I did. Corrected and now it works.
 
@rlemon i've seen that before and if i recall it right, there is a definition in their license, that "serious game" is not part of their definition for "games". It was strange
 
I seriously lost.
 
@jAndy le jeu?
 
J'ai perdu.
 
2:04 PM
 
@SterlingArcher lol
 
I'm torn between "damn" and "lol damn"
 
Memes. Memes everywhere.
 
ITS TWO MEMES CALM THE FUCK DOWN NEIL
gawd
 
@BadgerCat lol
I'm like "wut", google translate ROFL
 
2:06 PM
 
Where the hell did pepe origin from
 
all credits go to the gamemaster.... ME
 
@SterlingArcher le pew
 
>=|
I GUESS
Omg I can't onebox this one... i.imgur.com/lsN9aZc.jpg
cc @KendallFrey
 
2:08 PM
rofl... that's dirty
 
@SterlingArcher oh em gee lol
 
Sterling that is dirty......... but hilarious :P
 
This coffee creamer tastes like ass
 
I've never tried that flavour
 
Is there a website I can waste my time on while eating?
 
2:11 PM
Is it good?
@littlepootis reddit
 
@KendallFrey sub
 
@littlepootis slither.io?
 
@AwalGarg mail me one of your hands
 
@littlepootis funny, greentext
 
@littlepootis ./
 
2:12 PM
@littlepootis what did he do, steal your mail?
 
@KendallFrey >thanks
 
@littlepootis the Czech's in the male
 
in angular, is there a way to determine when all outstanding promises have resolved?
 
Punchline to a polar bear joke
 
oh yeah that reminds me, /r/jokes
 
@im1dermike that's not really a thing
 
@im1dermike Can you please give an example on jsfiddle/codepen? I don't know what you mean
 
@im1dermike what happens when the promise finishes after only having done an OK job?
 
an OK job?
 
@im1dermike not outstanding
 
2:17 PM
is it not more black and white?
.then()
 
@im1dermike I was pulling your leg
 
success or error. no?
jesus....
 
@littlepootis this was an enjoyable read imgur.com/gallery/kx44O
 
too earlier for that
i guess it would help to elaborate on my problem...
 
@im1dermike there is a Promise.all ()
 
2:18 PM
i have a button on my page which i want to disable if the current model has changed via angular.equals()
 
Waits for all passed promises to resolve
 
when i first load the page, i resolve some model properties if they exists by calling the api for them
one of the params of angular.equals() is the original model
 
@im1dermike does angular not have a callback for that?
 
but i can't set that until i know all of the properties have been resolved (if there were any)
 
@SterlingArcher if she's just going to sit there on her phone all night I'd eat then leave her with the bill
 
2:20 PM
notifying the model that it's changed
 
yeah
 
@rlemon Where's Cap?
 
$scope.$watch('dataExtract', function () {
    $scope.hasChanged = !angular.equals($scope.dataExtract, $scope.originalDataExtract);
}, true);
 
@rlemon lol right? "Well, see ya!"
 
the problem is that i can't set $scope.originalDataExtract until all the promises have been resolved
 
2:21 PM
@rlemon or bring a pocket EMP
 
seriously.. if you show up and you have 0 interest a) fake it, b) end it there, c) b then still have a fun time
 
I don't know about angular but you would usually do Promise.all([/**promises*/]).then(() => state.set('ready', true)) or something
 
it sucks pretty hard if you have 0 interest to really have fun
I guess b) is the only real option
 
@im1dermike sounds like you need .all ()
 
k let me play around
 
2:22 PM
Promise.all works if you have created the promises and don't need them to call another then handler
 
@jAndy 0 interest in someone romantically doesn't mean you can't still hang out
 
Also the fail-fast behavior of promise.all is important to know about
 
@ssube you can pass the last promise in a chain to Promise.all
 
@rlemon yea of course you can do that, but .. then you at least should have the balls to make very clear that you don't have interest... otherwise "the other part" might have some hope
 
2:24 PM
@SterlingArcher lmao wtf
 
@Neil yeah, but if angular is doing things with the promise already, you can't just cut in with all
 
@jAndy well yea, I'm just putting in 'fake it' because I know that is how a lot of people role as to not be 'rude' or mean on the date
then just don't set up second dates
 
"hey girl..., you look like hell and I have zero interest in you, but I would love to hang out anyways"
:p
let us know how that works out :P
 
well if you have no couth yea
 
@jAndy sometimes
 
2:25 PM
some of us have tact
 
tact? To make a fool of someone is worse.. or create false hope
 
yea tact. you walk up and insult her that is an asshole move. you can end a date without being rude
 
@ssube I would hate to cut in on angular.
 
> You have excellent background and references, but we can't hire you. We're not actually hiring, we're just training our HR.
 
yea of course.. nobody would offend someone right. Joking -> dictionary
 
2:27 PM
There are those who are tactless and then there are those who don't care either way
Not the same thing
 
it's a shame this question was so bad
Because some people don't have the experience to choose the proper technology for a problem and instead use what they already know. — ssube 5 mins ago
 
glanced at Hodor, switched tab immediatly
 
Hey guys. I've been doing my best to get better with vanillaJS and I decided to try and roll my own JS framework (just for practicing and getting better, I'm not trying to build the next big thing :P). I've found so many different resources tho I'm not sure which one I should study. Can someone recommend me a good resource to follow?
 
Hi, I asked this question, and it is now in open / close voting state. But I feel the question simply didn't get enough attention from the Developers who really understands what I asked...
stackoverflow.com/questions/37407473/…
Can you guys please look into it?
I used to see long and detailed answers on stack overflow previously
 
You can't expect the room to copy&paste.. this is javascript, being lazy is cool around here
link it! @SumanBarick
 
@ton.yeung nope. not really. Just wanted to ask experienced developers a good resource as I'm not good enough to understand which resourse is good/better
 
@GNi33 I am not going to spoil it for you.
 
don't wanna waste time on studying from the wrong resources
 
2:38 PM
@ton.yeung Nothing much
 
I am telling myself. ..
 
just that node.js now has an option to choose ChakraCore
 
@Luna Are you knowledgeable with any programming language other than JS which is not PHP?
 
@Neil I appreciate that
 
@SumanBarick Your question is actually too broad. And opinion based too.
 
2:39 PM
@ton.yeung people are welcome here before they're sure what their question is, no need for all that
 
But I just wanted some facts, like, which one to use and why with nodejs
 
@ton.yeung I already tried and built a few small libraries to understand how things work. I just wanna take it to the next level. I wouldn't say I'm average yet so thats why I asked a resource.
 
@GNi33 must. not. spoil.
 
Obviously Performance is the priority
I was not asking for anyone's favourite.
 
@SumanBarick try it, profile it, benchmark it, and see
 
2:41 PM
@ssube, yes I will do that now :P
 
@SumanBarick your question is asking about favorites and not much else
 
Just hoping if someone already has some experience doing that :P
 
did you try looking on google?
 
take some existing benchmarks and run them on both engines
 
Can you asynchronously set up a state in react?
 
2:42 PM
@AwalGarg not really. I used JS related stuff. I'm okay/above average maybe with Meteor, MongoDB
@ton.yeung thanks. I'll check it out
 
@Luna then you know what to avoid! :D
 
@Luna Then I suggest widening your scope with some other programming languages too. Sticking to one (that being JS here, which is definitely not the best one) is neither healthy nor interesting. And those techs not PLs but are sub-par for what they are.
 
@ssube Comparison between 2 Techs should be backed by Facts, not Favors/Favorites
 
Meteor is pretty intuitive to use actually, it's just super limiting
 
@SumanBarick then go get some facts
 
2:45 PM
Haskell is great to learn but hard to use
 
@ssube well, I agree. Though I think it was a good starting point for me. Just not the right place to keep wasting time...
 
Only my phone would lose battery while plugged in
 
@JanDvorak nobody actually knows how hard Haskell is to use
 
Ruby is my favourite, but I haven't had much C# experience
 
@SumanBarick benchmarks suggest chakra core beats v8. but can't trust them already. Also V8 API is a horror. If Chakra's API is better and more embedding friendly, then that's one good win. The downside is that no good linux support right now.
 
2:46 PM
@Luna for sure. Both Meteor and Mongo are quick-start techs, making it easy to spin up a new project but not deep enough for long-term.
You could always look into React, or other simpler libraries, like Backbone
 
@ssube I'm actually okay with React. I practiced some and thought it was good though I really think I should work on my vanilla. I can't rely on what the frameworks/libraries give me forever. Even if I use them, I should be able to understand the codes behind
and I don't understand why you guys say I should look at smt else than JS
:D
 
Because breadth is as much necessary as depth.
 
@Luna React is definitely good to use, but can also be interesting to study. Unfortunately, it's complicated.
Most of the other MVC libraries are simpler and would be more useful to read through.
 
@Luna don't listen to these people. There is only JS!
2
 
And JS' important surface is not enormously large so you might be underestimating your JS skills in percentage. It is a small-ish language. Maybe you have covered enough already and can move on now.
 
2:51 PM
@ssube I totally agree with that. I spent some time and understood how it works (well, of course not completely) and played with it though I can't say I liked it.
 
The good parts of JS which are worth learning and using are specially very less.
 
@AwalGarg most languages are small. The design patterns and how they apply are the big part.
 
actually you only need "if and jmp" to have a programming language :p
 
which is why learn more languages and programming in general, not "PhD in JS syntax and standard lib".
 
I am just happy if I write code that looks very simple
Using patterns tends to go against that, but sometimes it is unavoidable without writing even more complex code
 
2:54 PM
@Neil then you're using the wrong patterns :P
 
@Neil What do you call "patterns"?
 
@AwalGarg my biggest concern on that always was to ruin my own mind and potential by learning "a lot of languages". The downside is that you only use 60% or something in every language instead of a 100% in maybe 2 languages
 
patterns should make your code more concise and predictable, not less
 
@jAndy I completely disagree.
Like totally 100%, 180 degrees disagree.
Learning multiple languages is the best thing I ever did with regards to my programming ability.
 
well... than you have unlimited brain capacity which I don't.
 
2:55 PM
@MadaraUchiha you disagree only in 2 dimensions? weak
 
@AwalGarg month*
@jAndy My original "home" language was PHP
 
yeah fu too
 
@AwalGarg I actually know my level right now and I know I still have much to learn. Thats why I thought trying to roll my own framework would be a good challenge. I'll most likely start learning another language but I want to be satisfied with my JS level first
 
I transitioned to JS at some point
I don't know 100% of either
 
ok I understand why you want to learn everything else then...
:p
 
2:56 PM
Hell, I doubt I know 50% of either
 
@MadaraUchiha observer pattern, factory pattern. I assume we're talking about the same definition of pattern here
 
But I also know a bit of Java and a bit of C# and a bit of Lisp etc
 
@Neil They're OO patterns that make sense in an OO environment
Most of them are obsolete in a language like JS
 
@Luna fair enough. try "You don't know JS by Kyle Simpson (or getify or something)", take some of the "OMG" parts with a grain of salt of you'll be gtg. it is available free to read on github and is updated there every now and then.
 
2:58 PM
Or rather, they're not as you'd write them in Java
@jAndy I don't strive to learn every language completely, I strive to understand the driving principles
 
yeah I guess we're talking about different things. I'm sure it helps in a big picture to understand programming in general and learn how to improve algo's and this and that. but for a special task, I'm rather a freakin expert in 2 languages and know each and everything combined with a database for instance, than know 6 languages half-way
 
they've changed to match the language, but still very much apply
 
@MadaraUchiha I don't write those patterns in js, I thought we were talking about programming in general
 
Because understanding the driving principles of different kinds of approaches, helps you widen your perspective.
 
(and you don't have star helpful messages. star interesting and funny ones instead because we don't like logic much here)
 
2:58 PM
@BenFortune the idea of a single button is not for me. I like single button solutions for a lot of things, but not for that cost and not on my keychain
at least, for me
 
That might be the new big thing... "single button applications"
 
@AwalGarg oh, okay. didn't know that
 
no harm done
 

« first day (2047 days earlier)      last day (2895 days later) »