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
Barcodes for Developers: What the Stripes Actually Encode
How-ToMachine Learning

Barcodes for Developers: What the Stripes Actually Encode

via Dev.to TutorialMichael Lip3h ago

Every barcode you've ever seen is just a number rendered as a pattern of lines. That's it. There's no image recognition, no machine learning, no computer vision involved in reading a standard barcode. A scanner shines a light, measures the reflections, decodes the widths of the bars and gaps into digits, and looks up those digits in a database. The intelligence is in the database, not the barcode. But the encoding schemes are more interesting than most developers realize. Here's what's actually happening inside those stripes. UPC and EAN: the ones on products The barcode on a can of soda is almost certainly UPC-A (12 digits, used in North America) or EAN-13 (13 digits, used everywhere else). UPC-A is actually a subset of EAN-13 with a leading zero. An EAN-13 barcode like 5901234123457 encodes: First 3 digits: country/region prefix (590 = Poland) Next 4-5 digits: manufacturer code Next 4-5 digits: product code Last digit: check digit The check digit is a weighted sum of the other 12 dig

Continue reading on Dev.to Tutorial

Opens in a new tab

Read Full Article
0 views

Related Articles

The Maven Velocity Playbook: Mastering Build Speed, Dependency Scopes, and Modern Caching
How-To

The Maven Velocity Playbook: Mastering Build Speed, Dependency Scopes, and Modern Caching

Medium Programming • 45m ago

Monte Verde site gets a new date, but the big picture doesn't change
How-To

Monte Verde site gets a new date, but the big picture doesn't change

Ars Technica • 1h ago

Your CLAUDE.md Is a Suggestion. Hooks Make It Law.
How-To

Your CLAUDE.md Is a Suggestion. Hooks Make It Law.

Medium Programming • 1h ago

The Hidden Complexity of Citation Formatting (And Why I Automated It)
How-To

The Hidden Complexity of Citation Formatting (And Why I Automated It)

Dev.to Beginners • 2h ago

The Widmark Formula: How BAC Is Actually Calculated
How-To

The Widmark Formula: How BAC Is Actually Calculated

Dev.to Tutorial • 2h ago

Discover More Articles