« first day (3433 days earlier)      last day (1737 days later) » 

14:00
aint no time to check what those vars are
Oy, Dodo code
integers? string?
ew
We use ESRI and it's all Dodo
and those little linting error is sooo annoying because I have to turn off the flag for that page
14:01
brb
(I'm talking about that little red things here and there)
.query("select[name='UserCode']") keh
at least not .query("select[name='${UserCode}']")
jesus, people still use dojo?
legacy code
I try to convert it to vanillaJS whenever I can
but that's not the only lib
there are also jQuery and MooTools here and there.
sometimes all of 3 on a single page
😂
14:21
We need something that transforms any lib code to a AST and then can output in any framework or Vanilla
^ build that and you've conquered the world
Maybe not an AST but some kind of abstract tree
I feel like the js world has conquered harder things than that
Tay
Tay
cringe.
I did my class presentation
and the video audio wasnt working
and I had this chatroom open in the hdmi cable..
mega cringe, I feel exposed
Hi guys, This might be very Easy but I'm trying to Duplicate the variable value.
say A=01
i'm trying to duplicate ( not reference ) this value into B
const B = Object.assign(A);
returns // String {"01"}
how can i get it to return just 01?
imagine the teacher saw the url and decided to pass it to the IT dept to add it to the list 😁
@diamond strings are immutable
14:36
@Tay did you just expose my multimillion dollar idea to a classroom of 14 year olds
@KarelG yes but that means the value of B is String {"01"}
i want it to be just 01
strings are objects
Tay
Tay
On accident JBis
only for 2 sec
then I pulled HDMI
no one commented that I was programming on the smartboard
lol
if someone steals it i'm suing you
@diamond don't use object.assign?
14:38
@Tay Do you think your classmates will mind that you had a chat open?
it is just const B = A; that you need to do
Tay
Tay
@GNi33 I think they were too busy on tik tok :L
probably
Tay
Tay
Teacher let em use tik tok for our presentation videos
yeahhhh... didnt look so good
so no need to feel bad
Tay
Tay
14:40
they basically just danced and played rap :P
stupid zoomers and their clock apps
Tay
Tay
LOL
Im a zoomer tho :L
god, I hate TikTok
Tay
Tay
But I dont have clock apps
I have plague inc and thats it
I like infecting the world, and surfing youtube, otherwise, phone isnt that useful
that app is just a big "YOU ARE OLD" sign to me
14:41
Is that because you don't have any friends?
tried TikTok
Does any one have any experience building web apps?
now that's a broad question
seems okayish but it required too many access to my comfortable feeling
Tay
Tay
TikTok is basically the incarnation of passionate hatred towards having a reason to even live.
14:42
@MyWrathAcademia I do. You should probably specify the language though
so deleted it
I lowkey like it because it has vine energy
Tay
Tay
Eugh
If so, what's the best tutorial to learn how to build webapps, quickly?
well, I hated vine for the same reason
Tay
Tay
14:42
ben... no
Stop
HAMMERTIME!
Tay
Tay
Shoosh boot bot
I can build it using JavaScript, Java or C#.
@MyWrathAcademia seriously, with that broad of a question, google will give you better answers
Tay
Tay
|| learn quiet :(
14:43
quiet has been added
Tay
Tay
|| quiet
@MyWrathAcademia I don't know if I ever found a single tutorial that taught me everything
Tay
Tay
Thanks
!!ban tay
14:43
@BenFortune tay has been banned
Tay
Tay
:(
@Tay You have been banned.
Tay
Tay
lol
|| unbanTay
or was that deleted
get a good understanding of how html works, then javascript, then ajax, and from there, write a vanilla clientside that works
Tay
Tay
damn its gone
14:44
later you can start using frameworks that optimize this for you
@Neil Good point but I'm hoping if find one that does so that I don't have to keep jumping between tutorials.
@Neil Why can't I jump straight into a framework like Angular?
@MyWrathAcademia Eh, there's no single tutorial for building webapps, it depends on the context and purpose
You're very more than likely going to be jumping through tutorials
@diamond grab a pen and paper and write all assignments there
it's ... normal behavior
@MyWrathAcademia well you could I suppose, but then you'd only be able to use Angular for the rest of your life
@Tay thats so bad
14:46
@MyWrathAcademia there are tutorial series where you build a clone of a specific web app, maybe thats something you're looking for
it's easier to learn the basics then add on top
Neil, was looking at your profile pic. That darn cat with the rodent on its head is so cute. Is that your cat?
@Alex nope :)
That's an example using php, ajax, and jQuery for starters
I'm a cat person
TikTok should be banned from the app store
14:47
ignore the php part, we don't care about that
@JBis How else will our Chinese overlords harvest our data?
Tay
Tay
aH SHIT
-.-
Tay
Tay
Wait... why caps lock...
@BenFortune they won't. that's american companies job's.
14:48
@KarelG i do that already , I'm just dealing with a problem were right before i call for a certain function the variable changes for some reason to its previous state , so weird

so I'm trying to make a constant as a debugging step just to track back why it's behaving this way.
just use const by default.
only alter if the variable is being changed within the same scope
I hate tiktok with a passion
it represents everything i hate
Tay
Tay
^
I wish tiktok would just die in a fiery massacre like vine
It needs to end
Forever
Never Again
And you know who I blame?
Tay
Tay
T_T Im generally curious
14:51
Tay
Tay
Image not found, who is it
‾_‾
jack dorsey
Man, I hope when you kids grow up you include your stack overflow accounts on your resume. This xenophobic garbage just isn't cool.
cause he shutdown vine which created an opening for TikTok
@Trasiva How is this xenophobic?
> in fact ban all Chinese companies from creating apps on the american app store
Tay
Tay
14:53
iYes
America isn't all that and a bag of chips son. You'd be amazed how many of your favorite apps aren't being made here in the US.
Tay
Tay
Trasiva
@Trasiva Ok, let me explain before I get a couple flags.
Tay
Tay
None of the apps I give a shit about are out of america :)
Apps? What about the electronics the apps run on?
Tay
Tay
14:54
American built iphones only please
@Tay What phone do you have?
Tay
Tay
Iphone 8
Oh boy
Yea...
Mate
@Trasiva First off, I am anti - Chinese government. I have nothing against the people. The issue is, more often than not the companies are entangled and controlled with the government.
14:55
That's built in asia.
Tay
Tay
|| shrug
Yeah thanks ben
Built in China specifically. You know, where they put suicide nets outside the windows so people can't jump out and die anymore.
the difference is while iPhones (and many other things) are built in china, the company is not chinese
Because that's soooo much better xD
@Trasiva does that make sense?
14:56
*laughs in european*
@Cerbrus it is
Ya know, Amazon just opened their .nl domain
Amazon is gonna screw over our local industry
Yay Americans :D
I get your concern, but that doesn't mean you can't just do your due diligence on the apps you're downloading and not just make a blanket statement.
@Trasiva i'm not the issue, its my fellow stupid americans
You're talking about enabling a slippery slope that sets a terrible precedence
So? Don't protect the stupid. Play stupid games, win stupid prizes.
14:58
(Well it would be part of my plan of completely boycotting china)
@JBis Good luck
Tay
Tay
I̅ _ I̅
It'll never happen, but I can hope!
Good grief kid. Stop drinking the ultra conservative kool-aid and learn to think for yourself.
@Trasiva a terrible precedent that we shouldn't put people into concentration camps?
14:59
Godwin's law! Ding ding ding!
@Cerbrus I was waiting for that
@Cerbrus too early
@JBis looks like your post got flag-deleted...
I mean, considering
owo what's this
drama in my chatroom? 🍿
15:02
uwu
owo
nothing to see here, please keep chatting
Right, so back to china...
Chinese Drama shows are pretty great
Tay
Tay
Uṃ̣̣̣̣̣̣̣̣̣̣̣̣̣̣̣̣̣̣̣̣̣̣̣̣̣̣̣̣̣̣̣̣̣̣̣̣̣̣̣̣̣̣̣̣̣̣̣̣̣̣̣̣̣̣̣̣̣̣̣̣̣̣̣̣̣̣̣̣̣̣̣̣̣̣
I think not
Drama shows are what I call...
welḷ̣̣... ̣̣̣̣̣̣̣Ụ̣̣ṇ̣̣̣foṛtunatẹḷỵ̣ ̣̣̣̣Boring ̣̣̣to ̣a ̣̣̣̣Sciẹntific ̣Poiṇt ̣
not really
also stop doing that fucky stuff with that text, its annoying lol
Tay
Tay
15:06
What?
ah, shet, Im using diacritic marks for a project
I actually saw diacritics in code once
the code had diacritic comments
to increase the size of the file on purpose...
like these sorts of things:
/*
𝅭𝅭𝅭𝅭𝅭𝅭𝅭𝅭𝅭𝅭𝅭𝅭𝅭𝅭𝅭𝅭𝅭𝅭𝅭𝅭𝅭𝅭𝅭𝅭𝅭𝅭𝅭𝅭𝅭𝅭𝅭𝅭𝅭𝅭𝅭𝅭𝅭𝅭𝅭𝅭𝅭𝅭𝅭𝅭𝅭𝅭𝅭𝅭𝅭𝅭𝅭𝅭𝅭𝅭𝅭𝅭𝅭𝅭𝅭𝅭𝅭𝅭𝅭𝅭𝅭𝅭𝅭𝅭𝅭𝅭𝅭𝅭𝅭𝅭𝅭𝅭𝅭𝅭𝅭𝅭𝅭𝅭𝅭𝅭𝅭𝅭𝅭𝅭𝅭𝅭𝅭𝅭𝅭𝅭𝅭𝅭𝅭𝅭𝅭𝅭𝅭𝅭𝅭𝅭𝅭𝅭𝅭𝅭𝅭𝅭𝅭𝅭𝅭𝅭𝅭𝅭𝅭𝅭𝅭𝅭𝅭𝅭𝅭𝅭𝅭𝅭𝅭𝅭𝅭𝅭𝅭𝅭𝅭𝅭𝅭𝅭𝅭𝅭𝅭𝅭𝅭𝅭𝅭𝅭𝅭𝅭𝅭𝅭𝅭𝅭𝅭𝅭𝅭𝅭𝅭𝅭𝅭𝅭𝅭𝅭𝅭𝅭𝅭𝅭𝅭𝅭𝅭𝅭𝅭𝅭𝅭𝅭𝅭𝅭𝅭𝅭𝅭𝅭𝅭𝅭𝅭𝅭𝅭𝅭𝅭𝅭𝅭𝅭𝅭𝅭𝅭𝅭𝅭𝅭𝅭𝅭𝅭𝅭𝅭𝅭
*/
Just a visual trick after all, but still, it works I guess, though, idk why youd want that
Cant think of a reason youd want a file with a very large or custom byte size
Tim
Tim
yo kevin
They're probably just comments
Tay
Tay
Cereal
Theres 200 characters in the dot btw
800 bytes
its def for some use
but idk why
who cares
Tay
Tay
15:18
Idk, I was just curious
15:32
@Cerbrus For the record: China putting minority Muslims in 'concentration camps,' U.S. says, UK calls for UN access to Chinese detention camps in Xinjiang, and I can pull 20+ more articles including some from the UN about the matter.
I will drop it there.
||unban tay
@BenFortune tay has been unban
yes, but that doesn't mean you can say dumb shit about the whole population of China, as a blanket statement
@Ikari this
I did not.
15:33
Also, not sure why you specifically ping me
38 mins ago, by JBis
@Trasiva First off, I am anti - Chinese government. I have nothing against the people. The issue is, more often than not the companies are entangled and controlled with the government.
"<Insert country name here> government is shit"
That's usually valid
Unless you're talking Belgium... They haven't had a government in god knows how long.
Something that doesn't exist can't be shit xD
@Cerbrus Not all governments are the same degree of "shit".
No, some are more equal than others
I'm gonna take a break from chat for a couple days
Goodbye all.
15:37
Right
15:48
!!slidepoop
Mar 13 '13 at 1:40, by rlemon
(Random Fact, when rlemon was 13 he pooped on a slide. he isn't proud of it, but he felt it was time to confess. I'm sorry slide.)
Hah!
I got a case of of the giggles when reading a solemn letter in front of a group. Wow. "Think unfunny thoughts" I told myself the whole time
To the crowd it looked as if I was crying
Trying to contain the explosive laughter
Stifling a laugh in a serious situation is the worst kind of torture
Tell me about it. Some word in the letter was in a foreign lang and it struck my funnybone
Oh, I died
Tay
Tay
Alex what was it
16:02
It's been so long hard to remember the word
Tay
Tay
ah alright
Laughter is the best med
Tay
Tay
ive never laughed at the wrong time, but ive def felt the wrong feelings for things, its strange
My brother and I were poor as dirt. We'd crack each other up and still do.
To laugh at cruelty, prejudice, hate, takes the power away from them
When there's no justice, that's all you can do
Tay
Tay
Ive created one of the wierdest drawing tools...
16:05
Laugh til you have tears in your eyes
Tay
Tay
Hit Line Draw
and try drawing
idek why I made it XD
@Alex Its happiness ma dude
Cool, Tay :)
Tay
Tay
If it heals ya its good
^ that
Love the tool. Psychedelic
Tay
Tay
Ya know what, that line drawing tool reminds of of the Lasso Select feature in Paint.NET
Now I just gotta make it, so switching between tools ACTUALLY changes the tool :3
Ive sorta grown to liking digitally generated Graphics..
Idk why
im a long way from generating like Paintings or something like some people have done
but Ive come a ways too
user8729657
16:13
Dam I got served i.imgur.com/SzMakTE.jpg
what for
user8729657
Working bro
Illegal websites 😃
Tay
Tay
I wanna see images lol
user8729657
Someone complained about the work I was doing
Tay
Tay
16:16
what did ya do wrong? or was it just a case of competitive workplace
user8729657
It's complicated :/ lol
user8729657
A client is sueing me
Tay
Tay
jeez
Well, I hope ya win
user8729657
I didn't even receive the kash
user8729657
the bank kept it
Tay
Tay
16:25
rip
oh, I got color working on my project, still trying to figure out how to fully remove the event listeners, because it seems they are still "there"

