« first day (2053 days earlier)      last day (3117 days later) » 

00:00
Say what you want about Trump, he trolls with the best of them
thanks @Luggage I'll try to absorb as much as I can
web development has a LOT of options and the choices are overwhelming, but it can be fun after a lot of catching up.
@Luggage Only one option worth considering: going native
what does that mean in this case?
use web components
00:02
that doesn't solve anything.
ui libraries are for dummies
s/dummies/capitalist-pigs/
pig-dogs
dog pigs
@phenomnomnominal I wasn't aware there was a difference
00:19
@Shmiddty yah, sounds great if Chrome is your only target
If your work is good, you don't have to target anything. Be honey, let the flies come to you.
Whatever happened to shared/service worker specs
I needed toilet paper
@Shmiddty over ftw
Q: do you wipe sitting down or standing up?
standing
I suspect there may be a correlation
00:58
that seems odd
I think unders are also sitters
although I could see a reason
under - form; over - function
maybe a similar force applies to posture
01:35
@Shmiddty people stand up? lol
@Abhishrek Good?
Chat's broken :-/
@Abhishrek I see that though
@doug65536 can't find out which message you linked to :-|
Oh civ5 in Lua
readable :p
The wow was because they didn't fall for petty enterprise stupidity like encrypting source code
etc
01:50
nothing much
trying out SIMD
!!tell thepiercingarrow mdn SIMD
@Abhishrek Command simd does not exist. (note that /tell works on commands, it's not an echo.)
@Abhishrek Command md does not exist. Did you mean: d, med, mdn (note that /tell works on commands, it's not an echo.)
@thepiercingarrow Something went on fire; status 403
!!undo
@Abhishrek I'm afraid I can't let you do that, Abhishrek
!!wiki SIMD
Single instruction, multiple data (SIMD), is a class of parallel computers in Flynn's taxonomy. It describes computers with multiple processing elements that perform the same operation on multiple data points simultaneously. Thus, such machines exploit data level parallelism, but not concurrency: there are simultaneous (parallel) computations, but only a single process (instruction) at a given moment. SIMD is particularly applicable to common tasks like adjusting the contrast in a digital image or adjusting the volume of digital audio. Most modern CPU designs include SIMD instructions in order...
!!tell thepiercingarrow mdn SIMD
@thepiercingarrow Something went on fire; status 403
01:52
whatever
that looks complicated
@doug65536 Why do you do it sitting?
anybody good with css? something isn't working correctly...
@thepiercingarrow Most things don't.
lol
but it should
basically I have a div
I set all margins to 0
cool story
01:57
however, inside the div I have a 69% width and a 29% width, which is fine when full screen
but when you shrink it enough, it overflows???
and as I said above, no margin, padding, etc.
70 and 30 always overflows...
reproduce it in a very tiny fiddle then watch me play it
okay
wait one sec...
Hi all, Ive been stuck for days on this. I want a directive to arrive in my template of .run. Hard to debug too- as its for a hardware button. Any ideas? dpaste.com/24CKN5E
@Abhishrek That thing has 1 seeder and my client says the time remaining is no more than 2 years
02:07
@littlepootis lol, told you its almost impossible to find on the web :P
also the second mod is for Age of Mythology
Age of Mythology -> Age of StarWars is a massive feat for an Indie team
@littlepootis hi lil poot can you plz help me with something?
@little what is your avatar from?
@Abhishrek yeah. Should ask someone on IRC
@Abhishrek oh, I'll check that out
@littlepootis did, its barely possible to find. xD
You can try contacting Akella :P
@thepiercingarrow TF2
@Abhishrek yeah, I should
!!urban TF2
02:12
@thepiercingarrow TF2 Sequal to the PC hit multiplayer title Team Fortress Class by Valve. Oringally slated for release in 2001, finally released on October 10, 2007 in the Orange Box along with Half-Life 2 Episode 2 and Portal.
cool
WHAT IS WRONG WITH JSFIDDLE
@Abhishrek I do use an office chair, but I don't think they would ship to your place :P
its javascript and fiddle, go figure!
isn't # for the id in css???
@littlepootis :-|, I will just get the one from amazon :P The one of that quality anyway charge ~8k here
@thepiercingarrow yes sir!
02:15
ohhh
I see
#foo #bar #baz #lorem #ipsum{
   /* write this to get a personal phone-call from your boss */
}
id's can't start with a digit
@Abhishrek lol XD
@thepiercingarrow they cannot, yes
its overflowing for some reason..
hey look I got it to work!
just change it to 49% lol
HA
yes I have the same problem
it works until you make the screen a certain size smaller, then it overflows!!!!
WHY
@Shmiddty I got the fiddle :)
when you make the screen smaller, it overflows
whatever I give up
02:25
@Shmiddty does it work?
wow thats tiny
BUT IT DOESNT OVERFLOW
!!tell thepiercingarrow urban World's Smallest Violin
@thepiercingarrow World's Smallest Violin When someone is [whining] and you are tired of hearing it, you can play the world's smallest violin to provide musical ambiance to dramatize their annoying whine. This is accomplished by rubbing your index finger and thumb together and saying, "This is the world's smallest violin, and it's playing just for you."
02:54
me noob?
OMG YOU GENIUS
@Shmiddty THANK THANK THANK YOU SO SO MUCH!!!
@Shea ah thats pretty cool
anyone know of a tower defense game with an API?
03:10
funny you ask
I'm in the process of making one
@SomeKittens do you know of an empire game with an API? cause I'm also trying to make one of those
of course you are
@SomeKittens sarcasm?
I actually am - because its annoying how you have to sit around and wait like in clash of clans... so I'm trying to make one where you can write a script to automatically do stuff
@thepiercingarrow ^^ like that?
@SomeKittens don't understand..
@thepiercingarrow look at the phone on the right
03:22
@SomeKittens can't see... what is it?
@thepiercingarrow it's a game being played by Node
@SomeKittens lol
@SomeKittens nvm then thats not what I'm trying to make
@SomeKittens unless there is a server hosting the towers?
how long have you been working on your thing?
@SomeKittens about a month - but I haven't been working on it recently (I am busy with school project + studying for bio SAT) so It won't be released for maybe another few months
@SomeKittens its very similar to Bloons Monkey City
which is sort of like a combination of clash of clans and tower defence
03:52
hey, any of you guys have experience with jquery?
What's jQuery?
@StanleyDharan that isn't obvious?
assume someone does :)
if someone feels like it they might look at the fiddle
04:13
@thepiercingarrow botting, aka cheating, isn't it?
no idea about that game so that might not be an issue
I havent played that
you are going to connect posing as the phone game client, from node?
04:26
I guess, the game is meant to provides an API to get game state, and gamers code logic and post the actions back...
04:53
ah, I can see now, their protocol might be human readable. neat
05:11
Hi guys gd morning...
What's a GD?
05:33
hello everyone
@JanDvorak gd means good
Then use good, not gd
thats a shortcut some uses and I am aware of it so told you
well can you tell me if its advisable to use javascript inline functions in jquery?
Sometimes. Do you care about, say, IE9?
Tell me quickly, does IE9 support classlist?
IE11 Partial Support
I thought IE10 finally supported this...
... and that's the point.
05:42
I dont know much about javascript/jquery. I have expeireince in java and recently moved to this new technology
Hmm, caniuse hasnt listed IE10 for it.. MDN has listed as IE10 tho..
so tell me should or should not I use ?
is this <a onclick="doSomething()" href="#">Click!</a> bad?
Yes.
I thought you meant stuff like document.body.classList.add(...)
<a onclick="doSomething()" href="#">Click!</a> is also called inline
if not then I am sorry for confusing you
@SomeKittens calculords <3!!!
05:56
I have lots of divs and the number of divs are not constant and div are generated dynamically. I need to call one function when any of the div is clicked. For this I did as below
<div class="hello"></div>
<div class="hello"></div>
<div class="hello"></div>

