DEV Community

david duymelinck
david duymelinck

Posted on

Codestarter fase 4 (final)

I published Codestarter. So now you can take a look at how it works.

Evolution

While in fase one I was focused on input, I let it go by the time I discovered the console autocomplete helper.

While the helper does make it easier to input classes with namespaces, it is not as fast as typing only the first letters of each directory.
On the other hand typing the first letters means you need to have the namespaces mapped out in your head. That will work for the application file structure, but it will be harder for the frameworks and libraries.

Typing the first letters also has the possibility multiple options are found, and that means an additional question. While testing I found out that creating a class with a method already takes fifteen questions. So I didn't want to add more questions.

I have kept the classes cache file from fase 2 but I have saw one problem, and that is it needs manual updating.
Adding a class or removing a class by generating it or by adding or removing libraries should be a background process.

During testing I discovered that working with templates is hard because of new lines and indentation. So it is possible the code generation will move to string concatenation instead of a mix of concatenation and templates.

The setup command that is in the package were separate commands at first. But it wasn't clear when to use those commands, so I grouped them in a single command.

Conclusion

While I'm pleased with the release of the package. I still have a long way to go to reach a version 1 release. It still feels more like a sketch than a complete drawing.
It started as an idea to create make commands that are not hard coded by the framework. And I wanted to take you along on the trip to get to an alpha release.

It has been a while since I was this excited about a side-project. But it also showed me that I need to pace myself if I want to maintain it.
That is why I set the timeline for a version 1 release around the start of juli.

In these times of AI generation I don't know how many people will use this package. But all the lessons I learned are up for grabs. And that is the main thing I wanted to achieve.

Top comments (0)

👋 Kindness is contagious

If this post resonated with you, feel free to hit ❤️ or leave a quick comment to share your thoughts!

Okay