« first day (2551 days earlier)      last day (2383 days later) » 

8:00 AM
I have no idea what I'm looking at or for.
 
@monners Puh-leeze
 
Ace
@MadaraUchiha you are Madara fkn Uchiha!
 
npm i -S jquery @types/jquery was that soo much?
@Ace That I am.
 
@MadaraUchiha just get types auto-installer in VSCode
 
8:00 AM
@MadaraUchiha why not possible look this link. We need a replaced $("#someID") to document.getElementById("someID");
 
npm i jquery
 
@ShrekOverflow I hate magic like that
 
@MadaraUchiha why
 
Ace
@svgcoding 1 sec
 
8:00 AM
@monners Then I say you are a lucky motherfucker :P
 
It just adds it to your package.json
although it does open a slight vulnerabilityif someone wanted to be shtupid.
 
@Qh0stM4N $('.foo').each(function(i, el) { $(el).css({backgroundColor: 'red'}); });
How do you translate that?
And that's a simple example
 
Ace
@svgcoding so i click on 'play' and a song played, i clicked it again and the music stopped
@svgcoding what's the problem?
 
How do you translate .animate()? or $.get().fail()?
It's not impossible to do by hand with a human's reasoning abilities, but a compiler? Hell no
@ShrekOverflow You answered your own question.
 
@MadaraUchiha animate: manual. $get: axios
 
@monners Yes, but not automatically
 
@MadaraUchiha That's still not a good reason to include jquery. It's a catch-all solution to a common problem.
 
@Ace Instructions: jsfiddle.net/y3zu8de6/1
 
Ace
okay... why dont you set a background color/image
 
@monners I'm saying again, there are very few cases where jQuery is actually relevant today
 
8:04 AM
@MadaraUchiha If there was no way to do this, jQuery could not do it either. So js only and js we know js is nothing more
 
Ace
so that when person clicks on 'play' there wouldnt be a 'flicker' anymore
 
But he's asking for a solution on webpack's level to allow him to continue using jQuery but losing jQuery in the compilation process.
@Qh0stM4N Of course there's a way to do it
 
@MadaraUchiha God dangit, Now I feel bad for installing it half a year ago :|
 
You could write a webpack loader
 
yes.
 
Ace
8:05 AM
okay.. jQ not being relevant? so what's better than?
 
@MadaraUchiha Oh, I'm agreeing. Again, just refuting the potential situation where you'd find typescript and jquery in the same codebase.
 
@Ace yes.
 
the one I use only installs from @types, but its still scary
 
But you would be insane to do it.
 
Ace
@svgcoding okay.. did you implement that?
did that solve ur problem?
 
8:05 AM
@MadaraUchiha do you actually go and check what exists at @types/jquery?
before you install @types/jquery?
 
@monners npmjs.com/package/@types/jquery almost a million downloads/month, just sayin'
 
@Ace This didn't: var button = document.getElementById('playButton2').src = 'i.imgur.com/KOlHFBD.png';
 
@Ace your question is wrong
 
@ShrekOverflow Not for jQuery, or React
But for more isoteric libraries, yes.
 
You should search for why & how instead of what.
 
8:06 AM
That's the code I was trying to get to work inside.
 
Ace
@svgcoding dont put a button function, use CSS and set a background
why change images during a click function?
set it beforehand
 
@MadaraUchiha If democracy were a measure of truth....
 
what is mostly a consequence of the why and how equation.
 
so, apparently diluted bonemeal is a great place for flies to breed
 
@monners democracy is a measure of truth?
 
8:06 AM
@monners I'm not saying it's a great solution, again, I wouldn't do it
 
will have to chuck it all out :/
 
@Ace But I want to put a button fuction.
 
But I can totally see cases where "it's our stack and there's nothing I can do about it" and such excuses.
 
I love jQuery and I am using it. But sometimes jQuery makes me feel like I'm addicted I find myself adding jQuery to the page even to write a few sellectors for very simple tasks.
 
@svgcoding If by "inside" you mean as an onclick handler.... why?
 
Ace
8:07 AM
@svgcoding but i didnt see a flick on the other 2 examples
 
Did you do the instructions?
 
Ugh. Time to sign off. @MadaraUchiha I think we're on the same page. @ShrekOverflow just... no.
 
