« first day (1851 days earlier)      last day (3090 days later) » 

8:00 PM
If I have a list of checkboxes that is populated to an object via ng-model="root[activeSource].selectedFields[item]", but I go back and REMOVE one of those items -- how do I make that object update?
Shouldn't the ng-model notice it's no longer checked and remove it?
 
I thought the entire point of AngJS was its up-to-date layout when a change is made (or whatever it is called)
 
That's what I thought
 
With mongodb, can you make an array of objects a "set", but only one property the unique one?
 
 
What's everyone's favorite keyboard?
 
8:06 PM
 
@SomeKittens @Loktar and I both use CM Quickfires of various kinds. The Stealth is sweet, the others are also good. Nicely weighted.
 
That a 60%?
 
?
 
the Quickfire
 
80%
 
8:13 PM
why are you guys posting your O faces?
@Zirak THAT'S NUMBERWANG
 
93%
 
@ssube And mmmeee
 
let's all post random numbers
 
We'll most the shit out of those numbers
 
@Zirak which quickfire did you get?
 
@SomeKittens if your neighbors don't carea bout noise, I like my daskeyboard.com/model-s-professional
 
@ssube Rapid
 
but the same thing can probably be had for less money
 
hm.
 
^ biggest number
 
8:15 PM
@Luggage basically what I have now
 
mmm 64 slices of american cheese
 
the stealth is the tenless with arrows, the TK is arrowless with tenkey (and a layer where the tens become arrows)
not familiar with the rapid
 
Eugh, american cheese
 
I'd consider an apple flat-ass keyboard now that I am used to my laptop one
 
though I think I have the older one
 
8:16 PM
Rapid is tenless
 
mine is a couple years old
 
@Luggage ew
 
all the quickfires are really good
 
0
A: Removing element from ng-model

Robin GruschkeMaybe this can help you: <input type="checkbox" ng-model="string" [name="string"] [ng-true-value="expression"] [ng-false-value="expression"] [ng-change="string"]>

 
crl
guys does e.clientY - hoveredEl.offsetTop + window.pageYOffset five the damn relative position on hoveredEl? Do I need getBoundingClientRect?
 
8:16 PM
linky to quickfires
 
@Codeman g(g(64)) #rekt
 
what kind of shit answer is this D:
 
@Zirak yea, i use to feel the same way, but i got used to the laptop, and moving to the desktop is slightly awkward
 
IIRC @monners, you have the newest crazy Das. You like?
 
@Luggage Up your laptop
 
8:17 PM
@Luggage used it and NOOOOOOOOOPE
 
Paint it blue and throw it into the ocean
Paint it brown and flush it down
 
I want dedicated media controls
 
I like cheese
 
I like marmalade.
 
@KendallFrey reddit.com/r/ggggg
 
crl
8:22 PM
 
Do you guys use a visual merge tool, if so which one?
 
face swap aside, jaden always looks ready to drop a deuce
 
@Codeman what the literal fuck
 
@Retsam mostly no, but when I do, I use p4merge
it's available on all platforms and can integrate with git or svn easily
 
Yeah, that's what I've been using. It works most of the time, but it's got a number of small annoyances.
 
crl
8:24 PM
used meld in my ubuntu days, but winmerge might be good on win, dunno if it integrates with git
 
Anyone here has experiene with JavaFX?
 
yea, winmerge is good too
 
@crawlingvx Welcome to the JavaScript chat! Please review the room pseudo-rules. Please don't ask if you can ask or if anyone's around; just ask your question, and if anyone's free and interested they'll help.
 
crl
@crawlingvx wrong room
but you're close
 
@crawlingvx The password is hunter2
 
8:27 PM

Java

Dedicated to the discussion of the Java programming language a...
 
thank you
 
I love fish and chips
 
"javachat" in the Java room URL really looks like the name of a JS variant to me.
 
Why don't we have fish and chips?
 
crl
and the :: looks c++ish , definitely bad choice
 
8:28 PM
fish and chips makes my stomach hurt; too greasy
 
The grease is the best part... that or the vinegar.
 
@Nick you just gotta grease yuer butthole so it comes out smoothe
 
