DEV Community

Cover image for Dotting and Dashing with Minion Morse Magic
Bala Madhusoodhanan
Bala Madhusoodhanan

Posted on

3 1 1 1 2

Dotting and Dashing with Minion Morse Magic

Intro:
Lets start with the brief history of Morse Code. Morse code is a way of sending messages using patterns of sounds or lights. Each letter, number, or punctuation mark has a unique pattern of short and long signals (Original language of dots and dashes). From its inception by Samuel Morse to its role in long-distance communication, Morse Code has left an indelible mark on the world. Morse code was widely used for long-distance communication until the mid-20th century, especially by the military and the shipping industry. It was also used for radio communication and space exploration. In this tutorial we will delve into the Minionized realm of Morse Code, exploring the captivating blend of banana-fueled antics and the precision of dots and dashes. We would leverage power automate to turn your messages into a symphony of beeps and banana whispers.

Setup:
The first step is to define a data dictionary. Here, we'll give each letter of the alphabet its unique pattern of dots and dashes, transforming the ordinary into the extraordinary. A is now dot-dash, B is dash-dot-dot-dot, and so on – it's like creating a secret language.

{
    "A": ".-", "B": "-...", "C": "-.-.",
    "D": "-..", "E": ".", "F": "..-.",
    "G": "--.", "H": "....", "I": "..",
    "J": ".---", "K": "-.-", "L": ".-..",
    "M": "--", "N": "-.", "O": "---",
    "P": ".--.", "Q": "--.-", "R": ".-.",
    "S": "...", "T": "-", "U": "..-",
    "V": "...-", "W": ".--", "X": "-..-",
    "Y": "-.--", "Z": "--..", " ": "/"
}
Enter fullscreen mode Exit fullscreen mode

Logic:
Below is the graph that transforms the user's ordinary text input, navigate through the Morse Code dictionary, translating each character into its dots-and-dashes equivalent.

Image description

The cool trick here is dynamic iteration where we navigate through each character obtained from the user input and retrieve its corresponding Morse Code pattern.

"body('Parse_JSON')?[items('Apply_to_each')]"
Enter fullscreen mode Exit fullscreen mode

Image description

Some Examples:
Microsoft
Image description

Power

Image description

DevTo

Image description

Hope you enjoyed reading through how in power automate we could build our own Minion Morse Code Translator, turning your messages into a symphony of beeps and banana whispers.

Further Read:
1) Wiki MorseCode
2) Kids summer activity
3) Morsecode translator

Do your career a big favor. Join DEV. (The website you're on right now)

It takes one minute, it's free, and is worth it for your career.

Get started

Community matters

Top comments (3)

Collapse
 
balagmadhu profile image
Bala Madhusoodhanan

@wyattdave : Thanks for the cool tip on the dynamic lookup . Would have never crossed my mind

Collapse
 
wyattdave profile image
david wyatt

No worries, loving your work, want to see my flow beep at me in morse code now 🙂

Collapse
 
balagmadhu profile image
Bala Madhusoodhanan

Will find time to do that !!!

👋 Kindness is contagious

Engage with a sea of insights in this enlightening article, highly esteemed within the encouraging DEV Community. Programmers of every skill level are invited to participate and enrich our shared knowledge.

A simple "thank you" can uplift someone's spirits. Express your appreciation in the comments section!

On DEV, sharing knowledge smooths our journey and strengthens our community bonds. Found this useful? A brief thank you to the author can mean a lot.

Okay