« first day (2762 days earlier)      last day (2409 days later) » 

12:00
Microsoft Office pack:
- Outlook
- PowerPoint
- Word
- Excel
- Malware
@Wietlol So... Malware?
> Office malware, I'm feeling old.
@Rob I am Steve Rogers
@SteveRogers I thought you were Madara Uchiha
well, I guess I was wrong
I am groot.
12:21
Can anyone tell me some interview questions you can ask over a video call?
or a telephonic interview...?
user9674579
He @Neil
@MadaraUchiha Quick, start grilling deostroll
huh, I just realized I don't think I've ever destructured with var
!!> var { PI } = Math; PI
@towc 3.141592653589793
it's alive
user9674579
12:31
@towc Shows error, doesn't work, why ?
user9674579
VM63:1 Uncaught TypeError: Cannot destructure property `PI` of 'undefined' or 'null'.
at <anonymous>:1:17
that's for your to figure out
google the error
@deostroll you can ask what is a scope and closure, if spread operator makes a deep copy of object, what is an advantage of using arrow function, what is difference between var, const and let
> explain the difference between array.map and array.forEach using hand gestures
cool sounds okay...
user9674579
12:34
viewing facebook webpage in console shows this ?

Stop!
JhNLNmAoEAp.js:206
This is a browser feature intended for developers. If someone told you to copy-paste something here to enable a Facebook feature or "hack" someone's account, it is a scam and will give them access to your Facebook account.
JhNLNmAoEAp.js:206
See facebook.com/selfxss for more information.
JhNLNmAoEAp.js:206
user9674579
why ?
@towc really you can do that over video call
@MasterDarkNight read it and you can find out
@deostroll I bet. Send mp4s
user9674579
@deostroll on a more serious note, you can ask them what are some libraries/frameworks they've worked with recently, and what are their criticisms of them
12:35
@MasterDarkNight everything you have written in this text, which word don't you understand?
ask for criticisms after you've asked what they are
@MasterDarkNight Because the facebook developers decided to print it there
user9674579
I want to know, how is the Stop! written in big letters ?
@deostroll that should give you plenty of insight into their thought processes, their skill, whether they're lying to you about their technical knowledge, how they'll act around bad parts of your own codebase, and so on
@MasterDarkNight google "formatting in js console"
user9674579
@towc Okay, thanks for tip
12:38
@MasterDarkNight In Chrome & Firefox (+31) you can add CSS in console.log messages
user9674579
@towc I think it is very hard to check during interview phone/skype call. For this mainly is a probation period. During interview you can try to check if basic skills and understanding of technologies in use is on required level
console.table is great
no, you are great
user9674579
@BenFortune Can you share the link for console.table I also want to see what it is
12:43
You can even put pictures in the log, I used to have the Miaou SVG logo, but the compatibility wasn't great (failed on FF) so I stopped to
thanks cap
user9674579
@BenFortune Does this also work on google and IE ?
the feeling when

$ grep --exclude-dir=node_modules/ -rnu let
$
user9674579
12:45
This is what I get on chrome ?

