Good video but I've never had a performance issue with the module pattern. It maybe slower, but I've written huge applications with the module pattern and I've never had a problem with performance.
@jwmcpeak The module pattern is when you create a function that represents a class that returns an object containing references to functions within the class function. Aren't you stating that this is an anti pattern?
Let be clarify, I don't think your wrong, I like you video, but I don't think that because browser developers think closure is less important than prototype performance, doesn't mean I'm going to use prototypes unless the performance difference is noticeable without a benchmark.
@RobertWHurst Typical module patterns are one-shot executions; they execute once (usually at load time) and then return a helpful object. Rarely are those builder functions executed again.
What I address in the video are outer functions that are repeatedly executed. So if a particular module is executed many times within the page's lifespan, then yes, probably so. But then again, modules are extremely helpful, so it could be argued that it's worth the resource cost.
wow, firstly I'm really impressed that I see visual studio in nettuts video :) . anti pattern, KISS ! Thanks for this tutorial, it's simple but very useful :)
@ScruffFluff I fucking hope it never is...
TheProgrammer93 3 months ago
@ScruffFluff no, it *literally* isn't....
TheProgrammer93 3 months ago
@TheProgrammer93 When is a word a word?
jwmcpeak 2 months ago
'Performant' isn't a word BTW...
TheProgrammer93 4 months ago
@TheProgrammer93 Google definitions say its a French word...
imlokesh92 2 months ago
Good video but I've never had a performance issue with the module pattern. It maybe slower, but I've written huge applications with the module pattern and I've never had a problem with performance.
RobertWHurst 4 months ago
@RobertWHurst I didn't say the module pattern was bad or undesirable...
jwmcpeak 4 months ago
@jwmcpeak The module pattern is when you create a function that represents a class that returns an object containing references to functions within the class function. Aren't you stating that this is an anti pattern?
Let be clarify, I don't think your wrong, I like you video, but I don't think that because browser developers think closure is less important than prototype performance, doesn't mean I'm going to use prototypes unless the performance difference is noticeable without a benchmark.
RobertWHurst 4 months ago
@RobertWHurst Typical module patterns are one-shot executions; they execute once (usually at load time) and then return a helpful object. Rarely are those builder functions executed again.
What I address in the video are outer functions that are repeatedly executed. So if a particular module is executed many times within the page's lifespan, then yes, probably so. But then again, modules are extremely helpful, so it could be argued that it's worth the resource cost.
jwmcpeak 4 months ago
@jwmcpeak Ah I see what you mean. My apologies.
RobertWHurst 4 months ago
@RobertWHurst No apology necessary. I should have been clear on that point, which I neglected to do. My apologies to you.
jwmcpeak 4 months ago
wow, firstly I'm really impressed that I see visual studio in nettuts video :) . anti pattern, KISS ! Thanks for this tutorial, it's simple but very useful :)
Nxqd3051990 4 months ago
@Nxqd3051990 Nice spam there.
Great vid.
majsbullen 4 months ago
wow, firstly I'm really impressed that I see visual studio in nettuts video :) . anti pattern, KISS !
Nxqd3051990 4 months ago
wow, firstly I'm really impressed that I see visual studio in nettuts video :) . KISS !
Nxqd3051990 4 months ago
wow, firstly I'm really impressed that I see visual studio in nettuts video :)
Nxqd3051990 4 months ago