« first day (2435 days earlier)      last day (2738 days later) » 

14:00
would you not check the props ?
@KarelG you wouldn't have to as long as you're not spreading the props on an html-level element
in Android Era with Kotlin and Java, 35 secs ago, by ballBreaker
ahhh horseface's theme
lmfao android knows @rlemon as "horseface"
That's not his name?
!!giphy horseface
14:07
@SterlingArcher yup
name given by hans
!!afk work
@SterlingArcher Fail Army released their vid early, FYI.
@corvid I think it is what it is
it's a pretty objective part of the language
though in that case it's not very useful
my JS file names are starting to look like Java now :| VideoTelestrationSidebarMenuOption.jsx
14:15
lol @ those upvoted answers stackoverflow.com/questions/44591392/…
some developers nowadays ffs
@Mosho how is it not too useful? Not arguing just genuinely curious
@KarelG Everyone can be a developer!
And using alert....excuse me while I die.
I still use alert sometimes instead of console.log if I'm feeling lazy lol
That's like shitting your pants every once in a while because you're feeling lazy
14:20
@KarelG True, thanks for pointing that out. It was still working though, so I don't really see the problem with the upvotes. — Arg0n 5 mins ago
That a solution works doesn't mean that it's not good.
@OliverSalzburg Is that not normal?
😐
Speaking from your experience, Kendall ?
@KendallFrey only in South Park
and I disagree
sometimes I don't want to open the console either
Yeah I think as long as you're never doing it in production and you understand the limitations to alert versus console.log then you're good.
real men use document.write
14:25
@OliverSalzburg alert = console.log; happy?
(alert message)
@William there's alert people, console.log people, and you.
@William Good thing we don't classify you as a real man, huh?
debugger = () => {
  let debugFeature = prompt("please enter the variable you would like to check");
  alert(eval(debugFeature))
}
@Vap0r Is debugger not reserved?
14:28
That's what I use. Then I can call debugger() wherever I want to break from, and I can enter a variable to check it's value
@OliverSalzburg it probably is, but that should be the least of your concerns for that code lol
@Vap0r try just putting debugger; next time
@FlorianMargaine huh?
it drops you into chrome debugger
14:29
it'll put a break point and then you can see all variables
@FlorianMargaine I'm trying to write my own without any of the advantages offered and with a couple of vulnerabilities introduced
I call it "defactoring"
!!s/factoring/fecating/
@Trasiva I call it "defecating" (source)
window.debugger = () => {
  let debugFeature = prompt("please enter the variable you would like to check");
  alert(eval(debugFeature))
}
document.querySelector("#roomname").addEventListener("click", window.debugger);
and now factorio is in my head again
14:32
@Trasiva lol it's funny cause you're joke's shit
what is it with this game
@Vap0r your*
@Trasiva no, you are a joke's shit
@KendallFrey quick. what's the ratio of copper wire to green circuits
... I guess?
@Luggage 1:1? idfk
Jesus William
3:2 factories
@Trasiva XD
^ code above for anyone who wants my debugger stuff
14:34
@Luggage i don't give a rat's ass about assembler ratios
Patent free
i just build more of whatever i need
You should.
it let you make pretty compact layouts without belts
then you just multiply those little modules
Factorio's on my list of 'shit to buy if I ever have time'.
@Luggage It's easier to just build a giant factory with 1 row for each item, and a giant conveyor to pull resources from
14:37
sometimes, yes.
Some things like copper circuits are so fast to make that you can quickly overwhelm belts
we should play multi-player some time
there is nothing more fun than two eople with different views on how to lay out a factory fighting over it
@Luggage I'll add another belt in that case
someone make a room 17 dedicated fsctorio server
password: "vue sucks" :)
My goal is to get robots quickly so I don't need belts for everything, just a massive robot swarm
RIP framerates
I've tried that before.
ahh. i mostly use robots for construction, and only to 'patch' some of the ohter logistics needs
I used to make big networks of the robot contorl tower things, but found the having a few personal roboports is even more convenient
14:41
@Trasiva better to move on rimworld
I never understood the need to automate construction
i can't imagine playing without it
especially late game when you are laying down rail networks
I have blueprints for 2-way rail lines, intersections, rail stations, all with the signals all set up
Also, it lets you re-arrange things. Want to move this block of factories a few units to the left? No problem. the robots can do it all
I have never done anything with rails
I tried ruby on rails once but I was confused
@SterlingArcher Work made me do the pluralsight course and make a presentation about it...then never had me do the presentation.
14:46
wat
You can play a lot of factorio without rails..
ruby on rails is a pain in the ass. Only job I quit was because they hired me as a front end dev then my first assignment was to add OAuth to a RoR back end, but implement it without a library
sadly. I think they add to the game
user2620028
@Sheepy i always said old nokia phones were bulletproof. I wouldn't want to be the one who had to test that claim though
My friend tests that claim at his new job.
not by being shot at, though
14:56
Uhhhh
user image
3
LOL
hahahahahha
wtf were they even trying to put?
No idea
I think cum was just added on it's own
haha
remove cum and it's a normal sentence
14:59
Aaaaaaand starred
user2620028
wait I live near St Louis
user2620028
im in
I think this is at the fertility clinic
> You perform development and fertility duties
user2620028
just the crosstraining i have been looking for
haha
user2620028
15:00
that is the perfect overlap of what I was brought into this world to do
> if feel comfortable.
> cum
user2620028
i wonder if you have sprints for both job duties
I think cum = scrum in this instance
user2620028
well lets think about this guys. I would have to imagine that is auto correct right?
user2620028
so are they commonly referring to someone as a cum developer
15:02
Only makes sense. UI lead scrum autocorrect to UI lead cum
user2620028
or are they talking about lead cum
user2620028
I honestly want to apply and interview and act all disappointed when there is no mention of orgies in the job description.
can anyone in the US tell me the name shown here? premium.whitepages.com/…
need an account in addition to being in the US
oh damn
user2620028
15:04
the page you sent us to is called country block lol
Unknown Registrant
@HatterisMad but will probably redirect if in the right country
for (943) 870-7036
it doesn't. i had to search
I'm not fallling for this again its the FBI
cum1
kʌm/Submit
preposition
preposition: cum
combined with; also used as (used to describe things with a dual nature or function).
"a study-cum-bedroom"
15:05
@Luggage wut? number is: 49-4387-07036
probably this
user2620028
@towc i am in the US, it did not redirect
i copied that fromt he url
user2620028
that was the phone number in the url lol
49-4387-07036 is not a US number.
15:06
uhmm weird
user2620028
weird number of digits. looks more like an english number
ok, original phone number is this: +100449438707036
I thought it was 1 (us) 004 (reverse gb) 49438707036 (rest of number)
user2620028
are you trying to call hades?
+100 is US country cell phone nr
oh
15:09
@ndugger LOL
saw 30 seconds to mars & muse concert last night
in Charlotte, NC
So excited for my moto-class tonight
is that like moto G? A motorola class?
I have one of those. JK biking class cool
who's this clown
:P
@SterlingArcher I don't see a clown
do you?
15:17
Guys, a little help. please?
Please check this question: stackoverflow.com/questions/44589485/…
this is working fine: var index = $scope.retrievedData.findIndex(obj => obj.firstName=== name);
@tholo You have an answer, and you accepted it. I don't see a problem.
I've never used .findIndex() before.. how can this be written with full function name?
@BenFortune, let me ask a question first, please
@tholo full function name meaning what
$scope.retrievedData.findIndex(obj => obj.firstName=== name);
15:18
rood boi
you mean without an arrow function?
how can (obj => obj.firstName=== name); be written as a function
without a fat arrow
Wow, really
mdn arrow function
that's your question
15:19
^
(those are search terms)
@tholo this is basic JS and easily googleable
@BenFortune, yes that is my question. I'm sorry if that is too newbie for you.
@tholo it's not fat, it's plus size
stop triggering me
15:20
husky arrow
@BenFortune that person has extended Array's prototype D:
@tholo Coming from the guy that lacks the basic research skills
@Luggage lmao
@SterlingArcher ._. wat lol
15:20
@SterlingArcher, I've tried mate.. but couldn't get it done
@BenFortune chilllll
I Agree. chill.
@BenFortune, thanks, that's really helpful. Now, be nice and chill.
Do not do that.
15:21
anyways ... weekend time
Bae got my back
now lets netflix and chill
@KarelG see ya! Have a good one!
On the plus side, my gameboy pcb has arrived!
rood boi
@Vap0r you can just spread the entire props for the same affect in that example
15:23
@tholo now then, if you're willing to relax -- you do understand an arrow function is just a lexically bound anonymous function.
So you're question is how to replace that with a named function, right?
@SterlingArcher, I'm relaxed mate. Just been rude to for no particular reason.
Yes, exactly..
2
Q: Replacing anonymous functions with named function (in jQuery)