$(".hello").click(.................)
seems legit, but this won't catch hellos added later
but my senior is saying dont do like the way I am doing. He is saying to do
<div onclick="hello()"></div>
<div onclick="hello()"></div>
<div onclick="hello()"></div>

function hello()
{
..........
}
I dont know who is right?
just wanted to know which is bad?
@JanDvorak you are true , but divs are generated based on the number of rows in DB. divs are not added from the front end
if divs are generated from fron end then I have to use .on()
His suggestion is not a good way to do it, if only because you can't have more than one handler and because the function has to reside in the global scope (namespace nightmare)
do you think my way is correct?
@SpringLearner Your way is better
Especially if you already have jQuery on the page
06:04
It's good but it has limitations.
But the question is whether you want to add jQuery in, if you don't have it yet.
user3119231
good morning.
I am using jquery for all events
like getting id,setting id etc
I came up this article
where it says
Bad markup: Link
Never include Javascript events as inline attributes. This practice should be completely wiped from your mind.
<a onclick="doSomething()" href="#">Click!</a>
but no reasons given
Oh, and never do this: $(elem).attr("id")
user3119231
maybe this is interesting for you: github.com/ndugger/youdontneedjquery
06:18
Say you are frustrated...what sort of music should we listen to so we can focus on the next best thing...
user3119231
maybe something deep with a little story
@SpringLearner 1. It forces doSomething() to be global
So you can't use scoping to your advantage
2. This way, you can only ever have one click handler, there are cases where you'd like more
@SomeKittens you made that?
And 3. JavaScript is the one that determines how your element behaves when clicked. You should define the event in JavaScript, and not in HTML.
06:24
@MadaraUchiha honestly I'm starting to think that point 2 is kind of a bad point
@towc How so?
what if you know you only want one event listener?
@Maurice its good...
@towc You know that now
What about tomorrow? When your requirements change?
altho I don't understand the confession part in the end...
06:25
but that could be said for anything else too
What if you want to add event logging, metrics?
@towc Exactly
Some ways are more future-proof than others
you're using an if, but what if you needed a while tomorrow?
@towc Well, in that case, you can easily make the change.
If all of your markup elements have inline handler attributes
same for the onclick
@towc For one element maybe
06:26
@MadaraUchiha but that's point 3, it's separate ;)
but considering only javascript's element.onclick
yeah, there's no way inline onclicks are good
@towc Then it's usually trivial to change
so point 2 is still invalid
unless there is point 3
Well, by adding .onclick you're attaching data to the element itself
(In the form of a function)
@JanDvorak I have use this $(elem).attr("id") many times. what is the bad in it and what's the alternate way ?
Although, now that I think of it, .addEventListener can be seen as exactly the same...
@SpringLearner elem.id
06:29
also, it's wrong :P
You can still add click listeners
@towc Well, I guess there's no functional advantage.
But say some of your elements need multiple handlers and some don't.
element.onclick = function(){ console.log( 1 ) };
element.addEventListener( 'click', function(){ console.log( 2 ) };
You can either use addEventListener() for everything, or you can use a combination of both
Which kinda suck
when clicking both 1 and 2 are added
yeah sure, using both is bad practice, but it may have some good semantic meaning
@towc There're no semantic meaning in JS
That's HTML territory.
06:30
still, it's possible to addEventListener s after using .onclick...
@MadaraUchiha not sure if it's a "JS is awful" joke or you're serious...
I might still not be sure what "semantic" means
@towc There's no "semantic meaning" in a programming language
HTML is a markup language, a language that's meant to imbue semantic meaning into content
hmmm ok
anyone else on that?
@MadaraUchiha I followed up this answer to get the id
1022
A: How can I get the ID of an element using jQuery?

instanceof meThe jQuery way: $('#test').attr('id') In your example: <div id="test"></div> $(document).ready(function() { alert($('#test').attr('id')); }); Or through the DOM: $('#test').get(0).id; or even : $('#test')[0].id; and reason behind usage of $('#test').get(0) in JQuery or even $('#...

as it has 1k+ upvotes so I thought it will be best answer
@SpringLearner I can see why it comes off as confusing.
@MadaraUchiha but for example, some algorithm that doesn't seem to make any sense without knowing the maths behind it... that has a semantic meaning of... the maths behind it?
or does semantic mean that you can convey multiple meanings onto it depending on your needs?
actually, same works for programming
06:33
@towc Semantics is this:
I may be nitpicking
Shopping list
-----

1. Eggs
2. Milk
3. Bread
what's the reason of not doing that way? are there any browser compatible issues or any performance or why you are saying not use?
You can tell what this is
But the computer can't
<h2>Shopping list</h2>
<ol>
  <li>Eggs
  <li>Milk
  <li>Bread
</ol>
Now it can
@SpringLearner It's a nitpick really
Because there's the shorter version domElement.id, and people finally found something that jQuery does that's longer than the original DOM version, everyone like to shout.
If you already have jQuery, and you don't already have DOM element in a variable (but, say, a selector), then .attr('id') is just fine.
@MadaraUchiha </li> :D
o/
06:36
If you do already have a DOM element in a variable (say, inside of an event handler, with this), then doing $(this).attr('id') is kinda pointless, as you could this.id instead.
@MadaraUchiha @MadaraUchiha same difference between pseudo code and actual code :P
@Cerbrus Implicit.
My HTML is by specs.
@towc Exactly.
so JS does have semantics
@towc All programming languages "kinda" add semantics onto the thoughts of the developer writing them
a JS implementation of some pseudo code contains semantics
06:37
/me starts new job today!
13
oh wait, you're saying that pseudo code = semantics?
@Abhishrek Grats!
Are you discussing the semantics of semantics, right now?
congrats @Abhishrek :D
@Cerbrus We must go deeper!
06:38
Grats, @Abhishrek
@MadaraUchiha tanks!
So meta
@Cerbrus we were discussing whether .onclick was acceptable
from you and jan I have collected 3 points which I can try to prove the way I am doing is correct. If you have got any other points then please tell me because My senior will always try to prove me wrong infront of manager
@towc I think you deviated from that discussion :P
06:38
@towc I think that .addEventListener is simply a better option
And there's no reason not to use it.
@Cerbrus yeah, my fault
@MadaraUchiha longer?
@towc Really?
indeed
mostly never a good reason, but meh
also, it's easier to switch between listening functions if you need to
DOMNode.prototype.ev = DOMNode.prototype.addEventListener;
Better?
Really, amount of typing should be the last thing you care about
// or how about this:
var listeners = [];
element.onclick = function(){
	listeners.map( x => x() );
}
listeners.push( getClick1 );
listeners.push( getClick2 );
06:40
Unless we're talking about several kB of typing
@MadaraUchiha parenthesis and all?
no no, it's mainly about laziness
:)
@towc If most of your time is spent on typing
You're doing it wrong.
I better pack up
@Abhishrek congrats! Let me know how it goes and how many arrogant programming interns you make cry today
@Neil Its more of a Developer Success Engineer Thing luckily no interns :P
currently finishing, "new hire" things.... like reading about how to play civ5 while it compiles
user3119231
06:43
nothing to do here: (Perl / Ruby) emailregex.com
@Abhishrek developer success engineer? Is that another term for software engineer?
@Neil More or less if answering questions on Stackoverflow was a job :-)
mix in a little bit arch :P
@Abhishrek sweet. I do that for free.
@Neil You're hired!
@tereško Old but gold :)
yeah
06:46
@MadaraUchiha sweet!
@Neil :P but its not on stackoverflow though :P
@Abhishrek I figured as much. You're essentially a technical consultant then
@Neil kinda, but the entire stack of the company is on github (:, I get to be cool when I can :D
@Abhishrek just keep a pair of sunglasses in your pocket to put on after you say something awesome like "I too would have done it that way, except better"
@Neil lolol
06:53
I switched jobs about 5 months ago
Guys, anyone here working with uglify+grunt?
that's how I would have answered, but it wouldn't take me an hour (glasses)
I keep in contact with a few friends that I had and they wrote me the other day to say that everything was going smoothly
I want to write a sourcemap, and then upload it to a different (password-protected) server, so that only company authenticated employees can have access to it.
I am not sure if I am happy or wishing that things are awful without me
06:54
Does Uglify have that capability?
yes, you can pass in any sourcemap you previously constructed and use Uglify to build the final one
07:08
@MadaraUchiha if you have access control, you could respond to employees with a X-SourceMap and allow them to fetch the sources (if they're usually interested in the current ones)
@FilipDupanović I don't have access control in the CDN
But I can host the source map file on an internal server, and then only employees can access it (either from the office, of from VPN)
@FilipDupanović task.js and VanillaJS are my 2 most favorite frameworks.
Can't beat the features that vanillajs provides for the download size
UglifyJS has a sweet API for ./task.js scripts
@FilipDupanović I plan on moving us to task.js in the near-medium future
All we're doing is running ESLint, concating, and uglifying
hi, does anyone know how I can make jQuery click function work with elements that are initially hidden? stackoverflow.com/questions/37511441/…
07:18
We don't need this ugly grunt with all of its internal dependencies breaking every month or so because some fart dev decided that adding a dependency with version '*' is cool.
and maybe you could get away with a service worker and a HTTP/2 server and not have to compile any of the sources, or transform them on the fly
@Abhishrek auth0?
user3119231
\o/ congrats!
how is your health now?
user3119231
07:24
my health? o.o
@AwalGarg Because some of us don't use laptops (we've spoken about this before)
oh yeah, you are one of those odd people who don't like laptops
n00b
user3119231
^
Morning
07:35
morning guys
for functions in es6 are these correct?
Does anyone know a plugin that finds all Entries within a radius from the given location?
E.g I search for Berlin and add a 50km range I want to return all users within this circle.
function multi(x) {
	return x * 10;
}
@AwalGarg and here's me being way to cheap to finally buy myself a new one
??
var multi = (x) => {
	return x * 10;
}

multi(x) => {
	return x * 10;
}
just want to know if the second method is correct? or only the 1st ?
@GNi33 I don't have one that I've bought either
I use my sister's old, forsaken laptop when I need one
07:40
yeah. I'm getting around a lot so I kinda need one. Although I'd prefer a desktop system, I haven't had one in a century I think.
@TechTreeDev Store your users' lat long in the database as spatial / geo data, then use the database's distance function as query condition.
@Ming Only the first. And you can write const multi = x => x*10;
@Sheepy thanks very much :)
@SomeGuy I can't stop playing these damn wargames
"playing"
Desktop is good. I was visiting my sister yesterday with our nieces. One of them take a peek at her room and say, "What, who use full tower these days?!". And then I said, "I have three of them at home." And he is stunned. Of course I also have notebooks. And convertibles. And I can handle some light troubleshoot on my phone.
@Sheepy Okay, that's how I do it currently. Was just curious if there's an alternative
@GNi33 you mean by wargames RTS generally or the series?
07:47
@TechTreeDev When done correctly, that should be better than most (all) custom coded alternatives.
@GNi33 sounds interesting
user3119231
which ssh client is recommened?
I use putty. Haven't tried others. Oh and I use Filezilla for SSH file transfer.

« first day (2053 days earlier)      last day (3117 days later) »