Excellent presentation. The best part of the presentation is that every small code changes and how would affect in the different browser with statistics.
@KPSrinivasa14 жыл бұрын
As my "Guru" said about this video " If you completed the prototypal inheritance, variable scope, and scope-chain traversal....then you might wanna watch it. It will make a lot of things very clear" Thanks a lot "Guru"
@keemor15 жыл бұрын
Very pragmatic presentation, real situations with solutions which are measured and tested. Nicholas Zakas is a great speaker for me. Thank you for sharing your knowledge!
@leviroberts308511 жыл бұрын
Premature optimization is still a big thing. You generally don't have to worry about these things most of the time. Only optimize when you need to. Usually disk I/O, network, etc are the bottlenecks you have to worry about most of the time.
@steveburrus55269 жыл бұрын
+Levi Roberts you don't think that functioins and their scopes play into how fast Javascript is for web develoment?
@leviroberts30859 жыл бұрын
Steve Burrus I didn't say that. What I was trying to say is that it's unnecessary for developers to spend too much valuable time and company resources optimizing things before they are even a problem. Most of the time, smaller optimizations never actually become a problem. It's one of those things that's bitten several seasoned developers time and time again, me included. It's best to set up a monitoring solution with logs to find out where/what your team needs to focus on the most - then work outward from there. Just don't let it become a problem first. I'll repeat myself once more for clarity. Most generally disk I/O (including databases), network, and other dependencies are usually the bottlenecks that hit first in sever-side apps like Javascript (nodejs) and Go. Focus on minimizing those first before worrying about the functional aspects in your application layer.
@steveburrus55269 жыл бұрын
+Levi Roberts POkay Levi I will defer to you. You a re probably more of an expert about this than I am. I just know a little about JavaScript myself.
@sing-tech9 жыл бұрын
So amazing, the best tech talk I've seen.
@vagabond26810 жыл бұрын
Very helpful insight of the internals, i liked the way Nicholas explained scope chain and reflows. Thank you.
@TheHihoGuy14 жыл бұрын
great speaker with knowhow and great video the informations are very useful in the daily use of javascript...
@krone0112 жыл бұрын
absolutely loved this video very insightful and he speaks in a manner which makes it very easy to understand
@s334098511 жыл бұрын
Great suggestions for the loops! Would've never thought to flip them if it wasn't for this presentation
@wesw0213 жыл бұрын
Things like using 'j--' as your loop condition to reduce evaluations or storing a deep property as a local variable to reduce look up (var name = object.name.name) may help you squeeze a little more performance out of your app, but there is something to be said for code readability. IMHO, in most cases you should not sacrifice code readability for performance, especially in a large app. Many of the performance issues discussed are problems with browser engined, not the JS apps.
@DarrenChen15 жыл бұрын
as a newb web developer, I appreciate this presentation
@drewhjava12 жыл бұрын
It's the web man. Last javascript language update was in 1999(not including the recent one). People are still using 12 year old browsers and 10 year old operating systems. Everything is relavant.
@FiddlingOnTheRoof11 жыл бұрын
I knew about scope chain and the need to always declare var to stay local (otherwise it becomes a global variable and that's SLOW [not to mention being at greater risk of collision!]), but there's a LOT in this that I never knew about!
@hertzbergny11 жыл бұрын
the sick part is that this was 4 years ago, showing a chart with Chrome 3 beta, and I'm using Chrome 29 as we speak.
@Hex7211 жыл бұрын
Awesome talk, a great insight into the caveats of JavaScript. I have so many loops to optimise in my game now...
@karolbielen20906 ай бұрын
15 years ago. Now just one epoch, but several at least. Is this video still viable?
@graczmisiek11 жыл бұрын
Valuable tips and unique sense of humour.
@matchflixCH10 жыл бұрын
Are the main points in the summary at 46:00 still valid today?
@EricPeeters9111 жыл бұрын
@34:05 addChild is supposed to be appendChild?
@aliancemd11 жыл бұрын
That's the thing. Now with JIT compilers, how relevant is this? The DOM thing for sure didn't change but the rest... For example, the depth navigation should not be a problem with a compiler now... I am interested too...
@neoreloading11 жыл бұрын
Excellent Session!... kudos.. keep them coming :)
@SudeepMakwana11 жыл бұрын
You R One Of Best @Zakas.... i m your Fan ....
@VicVlasenko12 жыл бұрын
good job. 51:30 if there are a lot of global variables (I saw >200 in some apps) it works 2-3 times faster, when grouping them into an object
@arbindvishwakarma72210 жыл бұрын
Thanks Nicholas for giving such a important key aspect of javascript.
@stevenmildred5511 жыл бұрын
Great suggestions, didn't really think of these ideas to speed up JS.
@RickBeacham12 жыл бұрын
Hey where did you get that profile picture from? I recognize it from another site.
@RickBeacham12 жыл бұрын
Good presentation. Learned alot.
@thirdimage15 жыл бұрын
...or as I like to call it, THE DOM!!!! I totally cracked up when he said that. Really good tips Zakas. :) Now I want to create a Javascript video game called, "THE DOM!".
@marcky4eva12 жыл бұрын
Is the guy asking the question at 53:30 Robert himler?
@deeroks112 жыл бұрын
wish more sites would use this insight.
@mururoa702411 жыл бұрын
How much of this is still relevant with the latest JS engines? (Chrome 26, IE10, FF19...)
@LVEB00115 жыл бұрын
OpenOffice is mostly written in C++ though.
@flowewritharoma13 жыл бұрын
pretty programatic lecturing talk! thanks through communicating bilateral intelligence.
@yahikouzumaki495511 жыл бұрын
Really interesting speech. I need to optimize my DOM accesses now.
@clivend7 жыл бұрын
do you think this is still actual in 2018 somehow?
@raduandrei128911 жыл бұрын
Very informative talk!
@neocoders13 жыл бұрын
All I can think about now is how much refactoring I need to do.
@Hemo123100014 жыл бұрын
Thanks....good video
@warwound15 жыл бұрын
Great stuff!!
@Blinkwing13 жыл бұрын
42:00 At first I thought it was Steve Wozniak
@whatnow120413 жыл бұрын
@MrDotMontage Buy a book. It's very much worth it. You can't really experience the good and bad parts in javascript from these tutorials. Books is the way to go.
@ramsp3511 жыл бұрын
Cool.. Thanks. That helped me a lot.
@yuanwang525311 жыл бұрын
Cool, Very Informative.
@TimVerweij15 жыл бұрын
The DOM was great.
@PuercoPop15 жыл бұрын
The DOM!!! I laughed so don't feel bad!
@BilalHijab15 жыл бұрын
will this speed up my runescape
@folding1215 жыл бұрын
Java and JavaScript are not the same thing. Other than that, this comment is completely valid. :\
@theimben15 жыл бұрын
Yes
@thirdimage15 жыл бұрын
Java programs are the slowest most resource hungry programs out there. Not to mention, Java's virtual machine tends to bog down after running for awhile on your server. Python doesn't seem have these problems.
@khajisavva14 жыл бұрын
@keemor He is a very good speaker and makes some interesting points, I just wish he didn't make every phrase he utters sound like he is asking a question!
@ron741612 жыл бұрын
Nice.
@Cossner12 жыл бұрын
THE DOOOOOOM
@nathan8715 жыл бұрын
i laughed at THE DOM too! humourless google employees...
@hertzbergny11 жыл бұрын
scratch that. Chrome 2 beta.
@jamesgreene206114 жыл бұрын
This speaker is fantastic, but it seems like his wisdom was lost on Google's employees... they didn't seem to care or react!