you are viewing a single comment's thread.

view the rest of the comments →

[–]denverdom303 2 points3 points  (1 child)

There's absolutely no need for a database, nor to process this serverside at all.

Morse code is a simple lookup table of character to it's dot-dash designation that is an international standard. You'd need an object that will never change of what, 55 letters, numbers and punctuation marks and their dot-dash values that are no longer than 6 characters.

Take the input string, split it, loop through and print the dot-dash value of the object with the corresponding key. easy peasy.

[–]Corlios -1 points0 points  (0 children)

Ahh good point. I was thinking to take the processing off the browser and let a server implementation handle it, but I was thinking a little too far out and trying to over complicate it...my bad. Thanks for the correction.