@monners o/ toodles~
 
@monners I missed ? there.
 
Clear browser history, then click.
 
8:08 AM
@Qh0stM4N I am often surprised how many times I search a for a JS solution and a jQuery one comes up, when there's some that's comparatively simple in vanilla JS
 
Ace
@svgcoding add two images
 
@PeterDavidCarter That's super annoying, yes.
 
Ace
try putting multiple images
 
there is 2
 
Ace
instead of swapping images
 
8:09 AM
I will continue to use jQuery in complex jobs from large pages where I use many jQuery plugins on the tab. But to write only 1 ajax I would like to add jQuery to the page (even if it is slim) as a processor wastage
 
Ace
why dont you use 2d JS and draw it
 
Bye, Demon time.
 
Ace
do a drawing function instead of swapping images
 
@Qh0stM4N It's not the processor that's the problem
It's the network
Always think about it from this perspective: Think of the poor sod who's paying 1c per megabyte
2
How much will they pay to view your website?
 
They are attached to the linear-gradient
 
8:10 AM
If you use jQuery/bootstrap/23894728946 jQuery plugins/etc, the answer would be a lot
 
@Ace What would that look like?
 
@PeterDavidCarter vanila maybe to powerfull or simple but use is not as common as jQuery
 
@Qh0stM4N lolwat
 
morning
 
@Ace You can post you suggestion on here is you want. stackoverflow.com/questions/46659000/…
 
Ace
8:14 AM
i dont work with drawing though...
 
oh.
 
@svgcoding Dude, seriously, that onclick handler is an abomination
 
Ace
was thinking of just create a new element with x, y and shade it black?
on click?
i dunno practice drawing
 
<something onclick="whatever">
 
@MadaraUchiha Yo I pay $1 per 10 MB at times
 
8:18 AM
@ShrekOverflow Do you disable JavaScript when you browse?
I would do that if I had to pay that much
 
I simply disconnect the browser / internet.
 
I don't understand why it's not working for me if that's what its intended use is for.
 
Ace
well, practice/study js drawing
 
Its a tough morning today, here in the JS room.
 
Hey Kamil
now I recognize your existence
 
8:20 AM
A novice soldier is sharing what he did and didn't do, clearly scared for his fate
 
o/
 
@GNi33 \o
 
@ShrekOverflow oi oi, but you did not present us your face :P
o/
 
I did
 
others are starting to imagine what they would do if they had some money. Dreams that will never be fulfilled
 
8:21 AM
you didn't catch it :P
 
we all know his face
 
oh I missed it then, yep
 
Lemon even commented, I haven't changed a bit
 
Ace
seriously? why cant JS do this
 
however if you are interested HMU on hangouts
 
Ace
8:22 AM
if (document.getElementById("D" + notesEname).value != null) {
                    BDL.barDataList[i].dnihtml = document.getElementById("D" + notesEname).value;
               }
 
@Ace JS Can't do what now?
 
the frontline with reality has always been a horrible challenge for the JS room
 
HLOLy eww
 
Ace
debug is bitching 'uncaught typeerror: cannot read property 'value' of null'
fu JS
 
@Ace here is the most common cause
your code is executing before
 
8:22 AM
that tells you exactly where the problem is
 
your "D" + notesEname
 
@Ace whatch your language young soldier
 
not the fault of the language you're using
 
exists in DOM
 
Ace
i should say 'notesEname' != null then
got it
 
8:23 AM
@ShrekOverflow most common cause is that the code is written poorly
 
@Ace Code Complete 2nd Edition
 
@PeterDavidCarter maybe my real need is not to convert jquery to js directly but to learn a lighter library, it would have been useful if there was a tool I could do directly. I should start developing myself on github in order to help others
 
@Ace please learn some javascript, and listen to what Shrek said
 
@Wietlol Most common cause exists b/w Screen and Chair
 
Ace
@towc yea that's a mistake i rarely make
wont happen again !
 
8:24 AM
@Ace here is a small story
 
@Ace Is there any way possible to implement this code: var button = document.getElementById('playButton2').src = 'https://i.imgur.com/KOlHFBD.png'; or, No?
 
@svgcoding act like there isn't
 
@svgcoding what is this even supposed to do?
 
