DEV Community

Discussion on: Should Frontend Devs Care About Performance??

 
trenthaynes profile image
Info Comment hidden by post author - thread only visible in this permalink
Trent Haynes

It sounds like you've never encountered an app that will not run well on your old system, but runs fine on your new system.

Thread Thread
 
bytebodger profile image
Adam Nathaniel Davis

When an app runs poorly on your old system, but it runs fine on your new system, it's not based on the number of lines of code.

Thread Thread
 
trenthaynes profile image
Info Comment hidden by post author - thread only visible in this permalink
Trent Haynes

I didn't mention lines of code. There is a correlation between the size of the app and the complexity of its function and the demand it places on its running environment.

The size isn't the actual cause (usually). It's just indicative of the likelihood that the app will be more demanding of its execution environment.

Thread Thread
 
bytebodger profile image
Adam Nathaniel Davis

I'm sorry, but this is a bit disingenuous. You say that you didn't mention lines of code. But your initial comment was about the size of the download. What do you think makes the download large???

Thread Thread
 
trenthaynes profile image
Info Comment hidden by post author - thread only visible in this permalink
Trent Haynes • Edited

I'm sorry, but your original use of the phrase was disingenuous. It comes across as an attempt to belittle the point. Lines of code is purely a function of formatting (unless you can point me to an accepted standard of how to measure it).

I get that you don't think the number of bytes you send to the browser matters. You've made that perfectly clear. I understand that point of view. The company I work for takes the exact same stance. It's still the wrong stance. Size is not usually the actual cause, but it is certainly a reasonable proxy for judging potential performance requirements. And that is exactly what I pointed out.

The more code you send to the client, the more potential for execution errors, logic errors, or errors indirectly related to the code itself. More code usually means more complexity, which is another vector for more demand placed on the client system.

The code you didn't have to write will never cause a problem. I'm a firm believer in the best code is no code. If you've never heard the phrase before, you might look it up. The idea has been around for quite a while.

Thread Thread
 
Sloan, the sloth mascot
Comment deleted
 
trenthaynes profile image
Info Comment hidden by post author - thread only visible in this permalink
Trent Haynes

Wow. Your sarcasm skills are epic. I hope you can teach me as well.

Thread Thread
 
bytebodger profile image
Adam Nathaniel Davis

I could. But you'd have to download the instructions. And I'm sure that your bandwidth/device couldn't handle the bundle size.

Thread Thread
 
trenthaynes profile image
Info Comment hidden by post author - thread only visible in this permalink
Trent Haynes

Now that you've given up refuting my point, you're going to stick to ad hominem attacks instead. I'll keep that in mind.

Thread Thread
 
bytebodger profile image
Adam Nathaniel Davis

It sounds really impressive to use Latin words like "ad hominem" - until you use them in a way that doesn't make any sense in the current context.

Thread Thread
 
trenthaynes profile image
Info Comment hidden by post author - thread only visible in this permalink
Trent Haynes

Definition of ad hominem (Entry 1 of 2)
1: appealing to feelings or prejudices rather than intellect

It's appropriate.

Some comments have been hidden by the post's author - find out more