FlareStart
HomeNewsHow ToSources
FlareStart

Where developers start their day. All the tech news & tutorials that matter, in one place.

Quick Links

  • Home
  • News
  • Tutorials
  • Sources
  • Privacy Policy

Connect

© 2026 FlareStart. All rights reserved.

Back to articles
10 Things I Did as a Junior That Make Me Cringe as a Senior
How-ToMachine Learning

10 Things I Did as a Junior That Make Me Cringe as a Senior

via Dev.to BeginnersMatthew Hou1mo ago

Looking back at my code from 5 years ago feels like reading a diary from middle school. Here are the most cringeworthy habits I had, why they were wrong, and what I do instead now. 1. Commenting Every Line // Junior me: const users = []; // create empty array for users for ( let i = 0 ; i < data . length ; i ++ ) { // loop through data const user = data [ i ]; // get current user if ( user . isActive ) { // check if user is active users . push ( user ); // add active user to array } } return users ; // return the users // Senior me: return data . filter ( user => user . isActive ); Comments should explain WHY, never WHAT. If the code needs a comment to explain what it does, the code should be rewritten to be self-explanatory. The only valid comments: Why a non-obvious decision was made Warning about a subtle gotcha TODO with a ticket number 2. Reinventing Standard Library Functions // Junior me: "I'll write my own!" function removeDuplicates ( arr ) { const result = []; for ( const ite

Continue reading on Dev.to Beginners

Opens in a new tab

Read Full Article
15 views

Related Articles

Stop paying for cable: How to access over 1,000 free streaming channels today
How-To

Stop paying for cable: How to access over 1,000 free streaming channels today

ZDNet • 1w ago

The kid-friendly Fitbit Ace is $100, which matches its best price
How-To

The kid-friendly Fitbit Ace is $100, which matches its best price

The Verge • 1w ago

Your iPhone has a secret button on the back - here's how to unlock it
How-To

Your iPhone has a secret button on the back - here's how to unlock it

ZDNet • 1w ago

Best Laptops for Multi-Monitor Setups in 2026
How-To

Best Laptops for Multi-Monitor Setups in 2026

Medium Programming • 1w ago

I Thought Learning Tech Would Fix My Life. It Didn’t.
How-To

I Thought Learning Tech Would Fix My Life. It Didn’t.

Medium Programming • 1w ago

Discover More Articles