@Qh0stM4N maybe. I know a lot of people know jQuery, and it's generally fairly easy to use, so it's nice to support.
 
The browser is complex, it loads HTML, then parses it to create a tree like a christmas tree called DOM. DOM is a really really powerful API and it'll take years to master it, and it's fine. As long as you want to learn, there are tons of resources, including this chat. That aside, you use JavaScript to manipulate this tree.
 
8:25 AM
@GNi33 preload the image.
 
JavaScript itself was a very small language (until ES 6 showed up that is)
 
where you are messing up is DOM
when you do document.getBlahByPotatoes
the JS Engine will call the DOM API to get the Blah Structure based on Potatoes. If the structure does not exist, it'll fail. You should check that in your code if that structure actually exists.
 
@ShrekOverflow you said "a small story"
 
For example
 
8:27 AM
then keep it small
 
@Wietlol The story ended already. Now I am telling him what is happening.
 
> Once upon a time, there was Javascript, a browser and a developer. The end.
 
:39528626 Where am I messing up?

onclick="
    var button = document.getElementById('playButton2').src = 'https://i.imgur.com/KOlHFBD.png';
    var button = document.getElementById('playButton2');
    var player = document.getElementById('player2');
      document.querySelector('#playButton2 .initial').style.display='none';
      document.querySelector('#playButton2 .pause').style.display='none';
      document.querySelector('#playButton2 .play').style.display='none';
    player.volume=1.0; if (player.paused) {
 
that is small
 
@Wietlol aggressive much?
 
8:28 AM
@Webster Oh sorry, my threshold for small things is messed up. Don't have a scale of reference like you do ;)
 
@GNi33 much small, very story, such epic
 
@Ace so back to it, in most code you'll want to do something like
const blah = document.getElementById("potato");

if (!blah) {
    /* handle if blah doesn't exist */
}

/* do stuff with blah */
 
Ace
ah
 
Why $("#" + "potato") works is because it returns an Array and never tells you, and then all the operations take place on the array. Needlessly, therefore when you do $("#" + "potato") and that doesn't exist in DOM
 
Ace
thanks
 
8:30 AM
the array returned will be []
 
@Wietlol and why exactly is this bothering you?
 
since it has nothing, the operation will silently fail, because the operation happened on exactly 0 elements. (Which is one of the reason why I hate jQuery because it eats up errors).
 
@ShrekOverflow Webster?
 
As a new developer, stay away from jQuery as much as you can, it abstracts way too much, overloads way too much.
 
@GNi33 im not bothered at all
 
Ace
8:32 AM
hmm okay, what libshould i use then?
 
None
Use DOM
 
JabbaHut
 
Ace
ok
 
Oh man, redrawing these is gonna be a pain
 
@KamilSolecki wow thats some good art :D
 
8:33 AM
not mine :P
Its a stock vector
Im making a banner with it
I've never drawn comic style, so lets see how I do on the laptop
 
Current other project I am working on
 
A predator drone?
 
@GNi33 nope, helping a friend build a medical drone
 
awesome
 
"medical" drone
 
Ace
8:35 AM
YES
 
@GNi33 vOv
 
;)
pretty cool
 
I suggested their team to just make it carry big enough space
if the Hospitals don't buy it, the military definitely will :D
 
I knew it
 
@GNi33 oh you!
but anyway, @KamilSolecki It took me an hour to draw that on Adobe Experience Design
How much time did that take you to do the lady D: !
teach me!
 
Ace
8:38 AM
u guys are ameteurs
buy a wacom cintiq
and manually draw
 
@ShrekOverflow as I said ealier, Its not mine :P its a vector i found online that in using to build the banner ^^
 
Didn't read it :D
 
@Ace what do you think im going to do in a moment?
 
@Ace I can just draw it with pen and paper and scan
(personally I prefer that over any design tool)
 
Ace
@KamilSolecki ah okay
 
8:40 AM
I used to draw a lot more some time ago, now I Just resort to composing stuff in AI and PA
I used to draw a lot more some time ago, now I Just resort to composing stuff in AI and PS
 
Ace
@ShrekOverflow lol go jump on a trap
@KamilSolecki we have ADD
 
@Ace lol, I am a developer not an artist :P
 