console.table("1","2")
VM80:1
undefined
@MasterDarkNight Have you even read how to use it?
user9674579
@towc neat
user9674579
Sorry my mistake
user9674579
12:47
But why does show, undefined in the line below table ? It's not shown here
we know it was
that's the return value of the expression
user9674579
@KendallFrey Okay, got it :)
has any1 used ClojureScript?
1 hev
user9674579
12:49
user9674579
For console.table
what's your point?
user9674579
Not supported every where :(
development stuff doesn't need to be supported everywhere
and I really hope your main dev env isn't IE
nodejs doesnt have .table natively doesnt it??
12:50
@George there are ways to find out
which do not involve asking an online community, and could give you a lot more insight
user9674579
@towc No, it's not my Dev env, it's chrome
@MasterDarkNight I honestly don't care
ah theres an npm module for it
user9674579
@George What do you want in ClojureScript
user9674579
@towc But you asked me, that's why I told you
12:52
I didn't ask you
just a company wants to interview me and then teach clojurescript to me
@George go for it
user9674579
@George Ohhh
not sure if i should specialize to clojurescript since i havent seen other companies use it
user9674579
ClojureScript :-

As the purveyors of some of the most complicated client-service web applications in use today, Google has invested heavily in creating the Closure library and Closure compiler which work together to make whole program optimization possible, yielding programs that provide minimal load times even when using many libraries.
12:53
clojurescript isn't very common, but there are plenty of jobs open for it, if you look for them
it's usually pretty well payed
What's your reason for considering Clojurescript?
I'd have wanted a company to teach me clojurescript
user9674579
Reason :-

ClojureScript combines the reach of the JavaScript platform, the flexibility and interactive development of Clojure, and the whole-program optimization of Google Closure to provide the most powerful language for programming the web.
yea but didnt google also create Dart?
that's got nothing to do with it
user9674579
12:54
link :- here
oh ok
user9674579
Clojure is a dynamic, general-purpose programming language supporting interactive development. Clojure is a functional programming language featuring a rich set of immutable, persistent data structures. As a dialect of Lisp, it has a code-as-data philosophy and a powerful macro system.
We can read the fucking page
@MasterDarkNight if you have nothing interesting to say, please shut up
Closure is still a thing?
user9674579
12:54
Okay, sorry
so basically it compiles to efficient javascript?
i like functional style programming though
Sounds like towc's just back from work.
user9674579
ClojureScript is a compiler for Clojure that targets JavaScript. :- yes from the website page
it just transforms your clojure code to javascript
12:56
@towc don't be a dick
there can be some optimization done during the transform but the most optimization is done when the browser reads in the javascrip code ( JIT compiling )
also @MasterDarkNight please stop using your own :- notation, and transform it to proper english sentences
it worries me the extra build step would reduce productivity
@towc Take a break
12:57
@towc Where were you when towc was telling us all about his personal life? :P
that is a hollow argument
@George build steps are usually what increase productivity
look to TypeScript
oh right i suppose i need a faster laptop
it adds value to a proper project management when working with a large code base
12:57
@KendallFrey hey, it's not something you could have googled
thankfully
it still requires an additional build step but it does the job.
@KendallFrey well, you say that
@George You need a real computer
what is a real computer? :P
I have one in front of me. Is that real or not.
12:58
How Can Computers Be Real?
If our is aren't real
May 3 at 18:51, by Zirak
@rlemon nnnnnnnnnnnnnn do some stuff
nudge
do what?
see the convo
as long as it does the build automatically
13:00
the welcome message needs updated
so what do I need to do?
i need to learn this more i mean i dont like when it recompiles multiple times even whrn a delay is set
oh boy. I wish to have a condition step in a for in loop
like
for (const foo in myshizzle && keepGoing)
@rlemon idk, is the welcome message stored in localstorage or something?
@KarelG huh?
13:01
gotcha use the plain old for loop then
what is topic
😨@KarelG does break; not work for in loop ?
@Zeshan Welcome to the JavaScript chat! Please review the room 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.
@George no, keepGoing is the value being returned
@KarelG if perf isn't a big deal, you can do for (const foo in myshizzle) if (keepGoing) { ... }
13:02
no reason to continue the loop if there went something wrong. I just return false to indicate failure
the for and if on the same line
ha I like that
oh, or you can shortcircuit with array.some
which I recommend because functional and expressions and all
that way the loop will actually stop
HAMMERTIME!
alternatively, you can use the for...in with a break, instead of keepGoing
user9674579
13:03
@CapricaSix "BOT" is back ?
if that's the only condition
HAMMERTIME!
the fuck cap
added if (!keepGoing) break; at the end
oh, edit
13:04
@BenFortune edit
oh
oh
but really, I suggest using array.some
im confused. does break; exit the for in loop or not?
that is for assertions
not a collection containing job objects
@George I guess there's no easy way to test it
bad luck there
note the sarcasm
13:05
@George I would think so
you would have to do something like Object.entries(o).some to loop it as an array right?
@towc im on mobile rn
user9674579
can I ask something or I still have to shut up ?
7
and i dont have dev console or anything
@MasterDarkNight Yes
4
user9674579
@littlepootis I have to wait for tawc's answer because he told me to shut up
13:07
@George ok, fair enough
@MasterDarkNight is it important?
> tawc me baby one more time
could you figure the answer out without us, in say, less than 10 minutes?
user9674579
somewhat, similar to earlier questions though {:|)
if the answer is "yes", then please keep shutting up
user9674579
@towc okay :(
13:08
@towc That's not very welcoming
@towc I already asked you not to be a dick
user9674579
@BenFortune & @rlemon Don't worry, It's more than welcoming, I'll come back soon :)
@MasterDarkNight I mean no offense by this. Doing your own research is usually the best way to learn some of the stuff like this
you are getting too many free passes because you're a regular. we've kicked newbies for much much less.
can you explain what you considered rude, so I can improve my behaviour?
the wording of "shut up"?
13:10
Telling people to shut up is rude
user9674579
@towc Don't worry It's not rude for me :)
shut up towc
it is also the way of how you say it
soften the blow with a condescending smiley face
13:11
feel free to ask your question god damit dont ask
@BenFortune Oh, shut up ;)
did this room collect some flags again ?
cos bolt is here
See, I don't feel at all unwelcomed or hurt
on the clock
13:11
:(
I don't know, I consider "we can read the fucking website" to be ruder, but I didn't perceive either as rude
turn that frown upside down
@KarelG We pride ourselves of welcoming people from all different flags
@towc That's because you're rude
I'm open to that possibility
13:14
@Cereal gotcha use my handkerchief as a white flag
ok it is a bit dirty, but there is more white than other color
@KarelG Probably better if it wasn't completely white
My advice is to drop angular
user9674579
window.onbeforeunload not working on chrome, firefox, edge and IE :- but this shows that it is compatible with all browsers {W3schoools} and {question on SO} shows it's not ? why ?
@BenFortune drop angular? drop vue? drop jquery? what is there left to drop?
13:20
the bass
@BenFortune lol
huh, I'm getting plain out 400s on accessing gmail.com
@George not the beat?
nah bass
signs me out immediately
can anyone confirm?
13:21
beat drops are overrated, bass is where its at
user9674579
@towc What signs ?
please try to focus and understand the context before asking questions
@MasterDarkNight the question is 5 years old, so no longer accurate.
user9674579
But, the w3schools says it support all browsers ?
@towc could open and check my gmail account
13:23
@KarelG click on an email
still working?
1 message moved to Trash can
@makat Please don't post unformatted code - hit Ctrl+K before sending, use up-arrow to edit messages, and see the faq.
@MasterDarkNight I imagine it does.
yes but
oh wait, I am using mail.google.com
also, w3schools is not the best resource, you should use MDN
huh, works fine now
@KarelG that's fine. gmail just redirects to mail.google
13:24
would explain the bad request
user9674579
@rlemon okay, thanks
user1596138
Last day in a real office 😎
switching to working remotely :D?
Are you being shifted to a fake office?
it's a containerized office
user1596138
13:30
My new home office
just a dark room with a monitor, electricity, a laptop, wifi, and no physical means of escape
1 message moved to Trash can
@MasterDarkNight Please don't post unformatted code - hit Ctrl+K before sending, use up-arrow to edit messages, and see the faq. For posting large code blocks, use a paste site like gist.github.com, hastebin.com, pastie.org or a demo site like jsbin.com
Base32 is one of several base 32 transfer encodings using a 32-character subset of the twenty-six letters A–Z and ten digits 0–9. Primarily Base32 is used to encode binary data, but is able to encode binary text like ASCII. == Software == Base32 is a notation for encoding arbitrary byte data using a restricted set of symbols that can be conveniently used by humans and processed by computers. Base32 consists of a symbol set made up of 32 different characters, as well as an algorithm for encoding arbitrary sequences of 8-bit bytes into the Base32 alphabet. Because more than one 5-bit Base32 symbol...
> Crockford's Base32 -
Another alternative design for Base32 is created by Douglas Crockford, who proposes using additional characters for a checksum.[7] It excludes the letters I, L, and O to avoid confusion with digits. It also excludes the letter U to reduce the likelihood of accidental obscenity.
user9674579
Lastof = function Lastof ( LastOf, Last ) {
// if the LastOf variable is null ? change it to ""
LastOf = ( LastOf == null ) ? "" : LastOf
// if the Last variable is null ? change it to 0
Last = ( Last || 0 )
Buffer = 1000
isLast = 0
for ( LastCounter = Last ; LastCounter < Buffer ; LastCounter++ ) {
if ( !LastOf [ LastCounter ] ) {
isLast = 1
} else {
isLast = 0
break
}
}
return ( isLast )
}
Sizeof = function Sizeof ( SizeOf ) {
SizeOf = ( SizeOf == null ) ? "" : SizeOf
Size = 0
for ( Size = 0 ; Lastof ( SizeOf, Size ) == 0 ; Size++ ) { }
@MasterDarkNight ctrl + K is your friend
13:33
@Neil I don't get the U thing. When phrases randomly appear in the encoding?
flag-avoiding-edit
huh, I think he avoided cap because you can't send the same message consecutively in chat
neat actually
if i have a new Promise(), and I don't call reject or resolve, it will never be fulfilled, right?
user9674579
@Neil sorry but I'm not familiar with the chat text box and when ever I try to enter new line, it suddenly sends the post
for ex - new Promise((res, rej) => null)
will that be fulfilled with a value of null, or remain pending?
@MasterDarkNight read the what cap said
Oh, for fucks sake.
13:37
actually, why isn't the python format guide in cap's message?
@MasterDarkNight Shift + Enter for new line
user9674579
@littlepootis I know that but not much habituated
that's fine. Please take steps in habituating yourself
Me neither
1cent says this guy speaks italian better than english
user9674579
13:41
// Hi : I have a function in JS which will return the sizeof an array or a string
// it will return 0 for all other data types

Lastof = function Lastof ( LastOf, Last ) {
        // if the LastOf variable is null ? change it to ""
	LastOf = ( LastOf == null ) ? "" : LastOf
        // if the Last variable is null ? change it to 0
	Last = ( Last || 0 )
        // just a buffer to set max limit
	Buffer = 1000
        // check if the character is last or not :- currently not
	isLast = 0
	for ( LastCounter = Last ; LastCounter < Buffer ; LastCounter++ ) {
@johnmarinelli that will remain pending
you need to call resolve to resolve it
@rlemon thx
@MasterDarkNight please use let/const
not declaring variables leaks them to the global scope
user9674579
@rlemon It's just a rough code of my total code, that's why it's not good in syntax, if you want I can post the whole code which is in proper syntax
when you ask about code, avoid purposely putting errors in the code
because that's where our eyes go
13:44
that break without ; is giving me anxiety
user9674579
@rlemon That's what I want, how to cure that code
then remove all the errors you know are errors
and ask about the rest
user9674579
@rlemon I have errors , that's why I'm asking, what's the reason to ask without errors ?
please re-read what I said
user9674579
I didn't get it ?
13:46
why dont you just use array.length or string.length?
user9674579
@George I want to implement my own method :)
how do you write tests for something whose function is to get something from the network and create some output based on that?
in this case, it's getting some stuff using cheerio
user9674579
@towc what is cheerio ?
fake the network output?
@towc mock them
13:48
you got an "and" in there, which basically tells you that there's a chance that this should be 2 functions anyways
I'm thinking I can set up a webpage for that exact purpose, and actually make it go through the network, but then obviously changing something on the site would fail the tests
but yeah, mock the input
mocking the input would be reasonable
You shouldn't have one function that performs two unrelated actions.
@MasterDarkNight remove the errors you know are errors, so when I said you have a bunch of leaking globals, your answer was "ohh that's just in the mock code", well remove everything from the mock code we could possibly bitch about
then we can actually answer your question properly
13:49
the exposed interface only receives a URL as the parameter, and outputs stuff that it found on that url
@MasterDarkNight ok but are there any differences or is it an exact duplicate?
Does the interface do anything other than fetching the data?
user9674579
@George duplicate of what ?
part of the testing is also generating other urls from that urls, and then recursively get stuff from that
.length method
13:50
mocking the data might seem reasonable, but there's something very unelegant about it :/
or rather, I can't think of an elegant approach to do it
Write a mock server, then.
@towc it's a pretty standard practice to mock 3rd party apis for integration testing
@towc why dont you connect to the network inside the test
user9674579
@George I want a function similar to .length but my own implemention
@towc which part about it seems inelegant?
13:50
@littlepootis it takes in a URL, and looks for urls of website icons that are related to that url
nock makes it easy to mock HTTP responses github.com/node-nock/nock
I'm writing a websocket mock server right now .
@littlepootis oh, that might be pretty sweet actually
ok you said that but now you say similar, so what are the differences?
Worth every cent
13:52
I've never mispelled github that badly
@MadaraUchiha now, make it so that every link goes to friday or astley
also HOLY SHIT IT'S WEDNESDAY
... my dudes
wut
what has become of this chat
@MasterDarkNight legit question. do you want to count only certain values in the array?
@FilipDupanović that's pretty damn sweet
another promise question: await myPromise will block until either resolve or reject has been called?
13:57
yes
@johnmarinelli Correct.
yes it will block
well, block in that function
don't think it holds the process
@RoelvanUden oh then I totally have you confused with someone else sorry man
13:58
rlemon, how does that work? i thought it would block the process
b/c the single threaded nature of js and all
@johnmarinelli Block isn't the word I'd use
It pauses the function
But the event loop continues to run
i am off for a prolonged weekend
@MadaraUchiha whaaa. interesting. is there an article that goes into the implementation of this?
@johnmarinelli break it down to what it would be without async await
foo().then( val => {
  //
});
@johnmarinelli @BenjaminGruenbaum once implemented one during a talk about it
It's like 7 or 8 lines to implement with generators
13:59
so you wait till foo is done till you get to the body of the then
its probably sensible to create separate async functions if they dont rely on eachother, otherwise multiple awaits would be slower

« first day (2762 days earlier)      last day (2409 days later) »