« first day (1558 days earlier)      last day (3394 days later) » 

mr5
3:00 PM
I can't give you an example but you can see it in the entire structure. I'm just comparing JavaScript in Java.
 
don't
 
They could simply require that script tags with language text/javascript is javascript as we know it today and text/javascript_v2 as the new syntax
 
"but you can see it in the entire structure"
Except I can't
 
otherwise having to support older syntax is problematic..
 
@mr5 JavaScript to Java is what Carpet is to Car.
 
3:01 PM
besides, the specs are moved forward in different ways. I admit to be ignorant to how oracle decides on the java spec, but JS is community/committee driven.
 
an example of a bad thing in java? type erasure
 
In angular is it possible to ensure that an async call is finished before any controller is loaded without having any logic in the controller to check this sort of deal?
 
<script type="text/lua"> anyone? :P
 
mr5
jQuery is just a polisher for the JavaScript. You wouldn't like it if jQuery doesn't exist
 
3:02 PM
wat
 
@MikeNolan: Include the HTML that calls the controller on call finish
 
@mr5 jQuery is a library to make DOM less ugly.
 
@mr5 most of people here avoid using jquery...
 
It most definitely is not a JavaScript polisher.
 
@mr5 ^ most of us prefer our javascript to be jQuery-less
 
3:02 PM
In fact, I haven't used jQuery in several years.
 
11 mins ago, by rlemon
@mr5 it only abstracts the DOM api's and then sprinkles in a few utils
 
@mr5: Welcome to 17, where JavaScript > jQuery
 
jQuery is like a shoe horn. It's useful, but not everyone wants it or needs it.
 
@Cerbrus And in most other parallel universes as well
 
jQuery is like Duplo, where JavaScript is more like Lego Technic...
 
mr5
3:04 PM
Okay, I overlooked the people here. I think I'm being biased all for once. Where's the jQuery pro room?
 

Java

Dedicated to the discussion of the Java programming language a...
 
There ain't no jQuery pro room
As pro's don't use jQuery :V
 
@mr5 We're not biased against jQuery
 
After using angular does anyone ever find a need for jQuery?
 
And jQuery does indeed has its uses
 
3:05 PM
Eh, yes we are?
 
@Cerbrus That is correct.
 
But you need to put it in perspective.
It's a DOM library, nothing more
 
@MikeNolan Angular ships with jQuery lite
 
@Cerbrus Go and code for IE8 without jQuery, tell me how it goes.
 
Ah.
 
3:05 PM
jQuery would be cool if it didn't have all that useless stuff.
 
@SecondRikudo: I know, I know :P
 
@SecondRikudo fine
IE8 is easy without jQuery
IE7.... no thanks
IE8 we have QSA
 
IE8: alert('hello world!') - Look mom, no jQuery!
 
mr5
I just brought that idea. Using jQuery saves time and the future of programming is easiness to construct an algorithm
 
the only thing I could argue would be a pita without jQuery would be animations (in IE late)
 
3:06 PM
event delegation, textContent, good ol for loops, etc. IE8 is such a pleasure.
 
MGE
Hi
 
@mr5 jQuery doesn't save much time
 
MGE
$("a").click(function(e) {
    alert('clicked!');
    return false;
});
 
mr5
Well for me it is or maybe it's just really me
 
MGE
it doesnt work
 
3:07 PM
<a ng-click="clickHandler">
Simple
 
@mr5 it saves time when working with the DOM, not to construct an algorithm or something.
 
Ohh, The daily jQuery discussion.
 
@SecondRikudo meh. "beer" said by @rlemon has more results.
 
@Cerbrus Angular is not a solution, especially not to jQuery. It's more complicated and over-engineered than almost anything else.
 
3:08 PM
@SecondRikudo did you have that 6to5 discussion yet?
 
@BenjaminGruenbaum Yes, it went positive in total
 
@FlorianMargaine I wonder if I give more fucks than beer
 
mr5
@FlorianMargaine but most of JavaScript is used for DOM manipulation only? So why not just bind it there
 
But I still need to convince the big guys :P
 
3:08 PM
@mr5 false, well maybe true. but JS is for a lot more than just dom manip
 
@mr5 nah, not really
 
Canvas =/= DOM
 
@mr5 In a reasonably recent app, you do very little DOM manipulation.
 