Too greasy. Pft. Pseudo-american
 
crl
seriosuly is there any advantage of using getBoundingClientRect vs .offsetTop for just getting a relative Y pos? adding the windowsoffset after
 
I found out my issue :D
ng-model will only set the object property to false, not remove it from the object. So i had to make a method to check for false/remove it
$scope.setObjectList = function() {
	angular.forEach($scope.activeSelectedList, function(key, value) {
		if (key === false) {
			delete $scope.activeSelectedList[value];
		}
	})
	$scope.root[$scope.activeSource].selectedFields = $scope.activeSelectedList;
}
 
booyah fuckboy
 
does that link help?
 
crl
not in terms of perf, hehe, in terms of getting the right Y, no matter how many nesting there are
 
: (
by the way, did you learn design patterns? We are going to have them in school and I have no idea how to learn them efficiently
some guys here suggested to leave it be as it comes naturally...true but damn...school is formal xD
 
crl
I used to a few years ago, always good to know them, but ofc you need practice
 
8:34 PM
Ya but I feel reading alone is useless and the examples in the books somehow too
Do i need to know all patterns or just some of them?
 
crl
ES5 is maybe not the easiest way for it (possible but tricky), maybe try another language or ES6+
 
well Im going to do it for php and js so double hard.
 
chocolate animal crackers will be the bane of my existence, I tell you h'wat
 
@Asperger amazon.com/…
 
crl
@Asperger yes, in php for ex
> Adobe Reader
 
8:38 PM
@SterlingArcher I do not
 
I didn't notice the format. I have the hardback, myself.
 
@rlemon How's the tailbone?
 
user1596138
@SterlingArcher you take your car offroading yet bruh imgur.com/DRAn8vl
 
Sore
 
@crl it can be considered an advanced topic though right?
 
8:39 PM
@Jhawins lmao
 
I mean after all you need to have a solid understanding of the basics first
 
Okay soo... anyone know of a better way to create hooks than this garbage I made? I want to create hooks on an instance of a class.
 
user1596138
@SterlingArcher lol with the audio is was even more rough
 
crl
nvm
 
8:41 PM
I just had animal crackers and a juice box... at work... I'm all grown up.
 
Some people say that design patterns shouldnt be touched unless you are an intermediate or advanced js or php programmer
the others say its the first thing to learn
 
> advanced php programmer
 
Design patterns are useful tools, but shouldn't be applied unthinkingly, which might be a reason to not teach them to beginners.
 
^
 
@Jhawins I would love to take a junker and have fun like that
 
8:42 PM
but don't avoid learning, just don't try to force everythign into one of those patterns
 
crl
patterns make sense when you mix different things/responsibilities together, it can allow 'loose-coupling'
 
user1596138
@SterlingArcher lol honestly I'd say that one was a bit too dangerous for me
 
I'd love to take a junker and shoot at it, smash it with sledge hammers, then blow it up
 
user1596138
I would run over it
 
Going to watch a movie. Thanks for the info guys.
 
crl
8:52 PM
s/er/y/
 
Gotham the series ; )
 
Isn't it great how good comments can make seemingly ugly code look good?
 
no
 
this is why i love you
 
8:56 PM
this is why im hot
 
@SterlingArcher uh no
 
@SterlingArcher Better fix the code
 
ugly code gives me herpes regardless
 
@SterlingArcher You suck
 
user1596138
 
user1596138
8:58 PM
Oneboxed cause it's disturbing
 
That is the most I've ever seen a girl squirt
 
0
Q: Adding Code to a Guidance Answer

Sterling ArcherIs it appropriate to add solution code to a guidance answer? For example, I was given this answer, but it had no code, yet it still immediately helped me. I wanted to add my function since it was pretty simple, but he did the harder thinking to attribute the solution to him. Is this a good way ...

Anybody want meta points?
omg guys I said seemingly
I think a lot of angular code is ugly
 
all of angular1x code is ugly
 
crl
38
Q: Fibonacci + Fizz Buzz = Fibo Nacci!

