« first day (1011 days earlier)      last day (3920 days later) » 

6:00 PM
@Shmiddty What is the reason it is bad though? is it from a performance standpoint or best practices or?
 
maintenance
but yes, performance also has a factor in it
 
@powerc9000 Do you cook in your toilet?
 
@Darkyen You may use them as long as it's under fair use
 
I don't, I try not to have a grill in my toilet, and I try not have html in my js.
 
@Zirak I never cook
 
6:07 PM
Problem solved, then.
 
I have some inline HTML, sometimes it's just so easy
Mostly it's stuff like <b> or other ugly stuff, and 95% of times it's because requirements changing
 
tinker.io/6e32d/4 definitely a lot better... still not there :/
 
@BenjaminGruenbaum that point in a big project where time is getting short and the code starts to suck
 
@GNi33 Oh no, never in a big codebase.
I would never have inline HTML in a big code base. Only in small ones that are likely to go away anyway.
Like an HTML page I need to "make dynamic". Never in a web app.
 
no, not that, i was thinking about js - code in general
found some parts of a project that is due in one week today that I'd just need to refactor
 
6:11 PM
1
A: javascript return statement not working

NealFor the four bajillionth time. You cannot return from an asynchronous function. You need to use a callback.

ARRRG
 
What would be the best method for adding text to a node? Should my create function accept optional text content and put it in using el.textContent?
 
but, they work and I kind of have too little time
 
@rlemon looks like abstract water colors
 
@Neal that answer is rude you should revise it.
 
@BenjaminGruenbaum Go for it. It is CW
 
6:13 PM
opps
 
@EliteGamer 42
 
@rlemon thanks.
 
how do i get the string from this Json?
[{"Username":"TeamFeaR","ProfileLink":"http:\/\/www.twitter.com\/TeamFeaR"}]
this is what i have
				$.getJSON('/tweet/tweets.php', function (Username) {
					var Username = UserData.User;
					var $TwitterUser = $('#twitterbox').contents().find('#usr');
					$TwitterUser.html(Username);
				});
 
@Neal Technically you can return from an asynchronous function - if it's a generator.
 
@BenjaminGruenbaum ...
 
6:14 PM
and on my PHP
echo json_encode($UserData);
 
var a = yield myAsyncFunction();
console.log(a.result);
^ I use that sort of code a lot nowdays.
 
JSON.parse
 
@BenjaminGruenbaum and where can i get them ?
 
Does Jquey not parse it for you?
 
check
 
6:15 PM
@Darkyen No idea :P
 
@rlemon
 
@BenjaminGruenbaum mehhh
 
@EliteGamer Don't random ping people.
 
@BenjaminGruenbaum what are they called ?
 
i did not, i ment to do it after my response
 
6:15 PM
@Neal I'm not 'just being an ass' here :P I see what you're saying though.
 
user1125394
@EliteGamer put a breakpoint and see
 
@BenjaminGruenbaum I see
 
@cx how do i do that in Jquery?
 
@Darkyen Logos? You can use other trademarks under fair use
 
through ajax
 
6:16 PM
@BenjaminGruenbaum the macbook
itself
we putup an iPhone (well 3) their
 
I think that's perfectly fair use
 
You are developing an app for the device and you are showcasing how it is used on the device.
@Neal too fast :)
 
@Teixeira Welcome to the JavaScript chat! Please review the room pseudo-rules. Please don't ask if you can ask or if anyone's around; just ask your question, and if anyone's free and interested they'll help.
 
@BenjaminGruenbaum :-P
 
6:19 PM
@rlemon how do i add a breakpoint?
 
user1125394
stop!
 
HAMMERTIME!
 
F12
play around
 
@EliteGamer Consider this your first warning, stop asking for things you can google.
 
ok, but i did not know you can set breakpoints?
 
user1125394
6:20 PM
How can I google?
 
@cx i did not google is a verb
 
MAAAAAGICNeal 19 secs ago
...
 
careers.stackexchange.com has some very nice developers you can hire. I'm sure you'll work something out. Best of luck! — Benjamin Gruenbaum 12 secs ago
 
6:27 PM
@BenjaminGruenbaum Ouch!
 
user1125394
I'd need to learn what is Jenkins once..
 
