DEV Community

Munin 🌝
Munin 🌝

Posted on

Todays work

Today I built an Anagram Checker.

The idea is simple:
Given two words, check whether they are made up of the same letters.
Examples:
✅ listen → silent
✅ heart → earth
❌ hello → world

Features:
✅ Compare two words
✅ Ignore spaces
✅ Validate matches
At first, I thought this project would be very easy.
But I got stuck on one thing:

How do I actually compare two words and know if they contain the same letters?

I didn't want to copy code, so I started searching for ideas and different approaches.

I used Google and AI tools, but not for the solution itself.
I was trying to understand the logic.
While exploring, I discovered the .sort() method.

The moment I understood that sorting can turn something like:
dcba → abcd
a lot of things suddenly clicked.

I realized that if two words contain the same letters, then after sorting them, they should look exactly the same.

That small discovery made the whole problem much easier to solve.
And honestly, that's what I enjoyed most today.

Not finishing the project.
Understanding the logic behind it.

Something I'm starting to notice is that coding feels very different when you're building projects.

When I watch tutorials, everything makes sense.
When I start building, that's when the real questions appear.
That's when I have to think.
That's when I get stuck.
And that's when the actual learning happens.

Another interesting thing:
I'm still nowhere near finishing my JavaScript course.
A few weeks ago, I thought I needed to complete the course first and then start building.

Now I think it's the opposite.
Build while learning.
Whenever you don't know something:
→ Search for it.
→ Read about it.
→ Understand it.
→ Use it immediately.
That way the concepts actually stay in your head.

Today I also spent time learning more JavaScript fundamentals:

  • Operators
  • Primitive data types
  • Strings and how they can be manipulated

The projects are still very small.
But each one is teaching me something new.

Number Guessing Game taught me conditions.
Palindrome Checker taught me string manipulation.
Anagram Checker taught me how important it is to find the right approach before writing code.

For the next few days, I'm going to continue building small projects like these.

Nothing fancy.
Just consistent practice.

Because I'm starting to believe that project-based learning is one of the best ways to learn programming.

Build.
Get stuck.
Figure it out.
Repeat.
That's the plan.

Top comments (0)