Κριτικσι ΛίθοςFibonacci + FizzBuzz = Fibo Nacci! Your challenge is to create a Fibo Nacci program! A Fibo Nacci program outputs the first 100 Fibonacci numbers (starting from 1). If the Fibonacci number is divisible by both 2 and 3 (i.e. it is divisible by 6), then output FiboNacci instead of the number....

needs a JS entry
 
@copy I can see you in code golf >:(
 
crl
9:07 PM
it's not really fun tho, as challenge
 
@BadgerCat shh shh, let him golf.
Golf is life.
 
We have to upload a homework in 2 hours
 
Then code golf is a ruse. 10/10 hes procrasturbating.
well there goes my diet
 
I just had real tacos and that looks like shit
 
!!youtube snl taco town
 
@BadgerCat made me tacos
 
wait
!!undo
it has no sound
 
!!undo
gotchu
oh god dammit
 
I can't find one with sound on youtube
god dammit, I want taco bell now.. fuck you jordan
I won't though... haven't had it in almost a year; not gonna break that streak
 
user1596138
!!afk taco bell
 
user1596138
9:16 PM
Not really I have to continue working
 
Keep it up Nick :D
 
user1596138
When working from home I am tempted to go out for Taco Bell like twice an hour
 
lmao
I've had like.. 8 salads in the past 3 days
Seriously trying to lose weight
Exercise isn't enough
 
I need to try harder
I mean, I'm getting bigger muscles, but I need to lose weight too, lol
 
My knee prohibits long distance running, so I've been doing 3 miles on the elliptical with higher resistance instead
 
9:21 PM
Start counting calories!
 
I did that for like a week
 
What's better -- running on a treadmill, or resistance elliptical? I would assume either or, since I still sweat a lot and it jacks my heartrate up
 
I like the elliptical better
 
you can't compare both
 
But which one makes you work more?
@BadgerCat ^5
 
9:24 PM
the 2nd one
if i recall it right, the navy uses the resistance elliptical for their soldier fitness :p
 
@SterlingArcher if you can't run long distance, then use the eliptical, less impact
cause now it's long distance, but that will quickly become "at all" if you push it
 
you can run the long distance if you keep your tempo low
 
Impact is adefinitely a serious factor for me
 
Yeah its a serious font
 
Like, my knee is seriously wrecked from when i broke it
If I don't strength train it, running will hurt it very badly
> The empire doesn't pay me enough for this shit
 
9:33 PM
fuckin SV man
this show just got 10x better
 
@SterlingArcher surprisingly, he didn't miss the ground
@KendallFrey for a second I was all "What'd we do now?!"
 
@SomeKittens lol
 
@ssube HAProxy up and running
Good rec
 
i.imgur.com/FfY35iw.gifv this man has officially given up on life
 
omg
hahaha
@KendallFrey : porn for you
 
9:41 PM
that is fucking amazing
 
@SterlingArcher LOL
 
@SterlingArcher We'll never get the funding for all that lube
 
Done :)
 
You made a kickstarter?
 
Oh.
 
9:53 PM
uhm... i need an update. Done ? With what ? Kickstarter ?
 
With our homework
 
Jul 15 at 23:23, by copy
@Loktar I went for this: http://www.amazon.com/Passion-Natural-Water-Based-Lubricant-Gallon/dp/B005MR3IVO‌​/
 
what's the homework ?
 
Buying an industrial sized water based lubricant
 
Guys which of the two versions is better? jsfiddle.net/r5e7wxnm
 
9:56 PM
… and research
 
is it just preference or should I use the first more?
nvm
 
haha, SO HUGE
 
i do not know something about that
 
oh man imagine dumping that on a slip and slide
holy hell.. that would be crazy
 
@SterlingArcher : noticed the trending "soak logs in wood" on imgur lately ?
 
10:02 PM
@KarelG can we visit you? I want Belgian chocolate
 
crl
Drag-n-drop, can I safely assume dragend occurs always after (an eventual) drop? tested on chrome,FF,edge,ie11 and it always occured in this order, it's important to know when e.g. something was dropped out of the browser or not. Could set a small timeout too
 
@BadgerCat uhm, if you want to visit my country, then you can yes.
 
crl
you Flamand or Wallon? or whatever it's called in English, not that in matters tho
 
@copy imagine turning up to a party and that's just in the corner somewhere
 