Krishna SarmaMy original (working) code looks like: jQuery().ready(function ($) { $('[id="errorMessages"]').ajaxStart(function () { $(this).html(""); }); $('[id="errorMessages"]').ajaxError(function (e, jqxhr, settings, exception) { //... }); }); When I am trying to replace ...

Google: "replace anonymous function with named function"
The fact it's in jQuery doesn't matter
@William Everyone knows that, the PS4 doesn't really make any money either
It's the games, subscriptions and licensing where they make their money
15:25
didn't know that own a PS for rocket league that is it
It is a lot of money for a console though
@SterlingArcher, thanks. Been there , tried that and still don't have the same output.. how would you replace this one with names function:


$scope.retrievedData.findIndex(obj => obj.firstName=== name);
Sorry, *named
> Rewrite my code for me
@tholo show me a normal function in the style you want.
@BenFortune bah
$250 is cheap dude
15:26
@Loktar $500?
er wait you're not in the US I guess
I'm talking about the ps4
you were too right? Or the new Xbox?
Oh, the ps4 was a bargain
I was talking about the new xbox
I read "didn't know that own a PS for rocket league that is it"
1 message moved to Trash can
@tholo Please don't post unformatted code - hit Ctrl+K before sending, use up-arrow to edit messages, and see the faq.
and assumed you guys meant ps4
ah yeah the new xbox is nutty price wise
15:27
$scope.removeRow = function(name) {
        var index = $scope.retrievedData.findIndex(obj => obj.firstName === name);
        $scope.retrievedData.splice(index, 1);
        $scope.initData.splice(index, 1);
        window.localStorage.setItem('initData', JSON.stringify($scope.retrievedData));
    };
hmm... cool. i like the new vscode update
@Loktar I've turned my ps4 on probably 3 times lmao
@tholo ok, so you know how to make a function with a single argument, "name". And you want a function with a single argument "obj"
haha
I don't use mine a TON but there have been a few good games
yes..
15:27
the little icons in the tabs for the language
it even has an icon for coldfusion.
last of us remastered, For Honor, Horizon Zero Dawn, BloodBorne
I originally bought it for GTA5 and the new (then) Need for Speed
So, using that info, give it a try yourself and then show me.
I think that's it..
@KevinB Oh they're bundled in now? It used to be an extension
15:28
some good stuff coming this year though
new God of War looks badass
i like it
I've tried this one

function showIndex(obj) { return obj === name;}
but nope..
sweet, they added set multiple cursors!
15:28
that looks mostly valid, but you can drop the name, showIndex.
I just want the new metroid
it doesn't need a name for this.
I hate Nintendo now idk why
And rocket league for the switch!
like, don't hate, but just can't get into any of the games anymore
15:29
So how should it look in the end to work, without arrow function.?
That Arms game looks gay af though
didn't see that one
@thol you had it. you are so close.
It's like an arcadey wii boxing
you just showed me a function that looks valid. replce that arrow function with that one
15:30
now it is giving me this output: angular.js:14525 TypeError: false is not a function
Show me that whole findIndex line.
 var index = $scope.retrievedData.findIndex(showIndex(name));
you are CALLING the function there. Just past in the actual function definition like the arror function definition was
> During this milestone, we made some significant steps towards supporting multi-root (multiple project folder) workspaces in VS Code
@tholo go read up on function expressions, maybe in that link I showed you
mybroadband.co.za/news/software/… my coworker just sent me this and I started crying
15:32
@KevinB I like that, having an instance for each isn't really ideal
Especially since Atom supported it from the start
findIndex(function ....);
yeah, the multi cursor thing though was what i missed most from atom
The intellisense is way ahead of anything in Atom though, I love it
Hm.. the reason why I've tried it this say @Luggage was because of this: developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/…
what i miss most from atom is convenient hotkeys for adding, and moving/renaming files
@tholo that's valid too, but note that they don't CALL isBigEnough(). they don't put the () after it to call it, jst pass the variable representing the funcito
15:34
Oh....
3 mins ago, by Sterling Archer
@tholo go read up on function expressions, maybe in that link I showed you
> function reference
oh crap
nvm i typo'd
rekt
cool, the icons are in the explorer too.
expression should have been reference
15:35
a function expression is a valid way, too :)
var index = $scope.retrievedData.findIndex(showIndex);
give that a try. Also where is function showIndex()? Is it in a place that is can access the 'name' variable like you need?
If you want to be able to reuse it, return a function from your function.
Yes it is.
doesn't work like it should, it's not matching the index
Where is it? is it inside function(name) { ... } or outside ?
15:38
Inside
Also above you had obj === name, shouldn't it be obj.firstName?
I've put obj.firstName
ok. Show us the final code you have. It sounds like you have all the pieces.
and html: <button class="btn btn-primary" ng-click="removeRow(v.firstName);">Delete</button>
15:40
You are sill CALLING, not passing the function itself.
$scope.removeRow = function() {
        function showIndex(obj) {
            return obj.firstName === name;
        }
        var index = $scope.retrievedData.findIndex(showIndex);
        $scope.retrievedData.splice(index, 1);
        $scope.initData.splice(index, 1);
        window.localStorage.setItem('initData', JSON.stringify($scope.retrievedData));
    };
That now looks like a 100% equivalent to the arrow function.
and it doesn't do what arrow function did..
ohh, except the name argument is now missing from the removeRow function
if you see that question I've posted
15:41
You 100% sure the index is going to be the same in initData?
in that question, after the sorting is done, the index is 'lost'
I need to 'find' and 'match' it so it can be deleted
ok, slow down. let's find this missing name argument first.
Where did that go?
You were right, I've deleted parameter name by mistake. Sorry about that :)
It's working now.. thanks for the patience ..
after you put that back, you should get a proper index
but Ben is right about you trusting an index for ANOTHER array.
15:43
@rlemon hey bud, just downloaded your dark theme... totally digging it so far. It's a lot for my eyes to adjust to..but good job
Why a named function over anonymous?
you get an index from retrievedData but use it for initData. Be very sure they are the in the same order.
@Luggage, well it is same at this point..
I have to do it this way, because I'm hardcoding the initData
so I have to go it in new array
I'll have to take your word for it, but it looks like a source of bugs at some point.
I agree, what would be an alternative, using localStorage of course?
15:45
No. unrelated.
He's not a realtor luggage jeez
you don't know that
We are just talking.. I'm still learning the JS, this isn't for any work or something like that..
just for learning
Just do the same thing, find the index
15:47
I've tried and after the first refresh works fine.. but after the second
if returns the hardcoded data, hence I used the new array
btw, now that you have come up with a working solution, I can give you some code to show you another way. the original answer:
var index = $scope.retrievedData.findIndex(function (obj) { return obj.firstName === name; });
that's an 'anonymous function' instead of your named function. The named function isn't wrong, but we often don't bother naming functions for thinks like this.
Understood.
zzz
i'm in such a habit of writing function () that i used that where i wanted to use an arrow
and it broke stuff
foreshame kevin
what did it break? 'this'?
15:54
well, i mean, this was still there
it just wasn't this
xD
but, it was this
this and that
I was just thinking, is it possible that soon enough we won't even see function in code anymore, because all we'll really need will be either method syntax ({ something() { ... } }) and λs?
I haven't written function in quite some time
@SterlingArcher CHARRRRGE!!!!
15:56
lol
well, the thing is, in most cases where you would use function (), you can directly use () =>.
the only cases where that isn't true is where you're relying on something else setting this for you, most of which can (and probably should) be avoided
such as using event.target in event handlers rather than this
I still write standalone top-level functions as named old-school functions
@rlemon Viola le Revelution!
is that joke intended @Luggage?
15:58
i think 'this' (for event.target) is only in jQuery, no?
@towc I don't think so...
I'll miss you when you're dead :P
user1596138
I can't believe these LG batteries are $15
user1596138
Need to buy a bunch for projects
yeesh sounds like a threat @towc 😋
better watch it @Luggage!
I dunno

« first day (2435 days earlier)      last day (2738 days later) »