« first day (4599 days earlier)      last day (571 days later) » 

00:24
@VLAZ 😂 these pictures
I’ll take 2 of those mugs
00:52
@ParkingMaster this is a well-known meme about working with CSS. Unfortunately, SE literally has this problem.
 
13 hours later…
13:51
Hi any expert in electron here? I am struck with one problem. I need it's not allowed electron but works in chrome
@jagapathi 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.
I have a http website which is opened in electron
Its has an https iframe which has SSO ( tries to check cookies to see logged in user)
This iframe won't work in electron but works in chrome. I see the problem is it's not sending the cookie in electron
14:09
@jagapathi I think I can call myself a professional.
Could you show me the code that performs that?
 
6 hours later…
20:12
How can we return number when the return signature is void?
type func = (x: number) => void;
const square: func = (x) => x * x;

console.log(square(2));
compile type checking does not prevent us from returning number. Bug?
20:32
In short: it's type-safe, since even if a void returning function is assigned a non-void function, you won't be able to use the result anyway. There is no break in the interface, nor any unintended side effects from not consuming the result.
Also, there is really no benefit from having a compilation error here. Can you think of anything that would be a real problem when you use this code? console.log(square(2)); won't actually compile, so that's not a real situation already.
Hmm, actually compiles. To be honest, not sure why. But also doesn't have any impact at runtime. At most, you'd get a 4 instead of the undefined you expected but...also, if you're logging the result of a void function - why?
21:02
@VLAZ great explanation. I’m usually to lazy to think what the OP is talking about and the desired result. +1
@VLAZ well, IIRC, void type is considered by the team as "I do not care about the return type whatsoever". It will compile - I'll try to dig up the issue, folks definitely asked about it before, and the response was that it is by design
I mean, I guess it's because console.log() accepts any and void is assignable. I expected it to be a compilation error but also I can see why it's not. In a properly typed application, that wouldn't really matters, as you wouldn't have any accepting things anyway.
The "not sure" was a shorthand for "I'm too lazy to explain it right now".
Thank you for your time thinking of it. :-)
@VLAZ yup, and given that console.log is supposed to be able to log undefined, null, etc, it's totally fine that the signature is defined with ...any[] (although it would be great if it was ...unknown[], but it's just a legacy issue)
@OlegValteriswithUkraine oh, nvm about digging up the issue, the FAQ is already linked
 
2 hours later…
22:51
@OlegValteriswithUkraine lol did you mean @OlegValteriswithUkraineFromThePast?
@OlegValteriswithUkraine you were referring to yourself but in the past
23:17
ah, that - just using it as a hack to string messages together
23:51
@VLAZ Hacking is strictly forbidden

« first day (4599 days earlier)      last day (571 days later) »