Just spent 15 minutes trying to figure out why my app was throwing the error Unknown encoding: "I am Chuck Norris!"
 
10:13 PM
greping for "Chuck Norris" wasn't indicative?
 
That's the message I was sending to the socket
 
crl
it could be an argument of the function oh ^
 
@crl yup
 
@SomeKittens That’s the reason for why you should do TDD.
 
there were a bunch of console.logs('thing' + var + 'string'); and I wasn't paying attention when I switched 'em all out.
      sock.write('You said "' + data +  '"\n');
 
10:15 PM
@SomeKittens If you had written proper test code you would have saved 15 minutes.
 
@idmean I'll do that once I know what the end result should be
TDD is a luxury R&D doesn't have
 
crl
how could you test... drag-n-drop
 
@SomeKittens Forget it, I always come here to tell people to use TDD because I don’t do it myself. (kinda complex)
 
it('¯\_(ツ)_/¯', () => true);
 
TDD solves some problems. Problems that only exist in some projects.
Some of the time.
 
10:19 PM
Golden Hammer syndrome - X is good for solving the problems I've been having lately, therefore it's good at solving ALL problems!
 
TDD is especially good for pushing your ego – it lets feel you like a better developer
 
I've thrown away 90+% of the code I've written for this project.
 
@SomeKittens I've thrown away 100% of all my PHP code.
 
We've rewritten most of this project 3 times now
the tests we wrote the first time were very useful, but TDD would not have helped.
tell you what does always work, gamifying code coverage
 
you know, you shouldn’t take my comments to serious. I actually hate TDD
 
crl
10:24 PM
you put bonuses in the code? gamifying?
 
we have parties when we get to certain numbers of tests and certain %s of code coverage
 
I write all my tests before I even write a line of actual code.
(because I am a superior developer)
 
What are tests?
 
crl
UML tests
 
noob
 
crl
10:26 PM
!!define test
 
@crl test A cupel or cupelling hearth in which precious metals are melted for trial and refinement.
 
@nick You deserve a price. however, I am superior developer and was told not to write tests...
 
If you really were superior, you wouldn't be following anybody's advice but your own.
 
crl
I'm doing something atrocious, where I have a tree of react components, all sharing a 'global' state of the tree as an object, probably more practical for drag-drop
 
Just, no.
 
10:28 PM
@nick well the circumstances are complicated. and I did not say that I follow any order I get, did I?
 
crl
@RoelvanUden me? (wait a bit I'll show the 2 alternatives I've found)
 
@crl I did it in a simpler manner. I passed an onDragStart and onDragEnd handler from the container to the draggable components in their props, so the draggables could invoke the handler from the container that actually figured out what move action to dispatch.
 
crl
ok
 
@idmean HMMM
 
getCake().then(/* Not sure what to fill here */);
 
user1596138
10:43 PM
I know I'm negative a lot.. This doesn't seem to serve any purpose kickstarter.com/projects/chapambrose/…
 
user1596138
Like I see what they mean. But how is a blinking light cube going to help haha
 
@Jhawins retarded
 
user1596138
They're trying to solve procrastination by tracking how much time you didn't procrastinate.
 
with a wood box and some leds..
only need 25k!
 
can barely make a potato salad with that nowadays
 
10:51 PM
haha
 
user1596138
Hahahaha
 
hahahahahha
 
user1596138
H
 
huehuehuehuehue
 
user1596138
!!^
 
10:52 PM
@Jhawins hates trucks.
 
too slow cap
 
crl
honhonhon... as people say about us
 
user1596138
That's how I ride my motorcycle! It just points at the target doesn't tell you any turns lol
 
user1596138
10:54 PM
Except I do it with my compass..
 
user1596138
Shit that's how I drive my truck in Omaha cause the street aren't named according to any pattern N/S
 
crl
11:11 PM
<Element parent={this} ... probably bad ;)
 
everyone add me on snapchat: eeveeta
3
 
ok prepare yourself
 
@BadgerCat that sounds like a TERRIBLE idea
 
add @ssube he sends the most interesting snaps
 
why?
 
user1596138
11:18 PM
...mine is the same as my username on here. Won't promise much I'm pretty boring IRL
 