mr5
Okay guys stop bullying me :(
 
3:09 PM
I use JS for SCADA
 
Getting values, getting the occasional element to render a template into, but that's it.
 
@mr5 no one is bullying you, we're talking
 
@ssube I wouldn't say it's "over" engineered. Angular provides really low level abstractions compared to what they could offer.
 
@Cerbrus How the hell is it bringing only posts?
 
We're not bullying, we just don't agree.
 
mr5
3:09 PM
@rlemon By pinging all over again :( lol
 
The days of using jQuery to create an app and move and replace individual elements is, thankfully, gone (in most real cases).
 
I wonder if the world isn't just much more complicated compared to what we did with simple DOM manipulations back then...
 
@Cerbrus well... technically canvas is part of the DOM API.
 
@SecondRikudo: I was wondering exactly that xD
 
@mr5 disable ping notifications then
 
mr5
3:10 PM
I'm just kidding. I like attentions! Who doesn't?
 
introverts
 
mr5
like you?
 
no, I'm an extrovert
 
Hermits
 
mr5
common they like it deep inside
 
3:11 PM
Kinky
 
!!tell 21088473 xkcd technically
 
@mr5 if jQuery works out for you go for it.
 
@BenjaminGruenbaum Search didn't yield a comic; got xkcd.com
 
@BenjaminGruenbaum pft. Zepto is the new cool
 
3:11 PM
@SecondRikudo it's ok to just say "xkcd technically" I get references.
 
mr5
@BenjaminGruenbaum Nah, I think I'll make my own browser and use my own jQuery engine there
 
Huh, why does Cap think Benjamin queried her?
 
@Cerbrus the "tell"
 
Hm, weird
 
@Cerbrus because I like him. <- that is a bold faced lie
 
3:12 PM
@mr5 writing jQuery actually isn't that hard, Resig has a (old) lecture on selector engines and the JS ninja book has a chapter on them.
 
Oh, that's the message ID
 
jQuery isn't complicated inside, it is however a really ugly code base with a lot of hacks for old browsers.
 
Zepto!
 
@BenjaminGruenbaum not hiring remote devs yet?
 
Zepto is still ugly inside, just not as ugly.
 
3:12 PM
@BenjaminGruenbaum Yes, but I'd rather have those ugly hacks hidden away in a library, than having to write them in my application code
 
@BenjaminGruenbaum your face is ugly inside
 
mr5
jQuery really looks awesome in the eyes. When I try to show it to my non-techy friends, they are just like "o.O o.O o.O o.O"
 
@FlorianMargaine not hiring remote devs period. We don't really believe remote works here - communication is very hard anyway and remote for a company our size wouldn't be worth it. When we hit the 20 developer milestone that policy will likely change but the development here is done by ~8 guys here working on projects.
 
Imagine their faces if you'd show them the JavaScript equivalent
 
@SecondRikudo agreed.
 
mr5
3:14 PM
@BenjaminGruenbaum Yay! If I have really the time I'll go write it now =P
 
Did you and jQuery just start dating? We can tell. :)
 
@BenjaminGruenbaum hence the "yet" :) ok
 
mr5
@Cerbrus "WTF is that"
 
@mr5 Using code because it looks pretty will eventually leave you with Scala, and that's not necessarily a good thing.
 
@mr5 the thing about jQuery is that you don't really need it and it's not useful anymore. It was great in the older days but now it's mostly cruft.
 
3:15 PM
I still see jQuery as a RAD tool
 
Radical?
 
Rapid Application Development
 
Ah
 
The reason you don't need it is that the more popular technique is to use something like databinding to manipulate the DOM, not directly.
 
when you gotta demo something tomorrow
 
mr5
3:15 PM
Please don't destroy the image of jQuery. I haven't still find it's flaw because I only use browser script for DOM manipulation.
 
@Luggage yeah, that and vDom+templating like react.
 
mr5
@ssube haven't seen an Scala code before
 
@rlemon I usually read RAD as "Rails Application Development"
 
@mr5 well, there are a lot of issues it has with browser manipulation.
 
$(window).load and $(document).ready ??
 
3:16 PM
@Sim please format your code.
 
mr5
Oh look a jQuery!!
 
@Sim I'm giving you 15 more seconds to edit that before I bin it.
 
Yup. I still use them. Though since I use coffee it looks different:
$ ->
 
document ready is one of the most pointless things ever.
 
Yuck, coffee
 