When I use the drawing tool, and let go, it removes the events, and then if I click draw line, it doesnt work.

But when I start with draw line, it works, and when I click draw free, it works!.

Im assuming thats because the drawing tool accepts the second code in the free draw event that causes it to get the mouse position normally, basically making it a normal drawing tool again.
I did debug, and its still retaining the first event
I did test1 and test2 for each event, when I turn on Line Draw, it fires both
when Im clearing the events!
im utterly defeated again..
event handlers on what
Tay
Tay
on the canvas
cvs variable
I tried doing some research, and all I could find was this: https://www.sitepoint.com/create-one-time-events-javascript/

thats a useful snippet, but not for the solution
i mean
every time you click free draw it adds more handlers
This handler never gets removed, and just gets duplicated. over and over.
cvs.addEventListener("mousedown", e => {
Tay
Tay
16:42
I thought the whole point was for it to remove itself
after mouseup
Oh... wait
how can it remove itself?
Tay
Tay
I see what ya mean
The outer event..
it's an anonymous function
can't be removed
Tay
Tay
damn does that mean I have to make a named function inside of a named function
and remove both the outer and inner events ._.
or do event delegation
stop adding/removing events
decide what to do in the event depending on state
Tay
Tay
16:44
Im not sure how to use event delegation
Ive heard of it, but never thought much of it
bind an event to the parent, then do stuff when the event happens
I think you want to add an event listener once, and not worry about removing it, ever.
Tay
Tay
Um..
user that wouldnt work
yeah, no reason to do it on a parent in this case
the canvas is good enough
Tay
Tay
wdym
Im not doing it on a parent
It requires the onclick, the onclick event is what starts the drawing procedure, and then mousemove actually creates the drawing effect
16:47
What's weird is the mouse-up trying to unbind events. There's no reason for that.
it looks to me like the logic is... you click free draw, draw, then when you stop, you shouldn't be able to draw again till you click free draw again
it just doesn't work because you're not unbinding all of them.
but that's... a rather odd design
it should let you free draw till you choose another kind of draw
you shouldn't need to do any unbinding, and events should be able to be bound up front rather than on click of a draw type
Tay
Tay
I always thought that the main ones wouldnt be an issue because for some reason i thought theyd be overwritten
Im so wierd :P
Honestly this is ducktape and staples man, You guys know PERSONALLY that im terrible with events
There, I shortened the design a bit
Made the disabling event universal in the constructor
but, still confused as to how to switch them out every time I activate a different tool.
Either Ill have to put em in named functions and manually remove em with removeEventListener, or Ill have to find a different way
state.drawType = 'line';
if (state.drawType === 'line') draw line logic
Tay
Tay
Events listen to if statements?
well damn
this goes within your one singular event
Tay
Tay
16:57
alright.
unbinding and then rebinding the same kind of event just because you want to use different logic isn't good
Tay
Tay
yeah, I guess that makes sense
just use different logic without unbinding/rebinding.
@Tay This is what I'd suggest:
Bind your mouse down/up/move events once
Store additional state about what kind of drawing mode you're in, and whether the mouse is down or up, and decide in the mouse-move event what you should do based on that state
The event handlers just mutate that state, they don't bind/unbind/rebind themselves
basing it off of state makes it so much easier to work with
Tay
Tay
16:59
wow
hmm, that makes much more sense
Im just recycling my events wayy too much
when I dont have to
thanks for the help.
Ill be able to create the other tools based off of that
No problem
17:55
Good evening, quick question for react people. how do you load an image into a component dynamically, what is standard practice?
18:28
<img src="someimage.gif" />
@kobrazlobra 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.
sory i can not do enter... do any one know some about android studio ?
not i
18:37
:(oke thanks
what about android studio?
I worked with it a little for kotlin
19:35
so im in an AirB&B and just had a visit from the landlords father.....he is actually a mad professor i am sure of it
what do you mean?
insane?
like totally of the wall bonkers - wanted to check if the heating was working because hed suddenly become worried
Leave while you still can lol
20:00
Hello guys

I'm searching a way to get the geolocation inside a service worker

But I've found nothing, is totally impossible achieve this?
@ElliotWilliamson 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.
what have you tried?
i'd imagine all the normal ways of geolocating a user would be... doable, in one form or another, potentially by passing the information to the worker after obtaining it outside of it.
well, the way that I learned is using geolocation api, but this request user permission each time that I need the location. that not will work inside a service worker I guess
I need the geolocation for ask it to a user, then send that data to another user who request the latitude and longitude
But I need that works even if the user from I get the coordinates has not the browser open
The way I make the coordinates solicitude is with a push message which awakes the service worker
20:29
@KevinB shockingly, I tried that. get a 200 status code, but the image isn't loaded.
20:45
well, at the end of the day, react just puts elements into the dom. so.... if the image isn't loading, you should be able to look at the current state of the dom to see what is currently being rendered
 let global;
  items.forEach(element => {
      global = element;
      console.log("Inide the loop: ", element);
});
  console.log("Outside the loop ", global);
How come it iterates through All the items inside the loop?
But outside the loop it only logs one item of the array
uhm.
what
> But outside the loop it only logs one item of the array
at any given point in time, global never holds more than one value
Okay, so in the "items" array I have two indexes.....
global = element; replaces the current value of global with a new value
it doesn't add the new value to the first
Sooooo
It's because I need to access the elements in the array but have to make it global to use it in other areas
Is there a way around this?
20:57
i kinda feel like if you're using a "global" var to make something derived available elsewhere, you're doing something wrong. but, ignoring that, it sounds like what you want is actually let global = items
I can't believe the global var only gets to hold a value, I want all of the indexs to be transferred

« first day (3433 days earlier)      last day (1737 days later) »