what's his sn?
 
dunno actually, he's playing hard to get
 
added
 
mine is nickm55
!!afk work
 
mine's the same as my twitter
 
11:22 PM
TIL Haproxy & pm2 have similar perf for loadbalancing TCP
 
Guh logic errors are awful, or maybe it's the API? I have no clue anymore.
I'm testing every tick to see if a player is on a team, and if he isnt it sends him a fake block packet to make sure he doesnt walk through a open door thats meant only for the other team to walk through
Now, it spawns the invisible blocks which I want, but when he switches to the other team it doesnt get rid of them, but it also doesnt replace them if the block has been destroyed for just him
Oh god I realised the error
I was testing if the block was for the server! Which hasnt set the data for that yet! :d
k bai guise
 
hth
 
m59
Anyone feel it's pretty bad that this doesn't work? things.forEach((thing) => await thing())
 
crl
@RoelvanUden still there? not sure to see what you meant, I found 2 ways (excluding the one with sharing tree in all states that would be terrible), 1 (you'll probably find it bad, but I prefer it) 2 (I don't like it because of that global dragged variable)
@m59 for loops are pretty synchronous, imo
 
m59
Not sure what you're saying.
 
crl
11:37 PM
could you see my dnd thing too, please?
ah sorry, I thought it was .map
 
m59
that would be good, too =D
 
@m59 Use for-of
 
m59
@copy Yeah, I know you can, but that seems like fighting was is good about JS these days.
 
crl
and why doesn't it work?
 
m59
Why go back for for loops when we have functions
@crl You can't use await with arrow functions or in that situation at all because it has to be in an async function also
Nowhere close to possible
 
crl
11:39 PM
await looks better in a classic for loop ayway :)
 
m59
:'(
Seems like they could ditch this async function junk and just let cool stuff happen with await
var woot = await asyncFns.find(fn => fn())
 
crl
@m59 can you check jsbin.com/pajabe/edit?html,js,output, what do you think of the way I share an object (drag={drop:null} ) between all components? for passing a component instance. Not beautiful, but Drag-n-Drop is tricky, dragend and drop occurs in separate components, and only one of them could happen, so it makes sense to do things only from one (dragend for a sortable-only behaviour)
 
C# IN MY JAVASCRIPT ROOM?!?!?!?!?
or am I missing something and ES6 has await now?
 
crl
(it lacks throttling/debouncing atm, that part will be hard too in react gasp)
 
m59
@Codeman That's es7, but it blows imo
@crl not sure. It's a little buggy
 
11:47 PM
@m59 why's that?
 
@m59 how does it blow
it's great
does all things
 
m59
For the reason I stated above. I don't see why it has to fight with good JS things like .map etc
 
@m59 wait what
you like await but not async?
they are one and the same
 
crl
oh wait, pointed to yield not await
 
11:49 PM
arrow functions can be async
 
m59
That code snippet I posted ought to be the goal. It's insanely powerful and clean.
 
It can be avoided, but not in JavaScript
Both models have their pros and cons
 
await Promise.all(things.map(Reflect.apply))
@m59
 
m59
what is Reflect.apply?
 
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Reflect/apply
I put it there to confuse you
 
11:53 PM
the new version of functionInstance.apply()
but there's not Reflect.call. Which bugs me
 
await Promise.all(things.map(fn => fn())), whatever
and if you really want
you can use reduce
 
m59
and what about doing that concurrently?
 
that would be concurrent
same as any Promise.all
 
god, javascript moves so fast
 
m59
oops, I meant not concurrent
sequential
 
11:56 PM
you can use reduce for that
 
I'm like... barely competent in stuff like ng, and now all this ES2015 stuff exists
 
things.reduce((p, thing) => p.then(thing), Promise.resolve())
and tbh
I'm not so sure this wouldn't work:
things.forEach(async (thing) => await thing())
probably not :P
 
m59
I hear it won't, but it should is my point
that's way more readable
 
but there's is the spec, and that thing does what it's supposed to do
you can't have the same constructs perform two different things
don't think it'll work
 

« first day (1851 days earlier)      last day (3090 days later) »