DEV Community

Cover image for 7 Tips to boost your productivity as a web developer 🚀

7 Tips to boost your productivity as a web developer 🚀

Mustapha Aouas on August 15, 2019

Being more productive as a software developer can sometimes be done by simply using the right tools for the job. If you can save just one minute a ...
Collapse
 
manutopik profile image
Emmanuel Salomon

To toggle design mode, put this in your favorite:
javascript:(function(){document.designMode=document.designMode==="on"?"off":"on"})();

Collapse
 
mustapha profile image
Mustapha Aouas • Edited

Also, because the array destructuring uses the iteration protocol, we can't destructure a null array:

a = null;
[...a]; // throws an error
{...a}; // works fine

About the performance considerations, do you have some benchmarks?

I tried a simple array destructuring for pushing values to an array, and it's faster than the push method: jsben.ch/IFmIz

Collapse
 
bmitchinson profile image
Ben Mitchinson

console.table and debugger; woah

thanks !

Collapse
 
terabytetiger profile image
Tyler V. (he/him)

Holy wow!

The $0 in console after inspecting an element is a game changer!

Collapse
 
douglasjb profile image
Douglas J B

I've been thinking a lot about this recently, and this is the trick: Pump yourself up about what you're working on. It can't be fake. You really have to somehow make yourself genuinely excited about what you're working on. Productivity will follow automatically. Nothing else even moves the needle compared to this, as far as I'm concerned.

Collapse
 
navin_moorthy profile image
Navin

Great Article... Learned a lot..

Collapse
 
mustapha profile image
Mustapha Aouas

Thanks for the feedback, i appreciate it

Collapse
 
shlomilachmish profile image
shlomi-lachmish

first time I see document.designMode 🤯🤯🤯
thanks !

Collapse
 
blackmamba profile image
The Black Mamba🔥

$$ and destructuring array was new for me!! thanks

Collapse
 
chrisachard profile image
Chris Achard

Ah! I never knew about design mode... that's neat. Not exactly sure what I'll do with that knowledge or how I'd use it... but it's neat to know that it exists :)

Collapse
 
dgray0229 profile image
Devin Gray

console.table() made my day! Also, it's great to know I can keep some jQuery habits with the $ and $$.

Collapse
 
myozawlatt profile image
Myo Zaw Latt

Cool!
Thanks for sharing

Collapse
 
ididnt_getalong profile image
Sudharshaun Mugundan

Thanks much !! never knew about the design mode..

Collapse
 
mustapha profile image
Mustapha Aouas

Thanks for the feedback. You could also set is programmatically in your JS and have fun with it :)

Collapse
 
selahattinunlu profile image
Selahattin Ünlü

Thanks for sharing! I've learned there is a faster way of querySelector. It's cool!

Collapse
 
devpablofeijo profile image
Pablo Ruan

Awesome tips, thanks! :D

Collapse
 
jirois profile image
Omas Ajiri

Great article.. I personally find the designmode tip to be fascinating..
Thanks man

Collapse
 
flaviovallone profile image
Flavio Vallone

console.table will change my life 😂

Collapse
 
mdhesari profile image
Mohammad Fazel

Thank you!

Collapse
 
5456qwe profile image
1214586

really cool, thanks

Collapse
 
sammlutz profile image
Sam Lutz

great article! thx

Collapse
 
fc250152 profile image
Nando

thank you, Mustapha. very useful and well done!

Collapse
 
sinteticwizard profile image
Ramon Ramirez

Nice

Collapse
 
kioviensis profile image
Max Tarsis

wow
very informative

thanks!:)

Collapse
 
dionarodrigues profile image
Diona Rodrigues

Great tips. Since its begining I'm a heavy user of spread operator as well. // Which tool do you use to create your animated gifs, BTW?