@Neal You have 2.5k answers, clocked about 2.5 years in the site and chat, and you still don't employ basic human communication skills. Watching you operate, I just have to wonder...what's your deal?
 
@BenjaminGruenbaum when i add the breakpoint, and then reload the page, the script does not stop at the breakpoint
 
@Zirak hmmm?
 
Anybody can help with my question? stackoverflow.com/questions/17817760/…
 
6:29 PM
@EliteGamer I'm sorry for you :) I hope you get around this problem successfully. Good luck!
@EliteGamer If only there was an engine where one could search for such things... Oh well.
 
@user889349 If i was Benjamin, i would tell you to google it, but i am nice, so i will help, lol
 
@user889349 Wow... mootools, haven't seen that in years
@user889349 What's wrong with a for loop and createElement ?
 
Don't know how to implement this...
 
@user889349 which part? iterating through the users or creating the elements or setting the attributes?
 
Add new users and remove old to/from userlist
 
6:33 PM
@user889349 You create a div element with the createElement function, for example document.createElement('div') , you can learn more about it here.
@user889349 You add an element you created (like the div you created with createElement to another element with appendChild which you can learn more about here . You need the node you're appending to which you can get using getElementById.
@user889349 here is a working example, this is using functions that are not available in old browsers so you can't use it in your own code if you support those. This is intentional - in order for you to have to understand what's going on and not just copy-paste the code. jsfiddle.net/vaLsG
@EliteGamer To place a breakpoint that would 'always work' you do a magical thing and type debugger; which a single search would have told you, probably even on w3skuls
 
user1125394
 
@cx Do I get to act all matrix and make up weird computer terms while multi-talent hacking?
 
ghad. i give up
 
Why don't job listings always post salary ranges?
 
@BenjaminGruenbaum you are not holding back the punches
 
6:40 PM
@powerc9000 "hacker" is such a dumb term imo :)
 
@BenjaminGruenbaum oh I was talking about your conversation with @EliteGamer
 
user1125394
yes, it's old term now
 
@Shmiddty Because the facts of life are - your salary depends as much on your negotiation skills
 
But Hacker really is
 
@powerc9000 I hate lazy, and I hate people who feel too free wasting our time with stupid questions they can very easily search for.
 
6:42 PM
@BenjaminGruenbaum My counter was that I don't want to waste my time looking into/applying for a job that just isn't going to be able to pay me what I want.
 
user1125394
best thing is to negociate bonus from start, which I didn"t :(
 
@Shmiddty The best tactic from my experience is to constantly apply to several jobs every month, even if you're perfectly happy with your job and just go interview.
 
@BenjaminGruenbaum that sounds like a hassle.
 
@BenjaminGruenbaum I understand it I guess I have a harder time being a little bit rude about it
 
@powerc9000 Oh, @Shmiddty is a lot ruder than me most of the time :)
 
6:44 PM
success: function(r) {

var ids = [];

for(var i=0; i< r.users.length;i++){
if(r.users[i]){
users.push(chat.render('user',r.users[i]));
ids.push('user-' + r.users[i].name);

}
}

$('#users').append(users.join('')).children().filter(function(i) {
return ids.indexOf(this.id) === -1;
}).remove();
}
 
@Shmiddty Yeah, but interviewing a lot is very important, and you end up getting interesting offers.
 
@user889349 dont just copy paste code!
into the chat
 
@user889349 FORMAT YOUR CODE control+k
Or put it in jsfiddle.net or codepen.io or jsbin.com
 
But how to wite it using mootools? Ok.
 
@BenjaminGruenbaum honestly, I should start doing it.
I'm at about 50% of my "BS I can tolerate" meter.
 
6:45 PM
@Shmiddty Being good is a hassle, being mediocre is a lot easier. Being good means you have to constantly get a valuation of yourself, it's very helpful and it's grounding.
@Shmiddty Being put in a defensive stance where you have to justify yourself is always a good way to tackle your weak spots too imo.
 
I'm pretty self-aware, in my opinion.
 
I like your words of wisdon @BenjaminGruenbaum how long have you been doing this?
 
Yeah, I'd like to think that about myself too, but I find the double checks very helpful.
 
I know where I'm weak (documentation is a big one)
 