a developer is not an artist?
 
codepen.io/mathdotrandom/pen/KqEnc < That is the only way I can draw
 
MY LIFE IS RUINED!
 
8:43 AM
@Ace speaking of which
 
@Wietlol depends on the kind of developer you are and the art you are talking about
 
I find programming an art tho
 
@KamilSolecki you need color correction.
 
Ace
there are 4 kinds of artists : google.com/…
 
@ShrekOverflow you see that on a picture taken with a phone of a screen? impressive :D
 
@ShrekOverflow its just the photo :P
 
Ace
@KamilSolecki oh nice
 
I was talking about that
 
League of Losers
 
8:45 AM
@ShrekOverflow heh yeah, this used to be my home PC
I brought it to the office
 
Ace
@BenFortune HEY, HEY
 
@KamilSolecki haha
@BenFortune Hey Hey
 
Ace
not cool
 
Not Cool!
@BenFortune Achievement Unlocked: You managed to make me and ace respond the same.
 
@Ace "there are 4 kinds of artists" *names 3*
-_-
 
Ace
8:46 AM
@Wietlol shrek is the 4th one
chill
 
Thank you everyone for your help.
 
Ace
@svgcoding ur still up? lol
did u get it?
 
@Wietlol are you a living linter?
 
Even if I still couldn't get it to work.
 
@svgcoding read the documentation
very carefully :)
 
8:48 AM
!!giphy rtfm
 
its the only way forward from here
 
@Neoares o/
oh hai!
 
@ShrekOverflow You were able to do it?
 
@ShrekOverflow \o
 
8:48 AM
@ShrekOverflow im a compiler
does that count?
 
Ace
lol
@CapricaSix hey sexy baby
 
@Wietlol Definitely Sir JAVAC!
 
Ace
cap is sexy
 
@ShrekOverflow Were you?
 
@Dr.Sam what are you doing?
 
8:49 AM
@svgcoding was I what?
@GNi33 using this chat to talk to his SO? One probable use-case scenario.
 
Able to solve the problem?
 
Nope, but its usually what works
 
he is having a monologue
 
from making things flash on webpages to making kexts
 
@ShrekOverflow oh, I thought you were able to do it.
 
8:50 AM
@Wietlol oh comon, throw a compiler error.
 
@Dr.Sam stop
 
HAMMERTIME!
 
@ShrekOverflow I cant help it, the syntax is correct
 
Ace
so who has the download for JicamaJS?
like, seriously i hear its the best lib
 
8:52 AM
what is going on in this chat today
 
Ace
you are late to the party bro
 
@GNi33 vOv
 
he was early, but his interpreter isnt that fast
so he only noticed now
 
Ace
lulz
 
@GNi33 I was forging Daemons
Dr. Sam looks like one htat got sentient
 
8:53 AM
I've spent hours on this and nothing.
 
@Dr.Sam You should do stuff like this inside your own room.
@svgcoding take a break
break the problem down to simpler parts
log everything (console.log)
 
Ace
he refuses to console.log
 
you'll figure it out :cheer:
now seriously (bye)
 
It's only one part of the code.
       var button = document.getElementById('playButton2').src = 'https://i.imgur.com/KOlHFBD.png';
 
@Dr.Sam I do not want to join the Java chatroom, thank you
 
8:55 AM
The code is all typed correctly.
 
okay, stop trolling. I haven't even finished my first coffee yet
 
@svgcoding here is whats happening when you write that line
- Create Variable button
- Execute Document.getElementByID('playButton2')
- Of that value access .src
- Assign 'https://i.imgur.com/KOlHFBD.png' to .src
- Assign 'https://i.imgur.com/KOlHFBD.png' to button.
 
Ace
he's talking about where to put that code so that his button function wont flicker when swapping .jpg files
but i tell him to use JS drawing instead of swapping images
 
Does that shed some light @svgcoding ?
 
@GNi33 wut?
 
8:59 AM
@GNi33 Is it bad that I saw that as a kid saying "No I don't want the free candy"
 
@ShrekOverflow Show me: jsfiddle.net/mjnaaLk5/3
 
@svgcoding I already did, the path is yours
I am not going to write your code for you, read carefully what I said
 

« first day (2551 days earlier)      last day (2383 days later) »