« first day (3865 days earlier)      last day (1066 days later) » 

3:05 AM
Anyone implemented Apple sign in on a web app?
Its not clear whether or not your domain needs unique keys generated or not or whether you can just plug in the script they got here
Just wondering if anyone has experience with it. If not no worries
So vague. The google auto sign in API was much more explicit
How do people even code with those flimsy little keyboards anyway?
Swear you need to be a billionaire to become an iOS developer
$3000 dollar laptops
"ouu when I copy something on my phone, I can paste it on my laptop"
pretentious
Sorry, its getting late
 
user15300490
3:34 AM
Hi guys, I know this is a JS chatroom but a fellow CS student is need of some advice. I am big dilemma choosing between 2 classes: data visualization and programming languages. Data vis teaches JavaScript while PL teaches Haskell. From a practical standpoint, JS seems a lot more useful in the industry but I've also heard that learning functional and Haskell will make me a better programmer, be able to crack coding interviews etc. Any advice for me?
 
@amnesic Welcome to the JavaScript chat! Please review the room rules. If you have a question, just post it, and if anyone's free and interested they'll help. If you want to report an abusive user or a problem in this room, visit our meta.
 
4:07 AM
@amnesic I wouldn't worry about the language. Look at the course description and see which ones interest you more.
@lovgrandma Baseline M1 MBA is $999 ($899 for education) and will run circles around other PCs for the same price.
 
 
1 hour later…
5:24 AM
Object constructor is a function, right? Then it must have derived its prototype from the Function.prototype, then why is that MDN says:"Every Function constructor is derived from Object constructor."? Do I understand the term "derived from" the wrong way? Or I'm mistaken on something else?
 
 
3 hours later…
8:42 AM
Hi, since i'm using ant design in react and working on testing a select component
i saw in ant code they are using rc-select
var _rcSelect = _interopRequireWildcard(require("rc-select"));
i'm trying to change the value on it
await waitFor(() =>
			fireEvent.change(document.querySelector('[name="paymentType"]'), {
				target: { value: 'DP' }
			})
		);

		expect(document.querySelector('[name="paymentType"]')).toHaveValue('DP');
do i need to mock the select using jest.mock ?
 
 
8 hours later…
4:59 PM
@aderchox because functions are objects
ish
 
@FélixGagnon-Grenier I know and that's completely right, but when we do "new Object()" the new object's prototype must inherit from Function.prototype because Object is a function.
 
@aderchox can you link to the context in which MDN says that?
 
Sorry I was wrong. Thank you.
@FélixGagnon-Grenier Yes, a moment
But as I said I was wrong, Object is a function, but new doesn't give a function. I confused things. Thank you.
Prototypes are new to me, but very interesting that they can cover classes completely too. Nice.
 
5:18 PM
@aderchox To your defense, it is staggeringly easy to confuse Object, JavaScript's global data-with-behaviour structural type, with Object, JavaScript's default representation of such a structure.
map = new Map    // Map(0) {}
typeof map       // "object"
obj = new Object // {}
typeof obj       // "object"
... that was hard to format
 
@FélixGagnon-Grenier You've written both with capital O. I don't understand which is which TBH.
 
5:33 PM
What I know is that "object" is the primitive data type that is the most essential data type in JavaScript and then "Object" is a constructor that gives values of the "object" type.
 
 
2 hours later…
7:55 PM
hello can someone tell me what await does in this context
async function counter() {

	let cdict = await getusers();

  // do lines below get executed before getusers() finishes??
	console.log("counter", cdict);
	for (let i = cbegin; i < cbegin+ccount; i++) {
		await sleep(300);
		// do some stuff
	}
	return cdict;
}
Do lines below the first line get executed before getusers()? Is it possible for that to happen?
how do i ensure that everything in this function gets executed after getusers() executes??
 
8:24 PM
javascript is so confusing QwQ
 
8:37 PM
@jeea No, await.. "awaits" for the execution of getusers, that is an asynchronous function. The lines will still be executed in the order you see them
 
@DomenicoDeFelice Welcome to the JavaScript chat! Please review the room rules. If you have a question, just post it, and if anyone's free and interested they'll help. If you want to report an abusive user or a problem in this room, visit our meta.
 
It's not a JavaScript concept, other languages use the async/await constructs
 
@DomenicoDeFelice yes thank you I found it after some hours
@DomenicoDeFelice what are other languages that use this, i mean any common language?
 
It is actually less confusing of the callback hell you could get into, before async/await was introduced
HackLang (an evolution of PHP) uses async/await
even Python can use async/await
 
yes I read about that callback thing, it seems like a mess
 
8:40 PM
There are three main ways to execute async code. Callbacks, Promises and async/await. I think async/await is the most straightforward, as it make it seem like it's just normal synchronous code
 
i will remeber that!
 
When you "await", the execution of your code is "suspended", waiting for the asynchronous operation (e.g. a database call, a server request, etc) to complete. Once the async operation is complete, the execution resumes right after your await.
 
yes I think I am used to sequential execution used in simple languages like C so async await will be simpler to go with
 
 
1 hour later…
10:05 PM
I need a help. Here is my question : stackoverflow.com/questions/67561809/…
 
@TonyBrand Welcome to the JavaScript chat! Please review the room rules. If you have a question, just post it, and if anyone's free and interested they'll help. If you want to report an abusive user or a problem in this room, visit our meta.
 

« first day (3865 days earlier)      last day (1066 days later) »