My problem is, how do I make sure I am always creating good code? The one metric I have to determine if I'm making a good product is if it works. As I am the only developer, there's no one to review my code, to bounce ideas off of.
Has anyone else been in a similar position? How do you ensure you're not making foolish mistakes that you've become blind to?
If you are the only developer, well you still know the pain points in your own code.
And its far better to have something correct than nothing at all, even if its ugly and/or slow and/or hard to maintain or modify.
I often rewrite my code if i encounter limitations. Refactor often and write tests (I'm too lazy to write tests, bad, very bad, bad!).
Also read a lot of others code. Helps you grow and fill in blindspots.
You have a larger burden than usual to facilitate your own growth and knowledge expansion. Because you are alone.
No miracle, you will do thing that, looking at it in one year, you will find aweful.. that you would have been done differenlty..
You can try to use tools like codesniffer and such (code quality tool) to give you some metric and show you improvment.
You can maybe try something like https://github.com/marketplace/actions/openai-based-pr-revie.... (Be sure it's ok with your company to use it - it uses OpenAI GPT model)
It's far from ideal, but it can maybe give you some insight ;)
Good luck
Create commits and PRs as if you were on a team, then go work on another project. Then come back and re-read your own PR. Having been doing something else for a while, you'll see it with fresher eyes. If it still makes sense and looks good, ship it.
This won't catch everything - you probably still have blind spots in your skill set. We all do. But it will prevent tunnel vision from being too close to your own code.
You have to figure things out by yourself and rely on available resources for guidance. I often joined Slack groups, subreddits, etc. both to contribute and ask for advice. You’d be surprised how many people are also in the same position!
Who the hell hires someone with no experience to run the company IT?