« first day (2470 days earlier)      last day (2703 days later) » 

00:02
Use const instead of let, as you're not reassigning
and if you are reassigning, refactor it out and use const anyways :P
What are these chats for? I've never been in one.
@NetherGranite Welcome to the JavaScript chat! Please review the room rules. Pleasedon'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.
@NetherGranite Mostly we discuss 2D survival and sandbox games, but theoretically we also know Javascript.
00:07
Oh okay that's cool
there's also a lot of kerbal space program
a...lot
most of it coming from @KendallFrey xD
I play KSP like a survival game and lose, often.
KSP is the opposite of a survival game
Do you guys frequent this chat?
frequently
00:09
i think some people live here
pretty much
dammit, they updated the sinon types and broke my spy(foo.method, foo.method.name) trick
I am interested, deeply, in how a US customs agent will react when he/she reads this chat, I'm looking at you @KendallFrey
now it's a keyof T type
@Shrek I don't normally show them, why?
00:13
I'll be crossing US border, I am supposed to tell them everything
lol
they won't let you in if you bore them with your life story
no no, what kind of social websites I use, well I use this chat
and that's pretty much it :/
SO is more of a professional resource
nah they're waiting in anticipation for a long and drawn out discussion on monadic laws
mention big data or something, tech terms, their eyes will gloss over
00:15
@derp I'VE GO NO PLACE ELSE TO GO
@monners, we know that the real monners died years ago and his consciousness has been transferred to a chatbot
@derp All hail our lord and master Zirak
i need a nap
i need a new job
well, strap on your job helmet, squeeze down into a job cannon, and fire yourself off into job land.
00:24
where the jobs grow on job trees?
i was hoping to go to the job store and get one off the buy one get one free bargain bin
those are never good jobs
hey what's a good resource to quickly learn c#/.net
what do you want to do with it?
I wanted to learn EF and MVC so I used this docs.microsoft.com/en-us/aspnet/mvc/overview/getting-started/…
need to ramp up quickly to go onto a project implementing Sitefinity
00:29
might be out of date now
hmm thanks, i'll check it out
I was doing VB.NET and found it very easy to move to C#
i'll be coming from js/java
but, they're related. I could search for a VB function in the MSDN and change the tab to C# and see the same code
their use of capatilisation still causes my eye to twitch
00:31
C# is like Java, but better in every way
hmm could you expand on that @ssube?
I did Java at uni. It was horrible. But it was uni, so who knows if it's any good in the real world.
it's very much based on Java, with 20 years of experience in Java's mistakes: type erasure, lack of first class functions, etc.
I found C# to be a good language to get things done quickly
That's where LINQ and lambdas came from, why the CLR has such good typing, etc.
00:32
helped me move to js a lot faster
can i think of lambdas as js fat arrows?
yeah. C# doesn't mess with this like JS does
hmm, its starting to look good
damn i may need to start hanging out in the c# room soon after this
their naming conventions are a little weird, I agree
the language is great otherwise
their primitives all extend object?
and everything except variables are capitals right?
00:40
yes and yes
thanks
The primitives like int don't extend object, but they have an object counterpart.
(e.g. Integer)
the boxing behaves much like Java and JS, iirc
@Luggage, "All C# types, including primitive types such as int and double, inherit from a single root object type."
im confused
me too
00:48
so if you try and access object methods on a priimitve, it'll autobox it first?
the way i understand it is that all primitives extend object :/
yea, maybe they do.
@derp at some level they simply can't, because they have to exist in memory
whether you can ever see them, I don't know
yea, they do map to real cpu primitives closely
they're magic
Microsoft Magic
only ruby can do magic, that's what makes it evil
00:50
the may inherit from struct
Steve Balmer sold his soul to the devil for the developers, developers, developers
ahahhaa the world's sweatiest billionaire
morn
01:00
@Tavo every time I see you, I see the word "morn"
what is up with that
developers
@Arrow morn, short for 'morning'. Is what I say when I get into the office
are you in mourning? is that what morn means?
O I see, cool top of the morning to you too. :)
I can change it to 'hi' if it makes it easier for you :P
now I know sooo....
However, I am also not hip.
So I don't keep up with the latest acro-trends
01:03
oh gawd there was someone in the previous office that used "are you winning?" as a form of a greeting
@Arrow neither do I. But I thought 'morn' was a regular thing. Maybe only in the UK... shrugs
come to think about it, the culture of that place was quite zero summy
those are the people you make eye contact with and then say nothing
maintain eye contact as they try to come up with another sports fan style catch phrase
That seems like verbal hostage taking. An Intoragative hello
totally agree
my immediate thought was "what? i wasn't aware i was playing"
01:06
"I won years ago. It's cute that you still think you have a chance"
Then take the coffee out of their hands and walk away sipping it.
a reply like that...you'll definitely fit in
not for me though
brogramming
why, are you not winning?
if i'm winning...who's losing?
they are
The best answer is usually a slight smile, and a cold take away, by makeing it short lived. like you pity them.
01:08
are you talking about 'they' as in the other people who's skills and expertise we rely on to deliver?
I prefer surprise leading into disgust. Arrogance in return only encourages them.
hahaha i like that approach @Arrow
yea, people love to be pitied. That's a much better plan.
A K
A K
anyone want to play overwatch
is that one of them computerized games?
A K
A K
01:10
yarp
this rimworld-without-a-steel-supply business is getting fun
@ssube you just described early japan xD
they seemed to do okay
well except for the getting nuked twice bit
yeah, my colony is also fairly warlike, but more sensible
that';s how it starts
then BAM civil war for like 150 years
well, there's a tribe of slavers nearby, they keep escaping and joining my team, and then a dozen doods with clubs and spears will come running after them
01:12
Does part time job for 30 hours a week with full benefits sound good?
on the other side is a bunch of pirate outposts and they're much more dangerous, but a steady supply of guns
@Arrow where?
Well it's a private invite thing by AM
@AK extra history also have a fascinating series on the sengoku jidai period
01:17
because their average turnover is something like 18 months
it's an astoundingly bad number
O, so they are bad, like really bad
not entirely. Burn out isn't always an organizational problem, just almost always.
They treat employees like trash, they have this stupid bell curve where they put your picture up on a huge board
oh, I know a number of people who have turned down offers there
performance evaluations are brutal from what I hear
01:25
ship my laptop, you lazy bastards.
I turned down an interview with Facebook
why?
my team was in town all week and we spent most of it trying to make a case for P51s
i'm so over the p51s.
I thought they were too big for me not to get a job with them
01:26
but that 64GB ECC
I want a server in my backpack
dual core
64gb is nice.
i can only do 32
I did not want risk failure with a company like Facebook
that's quitter talk
risk failure? It's a choice, not a chance
you are saying I should take the interview.
01:27
No harm in taking it
why not?
Choice, what do you mean by choice
The absolute worst case is you find out what an interview at facebook is like.
they are a big name. I have never interviewed with one of the big players
I'm pretty happy staying away from that. I don't need to spend that much time in Jira.
@Arrow I failed an interview with them a couple of months ago
01:29
I'll just get their DevOps certs instead. :D
I also failed Microsoft and Palantir
facebook has devops certs?
and they use jira?!
A K
A K
arrow, rememebr that island counter algorithm i gave you?
Well, AWS does and they're the big big player here.
01:29
@BadgerCat was it mostly theoretical or practical
Target tries to compete, Best Buy has lost, but AWS Chicago has an office here now.
@BadgerCat isn't Palantir a government spyware company?
@Arrow It's always a live coding interview, you share something like google docs and ask you to code there
you mean compete for area talent?
@ssube yeah
@Luggage yep
@BadgerCat gross :(
don't work for bad guys
01:31
I'm not going to :P
good :D
O, I will do well on that. change a string or something ... like that
are you still looking for contract and stuff, @BadgerCat?
@Arrow More complicated than that
like what?
01:31
@Arrow don't call things gay
@ssube No, I'm never looking, they come to me
you have to change TWO strings.
@BadgerCat well, we've got a few openings for data science engineers, if you're interested.
I'm think it's mostly full time, but remote, not sure about international stuff.
@Arrow If you decide to interview for them, go to leetcode.com and buy the subscription for one month, do all the problems tagged with "facebook" and I mean all of them.
A K
A K
a buddy of mine interviwed at facebook and had a variation of that island counter problem i told you about
01:33
You will 70% get the job if you do that
But the code exercises are to get you to the second interview where you white board.
@ssube I'm already working for 2 companies right now, but thanks
she's playing them off of each other.
I should hope so
how do you search for the Facebook problems ?
01:37
@Arrow you need a subscription for that
The one I got was #286
35bucks!! a month. Is this better than hackerRank
Get it for one month only and copy all the problems tagged facebook
Omg you are a Genius Facebook is so stupid for passing you up
I don't know if it's better, but at least for facebook you get the exact same problems
@Arrow Find someone who's already subscribed, ask to scrape all problems.
01:40
I wish I had saved them when I had a subscription
Well, @littlepootis I would have to know someone who uses the site.
Well, yeah, sucks.
If you scrape them, make it available for the room
But, if I do that won't someone from face book see my post?
When you accept to take the interview they send you an e-mail telling you to practice on leetcode
01:43
The React license states I must report you.
Omg look, Luggage is already threatening to rate me out.
BSD 3-clause?
don't want to lose react. You understand
@littlepootis wouldn't it be 4?
01:45
right, the "rat people out or lose react" part is in clause 4 :)
It's in the secret markdown.
And he will, you think he trolling, but he will literally write a letter put some bull from the Rect license that has nothing to do with what I post, and flag my SO account to the face book guys on here
*rat
That is a level of interview I have not experienced.
01:49
Sounds like F.. or N.. agency style.
The guy is a direct recruiter from fb
Ugh, stupid self-taming animals. You can't just join up to have my food.
@ssube cats?
Look how @Luggage is also bitter because Facebook doesn't want him. He will take it out on me
01:50
Muffalo?
The noble muffalo.
Our cat pooped again in the sink :(
Rimworld, uh
@Luggage I'm just messing :)
you can't cow me, son.
01:54
lol, my colonists decided to throw a party right as a thunderstorm hit, so they had to run outside and put out a fire
i'm sure there's a devops analogy there
02:13
That muffalo looks so done with your shit
There are two kinds of javascript programmers: ...and those who don't. Those who understand asynchronous code... — Gerardo Furtado 3 mins ago
there are two types of programmers, those who understand recursion, there are two types of programmers, those who understand recursion there are two types of programmers, those who understand recursion there are two types of programmers, those who understand recursion, ...
call stack exceeded...go home and cry
@SterlingArcher that makes two of us, but at least it's doing ok
plus I finally have a steel supply, now that I have deep drilling.
why not just start in the mountains?
so much steel
the river/road combo lets me get around
wouldnt iron be in the mountains
02:19
there's no iron in the game
which game
@hsimah rimworld
my work blocks games, could you give me a synopsis of what it is?
i wont remember to google it when I get home
colony simulator. You assign jobs, the pawns do them. Looks like Prison Architect, simpler than Dwarf Fortress.
the AI tries to wreck it
ah
how do I get it? steam?
02:26
yeah
yup
Dwarf Fortres/s is free and much better.
02:44
My best farmer just died from a heart attack :(
Now her wolf cabootle is in a mental daze
what about her kitten?
no kitten, but she almost bonded with the panther
I almost missed the first d in bonded
Which doesn't change much now that I think of it
I think large predators are the one place where rule 34 doesn't apply
and maybe volcanoes
rule 34 always applies
03:13
@littlepootis ohhh shiiit
shots fired
Hi guys, weird question...can we unbind a function (i.e. remove the context - or actually reset the context) which was bound by calling its Function.prototype.bind()?
don't think so
Ace
Ace
good afternoon
you get woof twice
04:04
Ace
Ace
get out
@ChenJian Welcome to the JavaScript chat! Please review the room rules. Pleasedon'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.
 
1 hour later…
05:15
var obj = {
	name:"",
  age:"",
  marks:[{sub1:""},{sub1:""}]
}
when i want to dynamically add new objects into marks i can use push
var objWithoutArray = {
	name:"",
  age:"",
  marks:{
  	{sub1:""}
    {sub1:""}
  }
}
how do i create new objects when i dont use array and want to create new objects to marks with same property name
sub1
05:30
Object.assign probably, what that would do is take in a base object and another object
and then return a new object with the properties of the second object merged with the base object
0
Q: how to pass textbox value to edit function in javascript

Ivin RajWhy textbox value is not called while onclick javacript function . $(document).ready(function () { $("input#btnEditExperience").click(function () { //$(".errorMsgTitle").show(); //$(".errorEditTitle").show(); var id = $(this).attr("name"); var hospitalname = jQuery('[i...

\o morning
@derp um like this? objWithoutArray.marks = Object.assign(objWithoutArray.marks, {sub1:""})
that should work
ok thanks
05:37
but you know...try it yourself first
you mean without Object.assign()?
with Object.assign, to see if the result is what you want it to be
A K
A K
object.assign makes a shallow copy
let obj = {
 name: 'Michael'
}

let copy = Object.assign({}, obj, {
 age: 65
});

console.log(a) // { name: 'Michael' }
console.log(copy) // { name: 'Michael', age: 65 }
A K
A K
05:44
first parameter is the object you're copying values to, 2nd parameter is the object that you're copying, third parameter is the additional props or changes youre making
i hope that clears it up
morning room
A K
A K
it's very useful for dealing with immutable data because you don't want to mutate your data in many cases
pop quiz, what's the difference between object.assign and object.create?
no googling
i'm a terrible programmer and i should feel bad
A K
A K
why? you have a job and you know more than me
i'm trash and i'll never get anything or amount to anything
you uhh...need a hug?
A K
A K
05:51
i kind of do
don't worry, it'll be okay
A K
A K
i dont know; ive been looking for 1.5 years; and i wish i never got into programming
i frequent suicide chat rooms now
that's a long time
A K
A K
the worst part, i only had 4 onsites
could it be the geographical region? i know a lot of programmers who would struggle to write the code you just wrote
A K
A K
05:54
i feel like it is,
SF is extremely unforgiving to "new devs"
i dont get tested on that stuff though
nobody asks me under the hood stuff, liek React, React-Native, Node, random shit
instead, they ask, how long did you work; where did you wor
are these junior positions? 0.0
A K
A K
not even intern positions will respond back to me
everything i know, i learned on my own or here in this chat room
have you tried making an end to end github project?
A K
A K
yes, i upload a fck ton of projets
i build blackjack on react native in 2 hours cuz i was really bored as shit
i had my 5th onsite yesterday, and i'm waiting to hear the rejection
and i feel like it's the tipping point; i cant stop thinking about suicide at this point
@AK dude you're awesome. dont give up.. answer more questions on SO and get your rep high..maybe that'll help
sorry if that was dumb..but dont give up though
05:58
trust me on this, you can definitely code better than some "seniors" i've interviewed
A K
A K
https://hackernoon.com/es8-was-released-and-here-are-its-main-new-features-ee9c394adf66

I think it's the new features to es8

« first day (2470 days earlier)      last day (2703 days later) »