DEV Community

Discussion on: Validate a Credit Card Number with Functional JavaScript

Collapse
 
jlhernandez profile image
Info Comment hidden by post author - thread only visible in this permalink
Jose L. Hernández

Great article but a terrible topic for a "beginner-level" tutorial.

A small introduction to PCI compliance requirements would be great to stop beginners from thinking they can process credit card numbers as easy as this...

Collapse
 
deciduously profile image
Ben Lovy

The intended takeaways here are checksums and the functional-style implemention - definitely not intended as an introduction to financial processing.

Collapse
 
jlhernandez profile image
Jose L. Hernández

Sure, that's why I think it is a bad topic for a tutorial.
The programming style is cool, but it would be better if you implemented another algorithm, something that could be used in a real world app, or at least warn the readers they should never get credit card numbers in their app (unless they are building a bank..)

Thread Thread
 
deciduously profile image
Ben Lovy

Fair point!

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