3:17 PM
^ * 2
 
Just put your code at the end of the body.
 
I can't agree more @BenjaminGruenbaum
I've been saying it all along
 
Problem solved, or heaven forbid use a module loader.
 
mr5
@Sim How dare you to show jQuery like that
 
Sim
3:18 PM
how do i edit code here?
 
@BenjaminGruenbaum chat.stackoverflow.com/…
 
@BenjaminGruenbaum no, sometimes you need it or you get the screen flickering
 
I never understood coffee. Of all the languages to make more ambiguous and less predictable, JS is the last one you should be messing with.
 
I use a module loader, but have a little bit of startup code in document.load. Never removed it since i hav jquery as a dependency to some other libs
 
if your code hides/shows DOM elements for example
 
3:18 PM
@ssube Truer words and all that
 
@FlorianMargaine not really, no. Put it at the end of body.
 
coffee isn't more ambiguous. it's just an altered syntax.
 
@ssube #C0FFEE?
 
@ssube well, CS is actually pretty nice, they have a lot of things that JS got in ES5 and ES6
 
@Sim CTRL + K
 
3:19 PM
@BenjaminGruenbaum if you do that, you'll see your page flickering
 
@Sim UP, CTRL+K, ENTER
 
@Sim read the FAQ FFS.
 
@FlorianMargaine I've never had this problem
 
I have...
 
I never use $(document).ready
 
3:19 PM
@FlorianMargaine make a sample.
 
@FlorianMargaine what are you showing and hiding on load? How much of the page?
 
I started the daily coffee talk out of way early.
 
@BenjaminGruenbaum not easy to do in a simple example, the browser will be fast enough
 
You aren't, by chance, repeatedly showing and hiding it, which I imagine could cause flickering? :P
 
I would rather use window.onload before $(document).ready
 
3:20 PM
I'll try to get you an example
 
@FlorianMargaine Oh, I know what you mean - it only happens if you have elements on the page you remove with jQuery. Kind of like Angular's FUIC - it's a problem you shouldn't have to begin with though.
 
@ssube nope... or putting it in the head in a document ready wouldn't solve the problem
 
Or if you have a <blink> tag.
 
@BenjaminGruenbaum FUIC = Fuck You, I see?
 
@SecondRikudo flash of unstyled content - it's an Angular thing where people forget to use ng-cloak
 
mr5
3:22 PM
@rlemon $(document).ready is useful if you have put your script in the head or when you have a multiple inclusions of scripts
 
@mr5 how does document ready help when you have multiple scripts?
 
user1596138
 
user1596138
@BenjaminGruenbaum My boss tried to put a <blink> on a static page last week
 
inb4 "he loved it"
 
$(document).ready() is 9/10 misused, and 9/10 you never even need it, or any sort of equivalent
 
mr5
3:24 PM
@ssube well if you're waiting for some events and you have a modular script for that event
 
user1596138
It doesn't do anything on current Safari
 
@Jhawins jsfiddle.net/rny0wjh7/3 // you're welcome, world
 
@mr5 when do you "have" to put a script in the head? and what does it accomplish when including multiple scripts?
 
user1596138
@NickDugger Yea I made a little script
 
@NickDugger and unless this has changed, it doesn't wait for images (which would be the important one imo) so window.onload wins
 
user1596138
3:25 PM
Such a simple task lol
 
@mr5 if you have events, you should use a pub/sub system (which document ready technically is, but not in a useful fashion). If you have deps between scripts, you should really use a module loader that can understand those.
 
I hated browserify for a couple of weeks until I saw how stupid my concatenating of files was. Now I love browserify
 
mr5
@rlemon Uhm..I don't think it is really efficient and wise but I put my JavaScript library or the "class" as what in other languages call it, in the header.
 
it isn't recommended
 
mr5
Those that are not triggering scripts
 
I put libraries in the header, but call things at the end of the body
 
I put shims and polyfills in the header
and css
 
Aye
 
everything else goes in the body
 
@mr5 not really, no.
$(document).ready is mainly useful when you don't understand the DOM execution model so you cargo cult code you find on the internet instead of being a professional. How the DOM loads here is pretty trivial too (top to bottom, seriously).
 
3:29 PM
I have a question.
 
I love @Benjamin's subtlety :P
@Duikboot: Excellent.
 
I just never understood how a non native speaker can word things in ways I can't figure out how
 
