I don't know what's "ideal" but I can tell you what I did. I joined a regular gym, and a crossfit gym near my office at the same time. Was feasible to do since both had great intro specials.
Crossfit gets a bad rep in some parts of the internet but the owner was an experienced olympic weightlifter and knew what he was doing. I went 3 days a week for the first three months religiously, and asked a lot of questions about how to lift with proper form and all that.
In retrospect I probably didn't actually need to do that, but it took away a lot of anxiety. As a guy in his 40's I knew I didn't know what I was doing, and of course all sorts of strange and unfamiliar aches and pains and soreness came along at first and having someone experienced helping me made me feel confident that those were normal.
After the three month trial was up I let the crossfit thing lapse and started Stronglifts 5x5. They have a great app and set of videos that just tell you exactly what to do, it's great for beginners. The linear progression they use should keep you busy for a year or so before you start to feel like you need something new.
After a year or two I got a personal trainer, but it was mostly just for efficiency because I got really busy. I get a lot more into a single hour than I used to. He helps get things set up and so on and pushes me. One thing that I did do was tell him I just wanted to lift weights so I wouldn't waste time on random exercises. You have to manage a personal trainer like anyone else, and if you don't like things they have you do then don't do them, manage your own program too.
Hope that helps.
Most good gyms will have some people on staff that can help you with questions about good form. If you are unsure about good form, ask someone that works at the gym if they can come give you a look over and give some pointers.
Also, there is a reason there are mirrors all over in the gyms; it's so you can watch yourself to make sure you have good form.
One last pointer; start light. Lifting too heavy will lead to bad form and injuries. A classic example is curls; people lifting too heavy on curls will throw their back a bit on the lift and injure their back. So start light, watch your form, and slowly add those weights.
> Trainers can be quite expensive
I'm maybe a little embarrassed to admit this, but paying for a trainer will help me commit. If I'm paying for an hour of time on Thursday morning, I'm more likely to show up.
If you have a good trainer that can help with the commitment issue. If you have a bad trainer it can make it worse. I've had both. I had one trainer that wouldn't listen to me and just always pushed to hard; then during a session I puked from over exertion. I was so angry and embarrassed I didn't go back to the gym for over 3 months.
Anyway the point there is if you are going to get a trainer then vet them before you sign an agreement.
A couple of other options to help with commitment is to join a fitness group or a class like Farrell's (https://extremebodyshaping.com/).
Some of these have support/accountability groups so if you no show someone is going to call and ask where you were and in return you do the same thing
As you go along, you will develop your own ideas and know what works for you, so you can modify the program to suit your own needs.
What you can do also depend on what equipment you have easy access to. Harder/longer it is to get to the place of workout, harder it is to get into habit of working out.
Starting with low weights and working on form for the first week or two while video'ing yourself and comparing yourself to instructional videos will allow for self critique.
I personally never had a trainer, but have had good success with self critiquing.
I've been thinking about doing this and was wondering how people get started. Did you hire a trainer? I'm very worried about injury and, as I understand it, a big part of staying injury free comes down to good form. I think I would benefit a great deal from having a trainer to get started. Did you?