« first day (280 days earlier)      last day (3508 days later) » 

4:00 PM
wipes @rlemon off shirt
 
:(
but I showered today and everything!
 
@rlemon I call it within the runNewPHPfile.php at the bottom of it
 
mein facebook api isn't workiiiiiing D:<
 
and I am just using 1 function from that weeklyupdate.js file
this is the true weeklyupdate.js
 
okay, ajax is not async
 
4:01 PM
i just want to call the function setSunday()
 
you need to call the function inside the if (xmlhttp.readyState == 4 && xmlhttp.status == 200) block
you are calling the function before the new HTML is there
 
hmm interesting
i wasn't sure what that block was for exactly
 
ohh wait
hrm.. yea I can't make sense of what is actually going on from the code you've given me
but ajax is a synchronous HTTP Request. other code is free to run after you call send() - you cannot be sure when the server will return the data so run all of your code that will need said data - after the server has returned
.onreadystatechange is a event listener for .,.... wait for it.... readyState changes. :P
 
@PatsyIssa halp
 
well I just pass the ID of the dropdown list to my setSunday function along with a datetime value and then do some stuff and then try to set the values of my dropdown list based on the datetime value
 
4:05 PM
status == 200 (http OK) and readyState === 4 (complete)
 
@rlemon mind if I ask you which books you referred for js? currently am reading definitive guide but I feel uncomfortable for some reason
 
umm.. none?
what do I recommend or what have I read?
 
Eloquent JS
 
The Good Parts i've skimmed, I've read most of the definitive guide (was dull, didn't learn much just refreshed some concepts), HTML5 unleashed is better for modern stuff.
 
And JS: The Good Parts
 
4:07 PM
anything from the wiki ^
 
@rlemon You're a true bro
 
@SomeGuy I had lost that name, had bookmarked but for somereason, chrome lost it
 
the SO tag wiki for JS has excellent resources
It surprises me not many people ever think to look there
 
I hope it covers all, its ironic that am able to do so many things using jQuery where I am not good with JS, but I want some solid base for js, will move on to jquery and than ajax
 
4:10 PM
The best way to learn that I found was to make things
 
^
why do you think I have to many random demos
 
In your case, I'd try to make things in plain JavaScript that you can already do with jQuery
 
@SomeGuy exactly, I've created so many templates and custom systems, that I got good with that, will try doing same with js
 
or take a jQuery plugin you enjoy and make a vanilla alternative
 
what is jQuery?
 
4:11 PM
yea once I get hold of getElementByID <--- that sucks compared to $('.fetch')
@EwokNightmares you trolling ryt??
 
@EwokNightmares an abstraction library for the DOM
@Mr.Alien when I joined SO I didn't know about jQuery
 
Yeah, me neither
3
Q: In JavaScript, eval(010) returns 8

Some GuyIf I use the code: string = '010'; write = eval(string); document.write(write) I get 8 written on the page. Why? This happens even if 010 isn't a string.

I asked that.
 
for the first few weeks I thought it was outstanding. then I smartened up
 
voo vooo vooo, so am the weird guy here who started jquery first and than hopped to basic js :P
 
@Mr.Alien no i'm not a web programmer
 
4:12 PM
I was obviously not a smart man
 
@EwokNightmares ohh fyn.. @rlemon it is really easy to grasp
me off to dinnr, cyu guys later, @SomeGuy @rlemon thanks for the wiki, I'll download the book in a while
 
Enjoy
 
if liked, i"ll purhase a hard copy...
 
jQuery actually hinders your understanding of Vanilla.js
if you learn it first that is
 
I am the shining example of that!
 
4:16 PM
I once tried to teach my friends JavaScript
That's when I realized that programming isn't really intuitive to everyone
(I was teaching using the podcasts that I'd learned from, so it wasn't just me being bad at teaching them :p)
 
@rlemon will I be wasting my time to ask for help in the javascript room since my code is all over the place?
well more accurately wasting their time
 
Yeah
It's too much work if the code is all over the place for us to be arsed to help
Unless it's an interesting problem
Usually, it isn't
 
it is interesting if they are very very very very very bored
 
Not really :p
 
ok add a few more verys
 
4:21 PM
Most rooms have conversation going on, which will be enough to keep us occupied if a problem is uninteresting
Anyway, you should reduce your problem to a point where the code is concise, but you can still reproduce the problem
That's generally what you'd do when trying to debug a particularly difficult bug anyway
 
@SomeGuy good idea
shame this is over such a minor feature i'm trying to add :/
 
Have you checked the console for errors?
 
@SomeGuy no i don't know how to do that
i just save and run it in my browser
 
i do ctrl shift k and it says some things but nothing errors except css "unknown property text-wrap"
 
4:27 PM
@EwokNightmares what browser are you using
 
@rlemon firefox
 
ahh kk
use Chrome
dev tools are much better
(personal opinion, by no means should you change your browser of choice... unless it is old IE)
 
Yeah. I can't use Firefox for development
 
i am trying console in google now :)
chrome*
this is cool
 
@SomeGuy same
FF dev tools are clunky
they feel so un-natural
@EwokNightmares I like the inspector better and the JS console better in Chrome
also I feel the CSS inspector is superior
FF (from what i've read) is better at profiling
 
4:35 PM
Yeah. It might just be because I started debugging with the Webkit console, though
 
4:49 PM
this looks useful to my problem technify.me/user-experience/javascript/…
 
It's usually a design fault if you're sending an XHR request to get code that you execute
Opens you up to XSS problems
 
yes my design seems convoluted
 
user652649
5:21 PM
 
user652649
stevejobsish
 
user652649
steve ballmer & bill gates > *
 
user652649
but this guy looks cool
 
user652649
 
Gates stepped down as Chairman too
 
user652649
5:28 PM
yeah, an era is just finished
 
Yup
 
user652649
and finished badly imho
 
user652649
what happened and is happening to microsoft / gates is really sad
 
??
what happened?
I don't understand when people say this..
 
user652649
what they did to bill gates was just unfair, he got his reputation ruined
 
5:32 PM
what....
 
user652649
the man that invented this century
 
What happened to him?
 
user652649
you don't know nothing about the microsoft antitrust case?
 
I know more about Microsoft than you do.
 
user652649
really?
 
5:34 PM
without a doubt.
 
user652649
lol
 
All I know about Bill Gates is about his philanthropy and him funding Khan Academy
Which are all good things
 
user652649
yeah but many people would say he did that just to rebuild his reputation
 
Huh. Never heard about the antitrust case before
 
lolno
 
user652649
5:34 PM
but i don't agree
 
@Wes He was doing that before his reputation was ruined
 
He did that because his wife was a philanthopist.
 
user652649
i know, i'm telling you what people knows about bill gates. they all think he's evil
 
everyone I know loves Bill Gates..
 
user652649
as opposed to saint steve and his friends
 
5:36 PM
Same here
All my friends look up to Gates
 
go on Reddit - the biggest anti-MS place on the internet
even they like Gates.
 
There was a time in the middle when there was a lot of fanboyism for Steve Jobs and hate for Gates (around when Jobs died)
But that passed pretty quickly
 
user652649
brb going home, we will continue this discussion later tho
 
5:52 PM
Gates - brilliant business man and philanthropist
Jobs - best sales man I've ever seen
Jobs could get you excited about a bowel movement. I'm convinced he could hype / sell just about anything
what we should be concerning ourself with is companies like Joyent and their shady practices when it comes to developer relationships
@mikedidthis chat.stackoverflow.com/transcript/message/14494464#14494464 :( why does the room want me to eat a dick so badly.
 
@rlemon Yeah, that guy knew how to sound inspirational
I think that's most of what he did. Made things sound like they were revolutionary
 
of course, he (imo) was the sole person responsible for bringing Apple back into the spotlight with ipods
he made them so exciting and cool (not to mention they did really work well)
but he also had the ability to make everyone think they absolutely needed the new model that apple released every 6 months
 
@rlemon I wasn't really reading about the Joyent thing. Care to update me on that? Someone declined a pull request that changed "he" to something gender neutral, and the guy was fired even though English was a second language for him, right?
 
the really summarized version:
devA rejected a pull request because it was "too minor"
community gets butt hurt because it is for gender neutrality in the docs "change the proverbial 'he'".
devA over steps devB and accepts it
(here is where we learn later than an internal policy is that NO ONE over steps anyone else. if they do it gets reverted)
devA reverts the change
community goes ape shit calling him sexist and worse
devA posts a comment explaining his actions and such.. it goes more or less ignored.
Joyent releases a press release stating that if he were an employee they would have fired him (he was a contributor fo
it is hard to summarize it shortly.
Ben (devA) walked away from the project because of the actions of Joyent / Issacs (devB) and the community of feminist programmers
Ben committed like 23% of the source code
he was their goose who laid the golden egg
 
6:11 PM
Oh
 
the issue still makes me angry - Joyent acted out of line and so did the entire community. It is a heavily masculine language (English) with a large amount of masculine idioms.
 
Why was isaacs a douche for deleting the comments automatically?
 
the proverbial "he" shouldn't cause such an issue and shouldn't be the reason for one developer to leave a project he was so involved in
 
It started that way, but it was probably the community abusing him that caused him to walk out
 
Issacs was the lead in charge (he is a Joyent employee) and did nothing to defend the man who worked so hard (for free) on a project that directly ended up with Issacs getting paid
he is the person Joyent put in charge of all of this -> he bares equal responsibility along side Joyent
 
6:13 PM
Ah
 
they made a decision poorly and the community lashed back at them -> so they ignored the community (always remember this is a community run project -> Joyent only sponsors it)
^ that is why deleting new comments is a douche move
 
Nope. It's like having two cars with the same plate. — Álvaro G. Vicario 11 mins ago
 
> devA over steps devB and accepts it
I got them messed up there
Isaac overstepped Ben, right?
 
yes
Isaac over stepped Ben -> Ben reverted (as per internal policy) -> Isaac reverted back and community looses its shit
 
Sounds like an ugly incident
 
6:18 PM
@War10ck eh, I wouldn't even say yes to the first one. There is no point - I can have a toilet made out of cardboard... but it wouldn't work. — rlemon 1 min ago
ahh he deleted it
 
What did it say?
 
he said "can I have two ids: yes! will it validate: no!"
 
Hahaha
 
@darkashelin i m here im here :P
 
@rlemon I was going to comment for the one he wrote he can use same id - YES than I was like lets not get in that fuzz else it will just increase the debate
 
6:26 PM
I just see people looking at that and thinking "well who cares if it doesn't validate I can do it!"
 
It's really a philosophical question, in a way
 
He will actually get that when he will use JS
It was the same question here few days back
And I just read this comment which I feel is invalid
This question appears to be off-topic because it is about an explanation to why broken markup works, rather than a practical coding problem. — Jukka K. Korpela Feb 1 at 8:41
 
6:58 PM
jesus so many dupe ID issues today
JavaScript cares not for your seemingly working CSS - JavaScript will hurt you for doing this. — rlemon 33 secs ago
 
7:34 PM
@rlemon 3 days... ;)
 
3 days?
 
yea, that wasn't asked today, it was asked 3 days back...
When I started html and CSS, even i had same issues understanding the concept..
 
posted on February 04, 2014 by danristic

WebRTC data channels for high performance data exchange

 
7:50 PM
@Mr.Alien care to elaborate on my issue
top right corner -> are the links dropped to a new line for you?
 
 
1 hour later…
9:09 PM
well as it turns out there is a funky bug (I think) In Chrome/Chromium...
removing and re-applying the float after the page finishes loading solves it
<script>
(function() {
var a = document.getElementById('chrome-strinks-workaround');
a.style.float = 'none';
setTimeout(function() {
	a.style.float = 'right';
}, 10);
}());
</script>
#fml, #ugly-code, #I-would-yell-at-you-for-it
 
what ze flying fuck
 
yea
 
links are normal on the bin you linkjed
 
@PatsyIssa it is not consistently reproducible.
 
are you clearing the floats after them ?
 
9:14 PM
no, I've checked and rechecked with the inspector.
 
i mean you should clear the floats
 
this is strange behavior (not norm)
likely a browser bug
 
hmm
 
there is absolutely no reason why my solution should fix it if it isn't a browser bug
 
true
 
9:14 PM
I'm removing a property and re-adding it (the delay is for smart browsers who see that as a noop)
 
can you revert it so i can refresh it around and check if it ll happen ?
 
it isn't a reflow issue either. I forced reflow on the page and nadda
yea 1 min
I gotta go for a smoke
I'm pissed
 
aight i m here
 
it is only reproducible in Chrome/Chromium 32 on Windows / Linux
and you may need to refresh a few times
like I said it is inconsistent
 
got it
it happened
 
9:22 PM
open the inspector on the UL
uncheck the float
recheck it
:mind blown:
 
found it
 
O.o
 
ok float left your pure-menu-heading
 
but why should I have too
 
add an :after pseudo element to the ul that has clear:both
 
9:23 PM
Chrome 31 handles this properly :P
 
32 is full of bugs
 
well fuck me running!
 
but it's causing it to treat the pure-menu-heading as a block element
looks like a bug with display:inline-block;
 
yea I noticed that
I couldn't get it not too
display: inline; still wasn't changing crap
 
needed a float
 
9:25 PM
so hacky css it is.
better than that fucking js I had
 
css is one big hack job :P
just spent the past day making a video work in chrome consistently
it would play some times and others it would be like nah fuck it
 
@PatsyIssa its a fun hack job though!
 
gotta give it that ^^
every site is a challenge regardless of what you know :P
 
@PatsyIssa true that!
 
Aye, put fun all the same. I just struggle with organising things.
@rlemon I dunno, maybe they are into that sort of thing
 
9:33 PM
@PatsyIssa thanks that worked.
 
had to set a fixed height for the app-menu but that is okay by me
fuck that was driving me up the wall
 
no need for a height if there's a clear both
 
check the page again. remove the height.
 
9:36 PM
if the after element doesn't work add a div with a class clearfix and clear both on the div
 
> The Doug Crockford style of using obj.hasOwnProperty, ===, and semi-colons whenever possible always rubbed me the wrong way.
stopped reading
 
Ha, its worth it for the last part about just do you.
 
@mikedidthis I gotta share that with the js room :P
we fucking hate no semi colons
and we hate ==
and we LOVE .hasOwnProperty
lol
 
@rlemon I know, I know, I know :D
You told me off for it before, remember!
 
lol
 
9:38 PM
Anyway I shared it more because of @fat comments to the kid.
 
I'm not telling you off, I'm using my yell type to show you how much you learning JS means to me
bro <3
 
I disagree with his statements on "why get better at programming"
I agree we should try to think about the broader picture... but in the fastest moving / evolving industry there is.. he is fucking bat crap crazy to think we don't need to strive to be better programmers every day
like a fucking nutter - I would have called him out had I been the other guy
 
But the more you build, the better you should get, right?
I mean, we tell people in here all the time, the best way to learn is to build.
 
yup
 
9:43 PM
> Once you do enough of this it’ll be easy to make code look the way you want it to.
 
and that is also in conjunction to learning how to build it properly.
> What he explained was that if I can already build anything I could imagine (with enough Google searching and time) then what’s the value in getting any better at programming itself? Instead I should focus on getting better at building things or get better at thinking of things to build.
 
Yeah, I agree with that, but learning whilst producing is a nice pattern.
 
this is just sending the picture to the guy that "the art of programming will not change. you know what you need to know now go start coding!"
 
hahahaha
 
@mikedidthis yea but it doesn't sound like he is advocating that
I wouldn't just blindly stab at the History API - I would learn about it first, then get practice by implementing it into a shit project.
 
9:45 PM
@rlemon meh, maybe its just the way I read it.
 
but then there is also ES6
if he gives up on learning how to program now... in a few years he won't be able to write JS
class is a game changer
 
But if you can hack enough together to use the History API the first time, if you keep using it in your projects, you will improve your knowledge and how to use it?
I mean, I don't think he is saying get the it working and just copy pasta it :D
Anyway, this is my fav:
> I’ll never forget one day he rolled in at noon, started watching Action Bronson music videos, ate lunch, went to the gym, and then proceeded to close every mid priority bug filed on Github from 3pm to 9pm.
 
I just think there is WAY to much to know about programming concepts / design patterns / testing patterns / architecture / optimizations / for some punk kid (I don't like @fat. respect his work.. but think he's a tool) to say you can "stop learning how to program"
he is a bad programmer (imo)
 
that is such a bullshit statement, there's something new to learn everyday
 
he knowingly introduces patterns / code that he knows will break on the next revision of JS <- that is a bad programmer
 
9:48 PM
and you ll never master anything regardless of how well you know it
 
yeah I see your point.
 
!function(){}();
will break in the next revision of JS
 
why would you ever use that
 
@fat uses it everywhere to save a single character
@PatsyIssa turns the declaration into an expression
 
but what would be a situation where you d need to do that ?
 
9:50 PM
@mikedidthis dont' get me wrong. I've looked over his code and it is not bad code - aside from the glaring abuse of the language
@PatsyIssa IIFE's
(function() {}());
!function() {}();
save one char
it is horrible.
Bootstrap uses it for all of the JS
 
just to save 1 car that seems retarded
 
@rlemon I get what you are saying, but at the same time his production rate is impressive. I mean the more you do, the more you will learn and improve.
You can read all the programming books in the world, but its the practice that helps you grow, right?
 
@mikedidthis yes, and I agree. I just don't agree with his advice
you need to balance it
 
aye.
 
you need a certain amount of conceptual learning and then a certain amount of real life experience.
just like anything.
I mean. why else do we goto school
when you get out of school.. the most successful people are the ones who don't stop trying to learn.
like I agree with his overall message: get lots of practice by writing lots of things
 
9:53 PM
learn and do.
 
but the way he delivered it (in that article) I think is wrong and promoting poor habits (not continually trying to learn more about your art)
 
Yeah I can see how that comes across.
 
aside from all of that I also think he is a horrible person :P
but that is moot (against that other point)
the more and more I read the Bootstrap JS source the more and more I vowed I wouldn't use it again
he is setting himself up for a lot of work in the future
 
as in job, or refactoring?
 
refactoring
 
9:55 PM
He will just start over if the later, you know that.
 
basically changes to JS will make the ! trick no longer valid.
 
I disagree with you on that point.
 
and I hope to god they rethink ASI
 
I mean, its his project, that blew up, if he wants to code in that style and no one is paying him / them, then I think that is fine.
 
I can't comment on the CSS mind you - I'm only talking about the JS
 
9:56 PM
I mean either.
 
he also advocates it.
you know what ASI is right?
 
@rlemon auto semicolon insert-thingy
 
yes
he abuses the living fuck out of that
he is the sole person responsible for making it as popular to do so as it is
I can't let that slide :P
 
@rlemon that's a bit strong.
Anyway, your school / learn thing reminded me of this song: rapgenius.com/…
 
Who feels up to a challenge?
It's simple: Get a link on the same line as some other text.
 
9:58 PM
> The moral of this story: ASI is (formally speaking) a syntactic error correction procedure. If you start to code as if it were a universal significant-newline rule, you will get into trouble. - (JS creator) brendaneich.com/2012/04/the-infernal-semicolon
@mikedidthis I saw no other (visible) projects that used that style before his
 
@AustinBurk I hate to say it but I don't see the challenge.
 
I spent a good twenty minutes trying to put a link right next to some other text, and eventually gave up and manually positioned the link.
 

« first day (280 days earlier)      last day (3508 days later) »