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
I built a training simulator for the dev skills nobody teaches
How-ToMachine Learning

I built a training simulator for the dev skills nobody teaches

via Dev.toSteven Leggett4h ago

Pop quiz. What's wrong with this code? router . post ( ' /login ' , async ( req , res ) => { const { email , password } = req . body ; logger . info ( ' Login attempt ' , { email , password , // LINE 5 ip : req . ip }); const user = await db . query ( ' SELECT * FROM users WHERE email = $1 ' , [ email ] ); const u = user . rows [ 0 ]; // ... auth check ... analytics . track ( ' user_login ' , { email : u . email , ssn : u . ssn_last4 , // LINE 22 creditScore : u . credit_score , }); return res . json ({ token , user : { email : u . email , passwordHash : u . password_hash , // LINE 30 ssn : u . ssn_last4 , creditScore : u . credit_score , } }); }); There are 7 issues in there. How many did you spot? Did you catch that line 5 writes plaintext passwords to your log aggregator? That line 22 sends SSN data to a third-party analytics service, violating GDPR Article 28? That line 30 returns the password hash in the API response? This is a real scenario from LearningTo.co - a training platfor

Continue reading on Dev.to

Opens in a new tab

Read Full Article
0 views

Related Articles

Nobody Warned Me About This Part of Being a Junior Developer
How-To

Nobody Warned Me About This Part of Being a Junior Developer

Medium Programming • 4h ago

Talent gets the spotlight.
Discipline builds the legacy.
How-To

Talent gets the spotlight. Discipline builds the legacy.

Medium Programming • 5h ago

Coding in the Age of Co-Pilots: Why Developers Who Think Will Win
How-To

Coding in the Age of Co-Pilots: Why Developers Who Think Will Win

Medium Programming • 6h ago

Two more EVs for the trash heap: Volvo EX30 and Honda Prologue
How-To

Two more EVs for the trash heap: Volvo EX30 and Honda Prologue

The Verge • 7h ago

How-To

Building Your First Interactive Flutter App (Dicee)

Medium Programming • 7h ago

Discover More Articles