//cc @KendallFrey ^
 
I am using a Wordpress plugin which is generating a form. But I have to find out where the form is submitting. So I can add a "scrollTo". Now I would like to know what is the best way to find out where that happens
Is that easy to find with the inspector?
 
user1596138
@BartekBanachewicz The limit is per-line
 
3:30 PM
@rlemon I try not to put too much stuff into my body. It can get messy.
 
@Jhawins I know. I just found it too funny
 
The JS file is more than 3k lines.
 
I wonder if he wrote it by hand
 
@Cerbrus it's the truth.
 
@Duikboot CTRL + F "submit"
 
3:31 PM
Oh, I have one. $(document).ready is super useful to filter out applicants in interviews. It's great at that.
 
@BartekBanachewicz As mentioned before, I did not
 
lol
 
@Duikboot scrollTo is on the same page, forms generally submit elsewhere?
 
user1596138
@BartekBanachewicz hey I figured that shit out after talking to you guys jsfiddle.net/e77d73wj
 
user1596138
Thanks
 
3:32 PM
@ssube I imagine the form submits via xhr, considering he wants to scroll on the same page afterwards
 
                        $.post(ajaxURL, {action:'dopbs_book_request',
Probably it's that one :)
 
Probably
 
which should be inside of a submit handler
 
It's in the : book:function(){ if (methods.validForm()){
 
@Jhawins: Well that's another way to draw a circle :P jsfiddle.net/e994ce5u
 
3:34 PM
hi
 
user1596138
@Cerbrus Haha with all the steps sure
 
no fair!
this isn't on amazon.ca
:(
 
@rlemon <puking rainbows.gif>
 
A spoon that won't fall into the pan o.O
 
anyone familiar with requirejs and embedded dynamic controls?
 
3:35 PM
Well, ladle :P
 
user1596138
I just needed to understand the math behind the points themselves :P
 
I need to kill one
 
@Jhawins: Heh, it seems to take 250-ish points before the circle is smooth (For that radius)
 
@SecretDeveloper require('gun').Shoot(module)
 
user1596138
With that "point" size
 
3:37 PM
require(['gun'], function(gun) { gun.shoot(module); });
he said requirejs.
 
better
 
never used requirejs
:?
 
it's async, so has callbacks.
 
gotcha
 
3:38 PM
@Jhawins: I didn't even realize those were divs xD
 
user1596138
@Cerbrus lol it was just a shitty mockup for the sake of example :P.
 
Imagine how browsers would've reacted to 1000 points, 10 years ago...
"Nope" Fireball
 
so say you have a script that when you add it to your page it draws a form and it does a bunch of ajax calls to pull info from an api. Now you want to add a button that will delete the loaded form and reload it. It works but you end up with 'ghost' scripts running in the background which still work when the new form loads. you see multiple ajax requests when there should only be one.
 
user1596138
@Cerbrus before or after the crash?
 
@rlemon I got an awesome shirt and boxers :) Thank you so much man that really made my day yesterday to see that. It was a really crappy day :(
 
3:40 PM
Nope->BSOD->Fire->Crash
 
@Cerbrus NOPc59d68bb33bc7dc2d438
 
Wait, a BSOD is a crash... Derp
 
how do I record the div that was clicked and stop the page navigating:
 $('html').click(function(event){
                console.log("mouse click X:"+event.pageX+" Y:"+event.pageY);
            });
 
mr5
It's a feature
 
@taco okay.jpg
 
3:41 PM
@SterlingArcher nice :D I'm glad you enjoyed it
 
@SuperUberDuper: did you look at event.target?
 
I fixed my vape pen for good too yesterday when I had food poisoning
 
Or: Did you even look at the event object?
 
@SterlingArcher bro! I told you I'd give you the provari right?
 
New double coiled metal on glass chamber so no more plastic threads cracking
 
3:42 PM
@SuperUberDuper it's here api.jquery.com/category/events/event-object and the thing to stops navigation starts with 'prevent'
 
lol no nono it was $30 for it and new juice
Nothing expensive
Stop trying to spoil me I'm not your whore D: xD
Yet.
My new juice is called "Nerdz" (12mg)
Very delicious
 
user1596138
I was looking at vape pens in town the other day (in the real town lol)
 
user1596138
Everything you can buy IRL seems to be a worthless POS
 
I don't know what a vape pen is ._.
 
@Luggage technically rlemon's syntax is possible, just sayind :D
 
3:45 PM
It is once it's been required already
 
SAYIND SAYIND SAYIND SAYIND SAYIND SAYIND SAYIND SAYIND SAYIND SAYIND SAYIND SAYIND
 
@NEIL vapor cigarette
 
@Luggage thanks\
 
it's valid INSIDE the callback
 
how do I do this without jquery?
 
3:45 PM
vapor joint
 
$('html').click(function(e){
console.log(e.target);return false;
});
 
!!watch the imitation game alone or hope that the woman calls you in the next 3 months so that you can watch the film with her
 
@towc watch the imitation game alone
 
ok
 
@SuperUberDuper document.addEventListener('click', function(e) {
 
3:47 PM
that's pretty much how it feels like
 
Welcome to puberty
 
I don't think I'll enjoy the movie so much, but gotta watch it now or I'll end up never watching it
 
@SecondRikudo THX
DOWN WITH JQUERY!
 
@Mourdos Oh, that would explain it
 
anyone knows a link I can use to watch it online (in english)? I could find so many italian sites, but I guess that then the film will be ruined even more
 
3:51 PM
netflix.com ?
 
@towc protip: the women don't want to call you. They want to be called.
 
I have a nice Montblanc pen, but it tends to melt when I smoke it
 
Oh, and I saw a movie this weekend called the Maze Runner
 
unless they don't, in which case don't.
 
Good movie
 
3:51 PM
XDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD
 
@SterlingArcher she already rejected me, it's just a fantasy that some day we could still go out toghether
 
@SecondRikudo you went on reddit didn't you...
 
1. Sorry to hear it
 
@SecondRikudo not sure if kinda racist or funny XD
 
3:52 PM
3. Profit?
 
2. Get over it quick. The quicker you appear to be "over it" the better the chances she'll be jealous you've lost interest
Profit is step 4 you ass >=(
 
@SterlingArcher order online from hedonismvapor.com Strawberry Banana Smoothie and Pear O'Coconut are delicious
 
@towc Both, I'm pretty sure it can be both
 
@towc it's not really racist, as an academic fact. Unless google translate was programmed to be racist.
 
3:54 PM
yeah, because she can be jealous of something concerning me? That girl can take everything she wants out of anybody/anything
 
@towc hit the gym, get jacked, find excuses to take off your shirt infront of her. bonus points if her best friend is there and wants to touch your abs in front of her
 
mr5
HL3 confirmed
 
@towc then be the one thing she can't have.
 
@rlemon we're talking 14 yo kids here...
 
that will very quickly turn into the only thing she wants. That's how supply and demand works.
 
3:55 PM
I had abs at 14
 
@rlemon I wondered where you got your juice from
 
@rlemon hey! I already have the best abs, legs and arm muscles of everyone I know who is my age +2
 
@FlorianMargaine getting abs at 14, before all the desk jobs and beer, would be much easier.
 
@SterlingArcher that is one place. I get it from a local supplier as well
 
I have a really super cool happy awesome fun time vape store right near my townhouse
They usually give me parts and juice samples for free
 
3:56 PM
by "know" I mean I talked to them in more than 2 different days
 
yea, the juices from hedonism are just outstanding and I haven't found them other places
I suggest maybe doing a sample pack?
 
^ accidentally clicked not 18, took me to disney.com, lol'd
 
posted on January 21, 2015

var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www."); document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E")); try { var pageTracker = _gat._getTracker("UA-3727700-1"); pageTracker._trackPageview(); } catch(err) {} Last day to buy!

 
yea I told him to change that
 
I use vapir.com/shop/no2 but there are no 'flavors' for what I put in.
 
3:56 PM
he's giving disney.com traffic
 
but apparently she knows someone better... also I'm kind of a jerk about how much better I am than everyone else... so...
 
@Luggage chronic is a flavour ;)
 
It's just his legal DDoS bro
slow and steady xD
@rlemon what size bottles are these $8.99?
 
user1596138
@rlemon I had it once lol
 
> "once"
 
3:58 PM
@SterlingArcher I think 15ml
 
user1596138
I meant they have tobacco vape juice called chronic
 
I gotta double check, but I think I'm getting $10 for 30ml
 
user1596138
Taste like skunk
 

« first day (1558 days earlier)      last day (3394 days later) »