@Shmiddty documentation is something people barely do and for a good reason in practice, I wouldn't worry that much about it. Clear and clean code is a lot more valuable than documented code. Documentation usually comes later when the API is standardized and shared across teams.
 
user1125394
6:47 PM
< decision making and slowness
 
Also it's perfectly fine to reject job offers that you get after an interview, I usually like to reject saying they're not offering enough money or using interesting enough technologies. Usually the reason is neither.
 
@EiyrioüvonKauyf Welcome to the JavaScript chat! Please review the room pseudo-rules. Please don't ask if you can ask or if anyone's around; just ask your question, and if anyone's free and interested they'll help.
 
@powerc9000 not too long, couple of years, I'd say 8 but not consecutive.
 
@cx coding quickly isn't really that important.
 
I need a major redesign of the GoJS site, anyone here into web design?
 
6:49 PM
Coding quickly is a big plus. I say that because I code quickly and employers have constantly found that impressive.
 
you will have crunch days/weeks/months, but that isn't the norm in my experience
 
I really need to improve my sense of responsibility. I think that's my biggest weakness. That and that I down-estimate deadlines.
 
@BenjaminGruenbaum but you would agree that at least some rudimentary architecture is valuable to do upfront.
 
user1125394
@BenjaminGruenbaum yep it is, if you can quickly shape the app etc..
 
I'm weak in being lazy in my code
 
6:50 PM
@Shmiddty Shaping the app is a part of coding.
 
and the fact that I have only been coding hardcore javascript for about a year
 
@BenjaminGruenbaum So overestimate deadlines for customers, and carefully word an "eager estimate" and a "conservative estimate" for fellow employees.
 
@ShotgunNinja If I overestimated by choice I wouldn't list that as a weakness.
I have some great 'interview' weaknesses if anyone wants to hear them :P
 
Eager estimate is how much you'd expect it to take if nothing goes wrong. Conservative is that times 1.3 to 1.5, depending on your level of confidence. Delivery estimate is 1.6 to 2.0, also depending on confidence level.
 
I think taking more responsibility over the part my code does in the grand design is probably the biggest thing I should work on atm.
 
6:51 PM
@BenjaminGruenbaum hyperflatulence?
 
I want to hear
 
@ShotgunNinja I've read the books :P
 
Do you have historical data to back up your estimates?
God, I wish my company did that...
 
@powerc9000 This is going to sound like I'm being an ass, but one should constantly sell oneself in an interview :P
 
@BenjaminGruenbaum please tell me more I have an interview for a job I really want in 2 hours
 
6:53 PM
@BenjaminGruenbaum Well duh, this is how you earn your living, of course you should sell yourself.
 
user1596138
@powerc9000 Same here! Who are you interviewing with?
 
@Jhawinsss Instructure
 
Don't say anything you can't deliver, but provide proof that you can accomplish what you set out to do.
 
Social skills > practically everything in an interview.
 
user1596138
6:54 PM
@powerc9000 Looks interesting.
 
@Jhawinsss I think so. Plus I will actaully get to code an not setup wordpress sites
 
@powerc9000 I tend learn new technologies very quickly and adapt them. I can learn programming languages and complex APIs very well in very short periods of time and build solid production level applications in them. I consider that a weakness because it means I often don't give more traditional technologies a chance where I should for consistency and better support. I'm very aware of the problem and I'm actively working on that though.
 
@powerc9000 You need to unlearn everything you've been doing.
 
@Shmiddty related to wordpress or javascript?
 
probably both.
 
6:56 PM
@BenjaminGruenbaum I do the same thing.
@Shmiddty and why do you say that?
 
@Shmiddty You know what's funny? Unlearning, especially bad habits, is tougher than learning them.
 
@powerc9000 The point is saying something that's actually a very big advantage in a developer as a weakness, then saying how you're aware of it and are working on being better at what you do.
Anything can be a disadvantage, team player, independent, fast programmer, writing a lot of tests, reading a lot on programming outside the work hours, participating in open source projects etc.
 
@BenjaminGruenbaum ah I see
 
@OctavianDamiean the guy with the cigarette in his mouth nods in despair
 
It's almost all about presentation, like @Shmiddty said - social skills. Look like a guy who's fun to work with, that's the most important thing we look for in interviews, and practice practice practice.
 

« first day (1011 days earlier)      last day (3920 days later) »